diff --git a/src/plugins/components/slimscroll/slimscroll.component.ts b/src/plugins/components/slimscroll/slimscroll.component.ts new file mode 100644 index 0000000..0dbdc3a --- /dev/null +++ b/src/plugins/components/slimscroll/slimscroll.component.ts @@ -0,0 +1,63 @@ +import { html } from 'lit' +import { spread } from '@open-wc/lit-helpers' + +import type { SlimscrollAttrs } from './slimscroll.types' +import * as variants from './slimscroll.variants' + +/** + * Primary UI component for user interaction + */ +export const Slimscroll = ({ ...attrs }: SlimscrollAttrs) => { + return html` +
+
+
+
+
+

+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. + Universa enim illorum ratione cum tota vestra confligendum puto. + Fortemne possumus dicere eundem illum Torquatum? Bonum patria: + miserum exilium. Duo Reges: constructio interrete. Vide, quaeso, + rectumne sit. Cur tantas regiones barbarorum pedibus obiit, tot + maria transmisit? Nunc de hominis summo bono quaeritur; Ut + optime, secundum naturam affectum esse possit. +

+

+ Est, ut dicis, inquit; Ergo ita: non posse honeste vivi, nisi + honeste vivatur? Nec mihi illud dixeris: Haec enim ipsa mihi + sunt voluptati, et erant illa Torquatis. Quod eo liquidius + faciet, si perspexerit rerum inter eas verborumne sit + controversia. Scaevolam M. Sic exclusis sententiis reliquorum + cum praeterea nulla esse possit, haec antiquorum valeat necesse + est. Quodsi ipsam honestatem undique pertectam atque absolutam. + Hoc etsi multimodis reprehendi potest, tamen accipio, quod dant. + Nam de isto magna dissensio est. +

+

+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. + Universa enim illorum ratione cum tota vestra confligendum puto. + Fortemne possumus dicere eundem illum Torquatum? Bonum patria: + miserum exilium. Duo Reges: constructio interrete. Vide, quaeso, + rectumne sit. Cur tantas regiones barbarorum pedibus obiit, tot + maria transmisit? Nunc de hominis summo bono quaeritur; Ut + optime, secundum naturam affectum esse possit. Est, ut dicis, + inquit; Ergo ita: non posse honeste vivi, nisi honeste vivatur? + Nec mihi illud dixeris: Haec enim ipsa mihi sunt voluptati, et + erant illa Torquatis. Quod eo liquidius faciet, si perspexerit + rerum inter eas verborumne sit controversia. Scaevolam M. Sic + exclusis sententiis reliquorum cum praeterea nulla esse possit, + haec antiquorum valeat necesse est. Quodsi ipsam honestatem + undique pertectam atque absolutam. Hoc etsi multimodis + reprehendi potest, tamen accipio, quod dant. Nam de isto magna + dissensio est. +

+
+
+
+
+
+ ` +} diff --git a/src/plugins/components/slimscroll/slimscroll.doc.mdx b/src/plugins/components/slimscroll/slimscroll.doc.mdx new file mode 100644 index 0000000..3dfffd7 --- /dev/null +++ b/src/plugins/components/slimscroll/slimscroll.doc.mdx @@ -0,0 +1,51 @@ +import { Meta, Primary, Controls, Story } from '@storybook/blocks' +import * as SlimscrollStories from './slimscroll.stories' +import { defaultConfig } from './slimscroll.config' + + + +# nui-slimscroll + +When using autocompletes or search, you often see some highlighted text. This is the component that does that. + + + +## Props + + + +## Customization + +### Default config + +
+
+ + View configuration options + + + + + +
+
+        {JSON.stringify(defaultConfig, null, 2)}
+      
+
+ +
+
+ diff --git a/src/plugins/components/slimscroll/slimscroll.stories.ts b/src/plugins/components/slimscroll/slimscroll.stories.ts new file mode 100644 index 0000000..aa477c7 --- /dev/null +++ b/src/plugins/components/slimscroll/slimscroll.stories.ts @@ -0,0 +1,25 @@ +import type { Meta, StoryObj } from '@storybook/web-components' +import { html } from 'lit' + +import type { SlimscrollAttrs } from './slimscroll.types' +import { Slimscroll } from './slimscroll.component' + +// More on how to set up stories at: https://storybook.js.org/docs/web-components/writing-stories/introduction +const meta = { + title: 'Shuriken UI/Utility/Slimscroll', + // tags: ['autodocs'], + render: (args) => Slimscroll(args), + argTypes: {}, +} satisfies Meta + +export default meta +type Story = StoryObj + +// first export is the Primary story + +// #region Main +export const Main: Story = { + name: 'Main example', + args: {}, +} +// #endregion diff --git a/src/plugins/components/slimscroll/slimscroll.types.ts b/src/plugins/components/slimscroll/slimscroll.types.ts new file mode 100644 index 0000000..85db6f4 --- /dev/null +++ b/src/plugins/components/slimscroll/slimscroll.types.ts @@ -0,0 +1,12 @@ +import type { PropertyVariant } from '~/types/utils' + +export interface SlimscrollProps extends Record {} + +export interface SlimscrollEvents {} + +export interface SlimscrollSlots {} + +export type SlimscrollAttrs = SlimscrollProps & + SlimscrollEvents & + SlimscrollSlots +export type SlimscrollVariant = PropertyVariant diff --git a/src/plugins/components/slimscroll/slimscroll.variants.ts b/src/plugins/components/slimscroll/slimscroll.variants.ts new file mode 100644 index 0000000..336ce12 --- /dev/null +++ b/src/plugins/components/slimscroll/slimscroll.variants.ts @@ -0,0 +1 @@ +export {}