@hammerstone/refine-vue2-dev
Advanced tools
Comparing version 0.1.1654571620 to 0.1.1654739948
@@ -13,2 +13,3 @@ { | ||
"module": "./dist/vue2/refine-vue.esm.js", | ||
"main": "./dist/vue2/refine-vue.cjs", | ||
"homepage": "https://hammerstone.dev", | ||
@@ -21,8 +22,8 @@ "repository": "https://github.com/hammerstonedev/refine-frontends", | ||
], | ||
"version": "0.1.1654571620", | ||
"version": "0.1.1654739948", | ||
"scripts": { | ||
"test": "jest ./tests", | ||
"build": "yarn run build:vue3 && yarn run build:vue2", | ||
"build:vue2": "vue-demi-switch 2 && ROLLUP_VUE_VERSION=2 rollup --config rollup.config.js --file dist/vue2/refine-vue.esm.js", | ||
"build:vue3": "vue-demi-switch 3 && ROLLUP_VUE_VERSION=3 rollup --config rollup.config.js --file dist/vue3/refine-vue.esm.js", | ||
"build:vue2": "vue-demi-switch 2 && ROLLUP_VUE_VERSION=2 rollup --config rollup.config.js", | ||
"build:vue3": "vue-demi-switch 3 && ROLLUP_VUE_VERSION=3 rollup --config rollup.config.js", | ||
"release:vue2-dev": "yarn run build:vue2 && node ./bin/prepublish vue2 --dev && npm publish --access public && node ./bin/postpublish" | ||
@@ -29,0 +30,0 @@ }, |
@@ -75,2 +75,3 @@ import { h, defineComponent, isVue2, computed } from 'vue-demi'; | ||
...bindings.attrs, | ||
'data-flavor': incomingProps.component, | ||
...props, | ||
@@ -77,0 +78,0 @@ ...resolvedFlavor.props.value, |
import tailwindFlavor from './tailwind'; | ||
import linearFlavor from './linear'; | ||
export { tailwindFlavor }; | ||
export { tailwindFlavor, linearFlavor }; |
@@ -1,4 +0,8 @@ | ||
const inputClassName = | ||
'w-60 bg-white relative border border-gray-300 rounded-md shadow-sm pl-3 py-2 text-left cursor-default focus:outline-none focus:ring-1 focus:ring-indigo-500 focus:border-indigo-500'; | ||
const inputBase = | ||
'bg-white relative border border-gray-300 rounded-md shadow-sm text-left cursor-default'; | ||
const inputFocus = 'focus:outline-none focus:ring-1 focus:ring-indigo-500 focus:border-indigo-500'; | ||
const inputSizing = 'w-60 pl-3 py-2'; | ||
const inputClassName = `${inputBase} ${inputFocus} ${inputSizing}`; | ||
const tailwindFlavor = { | ||
@@ -171,2 +175,5 @@ emptyGroup: { | ||
date: { | ||
pickerInput: { | ||
class: `${inputBase} ${inputFocus} block w-full pl-3 py-2 pr-0`, | ||
}, | ||
relative: { | ||
@@ -173,0 +180,0 @@ class: `${inputClassName} mr-4`, |
@@ -9,2 +9,19 @@ import { inject, provide, computed } from 'vue-demi'; | ||
export function getFlavorItem(pointer, flavorOptions) { | ||
let flavor = useFlavor( | ||
(flavor) => { | ||
const parts = pointer.split('.'); | ||
let result = flavor; | ||
for (const part of parts) { | ||
result = result?.[part]; | ||
} | ||
return result; | ||
}, | ||
'', | ||
computed(() => flavorOptions) | ||
); | ||
return flavor?.value; | ||
} | ||
export function useFlavor(resolve, defaultComponent, options = computed(() => ({}))) { | ||
@@ -11,0 +28,0 @@ const configuration = inject(flavorContext); |
import './directives'; | ||
import DatePickerPlugin from './plugins/date-picker'; | ||
import './assets/styles/tailwind.css'; | ||
@@ -5,0 +4,0 @@ export * from './components/base'; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
1104927
94
5541
3