@nexxtmove/ui 1.1.0 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/AnimatedNumber/AnimatedNumber.vue.d.ts +2 -1
- package/dist/components/Announcement/Announcement.vue.d.ts +5 -4
- package/dist/components/Avatar/Avatar.vue.d.ts +2 -1
- package/dist/components/Button/Button.vue.d.ts +5 -4
- package/dist/components/Calendar/Calendar.vue.d.ts +4 -2
- package/dist/components/Calendar/_CalendarDayView.vue.d.ts +2 -1
- package/dist/components/Calendar/_CalendarHeader.vue.d.ts +2 -1
- package/dist/components/Calendar/_CalendarMonthView.vue.d.ts +2 -1
- package/dist/components/Calendar/_CalendarTimePicker.vue.d.ts +2 -1
- package/dist/components/Calendar/_CalendarYearView.vue.d.ts +2 -1
- package/dist/components/Card/Card.vue.d.ts +3 -2
- package/dist/components/Checkbox/Checkbox.vue.d.ts +4 -2
- package/dist/components/Chip/Chip.vue.d.ts +4 -3
- package/dist/components/ColorPicker/ColorPicker.vue.d.ts +5 -3
- package/dist/components/Combobox/Combobox.vue.d.ts +5 -4
- package/dist/components/ComboboxPanel/ComboboxPanel.vue.d.ts +2 -1
- package/dist/components/ContactInfoCard/ContactInfoCard.vue.d.ts +3 -2
- package/dist/components/CountrySelect/CountrySelect.vue.d.ts +3 -2
- package/dist/components/CustomerJourneyTile/CustomerJourneyTile.vue.d.ts +2 -1
- package/dist/components/DatePicker/DatePicker.vue.d.ts +8 -6
- package/dist/components/DoughnutChart/DoughnutChart.vue.d.ts +3 -2
- package/dist/components/DropdownButton/DropdownButton.vue.d.ts +5 -4
- package/dist/components/FloatingPanel/FloatingPanel.vue.d.ts +5 -4
- package/dist/components/Header/Header.vue.d.ts +6 -5
- package/dist/components/Icon/Icon.vue.d.ts +2 -1
- package/dist/components/InfoBlock/InfoBlock.vue.d.ts +5 -4
- package/dist/components/InputField/InputField.vue.d.ts +7 -5
- package/dist/components/InputSelect/InputSelect.vue.d.ts +4 -2
- package/dist/components/Modal/Modal.vue.d.ts +9 -7
- package/dist/components/Pagination/Pagination.vue.d.ts +4 -2
- package/dist/components/PresenceIndicator/PresenceIndicator.vue.d.ts +2 -1
- package/dist/components/ProgressBar/ProgressBar.vue.d.ts +2 -1
- package/dist/components/PropertyCard/PropertyCard.vue.d.ts +2 -1
- package/dist/components/PropertyListing/PropertyListing.vue.d.ts +2 -1
- package/dist/components/Select/Select.vue.d.ts +4 -2
- package/dist/components/SidebarMenuItem/SidebarMenuItem.vue.d.ts +5 -4
- package/dist/components/Skeleton/Skeleton.vue.d.ts +2 -1
- package/dist/components/SkeletonPropertyCard/SkeletonPropertyCard.vue.d.ts +2 -1
- package/dist/components/SocialIcons/SocialIcons.vue.d.ts +2 -1
- package/dist/components/SocialMediaCustomTemplate/SocialMediaCustomTemplate.vue.d.ts +2 -1
- package/dist/components/SocialMediaTemplate/SocialMediaTemplate.vue.d.ts +2 -1
- package/dist/components/SocialMediaType/SocialMediaType.vue.d.ts +2 -1
- package/dist/components/Source/Source.vue.d.ts +2 -1
- package/dist/components/Squircle/Squircle.vue.d.ts +3 -2
- package/dist/components/StepperHeader/StepperHeader.vue.d.ts +5 -4
- package/dist/components/Switch/Switch.vue.d.ts +7 -5
- package/dist/components/TabbedContent/TabbedContent.vue.d.ts +7 -5
- package/dist/components/Table/Table.vue.d.ts +18 -13
- package/dist/components/Tabs/Tabs.vue.d.ts +4 -2
- package/dist/components/TimelineEvent/TimelineEvent.vue.d.ts +2 -1
- package/dist/components/TimelinePhaseblock/TimelinePhaseblock.vue.d.ts +2 -1
- package/dist/components/Toast/Toast.vue.d.ts +5 -4
- package/dist/components/Toaster/Toaster.vue.d.ts +2 -1
- package/dist/components/ToggleGroup/ToggleGroup.vue.d.ts +4 -2
- package/dist/components/Tooltip/Tooltip.vue.d.ts +6 -5
- package/dist/components/VideoPlayer/VideoPlayer.vue.d.ts +2 -1
- package/dist/index.js +236 -226
- package/package.json +9 -9
- package/src/components/Chip/Chip.vue +5 -1
- package/src/components/DropdownButton/DropdownButton.vue +2 -2
- package/src/index.ts +2 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nexxtmove/ui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.2",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
@@ -34,12 +34,12 @@
|
|
|
34
34
|
"@eslint/js": "^10.0.1",
|
|
35
35
|
"@nuxt/kit": "^4.4.8",
|
|
36
36
|
"@nuxt/schema": "^4.4.4",
|
|
37
|
-
"@storybook/addon-a11y": "^10.
|
|
38
|
-
"@storybook/addon-designs": "^11.1.
|
|
39
|
-
"@storybook/addon-docs": "^10.
|
|
40
|
-
"@storybook/addon-vitest": "^10.
|
|
41
|
-
"@storybook/builder-vite": "^10.
|
|
42
|
-
"@storybook/vue3-vite": "^10.
|
|
37
|
+
"@storybook/addon-a11y": "^10.5.0",
|
|
38
|
+
"@storybook/addon-designs": "^11.1.4",
|
|
39
|
+
"@storybook/addon-docs": "^10.5.0",
|
|
40
|
+
"@storybook/addon-vitest": "^10.5.0",
|
|
41
|
+
"@storybook/builder-vite": "^10.5.0",
|
|
42
|
+
"@storybook/vue3-vite": "^10.5.0",
|
|
43
43
|
"@tailwindcss/vite": "^4.3.1",
|
|
44
44
|
"@types/node": "^26.0.1",
|
|
45
45
|
"@types/react": "^19.2.17",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"eslint": "^10.6.0",
|
|
54
54
|
"eslint-config-prettier": "^10.1.8",
|
|
55
55
|
"eslint-plugin-prettier": "^5.5.6",
|
|
56
|
-
"eslint-plugin-storybook": "10.
|
|
56
|
+
"eslint-plugin-storybook": "10.5.0",
|
|
57
57
|
"eslint-plugin-vue": "^10.9.2",
|
|
58
58
|
"flag-icons": "^7.5.0",
|
|
59
59
|
"globals": "^17.7.0",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"react": "^19.2.7",
|
|
64
64
|
"react-dom": "^19.2.7",
|
|
65
65
|
"remark-frontmatter": "^5.0.0",
|
|
66
|
-
"storybook": "^10.
|
|
66
|
+
"storybook": "^10.5.0",
|
|
67
67
|
"typescript-eslint": "^8.62.0",
|
|
68
68
|
"vite": "^8.1.0",
|
|
69
69
|
"vite-plugin-dts": "^5.0.3",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { computed } from 'vue'
|
|
3
3
|
|
|
4
4
|
interface NexxtChipProps {
|
|
5
|
-
variant?: 'default' | 'warning' | 'success' | 'danger'
|
|
5
|
+
variant?: 'default' | 'warning' | 'success' | 'danger' | 'neutral'
|
|
6
6
|
ghost?: boolean
|
|
7
7
|
}
|
|
8
8
|
|
|
@@ -21,6 +21,8 @@ const styles = computed(() => {
|
|
|
21
21
|
return { bg: 'bg-green-50', border: 'border border-green-500', text: 'text-green-500' }
|
|
22
22
|
case 'danger':
|
|
23
23
|
return { bg: 'bg-brick-100/20', border: 'border border-brick-500', text: 'text-brick-500' }
|
|
24
|
+
case 'neutral':
|
|
25
|
+
return { bg: 'bg-gray-100', border: 'border border-gray-600', text: 'text-gray-700' }
|
|
24
26
|
default:
|
|
25
27
|
return {
|
|
26
28
|
bg: 'bg-cornflower-blue-50',
|
|
@@ -36,6 +38,8 @@ const styles = computed(() => {
|
|
|
36
38
|
return { bg: 'bg-green-500', border: '', text: 'text-white' }
|
|
37
39
|
case 'danger':
|
|
38
40
|
return { bg: 'bg-brick-500', border: '', text: 'text-white' }
|
|
41
|
+
case 'neutral':
|
|
42
|
+
return { bg: 'bg-gray-700', border: '', text: 'text-white' }
|
|
39
43
|
default:
|
|
40
44
|
return { bg: 'bg-cornflower-blue-600', border: '', text: 'text-white' }
|
|
41
45
|
}
|
|
@@ -27,7 +27,7 @@ type NexxtDropdownButtonBase = {
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
export type NexxtDropdownButtonProps =
|
|
30
|
-
| (NexxtDropdownButtonBase & { iconOnly?: false; label: string; action
|
|
30
|
+
| (NexxtDropdownButtonBase & { iconOnly?: false; label: string; action?: string | (() => void) })
|
|
31
31
|
| (NexxtDropdownButtonBase & { iconOnly: true; label?: string; action?: string | (() => void) })
|
|
32
32
|
|
|
33
33
|
const {
|
|
@@ -134,7 +134,7 @@ const buttonClasses = computed(() => {
|
|
|
134
134
|
<button
|
|
135
135
|
class="flex cursor-pointer items-center gap-2 px-4 py-2 transition-colors duration-200"
|
|
136
136
|
:class="buttonClasses"
|
|
137
|
-
@click="action
|
|
137
|
+
@click="action ? handleAction(action) : toggle()"
|
|
138
138
|
>
|
|
139
139
|
<NexxtIcon v-if="icon" :name="icon" aria-hidden="true" />
|
|
140
140
|
{{ label }}
|
package/src/index.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
// This file is auto-generated by scripts/generate-index.ts
|
|
2
|
+
// Third-party type re-exports for consumers of this library
|
|
2
3
|
export type { Placement } from '@floating-ui/vue'
|
|
4
|
+
|
|
3
5
|
export { default as NexxtAnimatedNumber } from './components/AnimatedNumber/AnimatedNumber.vue'
|
|
4
6
|
export { default as NexxtAnnouncement } from './components/Announcement/Announcement.vue'
|
|
5
7
|
export { default as NexxtAvatar } from './components/Avatar/Avatar.vue'
|