@schedule-x/date-picker
Advanced tools
Comparing version 0.1.0-alpha.3 to 0.1.0-alpha.4
@@ -321,6 +321,8 @@ 'use strict'; | ||
function AppWrapper({ $app }) { | ||
var _a; | ||
var _a, _b; | ||
const classes = ['sx__date-picker-wrapper']; | ||
if ((_a = $app.config.style) === null || _a === void 0 ? void 0 : _a.dark) | ||
classes.push('is-dark'); | ||
if ((_b = $app.config.style) === null || _b === void 0 ? void 0 : _b.fullWidth) | ||
classes.push('has-full-width'); | ||
return (o$2(preact.Fragment, { children: o$2("div", { class: classes.join(' '), children: o$2(AppContext.Provider, { value: $app, children: [o$2(AppInput, {}), $app.datePickerState.isOpen.value && o$2(AppPopup, {})] }) }) })); | ||
@@ -327,0 +329,0 @@ } |
@@ -321,6 +321,8 @@ 'use strict'; | ||
function AppWrapper({ $app }) { | ||
var _a; | ||
var _a, _b; | ||
const classes = ['sx__date-picker-wrapper']; | ||
if ((_a = $app.config.style) === null || _a === void 0 ? void 0 : _a.dark) | ||
classes.push('is-dark'); | ||
if ((_b = $app.config.style) === null || _b === void 0 ? void 0 : _b.fullWidth) | ||
classes.push('has-full-width'); | ||
return (o$2(preact.Fragment, { children: o$2("div", { class: classes.join(' '), children: o$2(AppContext.Provider, { value: $app, children: [o$2(AppInput, {}), $app.datePickerState.isOpen.value && o$2(AppPopup, {})] }) }) })); | ||
@@ -327,0 +329,0 @@ } |
@@ -317,6 +317,8 @@ import { options, createContext, Component, createElement, Fragment, toChildArray, render } from 'preact'; | ||
function AppWrapper({ $app }) { | ||
var _a; | ||
var _a, _b; | ||
const classes = ['sx__date-picker-wrapper']; | ||
if ((_a = $app.config.style) === null || _a === void 0 ? void 0 : _a.dark) | ||
classes.push('is-dark'); | ||
if ((_b = $app.config.style) === null || _b === void 0 ? void 0 : _b.fullWidth) | ||
classes.push('has-full-width'); | ||
return (o$2(Fragment, { children: o$2("div", { class: classes.join(' '), children: o$2(AppContext.Provider, { value: $app, children: [o$2(AppInput, {}), $app.datePickerState.isOpen.value && o$2(AppPopup, {})] }) }) })); | ||
@@ -323,0 +325,0 @@ } |
@@ -321,6 +321,8 @@ (function (global, factory) { | ||
function AppWrapper({ $app }) { | ||
var _a; | ||
var _a, _b; | ||
const classes = ['sx__date-picker-wrapper']; | ||
if ((_a = $app.config.style) === null || _a === void 0 ? void 0 : _a.dark) | ||
classes.push('is-dark'); | ||
if ((_b = $app.config.style) === null || _b === void 0 ? void 0 : _b.fullWidth) | ||
classes.push('has-full-width'); | ||
return (o$2(preact.Fragment, { children: o$2("div", { class: classes.join(' '), children: o$2(AppContext.Provider, { value: $app, children: [o$2(AppInput, {}), $app.datePickerState.isOpen.value && o$2(AppPopup, {})] }) }) })); | ||
@@ -327,0 +329,0 @@ } |
export type DatePickerStyle = { | ||
dark?: boolean; | ||
fullWidth?: boolean; | ||
}; |
{ | ||
"name": "@schedule-x/date-picker", | ||
"version": "0.1.0-alpha.3", | ||
"version": "0.1.0-alpha.4", | ||
"description": "Schedule-X date picker component", | ||
@@ -18,3 +18,3 @@ "author": { | ||
"dependencies": { | ||
"@schedule-x/translations": "^0.1.0-alpha.3", | ||
"@schedule-x/translations": "^0.1.0-alpha.4", | ||
"preact": "^10.16.0" | ||
@@ -27,3 +27,3 @@ }, | ||
}, | ||
"gitHead": "daf98eee92dd25c444f0092c660a0a62fa887a4d" | ||
"gitHead": "caa7027f520c68dad0e102a1c222e6b9694e021c" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
220745
100
4212
121