energy-components 2.0.0-beta.2 → 2.0.0-beta.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 (122) hide show
  1. package/dist/components/accordion.es.js +1 -1
  2. package/dist/components/avatar.es.js +1 -1
  3. package/dist/components/button.es.js +1 -1
  4. package/dist/components/checkbox.es.js +1 -1
  5. package/dist/components/collapsable.es.js +1 -1
  6. package/dist/components/collapsable.scss_vue_type_style_index_0_src_true_lang-DGVMcmcy.js +86 -0
  7. package/dist/components/datepicker.es.js +1 -1
  8. package/dist/components/directAccess.es.js +1 -1
  9. package/dist/components/dragAndDrop.es.js +1 -1
  10. package/dist/components/dropdown.es.js +1 -1
  11. package/dist/components/fileUploadItem.es.js +1 -1
  12. package/dist/components/filterChip.es.js +1 -1
  13. package/dist/components/filterTag.es.js +1 -1
  14. package/dist/components/icon-svg-CTR8GnC2.js +895 -0
  15. package/dist/components/iconList.es.js +1 -1
  16. package/dist/components/iconSvg.es.js +1 -1
  17. package/dist/components/index.es.js +2 -2
  18. package/dist/components/infoBox.es.js +1 -1
  19. package/dist/components/link.es.js +1 -1
  20. package/dist/components/modal.es.js +1 -1
  21. package/dist/components/persistentToast.es.js +1 -1
  22. package/dist/components/popover.es.js +1 -1
  23. package/dist/components/popoverMenu.es.js +1 -1
  24. package/dist/components/progressBar.es.js +1 -1
  25. package/dist/components/quantitySelector.es.js +1 -1
  26. package/dist/components/radioButton.es.js +1 -1
  27. package/dist/components/selectionChip.es.js +1 -1
  28. package/dist/components/sidedrawer.es.js +1 -1
  29. package/dist/components/style/icon-svg.css +1 -1
  30. package/dist/components/style/tooltip.css +1 -1
  31. package/dist/components/switch.es.js +1 -1
  32. package/dist/components/tabBar.es.js +1 -1
  33. package/dist/components/table.es.js +1 -1
  34. package/dist/components/tableRenderer.es.js +1 -1
  35. package/dist/components/tag.es.js +1 -1
  36. package/dist/components/textArea.es.js +1 -1
  37. package/dist/components/textField.es.js +1 -1
  38. package/dist/components/tooltip.es.js +182 -107
  39. package/dist/composables/index.es.js +144 -0
  40. package/dist/energy-components.css +1 -1
  41. package/dist/energy-components.es.js +5155 -5054
  42. package/dist/energy-components.umd.js +2 -2
  43. package/dist/style.css +1 -1
  44. package/dist/types/src/components/buttons/action-button/action-button.vue.d.ts +3 -3
  45. package/dist/types/src/components/buttons/button/button.vue.d.ts +6 -6
  46. package/dist/types/src/components/buttons/floating-action-button/floating-action-button.vue.d.ts +3 -3
  47. package/dist/types/src/components/content/avatar/avatar.vue.d.ts +1 -1
  48. package/dist/types/src/components/content/collapsable/collapsable.vue.d.ts +1 -1
  49. package/dist/types/src/components/content/table/table.vue.d.ts +1 -1
  50. package/dist/types/src/components/content/tag/tag.vue.d.ts +3 -3
  51. package/dist/types/src/components/icon-svg/icon-svg.vue.d.ts +23 -0
  52. package/dist/types/src/components/input/checkbox/checkbox.vue.d.ts +3 -3
  53. package/dist/types/src/components/input/datepicker/datepicker.vue.d.ts +3 -3
  54. package/dist/types/src/components/input/drag-and-drop/drag-and-drop.vue.d.ts +1 -1
  55. package/dist/types/src/components/input/dropdown/dropdown.vue.d.ts +8 -8
  56. package/dist/types/src/components/input/file-upload-item/file-upload-item.vue.d.ts +2 -2
  57. package/dist/types/src/components/input/filter-chip/filter-chip.vue.d.ts +4 -4
  58. package/dist/types/src/components/input/quantity-selector/quantity-selector.vue.d.ts +3 -3
  59. package/dist/types/src/components/input/radio-button/radio-button.vue.d.ts +1 -1
  60. package/dist/types/src/components/input/selection-chip/selection-chip.vue.d.ts +4 -4
  61. package/dist/types/src/components/input/switch/switch.vue.d.ts +1 -1
  62. package/dist/types/src/components/input/text-area/text-area.vue.d.ts +2 -2
  63. package/dist/types/src/components/input/text-field/text-field.vue.d.ts +4 -4
  64. package/dist/types/src/components/navigation/direct-access/direct-access.vue.d.ts +5 -5
  65. package/dist/types/src/components/navigation/link/link.vue.d.ts +4 -4
  66. package/dist/types/src/components/navigation/pagination/pagination.vue.d.ts +2 -2
  67. package/dist/types/src/components/navigation/tab-bar/tab-bar.vue.d.ts +2 -2
  68. package/dist/types/src/components/overlay/modal/modal.vue.d.ts +2 -2
  69. package/dist/types/src/components/overlay/popover/popover.vue.d.ts +7 -7
  70. package/dist/types/src/components/overlay/popover-menu/popover-menu.vue.d.ts +5 -5
  71. package/dist/types/src/components/overlay/tooltip/tooltip.vue.d.ts +84 -4
  72. package/dist/types/tsconfig.tsbuildinfo +1 -1
  73. package/llms/00-installation.md +165 -0
  74. package/llms/01-migration-v2.md +364 -0
  75. package/llms/llms.txt +54 -0
  76. package/llms/rdsaccordion-group.md +7 -0
  77. package/llms/rdsaccordion.md +24 -0
  78. package/llms/rdsaction-button.md +15 -0
  79. package/llms/rdsavatar.md +20 -0
  80. package/llms/rdsbadge.md +17 -0
  81. package/llms/rdsbreadcrumbs.md +18 -0
  82. package/llms/rdsbutton.md +24 -0
  83. package/llms/rdscard.md +13 -0
  84. package/llms/rdscheckbox.md +30 -0
  85. package/llms/rdscollapsable.md +23 -0
  86. package/llms/rdsdate-picker.md +64 -0
  87. package/llms/rdsdirect-access.md +27 -0
  88. package/llms/rdsdivider.md +8 -0
  89. package/llms/rdsdrag-and-drop.md +30 -0
  90. package/llms/rdsdropdown.md +48 -0
  91. package/llms/rdsfile-upload-item.md +29 -0
  92. package/llms/rdsfilter-chip.md +21 -0
  93. package/llms/rdsfilter-tag.md +15 -0
  94. package/llms/rdsfloatin-action-button.md +15 -0
  95. package/llms/rdsicon-svg.md +13 -0
  96. package/llms/rdsindicator.md +13 -0
  97. package/llms/rdsinfo-box.md +17 -0
  98. package/llms/rdslink.md +32 -0
  99. package/llms/rdsloader.md +12 -0
  100. package/llms/rdsmodal.md +32 -0
  101. package/llms/rdsoverlay.md +18 -0
  102. package/llms/rdspagination.md +24 -0
  103. package/llms/rdspersistent-toast.md +23 -0
  104. package/llms/rdspopover-menu.md +29 -0
  105. package/llms/rdspopover.md +29 -0
  106. package/llms/rdsprogress-bar.md +25 -0
  107. package/llms/rdsquantity-selector.md +19 -0
  108. package/llms/rdsradio-button.md +12 -0
  109. package/llms/rdsradio-group.md +12 -0
  110. package/llms/rdsselection-chip.md +19 -0
  111. package/llms/rdssidebar.md +25 -0
  112. package/llms/rdssidedrawer.md +23 -0
  113. package/llms/rdssnack-bar.md +24 -0
  114. package/llms/rdsswitch.md +23 -0
  115. package/llms/rdstab-bar.md +26 -0
  116. package/llms/rdstable.md +49 -0
  117. package/llms/rdstag.md +15 -0
  118. package/llms/rdstext-area.md +35 -0
  119. package/llms/rdstext-field.md +52 -0
  120. package/llms/rdstoggle.md +20 -0
  121. package/llms/rdstooltip.md +37 -0
  122. package/package.json +5 -3
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as B, toRefs as D, ref as p, watch as K, nextTick as T, inject as k, onMounted as $, onBeforeUnmount as A, createElementBlock as R, openBlock as f, createElementVNode as i, mergeProps as x, withKeys as z, toDisplayString as v, createBlock as N, createCommentVNode as V, createVNode as H, unref as m, normalizeClass as S, renderSlot as P, createTextVNode as U } from "vue";
2
- import { R as j } from "./icon-svg-9fQGq_1_.js";
2
+ import { R as j } from "./icon-svg-CTR8GnC2.js";
3
3
  import E from "./tag.es.js";
