guestbell-forms 3.0.20 → 3.0.22
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/build/components/bookingCalendar/bookingCalendarTimeAxis/BookingCalendarTimeAxis.js +2 -1
- package/build/components/bookingCalendar/bookingCalendarTimeAxis/BookingCalendarTimeAxis.js.map +1 -1
- package/build/dist/guestbell-forms.css +4 -2
- package/build/dist/guestbell-forms.css.map +1 -1
- package/build/dist/guestbell-forms.min.css +1 -1
- package/build/dist/report.html +2 -2
- package/build/scss/components/bookingCalendar/bookingCalendar.scss +3 -2
- package/package.json +1 -1
@@ -21,7 +21,8 @@ function BookingCalendarTimeAxis(props) {
|
|
21
21
|
const svgRef = React.useRef();
|
22
22
|
return /*#__PURE__*/React.createElement("svg", {
|
23
23
|
className: (0, _classnames.default)(_classes.bookingCalendarTimeAxisDefaultClasses.className, className),
|
24
|
-
ref: svgRef
|
24
|
+
ref: svgRef,
|
25
|
+
height: "100"
|
25
26
|
}, /*#__PURE__*/React.createElement("g", null, items.map((item, key) => /*#__PURE__*/React.createElement("svg", {
|
26
27
|
key: key,
|
27
28
|
x: `${item.left * 100}%`
|
package/build/components/bookingCalendar/bookingCalendarTimeAxis/BookingCalendarTimeAxis.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"BookingCalendarTimeAxis.js","names":["React","_interopRequireWildcard","require","_classes","_classnames","_interopRequireDefault","obj","__esModule","default","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","BookingCalendarTimeAxis","props","className","timeAxisItemClassName","items","getMomentFormatFunction","bestStep","svgRef","useRef","createElement","classNames","bookingCalendarTimeAxisDefaultClasses","ref","map","item","x","left","transform","date","format"],"sources":["../../../../src/lib/components/bookingCalendar/bookingCalendarTimeAxis/BookingCalendarTimeAxis.tsx"],"sourcesContent":["import * as React from 'react';\r\nimport {\r\n BookingCalendarTimeAxisClasses,\r\n bookingCalendarTimeAxisDefaultClasses,\r\n} from './classes';\r\nimport classNames from 'classnames';\r\nimport { GridItem } from '../utils';\r\nimport { Duration } from 'moment';\r\nimport { GetMomentFormatFunctionType } from '..';\r\n\r\nexport interface BookingCalendarTimeAxisProps\r\n extends BookingCalendarTimeAxisClasses {\r\n items: GridItem[];\r\n bestStep: Duration;\r\n getMomentFormatFunction: GetMomentFormatFunctionType;\r\n}\r\n\r\nexport function BookingCalendarTimeAxis(props: BookingCalendarTimeAxisProps) {\r\n const {\r\n className,\r\n timeAxisItemClassName,\r\n items,\r\n getMomentFormatFunction,\r\n bestStep,\r\n } = props;\r\n const svgRef = React.useRef<SVGSVGElement>();\r\n return (\r\n <svg\r\n className={classNames(\r\n bookingCalendarTimeAxisDefaultClasses.className,\r\n className\r\n )}\r\n ref={svgRef}\r\n >\r\n <g>\r\n {items.map((item, key) => (\r\n <svg key={key} x={`${item.left * 100}%`}>\r\n <text\r\n transform=\"translate(-7) rotate(90)\"\r\n className={classNames(\r\n bookingCalendarTimeAxisDefaultClasses.timeAxisItemClassName,\r\n timeAxisItemClassName\r\n )}\r\n >\r\n {item.date.format(getMomentFormatFunction?.(item.date, bestStep))}\r\n </text>\r\n </svg>\r\n ))}\r\n </g>\r\n </svg>\r\n );\r\n}\r\n"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AAIA,IAAAE,WAAA,GAAAC,sBAAA,CAAAH,OAAA;AAAoC,SAAAG,uBAAAC,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAA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EAAE,IAAAQ,mBAAU,EACnBC,8CAAqC,CAACT,SAAS,EAC/CA,SACF,CAAE;IACFU,GAAG,EAAEL;
|
1
|
+
{"version":3,"file":"BookingCalendarTimeAxis.js","names":["React","_interopRequireWildcard","require","_classes","_classnames","_interopRequireDefault","obj","__esModule","default","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","BookingCalendarTimeAxis","props","className","timeAxisItemClassName","items","getMomentFormatFunction","bestStep","svgRef","useRef","createElement","classNames","bookingCalendarTimeAxisDefaultClasses","ref","height","map","item","x","left","transform","date","format"],"sources":["../../../../src/lib/components/bookingCalendar/bookingCalendarTimeAxis/BookingCalendarTimeAxis.tsx"],"sourcesContent":["import * as React from 'react';\r\nimport {\r\n BookingCalendarTimeAxisClasses,\r\n bookingCalendarTimeAxisDefaultClasses,\r\n} from './classes';\r\nimport classNames from 'classnames';\r\nimport { GridItem } from '../utils';\r\nimport { Duration } from 'moment';\r\nimport { GetMomentFormatFunctionType } from '..';\r\n\r\nexport interface BookingCalendarTimeAxisProps\r\n extends BookingCalendarTimeAxisClasses {\r\n items: GridItem[];\r\n bestStep: Duration;\r\n getMomentFormatFunction: GetMomentFormatFunctionType;\r\n}\r\n\r\nexport function BookingCalendarTimeAxis(props: BookingCalendarTimeAxisProps) {\r\n const {\r\n className,\r\n timeAxisItemClassName,\r\n items,\r\n getMomentFormatFunction,\r\n bestStep,\r\n } = props;\r\n const svgRef = React.useRef<SVGSVGElement>();\r\n return (\r\n <svg\r\n className={classNames(\r\n bookingCalendarTimeAxisDefaultClasses.className,\r\n className\r\n )}\r\n ref={svgRef}\r\n height=\"100\"\r\n >\r\n <g>\r\n {items.map((item, key) => (\r\n <svg key={key} x={`${item.left * 100}%`}>\r\n <text\r\n transform=\"translate(-7) rotate(90)\"\r\n className={classNames(\r\n bookingCalendarTimeAx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cutStart::before {
|
2643
2643
|
display: block;
|
2644
2644
|
left: 0;
|
2645
|
-
background: repeating-linear-gradient(45deg, white, white 5px, transparent 5px, transparent 10px);
|
2645
|
+
background: repeating-linear-gradient(45deg, white, white 5px, transparent 5px, transparent 10px);
|
2646
|
+
z-index: 1; }
|
2646
2647
|
|
2647
2648
|
.bookingCalendar__renderItem--cutEnd {
|
2648
2649
|
padding-right: 1rem; }
|
2649
2650
|
.bookingCalendar__renderItem--cutEnd::after {
|
2650
2651
|
display: block;
|
2651
2652
|
right: 0;
|
2652
|
-
background: repeating-linear-gradient(-45deg, white, white 5px, transparent 5px, transparent 10px);
|
2653
|
+
background: repeating-linear-gradient(-45deg, white, white 5px, transparent 5px, transparent 10px);
|
2654
|
+
z-index: 1; }
|
2653
2655
|
|
2654
2656
|
.bookingCalendar__grid {
|
2655
2657
|
position: absolute;
|