pcm-shared-components 0.0.132 → 0.0.133

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.
@@ -0,0 +1,114 @@
1
+ .login_splash{
2
+ /* Login splash screen */
3
+ /* background-image: linear-gradient( rgba(18, 100, 36, 0.6) , rgba(245, 160, 3, 0.6)),url('/assets/images/backgrounds/marshmellows.jpg') !important; */
4
+ background-repeat: no-repeat;
5
+ background-size: cover;
6
+
7
+ }
8
+
9
+ [class^="withRouter-Login"]{
10
+ /* controls the gradient background when in mobile view the area behind the login box */
11
+ background: linear-gradient(to right, rgb(70, 83, 52) 0%, #526B33 100%) !important;
12
+ }
13
+
14
+
15
+ .back_blocks_small{
16
+ background-color:#f1632f;
17
+ border-radius: 13px;
18
+ padding: 2px;
19
+ margin: auto;
20
+ height: 20px;
21
+ color:#fff;
22
+ width: 80px;
23
+ }
24
+
25
+
26
+ .small_header {
27
+ height: 350px !important; /* any arbitrary height but best at the minimum initial height you would want. */
28
+ overflow: hidden;
29
+ transition: all 0.5s ease;
30
+ }
31
+ .small_title {
32
+ padding-top: 0px !important; /* any arbitrary height but best at the minimum initial height you would want. */
33
+ transition: all 0.5s ease;
34
+ }
35
+
36
+ .white_stroke{
37
+ text-shadow: 0px 4px 3px rgba(0, 0, 0, 0.4),
38
+ 0px 8px 13px rgba(0, 0, 0, 0.1),
39
+ 0px 18px 23px rgba(0, 0, 0, 0.1);
40
+ color:white;
41
+ }
42
+
43
+ .bottom_border input{
44
+ border-bottom: solid 1px #a0a0a0;
45
+ }
46
+
47
+ .gated_day_style{
48
+ display: -webkit-box;
49
+ display: -webkit-flex;
50
+ display: -ms-flexbox;
51
+ display: flex;
52
+ -webkit-box-pack: center;
53
+ -webkit-justify-content: center;
54
+ -ms-flex-pack: center;
55
+ justify-content: center;
56
+ -webkit-align-items: center;
57
+ -webkit-box-align: center;
58
+ -ms-flex-align: center;
59
+ align-items: center;
60
+ height: 100%;
61
+ width: 100%;
62
+ border: 1px dashed white;
63
+ }
64
+ .non_gated_day_style{
65
+ display: -webkit-box;
66
+ display: -webkit-flex;
67
+ display: -ms-flexbox;
68
+ display: flex;
69
+ -webkit-box-pack: center;
70
+ -webkit-justify-content: center;
71
+ -ms-flex-pack: center;
72
+ justify-content: center;
73
+ -webkit-align-items: center;
74
+ -webkit-box-align: center;
75
+ -ms-flex-align: center;
76
+ align-items: center;
77
+ height: 100%;
78
+ width: 100%;
79
+ }
80
+
81
+ /* Kinda stuck at version 1.5.0 for the date picker. In the newest version the z index is working fine with the material ui components.
82
+ this css will make it so the date picker range box is over the material ui components */
83
+ .zme > div{
84
+ z-index: 9999;
85
+ }
86
+
87
+
88
+ .sticky_menu {
89
+ margin: 0;
90
+ padding: 0;
91
+ width: 100%;
92
+ background-color: #fff;
93
+
94
+
95
+ }
96
+ @media only screen and (min-width: 780px) {
97
+ .sticky_menu {
98
+ top: 0;
99
+ position: -webkit-sticky;
100
+ position: sticky;
101
+ }
102
+ .sticky_search_bar {
103
+ top: -60px;
104
+ position: -webkit-sticky;
105
+ position: sticky;
106
+ }
107
+ }
108
+
109
+ .sticky_search_bar {
110
+ margin: 0;
111
+ padding: 0;
112
+ width: 100%;
113
+ /* background-color: #BFFFF3; */
114
+ }
@@ -0,0 +1,196 @@
1
+ import React from 'react';
2
+ import PropTypes from 'prop-types';
3
+ import { orange } from '@mui/material/colors';
4
+ import { DateRangeInput } from '@datepicker-react/styled';
5
+ import { ThemeProvider } from 'styled-components';
6
+ import i18next from 'i18next';
7
+ import './css/style.css';
8
+ /**
9
+ * example with styling https://codesandbox.io/s/react-date-picker-rangeinput-jw726?from-embed=&file=/src/index.js:2503-2537
10
+ *
11
+ * ## Importing the component in your project
12
+ *
13
+ ```js
14
+ import {DateRangeCalendar} from 'pcm-shared-components';
15
+ ```
16
+ *
17
+ */
18
+
19
+ export const DateRangeCalendar = props => {
20
+ const {
21
+ minBookingDate,
22
+ numberOfMonthsMobile,
23
+ numberOfMonthsDesktop,
24
+ dateFormat,
25
+ minBookingDays,
26
+ onDayRender,
27
+ isDateBlocked,
28
+ focusedInput,
29
+ onDatesChange,
30
+ onFocusChange,
31
+ startDate,
32
+ endDate,
33
+ variant
34
+ } = props;
35
+
36
+ const isValidRenderFunction = functionToCheck => {
37
+ try {
38
+ //Makes sure we have a function and also that it's a valid react element which the calendar will use to display the date.
39
+ return functionToCheck && /*#__PURE__*/React.isValidElement(functionToCheck) ? true : false;
40
+ } catch (error) {
41
+ console.error(error);
42
+ }
43
+
44
+ return false;
45
+ };
46
+
47
+ const handleOnDayRender = date => {
48
+ return /*#__PURE__*/React.createElement(React.Fragment, null, onDayRender && isValidRenderFunction(onDayRender(date)) ? /*#__PURE__*/React.createElement(React.Fragment, null, onDayRender(date)) : /*#__PURE__*/React.createElement("span", {
49
+ className: ""
50
+ }, new Date(date).getDate()));
51
+ };
52
+
53
+ const handleIsDateBlocked = date => {
54
+ try {
55
+ if (typeof isDateBlocked === 'function') {
56
+ return isDateBlocked(date);
57
+ }
58
+ } catch (error) {
59
+ console.error(error);
60
+ }
61
+
62
+ return false;
63
+ };
64
+
65
+ const handleOnDatesChange = data => {
66
+ try {
67
+ if (typeof onDatesChange === 'function') {
68
+ onDatesChange(data);
69
+ }
70
+ } catch (error) {
71
+ console.error(error);
72
+ }
73
+ };
74
+
75
+ const handleOnFocusChange = data => {
76
+ try {
77
+ if (typeof onFocusChange === 'function') {
78
+ onFocusChange(data);
79
+ }
80
+ } catch (error) {
81
+ console.error(error);
82
+ }
83
+ };
84
+
85
+ return /*#__PURE__*/React.createElement("div", {
86
+ className: `m-auto pt-12 md:pt-0 ${variant === 'standard' ? 'bottom_border' : undefined}`,
87
+ style: {
88
+ zIndex: 100
89
+ }
90
+ }, /*#__PURE__*/React.createElement(ThemeProvider, {
91
+ theme: {
92
+ breakpoints: ['32em', '48em', '64em'],
93
+ reactDatepicker: {
94
+ daySize: [36, 40],
95
+ fontFamily: 'system-ui, -apple-system',
96
+ colors: {
97
+ accessibility: orange[900],
98
+ selectedDay: orange[400],
99
+ selectedDayHover: orange[900],
100
+ primaryColor: orange[700]
101
+ },
102
+ inputFontSize: 16,
103
+ selectDateDateFontSize: 18,
104
+ dateRangeArrowIconColor: orange[700],
105
+ inputLabelBorder: variant === 'outlined' ? undefined : 'none',
106
+ datepickerBorderRadius: 5
107
+ }
108
+ }
109
+ }, /*#__PURE__*/React.createElement(DateRangeInput, {
110
+ phrases: {
111
+ datepickerStartDateLabel: i18next.t('common.app.arrival_date'),
112
+ datepickerEndDateLabel: i18next.t('common.app.departure_date'),
113
+ resetDates: i18next.t('common.app.reset'),
114
+ close: i18next.t('common.app.close'),
115
+ datepickerStartDatePlaceholder: i18next.t('common.app.arrival_date'),
116
+ datepickerEndDatePlaceholder: i18next.t('common.app.departure_date'),
117
+ startDateAriaLabel: i18next.t('common.app.arrival_date'),
118
+ endDateAriaLabel: i18next.t('common.app.departure_date'),
119
+ startDatePlaceholder: i18next.t('common.app.arrival_date'),
120
+ endDatePlaceholder: i18next.t('common.app.departure_date')
121
+ },
122
+ showSelectedDates: false,
123
+ showClose: false,
124
+ onDayRender: handleOnDayRender,
125
+ isDateBlocked: handleIsDateBlocked,
126
+ firstDayOfWeek: 0,
127
+ minBookingDays: minBookingDays,
128
+ minBookingDate: minBookingDate,
129
+ vertical: window.innerWidth < 800 ? true : false,
130
+ numberOfMonths: window.innerWidth < 800 ? numberOfMonthsMobile : numberOfMonthsDesktop,
131
+ onDatesChange: handleOnDatesChange,
132
+ onFocusChange: handleOnFocusChange,
133
+ startDate: startDate // Date or null
134
+ ,
135
+ endDate: endDate // Date or null
136
+ ,
137
+ focusedInput: focusedInput,
138
+ displayFormat: dateFormat
139
+ })));
140
+ };
141
+ export default DateRangeCalendar;
142
+ DateRangeCalendar.defaultProps = {
143
+ minBookingDate: new Date(new Date().setDate(new Date().getDate() + 1)),
144
+ numberOfMonthsMobile: 1,
145
+ numberOfMonthsDesktop: 2,
146
+ dateFormat: 'MMM d, yyyy',
147
+ minBookingDays: 1,
148
+ onDayRender: undefined,
149
+ isDateBlocked: undefined,
150
+ onDatesChange: undefined,
151
+ onFocusChange: undefined,
152
+ startDate: null,
153
+ endDate: null,
154
+ focusedInput: null,
155
+ variant: 'standard'
156
+ };
157
+ DateRangeCalendar.propTypes = {
158
+ /** Used to provide the minimum booking date base on the current start date before the calendar will allow a end selection. Defaults to one day from the current date and time.*/
159
+ minBookingDate: PropTypes.instanceOf(Date),
160
+
161
+ /** Number of calendar months to display when we are in mobile view.*/
162
+ numberOfMonthsMobile: PropTypes.number,
163
+
164
+ /** Number of calendar months to display when we are in desktop view.*/
165
+ numberOfMonthsDesktop: PropTypes.number,
166
+
167
+ /** Date format to use when displaying the selected dates in the text boxes.*/
168
+ dateFormat: PropTypes.string,
169
+
170
+ /** Min booking days allowing the user to select a valid date range.*/
171
+ minBookingDays: PropTypes.number,
172
+
173
+ /** Provides a (date:date) props to the function and expects a React.ReactNode component to be returned */
174
+ onDayRender: PropTypes.func,
175
+
176
+ /** Provides a (date:date) props to the function and expects a boolean value returned which tells the calendar to either block or not that day*/
177
+ isDateBlocked: PropTypes.func,
178
+
179
+ /** Provides a (data) props to the function and doesn't expect any return value*/
180
+ onDatesChange: PropTypes.func,
181
+
182
+ /** Provides a instance of focusedInput ('START_DATE','END_DATE',null) prop to the function and doesn't expect any return value*/
183
+ onFocusChange: PropTypes.func,
184
+
185
+ /** The stat date of the calendar */
186
+ startDate: PropTypes.instanceOf(Date),
187
+
188
+ /** The end date of the calendar */
189
+ endDate: PropTypes.instanceOf(Date),
190
+
191
+ /** Determines on which input the calendar will be focused on. Null = nothing meaning the calendar should be closed if null*/
192
+ focusedInput: PropTypes.oneOf(['startDate', 'endDate', null]),
193
+
194
+ /** Controls the type of border to display around the date input boxes*/
195
+ variant: PropTypes.oneOf(['outlined', 'standard', 'none'])
196
+ };
@@ -0,0 +1,33 @@
1
+ import React from 'react';
2
+ import PropTypes from 'prop-types';
3
+ import { ThemeProvider } from '@mui/system';
4
+ import { createTheme, useTheme } from '@mui/material/styles';
5
+ /**
6
+ * ## Importing the component in your project
7
+ *
8
+ ```js
9
+
10
+ import {NEW_COMPONENT} from 'pcm-shared-components';
11
+
12
+ ```
13
+ *
14
+ */
15
+
16
+ export const NEW_COMPONENT = props => {
17
+ const {
18
+ theme
19
+ } = props;
20
+ const compTheme = theme ? theme : useTheme();
21
+ const defaultTheme = createTheme(compTheme);
22
+ return /*#__PURE__*/React.createElement(ThemeProvider, {
23
+ theme: defaultTheme
24
+ }, /*#__PURE__*/React.createElement(React.Fragment, null, "your component"));
25
+ };
26
+ export default NEW_COMPONENT;
27
+ NEW_COMPONENT.defaultProps = {
28
+ theme: {}
29
+ };
30
+ NEW_COMPONENT.propTypes = {
31
+ /** Theme object to use on this component, if none provided then the MUI5 theme provider theme is used*/
32
+ theme: PropTypes.object
33
+ };
@@ -0,0 +1,15 @@
1
+ import { ArgsTable, Canvas, Meta, Story } from "@storybook/addon-docs";
2
+ import NEW_COMPONENT from '..'
3
+
4
+
5
+ # NEW_COMPONENT
6
+ Component description here...
7
+
8
+ ## Importing the component in your project.
9
+ ```js
10
+ import {NEW_COMPONENT} from 'pcm-shared-components';
11
+ ```
12
+
13
+ SOMETHING HERE...
14
+
15
+ <ArgsTable of={NEW_COMPONENT} />
@@ -0,0 +1,22 @@
1
+ import NEW_COMPONENT from '..';
2
+ import { theme } from '../../Theme/theme';
3
+ import IndexDocs from './index.docs.mdx';
4
+ export default {
5
+ title: 'Example/NEW_COMPONENT',
6
+ component: NEW_COMPONENT,
7
+ argTypes: {},
8
+ parameters: {
9
+ docs: {
10
+ // inlineStories: true,
11
+ page: IndexDocs
12
+ }
13
+ }
14
+ };
15
+
16
+ const NEWCOMPONENTTemplate = args => /*#__PURE__*/React.createElement(NEW_COMPONENT, args);
17
+
18
+ export const NEW_COMPONENTExample = NEWCOMPONENTTemplate.bind({});
19
+ NEW_COMPONENTExample.args = {
20
+ className: '',
21
+ theme: theme.pitchCamp
22
+ };
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Quick way to determine if this is a valid function. Note: very useful when using proptypes of func type to determine if a true function was passed or not.
3
+ * Note: typeof var === 'function' won't work with the func proptypes definition however this method works fine.
4
+ *
5
+ * @param {*} checkFunction function to verify
6
+ */
7
+ const isValidFunction = checkFunction => {
8
+ try {
9
+ return !checkFunction;
10
+ } catch (error) {
11
+ console.error('isValidFunction: ', error);
12
+ }
13
+
14
+ return false;
15
+ };
@@ -1 +1 @@
1
- *,:after,:before{--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#2196f380;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.static{position:static}.absolute{position:absolute}.relative{position:relative}.top-0{top:0}.bottom-0{bottom:0}.left-0{left:0}.right-0{right:0}.m-auto{margin:auto}.m-12{margin:1.2rem}.mx-6{margin-left:.6rem;margin-right:.6rem}.my-auto{margin-top:auto;margin-bottom:auto}.mx-2{margin-left:.2rem;margin-right:.2rem}.my-12{margin-top:1.2rem;margin-bottom:1.2rem}.my-6{margin-top:.6rem;margin-bottom:.6rem}.mx-8{margin-left:.8rem;margin-right:.8rem}.mt-6{margin-top:.6rem}.mb-2{margin-bottom:.2rem}.mt-12{margin-top:1.2rem}.mr-12{margin-right:1.2rem}.ml-6{margin-left:.6rem}.mb-6{margin-bottom:.6rem}.ml-12{margin-left:1.2rem}.mb-24{margin-bottom:2.4rem}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.contents{display:contents}.hidden{display:none}.h-full{height:100%}.h-screen{height:100vh}.w-full{width:100%}.w-auto{width:auto}.w-1\/2{width:50%}.w-2\/5{width:40%}.grow{flex-grow:1}.cursor-not-allowed{cursor:not-allowed}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.list-disc{list-style-type:disc}.flex-row{flex-direction:row}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-scroll{overflow:scroll}.overscroll-none{-ms-scroll-chaining:none;overscroll-behavior:none}.rounded{border-radius:.4rem}.rounded-md{border-radius:.6rem}.border{border-width:1px}.border-2{border-width:2px}.border-transparent{border-color:#0000}.bg-green-600{--tw-bg-opacity:1;background-color:rgb(67 160 71/var(--tw-bg-opacity))}.p-6{padding:.6rem}.px-4{padding-left:.4rem;padding-right:.4rem}.py-2{padding-top:.2rem;padding-bottom:.2rem}.px-2{padding-left:.2rem;padding-right:.2rem}.pt-4{padding-top:.4rem}.pl-0{padding-left:0}.pr-0{padding-right:0}.pl-16{padding-left:1.6rem}.text-sm{font-size:1.4rem;line-height:2rem}.text-xl{font-size:2rem;line-height:2.8rem}.text-2xl{line-height:3.2rem}.text-24,.text-2xl{font-size:2.4rem}.font-medium{font-weight:500}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity:1;color:rgb(158 158 158/var(--tw-text-opacity))}.no-underline{-webkit-text-decoration-line:none;text-decoration-line:none}.shadow{--tw-shadow:0 1px 3px 0 #0000001a,0 1px 2px 0 #0000000f;--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px 0 var(--tw-shadow-color)}.shadow,.shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 2px 0 #0000000d;--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.drop-shadow-none{--tw-drop-shadow:drop-shadow(0 0 #0000)}.drop-shadow-none,.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.hover\:bg-green-700:hover{--tw-bg-opacity:1;background-color:rgb(56 142 60/var(--tw-bg-opacity))}.hover\:bg-gray-100\/75:hover{background-color:#f5f5f5bf}.hover\:text-gray-700:hover{--tw-text-opacity:1;color:rgb(97 97 97/var(--tw-text-opacity))}.hover\:underline:hover{-webkit-text-decoration-line:underline;text-decoration-line:underline}.focus\:outline-none:focus{outline:2px solid #0000;outline-offset:2px}.focus\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\:ring-green-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(76 175 80/var(--tw-ring-opacity))}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px}
1
+ *,:after,:before{--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#2196f380;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.static{position:static}.absolute{position:absolute}.relative{position:relative}.top-0{top:0}.bottom-0{bottom:0}.left-0{left:0}.right-0{right:0}.m-auto{margin:auto}.m-12{margin:1.2rem}.mx-6{margin-left:.6rem;margin-right:.6rem}.my-auto{margin-top:auto;margin-bottom:auto}.mx-2{margin-left:.2rem;margin-right:.2rem}.my-12{margin-top:1.2rem;margin-bottom:1.2rem}.my-6{margin-top:.6rem;margin-bottom:.6rem}.mx-8{margin-left:.8rem;margin-right:.8rem}.mt-6{margin-top:.6rem}.mb-2{margin-bottom:.2rem}.mt-12{margin-top:1.2rem}.mr-12{margin-right:1.2rem}.ml-6{margin-left:.6rem}.mb-6{margin-bottom:.6rem}.ml-12{margin-left:1.2rem}.mb-24{margin-bottom:2.4rem}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.contents{display:contents}.hidden{display:none}.h-full{height:100%}.h-screen{height:100vh}.w-full{width:100%}.w-auto{width:auto}.w-1\/2{width:50%}.w-2\/5{width:40%}.grow{flex-grow:1}.cursor-not-allowed{cursor:not-allowed}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.list-disc{list-style-type:disc}.flex-row{flex-direction:row}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-scroll{overflow:scroll}.overscroll-none{-ms-scroll-chaining:none;overscroll-behavior:none}.rounded{border-radius:.4rem}.rounded-md{border-radius:.6rem}.border{border-width:1px}.border-2{border-width:2px}.border-transparent{border-color:#0000}.bg-green-600{--tw-bg-opacity:1;background-color:rgb(67 160 71/var(--tw-bg-opacity))}.bg-yellow-100\/50{background-color:#fff9c480}.p-6{padding:.6rem}.px-4{padding-left:.4rem;padding-right:.4rem}.py-2{padding-top:.2rem;padding-bottom:.2rem}.px-2{padding-left:.2rem;padding-right:.2rem}.pt-12{padding-top:1.2rem}.pt-4{padding-top:.4rem}.pl-0{padding-left:0}.pr-0{padding-right:0}.pl-16{padding-left:1.6rem}.text-center{text-align:center}.text-sm{font-size:1.4rem;line-height:2rem}.text-xl{font-size:2rem;line-height:2.8rem}.text-2xl{line-height:3.2rem}.text-24,.text-2xl{font-size:2.4rem}.font-medium{font-weight:500}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity:1;color:rgb(158 158 158/var(--tw-text-opacity))}.no-underline{-webkit-text-decoration-line:none;text-decoration-line:none}.shadow{--tw-shadow:0 1px 3px 0 #0000001a,0 1px 2px 0 #0000000f;--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px 0 var(--tw-shadow-color)}.shadow,.shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 2px 0 #0000000d;--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.drop-shadow-none{--tw-drop-shadow:drop-shadow(0 0 #0000)}.drop-shadow-none,.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.hover\:bg-green-700:hover{--tw-bg-opacity:1;background-color:rgb(56 142 60/var(--tw-bg-opacity))}.hover\:bg-gray-100\/75:hover{background-color:#f5f5f5bf}.hover\:text-gray-700:hover{--tw-text-opacity:1;color:rgb(97 97 97/var(--tw-text-opacity))}.hover\:underline:hover{-webkit-text-decoration-line:underline;text-decoration-line:underline}.focus\:outline-none:focus{outline:2px solid #0000;outline-offset:2px}.focus\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\:ring-green-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(76 175 80/var(--tw-ring-opacity))}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px}@media (min-width:960px){.md\:pt-0{padding-top:0}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pcm-shared-components",
3
- "version": "0.0.132",
3
+ "version": "0.0.133",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "babel": {
@@ -53,6 +53,7 @@
53
53
  },
54
54
  "dependencies": {
55
55
  "@babel/polyfill": "^7.12.1",
56
+ "@datepicker-react/styled": "^2.8.4",
56
57
  "@emotion/react": "^11.8.1",
57
58
  "@emotion/styled": "^11.8.1",
58
59
  "@mdi/js": "^6.5.95",
@@ -76,6 +77,7 @@
76
77
  "react-markdown": "^8.0.0",
77
78
  "react-perfect-scrollbar": "^1.5.8",
78
79
  "react-split-it": "^2.0.0",
80
+ "styled-components": "^5.3.5",
79
81
  "tinycolor2": "^1.4.2"
80
82
  }
81
83
  }