4
4
  import { R as F, U as I } from "./types-CFEN6-OM.js";
5
5
  import { _ as M } from "./_plugin-vue_export-helper-CHgC5LLL.js";
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as h, computed as a, createElementBlock as s, openBlock as n, withKeys as o, normalizeStyle as u, normalizeClass as k, createBlock as _, createCommentVNode as b, toDisplayString as z } from "vue";
2
- import { R as C } from "./icon-svg-9fQGq_1_.js";
2
+ import { R as C } from "./icon-svg-CTR8GnC2.js";
3
3
  import { _ as w } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  import './style/avatar.css';const A = ["id", "aria-label"], B = ["src", "alt"], D = {
5
5
  key: 1,
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as b, computed as s, createElementBlock as f, openBlock as r, mergeProps as p, createBlock as v, createCommentVNode as m, createElementVNode as y, normalizeClass as h, renderSlot as g, createTextVNode as x, toDisplayString as B } from "vue";
2
- import { R as S } from "./icon-svg-9fQGq_1_.js";
2
+ import { R as S } from "./icon-svg-CTR8GnC2.js";
3
3
  import { _ } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  import './style/button.css';const $ = ["id", "type", "disabled", "aria-disabled", "aria-busy", "aria-label"], L = { class: "rds-e-btn__text" }, I = /* @__PURE__ */ b({
5
5
  __name: "button",
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as D, computed as c, ref as d, watch as N, onMounted as E, onBeforeUnmount as L, createElementBlock as R, openBlock as s, normalizeClass as u, createElementVNode as b, mergeProps as T, renderSlot as U, createTextVNode as z, createBlock as x, createCommentVNode as I, toDisplayString as $, withCtx as F, createVNode as K } from "vue";
2
- import { R as g } from "./icon-svg-9fQGq_1_.js";
2
+ import { R as g } from "./icon-svg-CTR8GnC2.js";
3
3
  import M from "./tooltip.es.js";
4
4
  import { g as p } from "./getInstance-GhoEcxLF.js";
5
5
  import { _ as A } from "./_plugin-vue_export-helper-CHgC5LLL.js";
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./collapsable.scss_vue_type_style_index_0_src_true_lang-CwEWYCf1.js";
1
+ import { _ as f } from "./collapsable.scss_vue_type_style_index_0_src_true_lang-DGVMcmcy.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -0,0 +1,86 @@
1
+ import { defineComponent as k, ref as c, computed as r, watch as v, nextTick as i, createElementBlock as w, openBlock as h, normalizeClass as u, createElementVNode as t, withKeys as B, createBlock as C, createCommentVNode as S, createVNode as $, toDisplayString as _, renderSlot as I, createTextVNode as N } from "vue";
2
+ import { R as y } from "./icon-svg-CTR8GnC2.js";
3
+ import './style/collapsable.css';const V = ["id", "aria-expanded", "aria-controls", "disabled"], H = { class: "rds-e-collapsable__header-title" }, D = { class: "rds-e-collapsable__header-title-text" }, E = ["id", "aria-labelledby"], W = /* @__PURE__ */ k({
4
+ __name: "collapsable",
5
+ props: {
6
+ title: {},
7
+ content: { default: "" },
8
+ icon: { default: "" },
9
+ open: { type: Boolean, default: !1 },
10
+ disabled: { type: Boolean, default: !1 },
11
+ fullWidth: { type: Boolean, default: !1 },
12
+ id: { default: "" }
13
+ },
14
+ emits: ["update:open"],
15
+ setup(l, { emit: g }) {
16
+ const n = l, x = g, e = c(n.open), o = c(null), s = c(null), p = r(() => n.id || `rds-collapsable-${Math.random().toString(36).substr(2, 9)}`), b = r(() => `${p.value}-panel`), f = r(() => `${p.value}-header`), d = () => {
17
+ if (!o.value || !s.value) return;
18
+ const a = s.value.scrollHeight;
19
+ o.value.style.maxHeight = e.value ? `${a}px` : "0px";
20
+ }, m = () => {
21
+ n.disabled || (e.value = !e.value, x("update:open", e.value), i(() => {
22
+ d();
23
+ }));
24
+ };
25
+ return v(() => n.open, (a) => {
26
+ e.value = a, i(() => {
27
+ d();
28
+ });
29
+ }), v(e, () => {
30
+ i(() => {
31
+ d();
32
+ });
33
+ }, { immediate: !0 }), (a, K) => (h(), w("div", {
34
+ class: u(["rds-e-collapsable", {
35
+ "rds-e-collapsable--open": e.value,
36
+ "rds-e-collapsable--disabled": l.disabled,
37
+ "rds-e-collapsable--full-width": l.fullWidth
38
+ }])
39
+ }, [
40
+ t("button", {
41
+ id: f.value,
42
+ class: "rds-e-collapsable__header",
43
+ type: "button",
44
+ "aria-expanded": e.value,
45
+ "aria-controls": b.value,
46
+ disabled: l.disabled,
47
+ onClick: m,
48
+ onKeydown: B(m, ["enter", "space"])
49
+ }, [
50
+ l.icon ? (h(), C(y, {
51
+ key: 0,
52
+ name: l.icon,
53
+ class: "rds-e-collapsable__header-icon"
54
+ }, null, 8, ["name"])) : S("", !0),
55
+ t("span", H, [
56
+ t("span", D, _(l.title), 1)
57
+ ]),
58
+ $(y, {
59
+ class: u(["rds-e-collapsable__header-arrow", { "rds-e-collapsable__header-arrow--open": e.value }]),
60
+ name: "arrow_down"
61
+ }, null, 8, ["class"])
62
+ ], 40, V),
63
+ t("div", {
64
+ id: b.value,
65
+ ref_key: "panel",
66
+ ref: o,
67
+ class: u(["rds-e-collapsable__panel", { "rds-e-collapsable__panel--open": e.value }]),
68
+ role: "region",
69
+ "aria-labelledby": f.value
70
+ }, [
71
+ t("div", {
72
+ ref_key: "panelContent",
73
+ ref: s,
74
+ class: "rds-e-collapsable__panel-content"
75
+ }, [
76
+ I(a.$slots, "default", {}, () => [
77
+ N(_(l.content), 1)
78
+ ])
79
+ ], 512)
80
+ ], 10, E)
81
+ ], 2));
82
+ }
83
+ });
84
+ export {
85
+ W as _
86
+ };
@@ -1,5 +1,5 @@
1
1
  import { reactive as ya, ref as G, defineComponent as Je, useSlots as Vt, toRef as fa, onMounted as Ze, nextTick as it, onUnmounted as ga, watch as ct, computed as U, createElementBlock as X, openBlock as O, unref as s, normalizeClass as xe, createVNode as tt, createBlock as Te, mergeProps as Qe, isRef as $n, createSlots as Ge, renderList as Se, withCtx as ke, renderSlot as de, normalizeProps as ze, guardReactiveProps as lt, resolveDynamicComponent as Ya, Teleport as qr, Transition as la, createCommentVNode as K, h as jr, render as Cn, createElementVNode as ge, withModifiers as Ot, normalizeStyle as vt, Fragment as _e, toDisplayString as et, useAttrs as Qr, createTextVNode as Ct, getCurrentScope as Ur, onScopeDispose as Xr, onBeforeUpdate as zr, withDirectives as Pa, vShow as Ta, withKeys as Aa, mergeModels as Yn, useModel as Kr, toRefs as Gr, toHandlers as Jr } from "vue";
2
- import { R as Zr } from "./icon-svg-9fQGq_1_.js";
2
+ import { R as Zr } from "./icon-svg-CTR8GnC2.js";
3
3
  import Rn from "./button.es.js";
4
4
  import el from "./textField.es.js";
5
5
  import { _ as tl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as R, toRefs as D, computed as i, createBlock as d, openBlock as l, resolveDynamicComponent as E, unref as t, normalizeClass as j, withCtx as I, renderSlot as u, createElementVNode as m, createCommentVNode as k, createElementBlock as N, normalizeStyle as y, toDisplayString as O } from "vue";
2
2
  import { s as T } from "./functions-D3GA3OzJ.js";
3
- import { R as h } from "./icon-svg-9fQGq_1_.js";
3
+ import { R as h } from "./icon-svg-CTR8GnC2.js";
4
4
  import { _ as V } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  import './style/directAccess.css';const q = { class: "rds-e-direct-access__artwork-container" }, A = ["src", "alt", "aria-hidden"], M = { class: "rds-e-direct-access__text-container" }, U = { class: "rds-e-direct-access__text" }, F = /* @__PURE__ */ R({
6
6
  __name: "direct-access",
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as W, ref as _, computed as u, createElementBlock as b, openBlock as x, withModifiers as c, normalizeClass as k, createElementVNode as o, renderSlot as q, createVNode as L, createCommentVNode as M, toDisplayString as D } from "vue";
2
2
  import { g as z } from "./getInstance-GhoEcxLF.js";
3
- import { R as A } from "./icon-svg-9fQGq_1_.js";
3
+ import { R as A } from "./icon-svg-CTR8GnC2.js";
4
4
  import { _ as U } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  import './style/dragAndDrop.css';const V = ["id", "accept", "multiple", "disabled"], O = ["for"], P = { class: "rds-e-drag-and-drop__icon-wrapper" }, j = { class: "rds-e-drag-and-drop__text-container" }, G = { class: "rds-e-drag-and-drop__text" }, H = {
6
6
  key: 0,
@@ -3,7 +3,7 @@ import $e from "./multiselect.es.js";
3
3
  import Ce from "./checkbox.es.js";
4
4
  import { _ as De } from "./radio-group.vue_vue_type_script_setup_true_lang-DpguLlRK.js";
5
5
  import _e from "./radioButton.es.js";
6
- import { R as te } from "./icon-svg-9fQGq_1_.js";
6
+ import { R as te } from "./icon-svg-CTR8GnC2.js";
7
7
  import oe from "./textField.es.js";
8
8
  import { _ as Be } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
9
  import './style/dropdown.css';const Oe = ["id", "aria-expanded", "onKeydown"], Le = ["aria-expanded", "onKeydown"], Ve = { class: "rds-e-dropdown__option" }, Ae = { class: "rds-e-dropdown__option-container" }, Re = { class: "rds-e-dropdown__option--prepend" }, Ee = { class: "rds-e-dropdown__option--content" }, Fe = {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as M, ref as z, computed as c, createElementBlock as s, openBlock as l, normalizeClass as N, createElementVNode as n, renderSlot as v, createVNode as p, createCommentVNode as r, toDisplayString as f, withModifiers as $ } from "vue";
2
- import { R as g } from "./icon-svg-9fQGq_1_.js";
2
+ import { R as g } from "./icon-svg-CTR8GnC2.js";
3
3
  import w from "./progressBar.es.js";
4
4
  import { _ as I } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  import './style/fileUploadItem.css';const C = ["id"], F = { class: "rds-e-file-upload-item__icon-container" }, R = { class: "rds-e-file-upload-item__details" }, E = { class: "rds-e-file-upload-item__info-wrapper" }, x = { class: "rds-e-file-upload-item__name" }, D = {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as g, ref as b, computed as s, createElementBlock as a, openBlock as l, normalizeClass as y, createCommentVNode as r, createElementVNode as k, createBlock as c, toDisplayString as n } from "vue";
2
- import { R as o } from "./icon-svg-9fQGq_1_.js";
2
+ import { R as o } from "./icon-svg-CTR8GnC2.js";
3
3
  import { _ as C } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  import './style/filterChip.css';const _ = ["id", "disabled"], I = {
5
5
  key: 0,
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as u, ref as m, createElementBlock as b, openBlock as g, withKeys as s, normalizeClass as v, createElementVNode as x, createVNode as p, toDisplayString as y, withModifiers as l } from "vue";
2
- import { R as S } from "./icon-svg-9fQGq_1_.js";
2
+ import { R as S } from "./icon-svg-CTR8GnC2.js";
3
3
  import { _ as h } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  import './style/filterTag.css';const w = ["id", "aria-disabled", "tabindex"], _ = { class: "rds-e-filter-tag__text" }, k = /* @__PURE__ */ u({
5
5
  __name: "filter-tag",