@dialpad/dialtone-vue 2.201.0-next.2 → 2.201.0-next.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.
Files changed (50) hide show
  1. package/dist/component-documentation.json +1 -1
  2. package/dist/dialtone-vue.cjs +1 -1
  3. package/dist/dialtone-vue.js +203 -199
  4. package/dist/dialtone-vue.js.map +1 -1
  5. package/dist/lib/mode-island/index.cjs +2 -0
  6. package/dist/lib/mode-island/index.cjs.map +1 -0
  7. package/dist/lib/mode-island/index.js +7 -0
  8. package/dist/lib/mode-island/index.js.map +1 -0
  9. package/dist/lib/mode-island/mode-island-constants.cjs +2 -0
  10. package/dist/lib/mode-island/mode-island-constants.cjs.map +1 -0
  11. package/dist/lib/mode-island/mode-island-constants.js +12 -0
  12. package/dist/lib/mode-island/mode-island-constants.js.map +1 -0
  13. package/dist/lib/mode-island/mode-island.cjs +2 -0
  14. package/dist/lib/mode-island/mode-island.cjs.map +1 -0
  15. package/dist/lib/mode-island/mode-island.js +124 -0
  16. package/dist/lib/mode-island/mode-island.js.map +1 -0
  17. package/dist/lib/mode-island/utils.cjs +2 -0
  18. package/dist/lib/mode-island/utils.cjs.map +1 -0
  19. package/dist/lib/mode-island/utils.js +32 -0
  20. package/dist/lib/mode-island/utils.js.map +1 -0
  21. package/dist/lib/mode-island/validators.cjs +2 -0
  22. package/dist/lib/mode-island/validators.cjs.map +1 -0
  23. package/dist/lib/mode-island/validators.js +12 -0
  24. package/dist/lib/mode-island/validators.js.map +1 -0
  25. package/dist/lib/split-button/split-button-alpha.cjs +1 -1
  26. package/dist/lib/split-button/split-button-alpha.cjs.map +1 -1
  27. package/dist/lib/split-button/split-button-alpha.js +16 -8
  28. package/dist/lib/split-button/split-button-alpha.js.map +1 -1
  29. package/dist/lib/split-button/split-button-omega.cjs +1 -1
  30. package/dist/lib/split-button/split-button-omega.cjs.map +1 -1
  31. package/dist/lib/split-button/split-button-omega.js +10 -10
  32. package/dist/lib/split-button/split-button-omega.js.map +1 -1
  33. package/dist/lib/tooltip-directive/tooltip.cjs +1 -1
  34. package/dist/lib/tooltip-directive/tooltip.cjs.map +1 -1
  35. package/dist/lib/tooltip-directive/tooltip.js +17 -16
  36. package/dist/lib/tooltip-directive/tooltip.js.map +1 -1
  37. package/dist/types/components/mode_island/index.d.ts +3 -0
  38. package/dist/types/components/mode_island/index.d.ts.map +1 -0
  39. package/dist/types/components/mode_island/mode_island.vue.d.ts +3 -0
  40. package/dist/types/components/mode_island/mode_island.vue.d.ts.map +1 -0
  41. package/dist/types/components/mode_island/mode_island_constants.d.ts +10 -0
  42. package/dist/types/components/mode_island/mode_island_constants.d.ts.map +1 -0
  43. package/dist/types/components/mode_island/utils.d.ts +12 -0
  44. package/dist/types/components/mode_island/utils.d.ts.map +1 -0
  45. package/dist/types/components/mode_island/validators.d.ts +6 -0
  46. package/dist/types/components/mode_island/validators.d.ts.map +1 -0
  47. package/dist/types/components/split_button/split_button-alpha.vue.d.ts +6 -1
  48. package/dist/types/directives/tooltip_directive/tooltip.d.ts.map +1 -1
  49. package/dist/types/index.d.ts +1 -0
  50. package/package.json +5 -5
