diff --git a/components/base/BaseDropdownItem.vue b/components/base/BaseDropdownItem.vue index c6c2da5c..e1a32fbc 100644 --- a/components/base/BaseDropdownItem.vue +++ b/components/base/BaseDropdownItem.vue @@ -22,6 +22,16 @@ const props = withDefaults( */ disabled?: boolean + /** + * The shape of the dropdown-item. + */ + shape?: 'straight' | 'rounded' | 'smooth' | 'curved' + + /** + * The color of the dropdown-item. + */ + color?: 'default' | 'contrast' + /** * The value for the `rel` attribute on the button. */ @@ -57,6 +67,8 @@ const props = withDefaults( target: undefined, title: undefined, text: undefined, + shape: undefined, + color: 'default', disabled: false, classes: () => ({ title: @@ -65,6 +77,18 @@ const props = withDefaults( }), } ) + +const shapeStyle = { + straight: '', + rounded: 'nui-item-rounded', + smooth: 'nui-item-smooth', + curved: 'nui-item-curved', +} +const colorStyle = { + default: 'nui-item-default', + contrast: 'nui-item-contrast', +} + const { is, attributes } = useNinjaButton(props) @@ -76,16 +100,16 @@ const { is, attributes } = useNinjaButton(props) -
+
{{ props.title }}
diff --git a/nuxt.config.ts b/nuxt.config.ts index 9cfc8ba8..e17d8063 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -1,11 +1,8 @@ import { createResolver } from '@nuxt/kit' - -// import { withShurikenUI } from '@shuriken-ui/tailwind' -import { withShurikenUI } from '../tailwind/src' +import { withShurikenUI } from '@shuriken-ui/tailwind' const { resolve } = createResolver(import.meta.url) -// https://v3.nuxtjs.org/api/configuration/nuxt.config export default defineNuxtConfig({ modules: [ '@vueuse/nuxt',