diff --git a/package.json b/package.json
index 82aeebd..b88a2cd 100644
--- a/package.json
+++ b/package.json
@@ -1,7 +1,7 @@
{
"name": "axp-ui",
"descriiption": "My helper ui lib",
- "version": "1.9.0",
+ "version": "1.10.0",
"homepage": "https://antoxahub.ru/antoxa/axp-ui",
"repository": {
"type": "git",
@@ -46,6 +46,7 @@
"@storybook/vue3": "^7.4.6",
"@storybook/vue3-vite": "^7.4.6",
"@vitejs/plugin-vue": "^4.4.0",
+ "autoprefixer": "^10.4.16",
"postcss": "^8.4.31",
"prettier": "^2.8.8",
"react": "^18.2.0",
diff --git a/src/components/FieldCheckbox.vue b/src/components/FieldCheckbox.vue
index 70add77..2ff702a 100644
--- a/src/components/FieldCheckbox.vue
+++ b/src/components/FieldCheckbox.vue
@@ -1,7 +1,7 @@
+
+
+
+
+
+
+
+
diff --git a/src/components/FieldSelect.vue b/src/components/FieldSelect.vue
index deac179..725818d 100644
--- a/src/components/FieldSelect.vue
+++ b/src/components/FieldSelect.vue
@@ -1,7 +1,7 @@
diff --git a/src/components/index.ts b/src/components/index.ts
index 64b99cb..08047a9 100644
--- a/src/components/index.ts
+++ b/src/components/index.ts
@@ -40,6 +40,9 @@ export * from './FieldPassword.vue'
export { default as UiFieldPhone } from './FieldPhone.vue'
export * from './FieldPhone.vue'
+export { default as UiFieldRange } from './FieldRange.vue'
+export * from './FieldRange.vue'
+
export { default as UiFieldDate } from './FieldDate.vue'
export * from './FieldDate.vue'
diff --git a/src/icons.ts b/src/icons.ts
index 3b6859f..a6915f5 100644
--- a/src/icons.ts
+++ b/src/icons.ts
@@ -80,6 +80,20 @@ export const icons = {
`,
visibility_off: `
+ `,
+ star: `
+
+ `,
+ rub: `
+
+
+
+
+ `,
+ payment: `
+
+
+
`
}
diff --git a/src/stories/Icons.stories.ts b/src/stories/Icons.stories.ts
new file mode 100644
index 0000000..3b074e7
--- /dev/null
+++ b/src/stories/Icons.stories.ts
@@ -0,0 +1,49 @@
+import type { Meta, StoryObj } from '@storybook/vue3'
+import { UiIcon, icons } from '..'
+
+const iconList = Object.keys(icons)
+
+// Meta.
+const meta = {
+ title: 'Example/Icons',
+ component: UiIcon,
+ tags: ['autodocs'],
+ argTypes: {
+ name: { options: iconList }
+ }
+} satisfies Meta
+
+export default meta
+
+type Story = StoryObj
+
+export const Default: Story = {
+ args: { name: 'star' }
+}
+
+export const All: Story = {
+ render: _ => ({
+ components: { UiIcon },
+ setup() {
+ return { iconList }
+ },
+ template: `
+
+
+ `
+ })
+}
diff --git a/src/stories/Range.stories.ts b/src/stories/Range.stories.ts
new file mode 100644
index 0000000..7b440e0
--- /dev/null
+++ b/src/stories/Range.stories.ts
@@ -0,0 +1,22 @@
+import type { Meta, StoryObj } from '@storybook/vue3'
+import { UiFieldRange } from '..'
+
+// Meta.
+const meta = {
+ title: 'Example/Range',
+ component: UiFieldRange,
+ tags: ['autodocs'],
+ argTypes: {
+ label: { }
+ }
+} satisfies Meta
+
+export default meta
+
+type Story = StoryObj
+
+export const Default: Story = {
+ args: {
+ label: 'Range control (Not implemented!)'
+ }
+}
diff --git a/src/style/common.sass b/src/style/common.sass
index 89b49ec..6452c47 100644
--- a/src/style/common.sass
+++ b/src/style/common.sass
@@ -67,6 +67,14 @@
@apply min-h-[94px]
@apply leading-5
+ &-range
+ .input
+ @apply border-0
+ @apply flex flex-row items-center
+ input[type="range"]
+ @apply w-full cursor-pointer rounded
+ @apply h-2 outline-none appearance-none
+
&-alert
@apply relative border
&:not(:last-child)
diff --git a/src/style/theme.sass b/src/style/theme.sass
index 8eaea91..b398a96 100644
--- a/src/style/theme.sass
+++ b/src/style/theme.sass
@@ -33,8 +33,9 @@
@apply text-white bg-light border-light
&-field
- .input > *
- @apply bg-white dark:bg-white/10 text-dark dark:text-white
+ .input
+ & > *
+ @apply bg-white dark:bg-white/10 text-dark dark:text-white
.description
@apply text-dark/50
&.error
@@ -48,6 +49,10 @@
> *
@apply bg-light
@apply text-dark/30
+ &-range
+ .input
+ input[type="range"]
+ @apply bg-dark/10 accent-primary
&-btn
@apply outline-none
&:hover:not(:active)
diff --git a/tailwind.config.ts b/tailwind.config.ts
index 0ee3125..e70f0d4 100644
--- a/tailwind.config.ts
+++ b/tailwind.config.ts
@@ -1,7 +1,7 @@
import type { Config } from 'tailwindcss'
const config: Config = {
- content: ['./src/app/App.vue', './src/components/**/*.vue'],
+ content: ['./src/app/App.vue', './src/components/**/*.vue', './src/stories/*.ts'],
darkMode: 'class',
theme: {
extend: {
diff --git a/vite.config.ts b/vite.config.ts
index 516599e..cead0a8 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -3,13 +3,13 @@ import vue from '@vitejs/plugin-vue'
import dts from 'vite-plugin-dts'
import postcss from 'postcss'
-
import tailwindcss from 'tailwindcss'
+import autoprefixer from 'autoprefixer'
export default defineConfig({
plugins: [vue(), dts()],
css: {
- postcss: postcss([tailwindcss()])
+ postcss: postcss([tailwindcss(), autoprefixer()])
},
build: {
lib: {