@neuralytics/alpine-ds 0.4.0 → 0.5.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # @neuralytics/alpine-ds
2
2
 
3
+ ## 0.5.0
4
+
5
+ ### Minor Changes
6
+
7
+ - afbad30: Add AlpineTooltip component: hover/focus-triggered tooltip built on the internal FloatingLayer primitive, with placement, openDelay and isDisabled props.
8
+
9
+ ### Patch Changes
10
+
11
+ - 4dcf040: Add internal FloatingLayer positioning primitive (Teleport + floating-ui/dom, with an optional arrow slot and configurable z-index) used to build upcoming floating components — no public API change.
12
+ - 9d5a342: Add tooltip and tooltip-position props to AlpineIcon, and disabled-tooltip and tooltip-position props to AlpineButton, built on the AlpineTooltip component.
13
+
3
14
  ## 0.4.0
4
15
 
5
16
  ### Minor Changes
@@ -1,4 +1,5 @@
1
1
  import { IconName } from '../icon';
2
+ import { TooltipPlacement } from '../tooltip/Tooltip.types';
2
3
  import { ButtonDesign as ButtonDesignType, ButtonIconPosition as ButtonIconPositionType, ButtonType as ButtonTypeType } from './Button.types';
3
4
  export interface ButtonProps {
4
5
  label?: string | null;
@@ -9,14 +10,18 @@ export interface ButtonProps {
9
10
  isDanger?: boolean;
10
11
  iconPosition?: ButtonIconPositionType;
11
12
  type?: ButtonTypeType;
13
+ disabledTooltip?: string;
14
+ tooltipPosition?: TooltipPlacement;
12
15
  }
13
16
  declare const _default: import('vue').DefineComponent<ButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ButtonProps> & Readonly<{}>, {
17
+ type: ButtonTypeType;
18
+ isDisabled: boolean;
14
19
  icon: IconName | null;
15
20
  isLoading: boolean;
16
- type: ButtonTypeType;
21
+ tooltipPosition: TooltipPlacement;
17
22
  design: ButtonDesignType;
18
23
  isDanger: boolean;
19
- isDisabled: boolean;
20
24
  iconPosition: ButtonIconPositionType;
21
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLButtonElement>;
25
+ disabledTooltip: string;
26
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
22
27
  export default _default;
@@ -0,0 +1,18 @@
1
+ import { VirtualElement } from '@floating-ui/dom';
2
+ export declare const Placement: {
3
+ readonly Top: "top";
4
+ readonly Right: "right";
5
+ readonly Bottom: "bottom";
6
+ readonly Left: "left";
7
+ };
8
+ export type FloatingLayerPlacement = typeof Placement[keyof typeof Placement];
9
+ export declare const floatingLayerPlacements: ("left" | "right" | "top" | "bottom")[];
10
+ export interface FloatingLayerProps {
11
+ referenceElement: HTMLElement | VirtualElement | null;
12
+ isOpen: boolean;
13
+ placement?: FloatingLayerPlacement;
14
+ zIndex?: number;
15
+ }
16
+ export interface FloatingLayerSlotProps {
17
+ placement: FloatingLayerPlacement;
18
+ }
@@ -0,0 +1,30 @@
1
+ import { FloatingLayerPlacement, FloatingLayerProps } from './FloatingLayer.types';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ default?(_: {
6
+ placement: FloatingLayerPlacement;
7
+ }): any;
8
+ arrow?(_: {}): any;
9
+ };
10
+ refs: {
11
+ floatingElement: HTMLDivElement;
12
+ arrowElement: HTMLDivElement;
13
+ };
14
+ rootEl: any;
15
+ };
16
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
17
+ declare const __VLS_component: import('vue').DefineComponent<FloatingLayerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<FloatingLayerProps> & Readonly<{}>, {
18
+ placement: FloatingLayerPlacement;
19
+ zIndex: number;
20
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
21
+ floatingElement: HTMLDivElement;
22
+ arrowElement: HTMLDivElement;
23
+ }, any>;
24
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
25
+ export default _default;
26
+ type __VLS_WithTemplateSlots<T, S> = T & {
27
+ new (): {
28
+ $slots: S;
29
+ };
30
+ };
@@ -0,0 +1,2 @@
1
+ export type { FloatingLayerPlacement, FloatingLayerProps, FloatingLayerSlotProps, } from './FloatingLayer.types';
2
+ export { default as FloatingLayer } from './FloatingLayer.vue';
@@ -1,12 +1,16 @@
1
+ import { TooltipPlacement } from '../tooltip/Tooltip.types';
1
2
  import { IconName, IconSize as IconSizeType } from './Icon.types';
