nexa-ui-kit 0.7.2 → 0.7.3

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.
@@ -19,6 +19,7 @@ const _sfc_main = defineComponent({
19
19
  const ripple = signal([])
20
20
  const handleClick = (e) => {
21
21
  if (props.disabled || props.loading) return
22
+ props.onClick?.(e)
22
23
  emit('click', e)
23
24
  const rect = e.currentTarget.getBoundingClientRect()
24
25
  const x = e.clientX - rect.left
@@ -18,6 +18,7 @@ const ripple = signal([])
18
18
 
19
19
  const handleClick = (e) => {
20
20
  if (props.disabled || props.loading) return
21
+ props.onClick?.(e)
21
22
  emit('click', e)
22
23
  const rect = e.currentTarget.getBoundingClientRect()
23
24
  const x = e.clientX - rect.left
@@ -6,7 +6,7 @@ const _sfc_main = defineComponent({
6
6
  __hmrId: 'NTooltip_nexa',
7
7
  props: {
8
8
  text: { type: String, default: '' },
9
- placement: { type: String, default: 'top' },
9
+ position: { type: String, default: 'top' },
10
10
  delay: { type: Number, default: 200 },
11
11
  hideDelay: { type: Number, default: 100 }
12
12
  },
@@ -26,7 +26,7 @@ const _sfc_main = defineComponent({
26
26
  isOpen: () => isVisible.value,
27
27
  getAnchor: () => rootEl.value,
28
28
  getPopup: () => document.querySelector(`[data-tooltip-popup="${instanceId}"]`),
29
- placement: props.placement,
29
+ placement: props.position,
30
30
  align: 'center',
31
31
  matchWidth: false,
32
32
  minWidth: 0,
@@ -66,7 +66,7 @@ const _sfc_main = defineComponent({
66
66
  })
67
67
  // Injected render function
68
68
  _sfc_main.render = function(ctx) {
69
- const { isVisible, instanceId, popupStyle, resolvedPlacement, rootEl, stopTracking, showTimer, hideTimer, startTracking, stop, show, hide, trackFloatingOverlay, $slots, text, placement, delay, hideDelay, Fragment: _ntc_Fragment, Teleport: _ntc_Teleport } = ctx
69
+ const { isVisible, instanceId, popupStyle, resolvedPlacement, rootEl, stopTracking, showTimer, hideTimer, startTracking, stop, show, hide, trackFloatingOverlay, $slots, text, position, delay, hideDelay, Fragment: _ntc_Fragment, Teleport: _ntc_Teleport } = ctx
70
70
  return h('div', { class: "n-tooltip-wrapper", "data-tooltip-root": instanceId, onMouseenter: show, onMouseleave: hide, onFocusin: show, onFocusout: hide, "data-v-522b965d": "" }, [
71
71
  "\n ",
72
72
  ctx.$slots.default ? ctx.$slots.default() : null,
@@ -4,7 +4,7 @@ import { trackFloatingOverlay } from '../services/FloatingOverlay.js'
4
4
 
5
5
  const props = defineProps({
6
6
  text: { type: String, default: '' },
7
- placement: { type: String, default: 'top' },
7
+ position: { type: String, default: 'top' },
8
8
  delay: { type: Number, default: 200 },
9
9
  hideDelay: { type: Number, default: 100 }
10
10
  })
@@ -24,7 +24,7 @@ const startTracking = () => {
24
24
  isOpen: () => isVisible.value,
25
25
  getAnchor: () => rootEl.value,
26
26
  getPopup: () => document.querySelector(`[data-tooltip-popup="${instanceId}"]`),
27
- placement: props.placement,
27
+ placement: props.position,
28
28
  align: 'center',
29
29
  matchWidth: false,
30
30
  minWidth: 0,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nexa-ui-kit",
3
- "version": "0.7.2",
3
+ "version": "0.7.3",
4
4
  "description": "Premium component library for Nexa Framework",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -22,12 +22,12 @@
22
22
  "src"
23
23
  ],
24
24
  "dependencies": {
25
- "nexa-framework": "0.7.2",
26
- "nexa-mobile": "0.7.2"
25
+ "nexa-framework": "0.7.3",
26
+ "nexa-mobile": "0.7.3"
27
27
  },
28
28
  "devDependencies": {
29
29
  "cpx": "^1.5.0",
30
- "nexa-compiler": "0.7.2"
30
+ "nexa-compiler": "0.7.3"
31
31
  },
32
32
  "scripts": {
33
33
  "build": "tsc && node scripts/compile-nexa.js && node scripts/patch-imports.js && cpx \"src/**/*.nexa\" dist && cpx \"src/styles/*.css\" dist/styles",
@@ -18,6 +18,7 @@ const ripple = signal([])
18
18
 
19
19
  const handleClick = (e) => {
20
20
  if (props.disabled || props.loading) return
21
+ props.onClick?.(e)
21
22
  emit('click', e)
22
23
  const rect = e.currentTarget.getBoundingClientRect()
23
24
  const x = e.clientX - rect.left
@@ -4,7 +4,7 @@ import { trackFloatingOverlay } from '../services/FloatingOverlay.js'
4
4
 
5
5
  const props = defineProps({
6
6
  text: { type: String, default: '' },
7
- placement: { type: String, default: 'top' },
7
+ position: { type: String, default: 'top' },
8
8
  delay: { type: Number, default: 200 },
9
9
  hideDelay: { type: Number, default: 100 }
10
10
  })
@@ -24,7 +24,7 @@ const startTracking = () => {
24
24
  isOpen: () => isVisible.value,
25
25
  getAnchor: () => rootEl.value,
26
26
  getPopup: () => document.querySelector(`[data-tooltip-popup="${instanceId}"]`),
27
- placement: props.placement,
27
+ placement: props.position,
28
28
  align: 'center',
29
29
  matchWidth: false,
30
30
  minWidth: 0,