@@ -1,14 +1,15 @@
1
- import { getUniqueString as u } from "../../common/utils/index.js";
2
- import n from "../tooltip/tooltip.js";
3
- import { TOOLTIP_DIRECTIONS as c } from "../tooltip/tooltip-constants.js";
4
- const T = {
1
+ import { getUniqueString as n } from "../../common/utils/index.js";
2
+ import c from "deep-equal";
3
+ import u from "../tooltip/tooltip.js";
4
+ import { TOOLTIP_DIRECTIONS as m } from "../tooltip/tooltip-constants.js";
5
+ const D = {
5
6
  name: "dt-tooltip-directive",
6
7
  install(r) {
7
8
  const d = document.createElement("div");
8
9
  document.body.appendChild(d);
9
- const s = "top", a = new r({
10
+ const p = "top", a = new r({
10
11
  name: "DtTooltipDirectiveApp",
11
- components: { DtTooltip: n },
12
+ components: { DtTooltip: u },
12
13
  data() {
13
14
  return {
14
15
  tooltips: []
@@ -30,7 +31,7 @@ const T = {
30
31
  domProps: { id: "dt-tooltip-directive-app" }
31
32
  },
32
33
  [
33
- this.tooltips.map(({ id: t, ...o }) => e(n, {
34
+ this.tooltips.map(({ id: t, ...o }) => e(u, {
34
35
  key: t,
35
36
  props: {
36
37
  ...o,
@@ -48,31 +49,31 @@ const T = {
48
49
  });
49
50
  a.$mount(d), r.directive("dt-tooltip", {
50
51
  bind(e, t) {
51
- p(e, t);
52
+ s(e, t);
52
53
  },
53
54
  update(e, t) {
54
- t.value !== t.oldValue && p(e, t);
55
+ c(t.value, t.oldValue) || s(e, t);
55
56
  },
56
57
  unbind(e) {
57
58
  a.removeTooltip(e.getAttribute("data-dt-tooltip-id"));
58
59
  }
59
60
  });
60
- function p(e, t) {
61
+ function s(e, t) {
61
62
  if (t.value === null || t.value === void 0) {
62
63
  const l = e.getAttribute("data-dt-tooltip-id");
63
64
  l && a.removeTooltip(l);
64
65
  return;
65
66
  }
66
- const o = e.getAttribute("data-dt-tooltip-id") || u();
67
+ const o = e.getAttribute("data-dt-tooltip-id") || n();
67
68
  let i;
68
69
  if (typeof t.value == "string")
69
70
  i = {
70
71
  message: t.value,
71
- placement: t.arg || s
72
+ placement: t.arg || p
72
73
  };
73
74
  else if (typeof t.value == "object" && t.value !== null)
74
75
  i = {
75
- placement: t.arg || t.value.placement || s,
76
+ placement: t.arg || t.value.placement || p,
76
77
  ...t.value
77
78
  };
78
79
  else {
@@ -91,7 +92,7 @@ const T = {
91
92
  i.transition = !1;
92
93
  break;
93
94
  default:
94
- c.includes(l) && (i.placement = l);
95
+ m.includes(l) && (i.placement = l);
95
96
  break;
96
97
  }
97
98
  }), e.setAttribute("data-dt-tooltip-id", o), a.addOrUpdateTooltip(o, i);
@@ -99,7 +100,7 @@ const T = {
99
100
  }
100
101
  };
101
102
  export {
102
- T as DtTooltipDirective,
103
- T as default
103
+ D as DtTooltipDirective,
104
+ D as default
104
105
  };
105
106
  //# sourceMappingURL=tooltip.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tooltip.js","sources":["../../../directives/tooltip_directive/tooltip.js"],"sourcesContent":["import { DtTooltip, TOOLTIP_DIRECTIONS } from '@/components/tooltip';\nimport { getUniqueString } from '@/common/utils';\n\nexport const DtTooltipDirective = {\n name: 'dt-tooltip-directive',\n install (Vue) {\n const mountPoint = document.createElement('div');\n document.body.appendChild(mountPoint);\n\n const DEFAULT_PLACEMENT = 'top';\n const DtTooltipDirectiveApp = new Vue({\n name: 'DtTooltipDirectiveApp',\n components: { DtTooltip },\n data () {\n return {\n tooltips: [],\n };\n },\n\n methods: {\n addOrUpdateTooltip (id, tooltipConfig) {\n const index = this.tooltips.findIndex(tooltip => tooltip.id === id);\n if (index !== -1) {\n // Update existing tooltip\n this.tooltips.splice(index, 1, { id, ...tooltipConfig });\n } else {\n // Add new tooltip\n this.tooltips.push({ id, ...tooltipConfig });\n }\n },\n\n removeTooltip (id) {\n this.tooltips = this.tooltips.filter(tooltip => tooltip.id !== id);\n },\n },\n\n render (h) {\n return h('div',\n {\n domProps: { id: 'dt-tooltip-directive-app' },\n },\n [\n this.tooltips.map(({ id, ...tooltipProps }) => {\n return h(DtTooltip, {\n key: id,\n props: {\n ...tooltipProps,\n sticky: tooltipProps.sticky !== undefined ? tooltipProps.sticky : true,\n /**\n * Set the delay to false when running tests only.\n */\n delay: tooltipProps.delay !== undefined ? tooltipProps.delay : (process.env.NODE_ENV !== 'test'),\n externalAnchor: `[data-dt-tooltip-id=\"${id}\"]`,\n },\n });\n }),\n ],\n );\n },\n });\n\n DtTooltipDirectiveApp.$mount(mountPoint);\n\n Vue.directive('dt-tooltip', {\n bind (anchor, binding) {\n // Initial tooltip setup\n setupTooltip(anchor, binding);\n },\n update (anchor, binding) {\n // Update tooltip on binding value change\n if (binding.value !== binding.oldValue) {\n setupTooltip(anchor, binding);\n }\n },\n unbind (anchor) {\n DtTooltipDirectiveApp.removeTooltip(anchor.getAttribute('data-dt-tooltip-id'));\n },\n });\n\n function setupTooltip (anchor, binding) {\n if (binding.value === null || binding.value === undefined) {\n const tooltipId = anchor.getAttribute('data-dt-tooltip-id');\n if (tooltipId) {\n DtTooltipDirectiveApp.removeTooltip(tooltipId);\n }\n return;\n }\n\n const tooltipId = anchor.getAttribute('data-dt-tooltip-id') || getUniqueString();\n\n let tooltipConfig;\n if (typeof binding.value === 'string') {\n tooltipConfig = {\n message: binding.value,\n placement: binding.arg || DEFAULT_PLACEMENT,\n };\n } else if (typeof binding.value === 'object' && binding.value !== null) {\n tooltipConfig = {\n placement: binding.arg || binding.value.placement || DEFAULT_PLACEMENT,\n ...binding.value,\n };\n } else {\n console.error('DtTooltipDirective: binding value must be string, object, null or undefined');\n return;\n }\n\n Object.keys(binding.modifiers).forEach(modifier => {\n switch (modifier) {\n case 'inverted':\n tooltipConfig.inverted = true;\n break;\n case 'no-delay':\n tooltipConfig.delay = false;\n break;\n case 'no-transition':\n tooltipConfig.transition = false;\n break;\n default:\n if (TOOLTIP_DIRECTIONS.includes(modifier)) {\n tooltipConfig.placement = modifier;\n }\n break;\n }\n });\n\n anchor.setAttribute('data-dt-tooltip-id', tooltipId);\n DtTooltipDirectiveApp.addOrUpdateTooltip(tooltipId, tooltipConfig);\n }\n },\n};\n\nexport default DtTooltipDirective;\n"],"names":["DtTooltipDirective","Vue","mountPoint","DEFAULT_PLACEMENT","DtTooltipDirectiveApp","DtTooltip","id","tooltipConfig","index","tooltip","h","tooltipProps","anchor","binding","setupTooltip","tooltipId","getUniqueString","modifier","TOOLTIP_DIRECTIONS"],"mappings":";;;AAGY,MAACA,IAAqB;AAAA,EAChC,MAAM;AAAA,EACN,QAASC,GAAK;AACZ,UAAMC,IAAa,SAAS,cAAc,KAAK;AAC/C,aAAS,KAAK,YAAYA,CAAU;AAEpC,UAAMC,IAAoB,OACpBC,IAAwB,IAAIH,EAAI;AAAA,MACpC,MAAM;AAAA,MACN,YAAY,EAAE,WAAAI,EAAS;AAAA,MACvB,OAAQ;AACN,eAAO;AAAA,UACL,UAAU,CAAA;AAAA,QAC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R,EAAsB,cAAcQ,EAAO,aAAa,oBAAoB,CAAC;AAAA,MAC/E;AAAA,IACN,CAAK;AAED,aAASE,EAAcF,GAAQC,GAAS;AACtC,UAAIA,EAAQ,UAAU,QAAQA,EAAQ,UAAU,QAAW;AACzD,cAAME,IAAYH,EAAO,aAAa,oBAAoB;AAC1D,QAAIG,KACFX,EAAsB,cAAcW,CAAS;AAE/C;AAAA,MACF;AAEA,YAAMA,IAAYH,EAAO,aAAa,oBAAoB,KAAKI,EAAe;AAE9E,UAAIT;AACJ,UAAI,OAAOM,EAAQ,SAAU;AAC3B,QAAAN,IAAgB;AAAA,UACd,SAASM,EAAQ;AAAA,UACjB,WAAWA,EAAQ,OAAOV;AAAA,QACpC;AAAA,eACiB,OAAOU,EAAQ,SAAU,YAAYA,EAAQ,UAAU;AAChE,QAAAN,IAAgB;AAAA,UACd,WAAWM,EAAQ,OAAOA,EAAQ,MAAM,aAAaV;AAAA,UACrD,GAAGU,EAAQ;AAAA,QACrB;AAAA,WACa;AACL,gBAAQ,MAAM,6EAA6E;AAC3F;AAAA,MACF;AAEA,aAAO,KAAKA,EAAQ,SAAS,EAAE,QAAQ,CAAAI,MAAY;AACjD,gBAAQA,GAAQ;AAAA,UACd,KAAK;AACH,YAAAV,EAAc,WAAW;AACzB;AAAA,UACF,KAAK;AACH,YAAAA,EAAc,QAAQ;AACtB;AAAA,UACF,KAAK;AACH,YAAAA,EAAc,aAAa;AAC3B;AAAA,UACF;AACE,YAAIW,EAAmB,SAASD,CAAQ,MACtCV,EAAc,YAAYU;AAE5B;AAAA,QACZ;AAAA,MACM,CAAC,GAEDL,EAAO,aAAa,sBAAsBG,CAAS,GACnDX,EAAsB,mBAAmBW,GAAWR,CAAa;AAAA,IACnE;AAAA,EACF;AACF;"}
1
+ {"version":3,"file":"tooltip.js","sources":["../../../directives/tooltip_directive/tooltip.js"],"sourcesContent":["import { DtTooltip, TOOLTIP_DIRECTIONS } from '@/components/tooltip';\nimport { getUniqueString } from '@/common/utils';\nimport deepEqual from 'deep-equal';\n\nexport const DtTooltipDirective = {\n name: 'dt-tooltip-directive',\n install (Vue) {\n const mountPoint = document.createElement('div');\n document.body.appendChild(mountPoint);\n\n const DEFAULT_PLACEMENT = 'top';\n const DtTooltipDirectiveApp = new Vue({\n name: 'DtTooltipDirectiveApp',\n components: { DtTooltip },\n data () {\n return {\n tooltips: [],\n };\n },\n\n methods: {\n addOrUpdateTooltip (id, tooltipConfig) {\n const index = this.tooltips.findIndex(tooltip => tooltip.id === id);\n if (index !== -1) {\n // Update existing tooltip\n this.tooltips.splice(index, 1, { id, ...tooltipConfig });\n } else {\n // Add new tooltip\n this.tooltips.push({ id, ...tooltipConfig });\n }\n },\n\n removeTooltip (id) {\n this.tooltips = this.tooltips.filter(tooltip => tooltip.id !== id);\n },\n },\n\n render (h) {\n return h('div',\n {\n domProps: { id: 'dt-tooltip-directive-app' },\n },\n [\n this.tooltips.map(({ id, ...tooltipProps }) => {\n return h(DtTooltip, {\n key: id,\n props: {\n ...tooltipProps,\n sticky: tooltipProps.sticky !== undefined ? tooltipProps.sticky : true,\n /**\n * Set the delay to false when running tests only.\n */\n delay: tooltipProps.delay !== undefined ? tooltipProps.delay : (process.env.NODE_ENV !== 'test'),\n externalAnchor: `[data-dt-tooltip-id=\"${id}\"]`,\n },\n });\n }),\n ],\n );\n },\n });\n\n DtTooltipDirectiveApp.$mount(mountPoint);\n\n Vue.directive('dt-tooltip', {\n bind (anchor, binding) {\n // Initial tooltip setup\n setupTooltip(anchor, binding);\n },\n update (anchor, binding) {\n // Update tooltip on binding value change\n // Use deep equality check to prevent infinite loops when objects are passed\n if (!deepEqual(binding.value, binding.oldValue)) {\n setupTooltip(anchor, binding);\n }\n },\n unbind (anchor) {\n DtTooltipDirectiveApp.removeTooltip(anchor.getAttribute('data-dt-tooltip-id'));\n },\n });\n\n function setupTooltip (anchor, binding) {\n if (binding.value === null || binding.value === undefined) {\n const tooltipId = anchor.getAttribute('data-dt-tooltip-id');\n if (tooltipId) {\n DtTooltipDirectiveApp.removeTooltip(tooltipId);\n }\n return;\n }\n\n const tooltipId = anchor.getAttribute('data-dt-tooltip-id') || getUniqueString();\n\n let tooltipConfig;\n if (typeof binding.value === 'string') {\n tooltipConfig = {\n message: binding.value,\n placement: binding.arg || DEFAULT_PLACEMENT,\n };\n } else if (typeof binding.value === 'object' && binding.value !== null) {\n tooltipConfig = {\n placement: binding.arg || binding.value.placement || DEFAULT_PLACEMENT,\n ...binding.value,\n };\n } else {\n console.error('DtTooltipDirective: binding value must be string, object, null or undefined');\n return;\n }\n\n Object.keys(binding.modifiers).forEach(modifier => {\n switch (modifier) {\n case 'inverted':\n tooltipConfig.inverted = true;\n break;\n case 'no-delay':\n tooltipConfig.delay = false;\n break;\n case 'no-transition':\n tooltipConfig.transition = false;\n break;\n default:\n if (TOOLTIP_DIRECTIONS.includes(modifier)) {\n tooltipConfig.placement = modifier;\n }\n break;\n }\n });\n\n anchor.setAttribute('data-dt-tooltip-id', tooltipId);\n DtTooltipDirectiveApp.addOrUpdateTooltip(tooltipId, tooltipConfig);\n }\n },\n};\n\nexport default DtTooltipDirective;\n"],"names":["DtTooltipDirective","Vue","mountPoint","DEFAULT_PLACEMENT","DtTooltipDirectiveApp","DtTooltip","id","tooltipConfig","index","tooltip","h","tooltipProps","anchor","binding","setupTooltip","deepEqual","tooltipId","getUniqueString","modifier","TOOLTIP_DIRECTIONS"],"mappings":";;;;AAIY,MAACA,IAAqB;AAAA,EAChC,MAAM;AAAA,EACN,QAASC,GAAK;AACZ,UAAMC,IAAa,SAAS,cAAc,KAAK;AAC/C,aAAS,KAAK,YAAYA,CAAU;AAEpC,UAAMC,IAAoB,OACpBC,IAAwB,IAAIH,EAAI;AAAA,MACpC,MAAM;AAAA,MACN,YAAY,EAAE,WAAAI,EAAS;AAAA,MACvB,OAAQ;AACN,eAAO;AAAA,UACL,UAAU,CAAA;AAAA,QACpB;AAAA,MACM;AAAA,MAEA,SAAS;AAAA,QACP,mBAAoBC,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CAAC;AAAA,MAC/E;AAAA,IACN,CAAK;AAED,aAASE,EAAcF,GAAQC,GAAS;AACtC,UAAIA,EAAQ,UAAU,QAAQA,EAAQ,UAAU,QAAW;AACzD,cAAMG,IAAYJ,EAAO,aAAa,oBAAoB;AAC1D,QAAII,KACFZ,EAAsB,cAAcY,CAAS;AAE/C;AAAA,MACF;AAEA,YAAMA,IAAYJ,EAAO,aAAa,oBAAoB,KAAKK,EAAe;AAE9E,UAAIV;AACJ,UAAI,OAAOM,EAAQ,SAAU;AAC3B,QAAAN,IAAgB;AAAA,UACd,SAASM,EAAQ;AAAA,UACjB,WAAWA,EAAQ,OAAOV;AAAA,QACpC;AAAA,eACiB,OAAOU,EAAQ,SAAU,YAAYA,EAAQ,UAAU;AAChE,QAAAN,IAAgB;AAAA,UACd,WAAWM,EAAQ,OAAOA,EAAQ,MAAM,aAAaV;AAAA,UACrD,GAAGU,EAAQ;AAAA,QACrB;AAAA,WACa;AACL,gBAAQ,MAAM,6EAA6E;AAC3F;AAAA,MACF;AAEA,aAAO,KAAKA,EAAQ,SAAS,EAAE,QAAQ,CAAAK,MAAY;AACjD,gBAAQA,GAAQ;AAAA,UACd,KAAK;AACH,YAAAX,EAAc,WAAW;AACzB;AAAA,UACF,KAAK;AACH,YAAAA,EAAc,QAAQ;AACtB;AAAA,UACF,KAAK;AACH,YAAAA,EAAc,aAAa;AAC3B;AAAA,UACF;AACE,YAAIY,EAAmB,SAASD,CAAQ,MACtCX,EAAc,YAAYW;AAE5B;AAAA,QACZ;AAAA,MACM,CAAC,GAEDN,EAAO,aAAa,sBAAsBI,CAAS,GACnDZ,EAAsB,mBAAmBY,GAAWT,CAAa;AAAA,IACnE;AAAA,EACF;AACF;"}
@@ -0,0 +1,3 @@
1
+ export { default as DtModeIsland } from './mode_island.vue';
2
+ export { DT_MODE_ISLAND_TYPES } from './mode_island_constants.js';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../components/mode_island/index.js"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ declare const _default: import('vue').DefineComponent<{}, any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, Readonly<import('vue').ExtractPropTypes<{}>>, {}>;
2
+ export default _default;
3
+ //# sourceMappingURL=mode_island.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mode_island.vue.d.ts","sourceRoot":"","sources":["../../../../components/mode_island/mode_island.vue"],"names":[],"mappings":"AAaA;"}
@@ -0,0 +1,10 @@
1
+ export namespace DT_MODE_ISLAND_TYPES {
2
+ let INVERTED: string;
3
+ let LIGHT: string;
4
+ let DARK: string;
5
+ }
6
+ declare namespace _default {
7
+ export { DT_MODE_ISLAND_TYPES };
8
+ }
9
+ export default _default;
10
+ //# sourceMappingURL=mode_island_constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mode_island_constants.d.ts","sourceRoot":"","sources":["../../../../components/mode_island/mode_island_constants.js"],"names":[],"mappings":""}
@@ -0,0 +1,12 @@
1
+ export function getOppositeMode(currentMode: string): string;
2
+ export function getRootMode(): string;
3
+ export function getRootContrast(): string;
4
+ export function findParentMode(el: HTMLElement): string;
5
+ declare namespace _default {
6
+ export { getOppositeMode };
7
+ export { getRootMode };
8
+ export { getRootContrast };
9
+ export { findParentMode };
10
+ }
11
+ export default _default;
12
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../components/mode_island/utils.js"],"names":[],"mappings":"AAKA,6CAHW,MAAM,GACJ,MAAM,CAIlB;AAMD,+BAFa,MAAM,CAKlB;AAMD,mCAFa,MAAM,CAKlB;AAOD,mCAHW,WAAW,GACT,MAAM,CAWlB"}
@@ -0,0 +1,6 @@
1
+ export function modeValidator(mode: any): boolean;
2
+ declare namespace _default {
3
+ export { modeValidator };
4
+ }
5
+ export default _default;
6
+ //# sourceMappingURL=validators.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validators.d.ts","sourceRoot":"","sources":["../../../../components/mode_island/validators.js"],"names":[],"mappings":"AAEA,kDAEC"}
@@ -51,7 +51,12 @@ declare const _default: import('vue').DefineComponent<{
51
51
  lg: string;
52
52
  xl: string;
53
53
  };
54
- }, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, Readonly<import('vue').ExtractPropTypes<{
54
+ }, {
55
+ tooltipConfig(): {
56
+ message: any;
57
+ inverted: boolean;
58
+ };
59
+ }, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, Readonly<import('vue').ExtractPropTypes<{
55
60
  active: {
56
61
  type: BooleanConstructor;
57
62
  default: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../../directives/tooltip_directive/tooltip.js"],"names":[],"mappings":";;IAKE,iCA2HC"}
1
+ {"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../../directives/tooltip_directive/tooltip.js"],"names":[],"mappings":";;IAME,iCA4HC"}
@@ -36,6 +36,7 @@ export * from './components/list_item';
36
36
  export * from './components/list_item_group';
37
37
  export * from './components/loader';
38
38
  export * from './components/modal';
39
+ export * from './components/mode_island';
39
40
  export * from './components/notice';
40
41
  export * from './components/pagination';
41
42
  export * from './components/popover';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dialpad/dialtone-vue",
3
- "version": "2.201.0-next.2",
3
+ "version": "2.201.0-next.3",
4
4
  "description": "Vue component library for Dialpad's design system Dialtone",
5
5
  "files": [
6
6
  "dist"
@@ -45,8 +45,8 @@
45
45
  "regex-combined-emojis": "1.6.0",
46
46
  "tippy.js": "6.3.7",
47
47
  "turndown": "7.2.0",
48
- "@dialpad/dialtone-icons": "4.44.2-next.1",
49
- "@dialpad/dialtone-emojis": "1.2.3"
48
+ "@dialpad/dialtone-emojis": "1.2.3",
49
+ "@dialpad/dialtone-icons": "4.44.2-next.1"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@storybook/addon-a11y": "7.6.20",
@@ -58,12 +58,12 @@
58
58
  "react": "^18.3.1",
59
59
  "storybook-dark-mode": "^3.0.3",
60
60
  "vue": "^2.7.15",
61
- "@dialpad/dialtone-css": "8.65.0-next.4",
61
+ "@dialpad/dialtone-css": "8.66.0-next.1",
62
62
  "@dialpad/generator-dialtone": "0.1.0"
63
63
  },
64
64
  "peerDependencies": {
65
65
  "vue": ">=2.6",
66
- "@dialpad/dialtone-css": "^8.65.0-next.4"
66
+ "@dialpad/dialtone-css": "^8.66.0-next.1"
67
67
  },
68
68
  "bugs": {
69
69
  "email": "dialtone@dialpad.com"