2
3
  export interface IconProps {
3
4
  icon: IconName;
4
5
  hoverIcon?: IconName;
5
6
  size?: IconSizeType;
6
7
  isLoading?: boolean;
8
+ tooltip?: string;
9
+ tooltipPosition?: TooltipPlacement;
7
10
  }
8
11
  declare const _default: import('vue').DefineComponent<IconProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IconProps> & Readonly<{}>, {
9
12
  size: IconSizeType;
10
13
  isLoading: boolean;
14
+ tooltipPosition: TooltipPlacement;
11
15
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
12
16
  export default _default;
@@ -0,0 +1,9 @@
1
+ import { FloatingLayerPlacement, Placement } from '../floating-layer/FloatingLayer.types';
2
+ export type { FloatingLayerPlacement as TooltipPlacement };
3
+ export { Placement };
4
+ export interface TooltipProps {
5
+ label?: string;
6
+ placement?: FloatingLayerPlacement;
7
+ openDelay?: number;
8
+ isDisabled?: boolean;
9
+ }
@@ -0,0 +1,26 @@
1
+ import { TooltipProps } from './Tooltip.types';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ default?(_: {}): any;
6
+ };
7
+ refs: {
8
+ triggerWrapper: HTMLDivElement;
9
+ };
10
+ rootEl: any;
11
+ };
12
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
13
+ declare const __VLS_component: import('vue').DefineComponent<TooltipProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<TooltipProps> & Readonly<{}>, {
14
+ placement: import('./Tooltip.types').TooltipPlacement;
15
+ openDelay: number;
16
+ isDisabled: boolean;
17
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
18
+ triggerWrapper: HTMLDivElement;
19
+ }, any>;
20
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
21
+ export default _default;
22
+ type __VLS_WithTemplateSlots<T, S> = T & {
23
+ new (): {
24
+ $slots: S;
25
+ };
26
+ };
@@ -0,0 +1,2 @@
1
+ export type { TooltipProps as AlpineTooltipProps, TooltipPlacement } from './Tooltip.types';
2
+ export { default as AlpineTooltip } from './Tooltip.vue';
@@ -4,6 +4,8 @@ export declare const iconMap: {
4
4
  readonly bell: "mdi:bell";
5
5
  readonly cog: "mdi:cog";
6
6
  readonly email: "mdi:email";
7
+ readonly eyeClosed: "mdi:eye-off";
8
+ readonly eyeOpen: "mdi:eye";
7
9
  readonly file: "mdi:file";
8
10
  readonly folder: "mdi:folder";
9
11
  readonly gear: "mdi:gear";
@@ -11,5 +13,5 @@ export declare const iconMap: {
11
13
  };
12
14
  export declare const iconOptions: {
13
15
  label: string;
14
- value: "mdi:home" | "mdi:account" | "mdi:bell" | "mdi:cog" | "mdi:email" | "mdi:file" | "mdi:folder" | "mdi:gear" | "mdi:heart";
16
+ value: "mdi:home" | "mdi:account" | "mdi:bell" | "mdi:cog" | "mdi:email" | "mdi:eye-off" | "mdi:eye" | "mdi:file" | "mdi:folder" | "mdi:gear" | "mdi:heart";
15
17
  }[];
@@ -0,0 +1,4 @@
1
+ export declare const Z_INDEX: {
2
+ readonly default: 1000;
3
+ readonly tooltip: 5000;
4
+ };
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  export * from './components/button';
2
2
  export * from './components/icon';
3
+ export * from './components/tooltip';
3
4
  export * from './utils/colors';