@aotearoan/neon 19.0.2 → 21.0.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.
Files changed (151) hide show
  1. package/dist/common/enums/NeonButtonStyle.cjs.js +1 -1
  2. package/dist/common/enums/NeonButtonStyle.cjs.js.map +1 -1
  3. package/dist/common/enums/NeonButtonStyle.es.js +1 -1
  4. package/dist/common/enums/NeonButtonStyle.es.js.map +1 -1
  5. package/dist/common/enums/NeonDropdownStyle.cjs.js +1 -1
  6. package/dist/common/enums/NeonDropdownStyle.cjs.js.map +1 -1
  7. package/dist/common/enums/NeonDropdownStyle.es.js +2 -2
  8. package/dist/common/enums/NeonDropdownStyle.es.js.map +1 -1
  9. package/dist/common/enums/NeonMode.cjs.js +1 -1
  10. package/dist/common/enums/NeonMode.cjs.js.map +1 -1
  11. package/dist/common/enums/NeonMode.es.js +1 -1
  12. package/dist/common/enums/NeonMode.es.js.map +1 -1
  13. package/dist/common/icons/light-mode-sunny.svg.cjs.js +26 -0
  14. package/dist/common/icons/light-mode-sunny.svg.cjs.js.map +1 -0
  15. package/dist/common/icons/light-mode-sunny.svg.es.js +29 -0
  16. package/dist/common/icons/light-mode-sunny.svg.es.js.map +1 -0
  17. package/dist/common/utils/NeonModeUtils.cjs.js +1 -1
  18. package/dist/common/utils/NeonModeUtils.cjs.js.map +1 -1
  19. package/dist/common/utils/NeonModeUtils.es.js +38 -43
  20. package/dist/common/utils/NeonModeUtils.es.js.map +1 -1
  21. package/dist/common/utils/RegisterIcons.cjs.js +1 -1
  22. package/dist/common/utils/RegisterIcons.cjs.js.map +1 -1
  23. package/dist/common/utils/RegisterIcons.es.js +23 -22
  24. package/dist/common/utils/RegisterIcons.es.js.map +1 -1
  25. package/dist/components/feedback/dialog/NeonDialog.vue.cjs.js +1 -1
  26. package/dist/components/feedback/dialog/NeonDialog.vue.cjs.js.map +1 -1
  27. package/dist/components/feedback/dialog/NeonDialog.vue.es.js +6 -5
  28. package/dist/components/feedback/dialog/NeonDialog.vue.es.js.map +1 -1
  29. package/dist/components/feedback/note/NeonNote.vue.cjs.js +1 -1
  30. package/dist/components/feedback/note/NeonNote.vue.cjs.js.map +1 -1
  31. package/dist/components/feedback/note/NeonNote.vue.es.js +1 -0
  32. package/dist/components/feedback/note/NeonNote.vue.es.js.map +1 -1
  33. package/dist/components/navigation/mobile-menu/NeonMobileMenu.cjs.js +2 -0
  34. package/dist/components/navigation/mobile-menu/NeonMobileMenu.cjs.js.map +1 -0
  35. package/dist/components/navigation/mobile-menu/NeonMobileMenu.es.js +44 -0
  36. package/dist/components/navigation/mobile-menu/NeonMobileMenu.es.js.map +1 -0
  37. package/dist/components/navigation/mobile-menu/NeonMobileMenu.vue.cjs.js +2 -0
  38. package/dist/components/navigation/mobile-menu/NeonMobileMenu.vue.cjs.js.map +1 -0
  39. package/dist/components/navigation/mobile-menu/NeonMobileMenu.vue.es.js +57 -0
  40. package/dist/components/navigation/mobile-menu/NeonMobileMenu.vue.es.js.map +1 -0
  41. package/dist/components/presentation/dropdown/NeonDropdown.cjs.js +1 -1
  42. package/dist/components/presentation/dropdown/NeonDropdown.cjs.js.map +1 -1
  43. package/dist/components/presentation/dropdown/NeonDropdown.es.js +44 -40
  44. package/dist/components/presentation/dropdown/NeonDropdown.es.js.map +1 -1
  45. package/dist/components/presentation/dropdown/NeonDropdown.vue.cjs.js +1 -1
  46. package/dist/components/presentation/dropdown/NeonDropdown.vue.cjs.js.map +1 -1
  47. package/dist/components/presentation/dropdown/NeonDropdown.vue.es.js +9 -9
  48. package/dist/components/presentation/dropdown/NeonDropdown.vue.es.js.map +1 -1
  49. package/dist/components/presentation/icon/NeonIcon.cjs.js.map +1 -1
  50. package/dist/components/presentation/icon/NeonIcon.es.js.map +1 -1
  51. package/dist/components/presentation/tabs/NeonTabs.cjs.js +1 -1
  52. package/dist/components/presentation/tabs/NeonTabs.cjs.js.map +1 -1
  53. package/dist/components/presentation/tabs/NeonTabs.es.js +13 -19
  54. package/dist/components/presentation/tabs/NeonTabs.es.js.map +1 -1
  55. package/dist/components/presentation/tabs/NeonTabs.vue.cjs.js +1 -1
  56. package/dist/components/presentation/tabs/NeonTabs.vue.cjs.js.map +1 -1
  57. package/dist/components/presentation/tabs/NeonTabs.vue.es.js +6 -6
  58. package/dist/components/presentation/tabs/NeonTabs.vue.es.js.map +1 -1
  59. package/dist/components/user-input/button/NeonButton.vue.cjs.js +1 -1
  60. package/dist/components/user-input/button/NeonButton.vue.cjs.js.map +1 -1
  61. package/dist/components/user-input/button/NeonButton.vue.es.js +12 -12
  62. package/dist/components/user-input/button/NeonButton.vue.es.js.map +1 -1
  63. package/dist/components/user-input/field/NeonField.vue.cjs.js +1 -1
  64. package/dist/components/user-input/field/NeonField.vue.cjs.js.map +1 -1
  65. package/dist/components/user-input/field/NeonField.vue.es.js +1 -1
  66. package/dist/components/user-input/field/NeonField.vue.es.js.map +1 -1
  67. package/dist/components/user-input/file/NeonFile.vue.cjs.js +1 -1
  68. package/dist/components/user-input/file/NeonFile.vue.cjs.js.map +1 -1
  69. package/dist/components/user-input/file/NeonFile.vue.es.js +1 -0
  70. package/dist/components/user-input/file/NeonFile.vue.es.js.map +1 -1
  71. package/dist/components/user-input/input/NeonInput.cjs.js +1 -1
  72. package/dist/components/user-input/input/NeonInput.cjs.js.map +1 -1
  73. package/dist/components/user-input/input/NeonInput.es.js +17 -17
  74. package/dist/components/user-input/input/NeonInput.es.js.map +1 -1
  75. package/dist/components/user-input/select/NeonSelect.cjs.js +1 -1
  76. package/dist/components/user-input/select/NeonSelect.cjs.js.map +1 -1
  77. package/dist/components/user-input/select/NeonSelect.es.js +75 -69
  78. package/dist/components/user-input/select/NeonSelect.es.js.map +1 -1
  79. package/dist/components/user-input/select/NeonSelect.vue.cjs.js +1 -1
  80. package/dist/components/user-input/select/NeonSelect.vue.cjs.js.map +1 -1
  81. package/dist/components/user-input/select/NeonSelect.vue.es.js +29 -21
  82. package/dist/components/user-input/select/NeonSelect.vue.es.js.map +1 -1
  83. package/dist/neon.cjs.js +1 -1
  84. package/dist/neon.es.js +96 -96
  85. package/dist/src/common/enums/NeonButtonStyle.d.ts +6 -1
  86. package/dist/src/common/enums/NeonDropdownStyle.d.ts +5 -2
  87. package/dist/src/common/enums/NeonMode.d.ts +3 -1
  88. package/dist/src/common/models/NeonMenuItem.d.ts +2 -2
  89. package/dist/src/common/utils/NeonModeUtils.d.ts +17 -21
  90. package/dist/src/components/feedback/linear-progress/NeonLinearProgress.d.ts +2 -6
  91. package/dist/src/components/navigation/dropdown-menu/NeonDropdownMenu.d.ts +5 -0
  92. package/dist/src/components/navigation/menu/NeonMenu.d.ts +9 -4
  93. package/dist/src/components/navigation/mobile-menu/NeonMobileMenu.d.ts +2630 -0
  94. package/dist/src/components/navigation/mobile-menu/NeonMobileMenu.vue.d.ts +2 -0
  95. package/dist/src/components/presentation/dropdown/NeonDropdown.d.ts +16 -16
  96. package/dist/src/components/presentation/icon/NeonIcon.d.ts +1 -1
  97. package/dist/src/components/presentation/tabs/NeonTabs.d.ts +2 -19
  98. package/dist/src/components/user-input/date-picker/NeonDatePicker.d.ts +21 -2
  99. package/dist/src/components/user-input/file/NeonFile.d.ts +8 -24
  100. package/dist/src/components/user-input/filter-list/NeonFilterList.d.ts +4 -12
  101. package/dist/src/components/user-input/input/NeonInput.d.ts +8 -2
  102. package/dist/src/components/user-input/search/NeonSearch.d.ts +77 -42
  103. package/dist/src/components/user-input/select/NeonSelect.d.ts +133 -203
  104. package/dist/src/neon.d.ts +1 -1
  105. package/package.json +1 -1
  106. package/src/sass/color-variables.scss +6 -4
  107. package/src/sass/components/_action-menu.scss +1 -1
  108. package/src/sass/components/_alert-container.scss +2 -2
  109. package/src/sass/components/_badge.scss +2 -2
  110. package/src/sass/components/_button.scss +25 -1
  111. package/src/sass/components/_card-list.scss +2 -2
  112. package/src/sass/components/_date-picker.scss +7 -7
  113. package/src/sass/components/_dropdown-menu.scss +2 -2
  114. package/src/sass/components/_expansion-panel.scss +2 -2
  115. package/src/sass/components/_filter-list.scss +6 -6
  116. package/src/sass/components/_icon.scss +1 -1
  117. package/src/sass/components/_image-carousel.scss +2 -1
  118. package/src/sass/components/_input.scss +11 -11
  119. package/src/sass/components/_label.scss +1 -1
  120. package/src/sass/components/_linear-progress.scss +1 -1
  121. package/src/sass/components/_list.scss +2 -2
  122. package/src/sass/components/_menu.scss +1 -1
  123. package/src/sass/components/_mobile-menu.scss +110 -0
  124. package/src/sass/components/_note.scss +1 -1
  125. package/src/sass/components/_notification-counter.scss +2 -2
  126. package/src/sass/components/_number.scss +2 -2
  127. package/src/sass/components/_range-slider.scss +1 -1
  128. package/src/sass/components/_search.scss +2 -2
  129. package/src/sass/components/_select.scss +16 -2
  130. package/src/sass/components/_slider.scss +1 -1
  131. package/src/sass/components/_stepper.scss +3 -3
  132. package/src/sass/components/_switch.scss +1 -1
  133. package/src/sass/components/_tabs.scss +46 -81
  134. package/src/sass/components/_toggle.scss +3 -3
  135. package/src/sass/components/_tooltip.scss +7 -7
  136. package/src/sass/components/_tree-menu.scss +6 -6
  137. package/src/sass/components/components.scss +1 -0
  138. package/src/sass/global/_base-html.scss +23 -15
  139. package/src/sass/global/_table.scss +4 -4
  140. package/src/sass/global/_typography.scss +2 -1
  141. package/src/sass/includes/_dependencies.scss +1 -0
  142. package/src/sass/includes/_outline.scss +1 -1
  143. package/src/sass/includes/_typography.scss +1 -1
  144. package/src/sass/palette.scss +6 -9
  145. package/src/sass/theme.scss +4 -0
  146. package/src/sass/variables.scss +63 -55
  147. package/dist/common/enums/NeonTabsStyle.cjs.js +0 -2
  148. package/dist/common/enums/NeonTabsStyle.cjs.js.map +0 -1
  149. package/dist/common/enums/NeonTabsStyle.es.js +0 -5
  150. package/dist/common/enums/NeonTabsStyle.es.js.map +0 -1
  151. package/dist/src/common/enums/NeonTabsStyle.d.ts +0 -9
@@ -1 +1 @@
1
- {"version":3,"file":"NeonDropdown.es.js","sources":["../../../../src/components/presentation/dropdown/NeonDropdown.ts?vue&type=script&src=true&lang.ts"],"sourcesContent":["import { defineComponent, defineExpose, onMounted, onUnmounted, ref, watch } from 'vue';\nimport { NeonDropdownPlacement } from '@/common/enums/NeonDropdownPlacement';\nimport { NeonDropdownPlacementUtils } from '@/common/utils/NeonDropdownPlacementUtils';\nimport { NeonClosableUtils } from '@/common/utils/NeonClosableUtils';\nimport { NeonSize } from '@/common/enums/NeonSize';\nimport { NeonFunctionalColor } from '@/common/enums/NeonFunctionalColor';\nimport { NeonDropdownStyle } from '@/common/enums/NeonDropdownStyle';\nimport NeonBadge from '@/components/presentation/badge/NeonBadge.vue';\nimport NeonButton from '@/components/user-input/button/NeonButton.vue';\nimport NeonExpansionIndicator from '@/components/presentation/expansion-indicator/NeonExpansionIndicator.vue';\n\n/**\n * <p>A general purpose dropdown component. This component consists of a button, to trigger the dropdown to open, and\n * the dropdown content which is displayed above the page when the user clicks the button.</p>\n * <p>This can be useful for secondary (perhaps more complex) actions for which there is not enough space on the page or\n * the action is asynchronous allowing the user to perform the action and continue what they were doing. Examples are\n * providing links to copy and letting the user send feedback.</p>\n * <p><strong>NeonDropdown</strong> is the basis for the <strong>NeonDropdownMenu</strong> component and the\n * <strong>NeonSelect</strong> form component.</p>\n */\nexport default defineComponent({\n name: 'NeonDropdown',\n components: {\n NeonBadge,\n NeonButton,\n NeonExpansionIndicator,\n },\n props: {\n /**\n * Id for the dropdown button.\n */\n id: { type: String },\n /**\n * Whether the dropdown is currently open.\n */\n modelValue: { type: Boolean, required: true },\n /**\n * The label for the dropdown button.\n */\n label: { type: String, default: null },\n /**\n * URL of image to display if the button style is a square or circular badge.\n */\n image: { type: String, default: null },\n /**\n * Badge image ALT text.\n */\n imageAlt: { type: String, default: null },\n /**\n * An icon to display on the dropdown button. This will be to the left of any label, but can also be used on its own.\n */\n icon: { type: String, default: null },\n /**\n * Show the dropdown button's indicator (chevron).\n */\n indicator: { type: Boolean, default: true },\n /**\n * Disable the dropdown button\n */\n disabled: { type: Boolean, default: false },\n /**\n * The size of the dropdown button - Small, Medium or Large.\n */\n size: { type: String as () => NeonSize, default: NeonSize.Medium },\n /**\n * The color of the dropdown button\n */\n color: { type: String as () => NeonFunctionalColor, default: NeonFunctionalColor.LowContrast },\n /**\n * The alternate color of the dropdown button (for gradient buttons).\n */\n alternateColor: { type: String as () => NeonFunctionalColor, default: null },\n /**\n * The style of the dropdown button\n */\n dropdownStyle: { type: String as () => NeonDropdownStyle, default: NeonDropdownStyle.SolidButton },\n /**\n * Placement of the dropdown contents.\n */\n placement: { type: String as () => NeonDropdownPlacement, default: NeonDropdownPlacement.BottomLeft },\n /**\n * Restrict placement to within this container.\n */\n placementContainer: { type: Object as () => HTMLElement, default: null },\n /**\n * Instead of opening on click (default), open on hover.\n */\n openOnHover: { type: Boolean, default: false },\n },\n emits: [\n /**\n * Emitted when the dropdown button is toggled.\n * @type {boolean} the open state of the dropdown.\n */\n 'update:modelValue',\n /**\n * Emitted on initialisation.\n * @type {NeonDropdownPlacement} the placement of the dropdown.\n */\n 'dropdown-placement',\n /**\n * Emitted when the dropdown button is blurred.\n * @type {void}\n */\n 'blur',\n /**\n * Emitted when the dropdown button is focussed.\n * @type {void}\n */\n 'focus',\n /**\n * emitted on initialisation\n * @type {HTMLElement} the reference to the HTMLElement for the dropdown menu button.\n */\n 'button-ref',\n ],\n setup(props, { emit }) {\n const dropdownButton = ref<HTMLElement | null>(null);\n const dropdownContent = ref<HTMLDivElement | null>(null);\n\n const dropdownPlacement = ref<NeonDropdownPlacement>(props.placement);\n const closableUtils = ref<NeonClosableUtils | null>(null);\n\n const onClose = () => {\n emit('update:modelValue', false);\n };\n\n const close = () => {\n if (props.modelValue) {\n onClose();\n }\n };\n\n const recalculatePlacement = () => {\n if (props.modelValue && dropdownButton.value && dropdownContent.value) {\n const previousValue = dropdownPlacement.value;\n dropdownPlacement.value = NeonDropdownPlacementUtils.calculatePlacement(\n dropdownButton.value,\n dropdownContent.value,\n props.placement,\n props.placementContainer,\n );\n\n if (previousValue !== dropdownPlacement.value) {\n emit('dropdown-placement', dropdownPlacement.value);\n }\n }\n };\n\n const toggleOpen = () => {\n if (!props.disabled && !props.openOnHover) {\n emit('update:modelValue', !props.modelValue);\n setTimeout(recalculatePlacement);\n }\n };\n\n const onBlur = () => {\n emit('blur');\n };\n\n const onFocus = () => {\n emit('focus');\n };\n\n onMounted(() => {\n if (!props.openOnHover && dropdownContent.value) {\n closableUtils.value = new NeonClosableUtils(dropdownContent.value, close);\n }\n window.addEventListener('resize', recalculatePlacement, { passive: true });\n window.addEventListener('scroll', recalculatePlacement, { passive: true });\n if (props.placementContainer) {\n props.placementContainer.addEventListener('scroll', recalculatePlacement, { passive: true });\n }\n });\n\n onUnmounted(() => {\n if (!props.openOnHover) {\n closableUtils.value && closableUtils.value.destroy();\n }\n window.removeEventListener('resize', recalculatePlacement);\n window.removeEventListener('scroll', recalculatePlacement);\n if (props.placementContainer) {\n props.placementContainer.removeEventListener('scroll', recalculatePlacement);\n }\n });\n\n watch(\n () => dropdownButton.value,\n (value) => emit('button-ref', value),\n { immediate: true },\n );\n\n defineExpose({ dropdownContent });\n\n return {\n dropdownButton,\n dropdownContent,\n dropdownPlacement,\n closableUtils,\n onClose,\n close,\n toggleOpen,\n onBlur,\n onFocus,\n };\n },\n});\n"],"names":["_sfc_main","defineComponent","NeonBadge","NeonButton","NeonExpansionIndicator","NeonSize","NeonFunctionalColor","NeonDropdownStyle","NeonDropdownPlacement","props","emit","dropdownButton","ref","dropdownContent","dropdownPlacement","closableUtils","onClose","close","recalculatePlacement","previousValue","NeonDropdownPlacementUtils","toggleOpen","onBlur","onFocus","onMounted","NeonClosableUtils","onUnmounted","watch","value","defineExpose"],"mappings":";;;;;;;;;;AAoBA,MAAAA,IAAeC,EAAgB;AAAA,EAC7B,MAAM;AAAA,EACN,YAAY;AAAA,IACV,WAAAC;AAAA,IACA,YAAAC;AAAA,IACA,wBAAAC;AAAA,EAAA;AAAA,EAEF,OAAO;AAAA;AAAA;AAAA;AAAA,I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AM,eACTM,EAAc,SAASA,EAAc,MAAM,QAAA,GAE7C,OAAO,oBAAoB,UAAUG,CAAoB,GACzD,OAAO,oBAAoB,UAAUA,CAAoB,GACrDT,EAAM,sBACRA,EAAM,mBAAmB,oBAAoB,UAAUS,CAAoB;AAAA,IAE/E,CAAC,GAEDS;AAAA,MACE,MAAMhB,EAAe;AAAA,MACrB,CAACiB,MAAUlB,EAAK,cAAckB,CAAK;AAAA,MACnC,EAAE,WAAW,GAAA;AAAA,IAAK,GAGpBC,EAAa,EAAE,iBAAAhB,GAAiB,GAEzB;AAAA,MACL,gBAAAF;AAAA,MACA,iBAAAE;AAAA,MACA,mBAAAC;AAAA,MACA,eAAAC;AAAA,MACA,SAAAC;AAAA,MACA,OAAAC;AAAA,MACA,YAAAI;AAAA,MACA,QAAAC;AAAA,MACA,SAAAC;AAAA,IAAA;AAAA,EAEJ;AACF,CAAC;"}
1
+ {"version":3,"file":"NeonDropdown.es.js","sources":["../../../../src/components/presentation/dropdown/NeonDropdown.ts?vue&type=script&src=true&lang.ts"],"sourcesContent":["import { computed, defineComponent, defineExpose, onMounted, onUnmounted, ref, watch } from 'vue';\nimport { NeonDropdownPlacement } from '@/common/enums/NeonDropdownPlacement';\nimport { NeonDropdownPlacementUtils } from '@/common/utils/NeonDropdownPlacementUtils';\nimport { NeonClosableUtils } from '@/common/utils/NeonClosableUtils';\nimport { NeonSize } from '@/common/enums/NeonSize';\nimport { NeonFunctionalColor } from '@/common/enums/NeonFunctionalColor';\nimport { NeonDropdownStyle } from '@/common/enums/NeonDropdownStyle';\nimport NeonBadge from '@/components/presentation/badge/NeonBadge.vue';\nimport NeonButton from '@/components/user-input/button/NeonButton.vue';\nimport NeonExpansionIndicator from '@/components/presentation/expansion-indicator/NeonExpansionIndicator.vue';\n\n/**\n * <p>A general purpose dropdown component. This component consists of a button, to trigger the dropdown to open, and\n * the dropdown content which is displayed above the page when the user clicks the button.</p>\n * <p>This can be useful for secondary (perhaps more complex) actions for which there is not enough space on the page or\n * the action is asynchronous allowing the user to perform the action and continue what they were doing. Examples are\n * providing links to copy and letting the user send feedback.</p>\n * <p><strong>NeonDropdown</strong> is the basis for the <strong>NeonDropdownMenu</strong> component and the\n * <strong>NeonSelect</strong> form component.</p>\n */\nexport default defineComponent({\n name: 'NeonDropdown',\n components: {\n NeonBadge,\n NeonButton,\n NeonExpansionIndicator,\n },\n props: {\n /**\n * Id for the dropdown button.\n */\n id: { type: String },\n /**\n * Whether the dropdown is currently open.\n */\n modelValue: { type: Boolean, required: true },\n /**\n * The label for the dropdown button.\n */\n label: { type: String, default: null },\n /**\n * URL of image to display if the button style is a square or circular badge.\n */\n image: { type: String, default: null },\n /**\n * Badge image ALT text.\n */\n imageAlt: { type: String, default: null },\n /**\n * An icon to display on the dropdown button. This will be to the left of any label, but can also be used on its own.\n */\n icon: { type: String, default: null },\n /**\n * Show the dropdown button's indicator (chevron).\n */\n indicator: { type: Boolean, default: true },\n /**\n * Disable the dropdown button\n */\n disabled: { type: Boolean, default: false },\n /**\n * The size of the dropdown button - Small, Medium or Large.\n */\n size: { type: String as () => NeonSize, default: NeonSize.Medium },\n /**\n * The color of the dropdown button\n */\n color: { type: String as () => NeonFunctionalColor, default: NeonFunctionalColor.LowContrast },\n /**\n * The alternate color of the dropdown button (for gradient buttons).\n */\n alternateColor: { type: String as () => NeonFunctionalColor, default: null },\n /**\n * The style of the dropdown button\n */\n dropdownStyle: { type: String as () => NeonDropdownStyle, default: NeonDropdownStyle.SolidButton },\n /**\n * Placement of the dropdown contents.\n */\n placement: { type: String as () => NeonDropdownPlacement, default: NeonDropdownPlacement.BottomLeft },\n /**\n * Restrict placement to within this container.\n */\n placementContainer: { type: Object as () => HTMLElement, default: null },\n /**\n * Instead of opening on click (default), open on hover.\n */\n openOnHover: { type: Boolean, default: false },\n },\n emits: [\n /**\n * Emitted when the dropdown button is toggled.\n * @type {boolean} the open state of the dropdown.\n */\n 'update:modelValue',\n /**\n * Emitted on initialisation.\n * @type {NeonDropdownPlacement} the placement of the dropdown.\n */\n 'dropdown-placement',\n /**\n * Emitted when the dropdown button is blurred.\n * @type {void}\n */\n 'blur',\n /**\n * Emitted when the dropdown button is focussed.\n * @type {void}\n */\n 'focus',\n /**\n * emitted on initialisation\n * @type {HTMLElement} the reference to the HTMLElement for the dropdown menu button.\n */\n 'button-ref',\n ],\n setup(props, { emit }) {\n const dropdownButton = ref<HTMLElement | null>(null);\n const dropdownContent = ref<HTMLDivElement | null>(null);\n\n const dropdownPlacement = ref<NeonDropdownPlacement>(props.placement);\n const closableUtils = ref<NeonClosableUtils | null>(null);\n\n const onClose = () => {\n emit('update:modelValue', false);\n };\n\n const close = () => {\n if (props.modelValue) {\n onClose();\n }\n };\n\n const recalculatePlacement = () => {\n if (props.modelValue && dropdownButton.value && dropdownContent.value) {\n const previousValue = dropdownPlacement.value;\n dropdownPlacement.value = NeonDropdownPlacementUtils.calculatePlacement(\n dropdownButton.value,\n dropdownContent.value,\n props.placement,\n props.placementContainer,\n );\n\n if (previousValue !== dropdownPlacement.value) {\n emit('dropdown-placement', dropdownPlacement.value);\n }\n }\n };\n\n const toggleOpen = () => {\n if (!props.disabled && !props.openOnHover) {\n emit('update:modelValue', !props.modelValue);\n setTimeout(recalculatePlacement);\n }\n };\n\n const isButtonStyle = computed<boolean>(() => props.dropdownStyle?.indexOf('badge') === -1);\n\n const onBlur = () => {\n emit('blur');\n };\n\n const onFocus = () => {\n emit('focus');\n };\n\n onMounted(() => {\n if (!props.openOnHover && dropdownContent.value) {\n closableUtils.value = new NeonClosableUtils(dropdownContent.value, close);\n }\n window.addEventListener('resize', recalculatePlacement, { passive: true });\n window.addEventListener('scroll', recalculatePlacement, { passive: true });\n if (props.placementContainer) {\n props.placementContainer.addEventListener('scroll', recalculatePlacement, { passive: true });\n }\n });\n\n onUnmounted(() => {\n if (!props.openOnHover) {\n closableUtils.value && closableUtils.value.destroy();\n }\n window.removeEventListener('resize', recalculatePlacement);\n window.removeEventListener('scroll', recalculatePlacement);\n if (props.placementContainer) {\n props.placementContainer.removeEventListener('scroll', recalculatePlacement);\n }\n });\n\n watch(\n () => dropdownButton.value,\n (value) => emit('button-ref', value),\n { immediate: true },\n );\n\n defineExpose({ dropdownContent });\n\n return {\n dropdownButton,\n dropdownContent,\n dropdownPlacement,\n closableUtils,\n isButtonStyle,\n onClose,\n close,\n toggleOpen,\n onBlur,\n onFocus,\n };\n },\n});\n"],"names":["_sfc_main","defineComponent","NeonBadge","NeonButton","NeonExpansionIndicator","NeonSize","NeonFunctionalColor","NeonDropdownStyle","NeonDropdownPlacement","props","emit","dropdownButton","ref","dropdownContent","dropdownPlacement","closableUtils","onClose","close","recalculatePlacement","previousValue","NeonDropdownPlacementUtils","toggleOpen","isButtonStyle","computed","_a","onBlur","onFocus","onMounted","NeonClosableUtils","onUnmounted","watch","value","defineExpose"],"mappings":";;;;;;;;;;AAoBA,MAAAA,IAAeC,EAAgB;AAAA,EAC7B,MAAM;AAAA,EACN,YAAY;AAAA,IACV,WAAAC;AAAA,IACA,YAAAC;AAAA,IACA,wBAAAC;AAAA,EAAA;AAAA,EAEF,OAAO;AAAA;AAAA;AAAA;AAAA,IAIL,IAAI,EAAE,MAAM,OAAA;AAAA;AAAA;AAAA;AAAA,IAIZ,YAAY,EAAE,MAAM,SAAS,UAAU,GAAA;AAAA;AAAA;AAAA;AAAA,IAIvC,OAAO,EAAE,MAAM,QAAQ,SAAS,KAAA;AAAA;AAAA;AAAA;AAAA,IAIhC,OAAO,EAAE,MAAM,QAAQ,SAAS,KAAA;AAAA;AAAA;AAAA;AAAA,IAIhC,UAAU,EAAE,MAAM,QAAQ,SAAS,KAAA;AAAA;AAAA;AAAA;AAAA,IAInC,MAAM,EAAE,MAAM,QAAQ,SAAS,KAAA;AAAA;AAAA;AAAA;AAAA,IAI/B,WAAW,EAAE,MAAM,SAAS,SAAS,GAAA;AAAA;AAAA;AAAA;AAAA,IAIrC,UAAU,EAAE,MAAM,SAAS,SAAS,GAAA;AAAA;AAAA;AAA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MACA,eAAAC;AAAA,MACA,eAAAO;AAAA,MACA,SAAAN;AAAA,MACA,OAAAC;AAAA,MACA,YAAAI;AAAA,MACA,QAAAI;AAAA,MACA,SAAAC;AAAA,IAAA;AAAA,EAEJ;AACF,CAAC;"}
@@ -1,2 +1,2 @@
1
- "use strict";const i=require("./NeonDropdown.cjs.js"),o=require("vue"),a=require("../../../_virtual/_plugin-vue_export-helper.cjs.js"),s={ref:"dropdownButton"},p={key:0,class:"neon-dropdown__button-wrapper"},u=["id","tabindex"];function w(e,n,g,m,v,c){const r=o.resolveComponent("neon-button"),l=o.resolveComponent("neon-badge"),t=o.resolveComponent("neon-expansion-indicator");return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass([[{"neon-dropdown--with-indicator":e.indicator,"neon-dropdown--open":e.modelValue,"neon-dropdown--open-on-hover":e.openOnHover,"neon-dropdown--icon-only":e.icon&&!e.label,"neon-dropdown--disabled":e.disabled},`neon-dropdown--${e.size}`,`neon-dropdown--${e.color}`],"neon-dropdown"])},[o.createElementVNode("div",s,[o.renderSlot(e.$slots,"dropdown-button",{},()=>[e.dropdownStyle==="text-button"||e.dropdownStyle==="solid-button"?(o.openBlock(),o.createElementBlock("div",p,[o.createVNode(r,{id:e.id,"alternate-color":e.alternateColor,"aria-expanded":e.modelValue,"button-style":e.dropdownStyle==="text-button"?"text":"solid",color:e.color,disabled:e.disabled,icon:e.icon,indicator:e.indicator,"indicator-expanded":e.modelValue,label:e.label,size:e.size,"aria-haspopup":"true",class:"neon-dropdown__button",onBlur:n[0]||(n[0]=d=>e.onBlur()),onFocus:n[1]||(n[1]=d=>e.onFocus()),onClickCapture:o.withModifiers(e.toggleOpen,["stop","prevent"]),onKeydownCapture:[o.withKeys(o.withModifiers(e.toggleOpen,["stop","prevent"]),["enter"]),o.withKeys(o.withModifiers(e.toggleOpen,["stop","prevent"]),["space"])]},null,8,["id","alternate-color","aria-expanded","button-style","color","disabled","icon","indicator","indicator-expanded","label","size","onClickCapture","onKeydownCapture"])])):(o.openBlock(),o.createElementBlock("div",{key:1,id:e.id,ref:"dropdownButton",tabindex:e.disabled?void 0:0,class:"neon-dropdown__badge",role:"button",onClickCapture:n[2]||(n[2]=o.withModifiers((...d)=>e.toggleOpen&&e.toggleOpen(...d),["stop","prevent"])),onKeydownCapture:[n[3]||(n[3]=o.withKeys(o.withModifiers((...d)=>e.toggleOpen&&e.toggleOpen(...d),["stop","prevent"]),["enter"])),n[4]||(n[4]=o.withKeys(o.withModifiers((...d)=>e.toggleOpen&&e.toggleOpen(...d),["stop","prevent"]),["space"]))]},[o.createVNode(l,{"alternate-color":e.alternateColor,circular:e.dropdownStyle==="circular-badge",color:e.color,disabled:e.disabled,icon:e.icon,image:e.image,imageAlt:e.imageAlt,label:e.label,size:e.size},null,8,["alternate-color","circular","color","disabled","icon","image","imageAlt","label","size"]),e.indicator?(o.openBlock(),o.createBlock(t,{key:0,color:e.color,disabled:e.disabled,expanded:e.modelValue,class:"neon-button__indicator"},null,8,["color","disabled","expanded"])):o.createCommentVNode("",!0)],40,u))])],512),n[5]||(n[5]=o.createElementVNode("div",{class:"neon-dropdown__click-blocker"},null,-1)),o.withDirectives(o.createElementVNode("div",{ref:"dropdownContent",class:o.normalizeClass([`neon-dropdown__content--${e.dropdownPlacement}`,"neon-dropdown__content"])},[o.renderSlot(e.$slots,"default")],2),[[o.vShow,e.openOnHover||e.modelValue]])],2)}const b=a(i,[["render",w]]);module.exports=b;
1
+ "use strict";const t=require("./NeonDropdown.cjs.js"),o=require("vue"),a=require("../../../_virtual/_plugin-vue_export-helper.cjs.js"),s={ref:"dropdownButton"},p={key:0,class:"neon-dropdown__button-wrapper"},u=["id","tabindex"];function w(e,n,g,m,c,v){const r=o.resolveComponent("neon-button"),l=o.resolveComponent("neon-badge"),i=o.resolveComponent("neon-expansion-indicator");return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass([[{"neon-dropdown--with-indicator":e.indicator,"neon-dropdown--open":e.modelValue,"neon-dropdown--open-on-hover":e.openOnHover,"neon-dropdown--icon-only":e.icon&&!e.label,"neon-dropdown--disabled":e.disabled},`neon-dropdown--${e.size}`,`neon-dropdown--${e.color}`],"neon-dropdown"])},[o.createElementVNode("div",s,[o.renderSlot(e.$slots,"dropdown-button",{},()=>[e.isButtonStyle?(o.openBlock(),o.createElementBlock("div",p,[o.createVNode(r,{id:e.id,"alternate-color":e.alternateColor,"aria-expanded":e.modelValue,"button-style":e.dropdownStyle,color:e.color,disabled:e.disabled,icon:e.icon,indicator:e.indicator,"indicator-expanded":e.modelValue,label:e.label,size:e.size,"aria-haspopup":"true",class:"neon-dropdown__button",onBlur:n[0]||(n[0]=d=>e.onBlur()),onFocus:n[1]||(n[1]=d=>e.onFocus()),onClickCapture:o.withModifiers(e.toggleOpen,["stop","prevent"]),onKeydownCapture:[o.withKeys(o.withModifiers(e.toggleOpen,["stop","prevent"]),["enter"]),o.withKeys(o.withModifiers(e.toggleOpen,["stop","prevent"]),["space"])]},null,8,["id","alternate-color","aria-expanded","button-style","color","disabled","icon","indicator","indicator-expanded","label","size","onClickCapture","onKeydownCapture"])])):(o.openBlock(),o.createElementBlock("div",{key:1,id:e.id,ref:"dropdownButton",tabindex:e.disabled?void 0:0,class:"neon-dropdown__badge",role:"button",onClickCapture:n[2]||(n[2]=o.withModifiers((...d)=>e.toggleOpen&&e.toggleOpen(...d),["stop","prevent"])),onKeydownCapture:[n[3]||(n[3]=o.withKeys(o.withModifiers((...d)=>e.toggleOpen&&e.toggleOpen(...d),["stop","prevent"]),["enter"])),n[4]||(n[4]=o.withKeys(o.withModifiers((...d)=>e.toggleOpen&&e.toggleOpen(...d),["stop","prevent"]),["space"]))]},[o.createVNode(l,{"alternate-color":e.alternateColor,circular:e.dropdownStyle==="circular-badge",color:e.color,disabled:e.disabled,icon:e.icon,image:e.image,imageAlt:e.imageAlt,label:e.label,size:e.size},null,8,["alternate-color","circular","color","disabled","icon","image","imageAlt","label","size"]),e.indicator?(o.openBlock(),o.createBlock(i,{key:0,color:e.color,disabled:e.disabled,expanded:e.modelValue,class:"neon-button__indicator"},null,8,["color","disabled","expanded"])):o.createCommentVNode("",!0)],40,u))])],512),n[5]||(n[5]=o.createElementVNode("div",{class:"neon-dropdown__click-blocker"},null,-1)),o.withDirectives(o.createElementVNode("div",{ref:"dropdownContent",class:o.normalizeClass([`neon-dropdown__content--${e.dropdownPlacement}`,"neon-dropdown__content"])},[o.renderSlot(e.$slots,"default")],2),[[o.vShow,e.openOnHover||e.modelValue]])],2)}const b=a(t,[["render",w]]);module.exports=b;
2
2
  //# sourceMappingURL=NeonDropdown.vue.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NeonDropdown.vue.cjs.js","sources":["../../../../src/components/presentation/dropdown/NeonDropdown.vue"],"sourcesContent":["<template>\n <div\n :class=\"[\n {\n 'neon-dropdown--with-indicator': indicator,\n 'neon-dropdown--open': modelValue,\n 'neon-dropdown--open-on-hover': openOnHover,\n 'neon-dropdown--icon-only': icon && !label,\n 'neon-dropdown--disabled': disabled,\n },\n `neon-dropdown--${size}`,\n `neon-dropdown--${color}`,\n ]\"\n class=\"neon-dropdown\"\n >\n <div ref=\"dropdownButton\">\n <!-- @slot optionally replace the dropdown button with a custom control -->\n <slot name=\"dropdown-button\">\n <div\n v-if=\"dropdownStyle === 'text-button' || dropdownStyle === 'solid-button'\"\n class=\"neon-dropdown__button-wrapper\"\n >\n <neon-button\n :id=\"id\"\n :alternate-color=\"alternateColor\"\n :aria-expanded=\"modelValue\"\n :button-style=\"dropdownStyle === 'text-button' ? 'text' : 'solid'\"\n :color=\"color\"\n :disabled=\"disabled\"\n :icon=\"icon\"\n :indicator=\"indicator\"\n :indicator-expanded=\"modelValue\"\n :label=\"label\"\n :size=\"size\"\n aria-haspopup=\"true\"\n class=\"neon-dropdown__button\"\n @blur=\"onBlur()\"\n @focus=\"onFocus()\"\n @click.stop.prevent.capture=\"toggleOpen\"\n @keydown.enter.stop.prevent.capture=\"toggleOpen\"\n @keydown.space.stop.prevent.capture=\"toggleOpen\"\n />\n </div>\n <div\n v-else\n :id=\"id\"\n ref=\"dropdownButton\"\n :tabindex=\"!disabled ? 0 : undefined\"\n class=\"neon-dropdown__badge\"\n role=\"button\"\n @click.stop.prevent.capture=\"toggleOpen\"\n @keydown.enter.stop.prevent.capture=\"toggleOpen\"\n @keydown.space.stop.prevent.capture=\"toggleOpen\"\n >\n <neon-badge\n :alternate-color=\"alternateColor\"\n :circular=\"dropdownStyle === 'circular-badge'\"\n :color=\"color\"\n :disabled=\"disabled\"\n :icon=\"icon\"\n :image=\"image\"\n :imageAlt=\"imageAlt\"\n :label=\"label\"\n :size=\"size\"\n />\n <neon-expansion-indicator\n v-if=\"indicator\"\n :color=\"color\"\n :disabled=\"disabled\"\n :expanded=\"modelValue\"\n class=\"neon-button__indicator\"\n />\n </div>\n </slot>\n </div>\n <div class=\"neon-dropdown__click-blocker\" />\n <div\n v-show=\"openOnHover || modelValue\"\n ref=\"dropdownContent\"\n :class=\"`neon-dropdown__content--${dropdownPlacement}`\"\n class=\"neon-dropdown__content\"\n >\n <!-- @slot The content of the open dropdown -->\n <slot></slot>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" src=\"./NeonDropdown.ts\"></script>\n"],"names":["_hoisted_1","_createElementBlock","_normalizeClass","_ctx","_createElementVNode","_renderSlot","_openBlock","_hoisted_2","_createVNode","_component_neon_button","args","_component_neon_badge","_createBlock","_component_neon_expansion_indicator","_vShow"],"mappings":"uIAeSA,EAAA,CAAA,IAAI,gBAAgB,WAKnB,MAAM,gOAnBdC,EAAAA,mBAoFM,MAAA,CAnFH,MAAKC,EAAAA,eAAA,CAAA,kCAAqDC,EAAA,gCAA0CA,EAAA,0CAAoDA,EAAA,YAAiD,2BAAAA,EAAA,OAASA,EAAA,gCAA0CA,EAAA,4BAA2CA,EAAA,IAAI,qBAA4BA,EAAA,KAAK,IAWvU,eAAe,CAAA,IAErBC,EAAAA,mBA2DM,MA3DNJ,EA2DM,CAzDJK,EAAAA,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AGDA,EAAA,yBADRS,EAAAA,YAMEC,EAAA,OAJC,MAAOV,EAAA,MACP,SAAUA,EAAA,SACV,SAAUA,EAAA,WACX,MAAM,2HAKdC,EAAAA,mBAA4C,MAAA,CAAvC,MAAM,8BAA8B,EAAA,KAAA,EAAA,oBACzCA,EAAAA,mBAQM,MAAA,CANJ,IAAI,kBACH,MAAKF,EAAAA,eAAA,CAAA,2BAA6BC,EAAA,iBAAiB,GAC9C,wBAAwB,CAAA,IAG9BE,aAAaF,EAAA,OAAA,SAAA,OANL,CAAAW,QAAAX,EAAA,aAAeA,EAAA,UAAU"}
1
+ {"version":3,"file":"NeonDropdown.vue.cjs.js","sources":["../../../../src/components/presentation/dropdown/NeonDropdown.vue"],"sourcesContent":["<template>\n <div\n :class=\"[\n {\n 'neon-dropdown--with-indicator': indicator,\n 'neon-dropdown--open': modelValue,\n 'neon-dropdown--open-on-hover': openOnHover,\n 'neon-dropdown--icon-only': icon && !label,\n 'neon-dropdown--disabled': disabled,\n },\n `neon-dropdown--${size}`,\n `neon-dropdown--${color}`,\n ]\"\n class=\"neon-dropdown\"\n >\n <div ref=\"dropdownButton\">\n <!-- @slot optionally replace the dropdown button with a custom control -->\n <slot name=\"dropdown-button\">\n <div v-if=\"isButtonStyle\" class=\"neon-dropdown__button-wrapper\">\n <neon-button\n :id=\"id\"\n :alternate-color=\"alternateColor\"\n :aria-expanded=\"modelValue\"\n :button-style=\"dropdownStyle\"\n :color=\"color\"\n :disabled=\"disabled\"\n :icon=\"icon\"\n :indicator=\"indicator\"\n :indicator-expanded=\"modelValue\"\n :label=\"label\"\n :size=\"size\"\n aria-haspopup=\"true\"\n class=\"neon-dropdown__button\"\n @blur=\"onBlur()\"\n @focus=\"onFocus()\"\n @click.stop.prevent.capture=\"toggleOpen\"\n @keydown.enter.stop.prevent.capture=\"toggleOpen\"\n @keydown.space.stop.prevent.capture=\"toggleOpen\"\n />\n </div>\n <div\n v-else\n :id=\"id\"\n ref=\"dropdownButton\"\n :tabindex=\"!disabled ? 0 : undefined\"\n class=\"neon-dropdown__badge\"\n role=\"button\"\n @click.stop.prevent.capture=\"toggleOpen\"\n @keydown.enter.stop.prevent.capture=\"toggleOpen\"\n @keydown.space.stop.prevent.capture=\"toggleOpen\"\n >\n <neon-badge\n :alternate-color=\"alternateColor\"\n :circular=\"dropdownStyle === 'circular-badge'\"\n :color=\"color\"\n :disabled=\"disabled\"\n :icon=\"icon\"\n :image=\"image\"\n :imageAlt=\"imageAlt\"\n :label=\"label\"\n :size=\"size\"\n />\n <neon-expansion-indicator\n v-if=\"indicator\"\n :color=\"color\"\n :disabled=\"disabled\"\n :expanded=\"modelValue\"\n class=\"neon-button__indicator\"\n />\n </div>\n </slot>\n </div>\n <div class=\"neon-dropdown__click-blocker\" />\n <div\n v-show=\"openOnHover || modelValue\"\n ref=\"dropdownContent\"\n :class=\"`neon-dropdown__content--${dropdownPlacement}`\"\n class=\"neon-dropdown__content\"\n >\n <!-- @slot The content of the open dropdown -->\n <slot></slot>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" src=\"./NeonDropdown.ts\"></script>\n"],"names":["_hoisted_1","_createElementBlock","_normalizeClass","_ctx","_createElementVNode","_renderSlot","_openBlock","_hoisted_2","_createVNode","_component_neon_button","args","_component_neon_badge","_createBlock","_component_neon_expansion_indicator","_vShow"],"mappings":"uIAeSA,EAAA,CAAA,IAAI,gBAAgB,WAGK,MAAM,gOAjBtCC,EAAAA,mBAiFM,MAAA,CAhFH,MAAKC,EAAAA,eAAA,CAAA,kCAAqDC,EAAA,gCAA0CA,EAAA,0CAAoDA,EAAA,YAAiD,2BAAAA,EAAA,OAASA,EAAA,gCAA0CA,EAAA,4BAA2CA,EAAA,IAAI,qBAA4BA,EAAA,KAAK,IAWvU,eAAe,CAAA,IAErBC,EAAAA,mBAwDM,MAxDNJ,EAwDM,CAtDJK,EAAAA,WAqDOF,8BArDP,IAqDO,CApDMA,EAAA,eAAXG,EAAAA,YAAAL,EAAAA,mBAqBM,MAr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A4C,MAAA,CAAvC,MAAM,8BAA8B,EAAA,KAAA,EAAA,oBACzCA,EAAAA,mBAQM,MAAA,CANJ,IAAI,kBACH,MAAKF,EAAAA,eAAA,CAAA,2BAA6BC,EAAA,iBAAiB,GAC9C,wBAAwB,CAAA,IAG9BE,aAAaF,EAAA,OAAA,SAAA,OANL,CAAAW,QAAAX,EAAA,aAAeA,EAAA,UAAU"}
@@ -1,13 +1,13 @@
1
1
  import m from "./NeonDropdown.es.js";
2
- import { resolveComponent as i, openBlock as r, createElementBlock as t, normalizeClass as p, createElementVNode as a, renderSlot as s, createVNode as u, withKeys as l, withModifiers as d, createBlock as v, createCommentVNode as C, withDirectives as f, vShow as y } from "vue";
2
+ import { resolveComponent as i, openBlock as r, createElementBlock as a, normalizeClass as p, createElementVNode as t, renderSlot as s, createVNode as u, withKeys as l, withModifiers as d, createBlock as v, createCommentVNode as C, withDirectives as f, vShow as y } from "vue";
3
3
  import k from "../../../_virtual/_plugin-vue_export-helper.es.js";
4
4
  const O = { ref: "dropdownButton" }, $ = {
5
5
  key: 0,
6
6
  class: "neon-dropdown__button-wrapper"
7
7
  }, c = ["id", "tabindex"];
8
- function z(o, e, V, B, S, K) {
8
+ function z(o, e, B, V, S, K) {
9
9
  const b = i("neon-button"), w = i("neon-badge"), g = i("neon-expansion-indicator");
10
- return r(), t("div", {
10
+ return r(), a("div", {
11
11
  class: p([[
12
12
  {
13
13
  "neon-dropdown--with-indicator": o.indicator,
@@ -20,14 +20,14 @@ function z(o, e, V, B, S, K) {
20
20
  `neon-dropdown--${o.color}`
21
21
  ], "neon-dropdown"])
22
22
  }, [
23
- a("div", O, [
23
+ t("div", O, [
24
24
  s(o.$slots, "dropdown-button", {}, () => [
25
- o.dropdownStyle === "text-button" || o.dropdownStyle === "solid-button" ? (r(), t("div", $, [
25
+ o.isButtonStyle ? (r(), a("div", $, [
26
26
  u(b, {
27
27
  id: o.id,
28
28
  "alternate-color": o.alternateColor,
29
29
  "aria-expanded": o.modelValue,
30
- "button-style": o.dropdownStyle === "text-button" ? "text" : "solid",
30
+ "button-style": o.dropdownStyle,
31
31
  color: o.color,
32
32
  disabled: o.disabled,
33
33
  icon: o.icon,
@@ -45,7 +45,7 @@ function z(o, e, V, B, S, K) {
45
45
  l(d(o.toggleOpen, ["stop", "prevent"]), ["space"])
46
46
  ]
47
47
  }, null, 8, ["id", "alternate-color", "aria-expanded", "button-style", "color", "disabled", "icon", "indicator", "indicator-expanded", "label", "size", "onClickCapture", "onKeydownCapture"])
48
- ])) : (r(), t("div", {
48
+ ])) : (r(), a("div", {
49
49
  key: 1,
50
50
  id: o.id,
51
51
  ref: "dropdownButton",
@@ -79,8 +79,8 @@ function z(o, e, V, B, S, K) {
79
79
  ], 40, c))
80
80
  ])
81
81
  ], 512),
82
- e[5] || (e[5] = a("div", { class: "neon-dropdown__click-blocker" }, null, -1)),
83
- f(a("div", {
82
+ e[5] || (e[5] = t("div", { class: "neon-dropdown__click-blocker" }, null, -1)),
83
+ f(t("div", {
84
84
  ref: "dropdownContent",
85
85
  class: p([`neon-dropdown__content--${o.dropdownPlacement}`, "neon-dropdown__content"])
86
86
  }, [
@@ -1 +1 @@
1
- {"version":3,"file":"NeonDropdown.vue.es.js","sources":["../../../../src/components/presentation/dropdown/NeonDropdown.vue"],"sourcesContent":["<template>\n <div\n :class=\"[\n {\n 'neon-dropdown--with-indicator': indicator,\n 'neon-dropdown--open': modelValue,\n 'neon-dropdown--open-on-hover': openOnHover,\n 'neon-dropdown--icon-only': icon && !label,\n 'neon-dropdown--disabled': disabled,\n },\n `neon-dropdown--${size}`,\n `neon-dropdown--${color}`,\n ]\"\n class=\"neon-dropdown\"\n >\n <div ref=\"dropdownButton\">\n <!-- @slot optionally replace the dropdown button with a custom control -->\n <slot name=\"dropdown-button\">\n <div\n v-if=\"dropdownStyle === 'text-button' || dropdownStyle === 'solid-button'\"\n class=\"neon-dropdown__button-wrapper\"\n >\n <neon-button\n :id=\"id\"\n :alternate-color=\"alternateColor\"\n :aria-expanded=\"modelValue\"\n :button-style=\"dropdownStyle === 'text-button' ? 'text' : 'solid'\"\n :color=\"color\"\n :disabled=\"disabled\"\n :icon=\"icon\"\n :indicator=\"indicator\"\n :indicator-expanded=\"modelValue\"\n :label=\"label\"\n :size=\"size\"\n aria-haspopup=\"true\"\n class=\"neon-dropdown__button\"\n @blur=\"onBlur()\"\n @focus=\"onFocus()\"\n @click.stop.prevent.capture=\"toggleOpen\"\n @keydown.enter.stop.prevent.capture=\"toggleOpen\"\n @keydown.space.stop.prevent.capture=\"toggleOpen\"\n />\n </div>\n <div\n v-else\n :id=\"id\"\n ref=\"dropdownButton\"\n :tabindex=\"!disabled ? 0 : undefined\"\n class=\"neon-dropdown__badge\"\n role=\"button\"\n @click.stop.prevent.capture=\"toggleOpen\"\n @keydown.enter.stop.prevent.capture=\"toggleOpen\"\n @keydown.space.stop.prevent.capture=\"toggleOpen\"\n >\n <neon-badge\n :alternate-color=\"alternateColor\"\n :circular=\"dropdownStyle === 'circular-badge'\"\n :color=\"color\"\n :disabled=\"disabled\"\n :icon=\"icon\"\n :image=\"image\"\n :imageAlt=\"imageAlt\"\n :label=\"label\"\n :size=\"size\"\n />\n <neon-expansion-indicator\n v-if=\"indicator\"\n :color=\"color\"\n :disabled=\"disabled\"\n :expanded=\"modelValue\"\n class=\"neon-button__indicator\"\n />\n </div>\n </slot>\n </div>\n <div class=\"neon-dropdown__click-blocker\" />\n <div\n v-show=\"openOnHover || modelValue\"\n ref=\"dropdownContent\"\n :class=\"`neon-dropdown__content--${dropdownPlacement}`\"\n class=\"neon-dropdown__content\"\n >\n <!-- @slot The content of the open dropdown -->\n <slot></slot>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" src=\"./NeonDropdown.ts\"></script>\n"],"names":["_hoisted_1","_createElementBlock","_normalizeClass","_ctx","_createElementVNode","_renderSlot","_openBlock","_hoisted_2","_createVNode","_component_neon_button","args","_component_neon_badge","_createBlock","_component_neon_expansion_indicator","_vShow"],"mappings":";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AA,UACN,MAAK;AAAA,sDACwBA,EAAA,cAAAA,EAAA,WAAA,GAAAO,CAAA,GAAU,CAAA,QAAA,SAAA,CAAA;AAAA;0CACFP,EAAA,cAAAA,EAAA,WAAA,GAAAO,CAAA,GAAU,CAAA,QAAA,SAAA,CAAA,GAAA,CAAA,OAAA,CAAA;AAAA,0CACVP,EAAA,cAAAA,EAAA,WAAA,GAAAO,CAAA,GAAU,CAAA,QAAA,SAAA,CAAA,GAAA,CAAA,OAAA,CAAA;AAAA;;UAE/CF,EAUEG,GAAA;AAAA,YATC,mBAAiBR,EAAA;AAAA,YACjB,UAAUA,EAAA,kBAAa;AAAA,YACvB,OAAOA,EAAA;AAAA,YACP,UAAUA,EAAA;AAAA,YACV,MAAMA,EAAA;AAAA,YACN,OAAOA,EAAA;AAAA,YACP,UAAUA,EAAA;AAAA,YACV,OAAOA,EAAA;AAAA,YACP,MAAMA,EAAA;AAAA;UAGDA,EAAA,kBADRS,EAMEC,GAAA;AAAA;YAJC,OAAOV,EAAA;AAAA,YACP,UAAUA,EAAA;AAAA,YACV,UAAUA,EAAA;AAAA,YACX,OAAM;AAAA;;;;oBAKdC,EAA4C,OAAA,EAAvC,OAAM,+BAA8B,GAAA,MAAA,EAAA;AAAA,MACzCA,EAQM,OAAA;AAAA,MANJ,KAAI;AAAA,MACH,OAAKF,EAAA,CAAA,2BAA6BC,EAAA,iBAAiB,IAC9C,wBAAwB,CAAA;AAAA;MAG9BE,EAAaF,EAAA,QAAA,SAAA;AAAA;MANL,CAAAW,GAAAX,EAAA,eAAeA,EAAA,UAAU;AAAA;;;;"}
1
+ {"version":3,"file":"NeonDropdown.vue.es.js","sources":["../../../../src/components/presentation/dropdown/NeonDropdown.vue"],"sourcesContent":["<template>\n <div\n :class=\"[\n {\n 'neon-dropdown--with-indicator': indicator,\n 'neon-dropdown--open': modelValue,\n 'neon-dropdown--open-on-hover': openOnHover,\n 'neon-dropdown--icon-only': icon && !label,\n 'neon-dropdown--disabled': disabled,\n },\n `neon-dropdown--${size}`,\n `neon-dropdown--${color}`,\n ]\"\n class=\"neon-dropdown\"\n >\n <div ref=\"dropdownButton\">\n <!-- @slot optionally replace the dropdown button with a custom control -->\n <slot name=\"dropdown-button\">\n <div v-if=\"isButtonStyle\" class=\"neon-dropdown__button-wrapper\">\n <neon-button\n :id=\"id\"\n :alternate-color=\"alternateColor\"\n :aria-expanded=\"modelValue\"\n :button-style=\"dropdownStyle\"\n :color=\"color\"\n :disabled=\"disabled\"\n :icon=\"icon\"\n :indicator=\"indicator\"\n :indicator-expanded=\"modelValue\"\n :label=\"label\"\n :size=\"size\"\n aria-haspopup=\"true\"\n class=\"neon-dropdown__button\"\n @blur=\"onBlur()\"\n @focus=\"onFocus()\"\n @click.stop.prevent.capture=\"toggleOpen\"\n @keydown.enter.stop.prevent.capture=\"toggleOpen\"\n @keydown.space.stop.prevent.capture=\"toggleOpen\"\n />\n </div>\n <div\n v-else\n :id=\"id\"\n ref=\"dropdownButton\"\n :tabindex=\"!disabled ? 0 : undefined\"\n class=\"neon-dropdown__badge\"\n role=\"button\"\n @click.stop.prevent.capture=\"toggleOpen\"\n @keydown.enter.stop.prevent.capture=\"toggleOpen\"\n @keydown.space.stop.prevent.capture=\"toggleOpen\"\n >\n <neon-badge\n :alternate-color=\"alternateColor\"\n :circular=\"dropdownStyle === 'circular-badge'\"\n :color=\"color\"\n :disabled=\"disabled\"\n :icon=\"icon\"\n :image=\"image\"\n :imageAlt=\"imageAlt\"\n :label=\"label\"\n :size=\"size\"\n />\n <neon-expansion-indicator\n v-if=\"indicator\"\n :color=\"color\"\n :disabled=\"disabled\"\n :expanded=\"modelValue\"\n class=\"neon-button__indicator\"\n />\n </div>\n </slot>\n </div>\n <div class=\"neon-dropdown__click-blocker\" />\n <div\n v-show=\"openOnHover || modelValue\"\n ref=\"dropdownContent\"\n :class=\"`neon-dropdown__content--${dropdownPlacement}`\"\n class=\"neon-dropdown__content\"\n >\n <!-- @slot The content of the open dropdown -->\n <slot></slot>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" src=\"./NeonDropdown.ts\"></script>\n"],"names":["_hoisted_1","_createElementBlock","_normalizeClass","_ctx","_createElementVNode","_renderSlot","_openBlock","_hoisted_2","_createVNode","_component_neon_button","args","_component_neon_badge","_createBlock","_component_neon_expansion_indicator","_vShow"],"mappings":";;;AAeS,MAAAA,IAAA,EAAA,KAAI,iBAAgB;;EAGK,OAAM;;;;cAjBtCC,EAiFM,OAAA;AAAA,IAhFH,OAAKC,EAAA,CAAA;AAAA;yCAAqDC,EAAA;AAAA,+BAA0CA,EAAA;AAAA,wCAAoDA,EAAA;AAAA,QAAiD,4BAAAA,EAAA,SAASA,EAAA;AAAA,mCAA0CA,EAAA;AAAA;wBAA2CA,EAAA,IAAI;AAAA,wBAA4BA,EAAA,KAAK;AAAA,OAWvU,eAAe,CAAA;AAAA;IAErBC,EAwDM,OAxDNJ,GAwDM;AAAA,MAtDJK,EAqDOF,iCArDP,MAqDO;AAAA,QApDMA,EAAA,iBAAXG,KAAAL,EAqBM,OArBNM,GAqBM;AAAA,UApBJC,EAmBEC,GAAA;AAAA,YAlBC,IAAIN,EAAA;AAAA,YACJ,mBAAiBA,EAAA;AAAA,YACjB,iBAAeA,EAAA;AAAA,YACf,gBAAcA,EAAA;AAAA,YACd,OAAOA,EAAA;AAAA,YACP,UAAUA,EAAA;AAAA,YACV,MAAMA,EAAA;AAAA,YACN,WAAWA,EAAA;AAAA,YACX,sBAAoBA,EAAA;AAAA,YACpB,OAAOA,EAAA;AAAA,YACP,MAAMA,EAAA;AAAA,YACP,iBAAc;AAAA,YACd,OAAM;AAAA,YACL,+BAAMA,EAAA,OAAM;AAAA,YACZ,gCAAOA,EAAA,QAAO;AAAA,8BACcA,EAAA,YAAU,CAAA,QAAA,SAAA,CAAA;AAAA;kBACFA,EAAA,YAAU,CAAA,QAAA,SAAA,CAAA,GAAA,CAAA,OAAA,CAAA;AAAA,kBACVA,EAAA,YAAU,CAAA,QAAA,SAAA,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ue&type=script&src=true&lang.ts"],"sourcesContent":["import { computed, defineComponent, useAttrs } from 'vue';\nimport { NeonIconRegistry } from '@/common/utils/NeonIconRegistry';\nimport type { NeonFunctionalColor } from '@/common/enums/NeonFunctionalColor';\n\n/**\n * <p>A component for rendering SVG images. These images are generally, but not limited to, <em>icons</em>. This\n * component can render any SVG of any size. Size is not restricted in the NeonIcon component but rather in the\n * components using the icons. Generally, when talking about icons, this component is only used to build other\n * components. But you may also find it useful for rendering SVG images, e.g. illustrations.</p>\n *\n * <p>There is an icon registry where strings containing SVGs can be registered with a name and that name can be used\n * with the NeonIcon component to render the image. Use the classes <em>neon-svg-fill</em> and <em>neon-svg--stroke</em>\n * in the SVG elements to automatically apply the functional colors.</p>\n *\n * <p>This provides the advantage of only registering the icons you actually need, dynamically switching colors in\n * Typescript/CSS without using a large icon font and not having to duplicate icon images to support multiple\n * color variations (including light and dark modes).</p>\n *\n * For more detailed information please see <a href=\"/presentation/icon\">Icons</a>.\n */\nexport default defineComponent({\n name: 'NeonIcon',\n props: {\n /**\n * The name of an icon registered in the icon registry.\n */\n name: { type: String, required: true },\n /**\n * The color to render the icon. By default, it will be the current text color (light text in dark mode or dark text in light mode).\n */\n color: { type: String as () => NeonFunctionalColor, default: null },\n /**\n * Set the icon color to the inverse text color\n */\n inverse: { type: Boolean, default: false },\n /**\n * Apply a disabled style to the icon\n */\n disabled: { type: Boolean, default: false },\n },\n setup(props) {\n const attrs = useAttrs();\n const icon = computed(() => {\n const _icon = NeonIconRegistry.getIcon(props.name);\n if (!_icon) {\n console.error(`icon ${props.name} doesn't exist! Register icon with NeonIconRegistry.addIcon(name, svg);`);\n }\n return _icon;\n });\n\n return {\n attrs,\n icon,\n };\n },\n});\n"],"names":["_sfc_main","defineComponent","props","attrs","useAttrs","icon","computed","_icon","NeonIconRegistry"],"mappings":"+FAoBAA,EAAeC,kBAAgB,CAC7B,KAAM,WACN,MAAO,CAIL,KAAM,CAAE,KAAM,OAAQ,SAAU,EAAA,EAIhC,MAAO,CAAE,KAAM,OAAqC,QAAS,IAAA,EAI7D,QAAS,CAAE,KAAM,QAAS,QAAS,EAAA,EAInC,SAAU,CAAE,KAAM,QAAS,QAAS,EAAA,CAAM,EAE5C,MAAMC,EAAO,CACX,MAAMC,EAAQC,EAAAA,SAAA,EACRC,EAAOC,EAAAA,SAAS,IAAM,CAC1B,MAAMC,EAAQC,EAAAA,iBAAiB,QAAQN,EAAM,IAAI,EACjD,OAAKK,GACH,QAAQ,MAAM,QAAQL,EAAM,IAAI,yEAAyE,EAEpGK,CACT,CAAC,EAED,MAAO,CACL,MAAAJ,EACA,KAAAE,CAAA,CAEJ,CACF,CAAC"}
1
+ {"version":3,"file":"NeonIcon.cjs.js","sources":["../../../../src/components/presentation/icon/NeonIcon.ts?vue&type=script&src=true&lang.ts"],"sourcesContent":["import { computed, defineComponent, useAttrs } from 'vue';\nimport { NeonIconRegistry } from '@/common/utils/NeonIconRegistry';\nimport type { NeonFunctionalColor } from '@/common/enums/NeonFunctionalColor';\n\n/**\n * <p>A component for rendering SVG images. These images are generally, but not limited to, <em>icons</em>. This\n * component can render any SVG of any size. Size is not restricted in the NeonIcon component but rather in the\n * components using the icons. Generally, when talking about icons, this component is only used to build other\n * components. But you may also find it useful for rendering SVG images, e.g. illustrations.</p>\n *\n * <p>There is an icon registry where strings containing SVGs can be registered with a name and that name can be used\n * with the NeonIcon component to render the image. Use the classes <em>neon-svg--fill</em> and <em>neon-svg--stroke</em>\n * in the SVG elements to automatically apply the functional colors.</p>\n *\n * <p>This provides the advantage of only registering the icons you actually need, dynamically switching colors in\n * Typescript/CSS without using a large icon font and not having to duplicate icon images to support multiple\n * color variations (including light and dark modes).</p>\n *\n * For more detailed information please see <a href=\"/presentation/icon\">Icons</a>.\n */\nexport default defineComponent({\n name: 'NeonIcon',\n props: {\n /**\n * The name of an icon registered in the icon registry.\n */\n name: { type: String, required: true },\n /**\n * The color to render the icon. By default, it will be the current text color (light text in dark mode or dark text in light mode).\n */\n color: { type: String as () => NeonFunctionalColor, default: null },\n /**\n * Set the icon color to the inverse text color\n */\n inverse: { type: Boolean, default: false },\n /**\n * Apply a disabled style to the icon\n */\n disabled: { type: Boolean, default: false },\n },\n setup(props) {\n const attrs = useAttrs();\n const icon = computed(() => {\n const _icon = NeonIconRegistry.getIcon(props.name);\n if (!_icon) {\n console.error(`icon ${props.name} doesn't exist! Register icon with NeonIconRegistry.addIcon(name, svg);`);\n }\n return _icon;\n });\n\n return {\n attrs,\n icon,\n };\n },\n});\n"],"names":["_sfc_main","defineComponent","props","attrs","useAttrs","icon","computed","_icon","NeonIconRegistry"],"mappings":"+FAoBAA,EAAeC,kBAAgB,CAC7B,KAAM,WACN,MAAO,CAIL,KAAM,CAAE,KAAM,OAAQ,SAAU,EAAA,EAIhC,MAAO,CAAE,KAAM,OAAqC,QAAS,IAAA,EAI7D,QAAS,CAAE,KAAM,QAAS,QAAS,EAAA,EAInC,SAAU,CAAE,KAAM,QAAS,QAAS,EAAA,CAAM,EAE5C,MAAMC,EAAO,CACX,MAAMC,EAAQC,EAAAA,SAAA,EACRC,EAAOC,EAAAA,SAAS,IAAM,CAC1B,MAAMC,EAAQC,EAAAA,iBAAiB,QAAQN,EAAM,IAAI,EACjD,OAAKK,GACH,QAAQ,MAAM,QAAQL,EAAM,IAAI,yEAAyE,EAEpGK,CACT,CAAC,EAED,MAAO,CACL,MAAAJ,EACA,KAAAE,CAAA,CAEJ,CACF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"NeonIcon.es.js","sources":["../../../../src/components/presentation/icon/NeonIcon.ts?vue&type=script&src=true&lang.ts"],"sourcesContent":["import { computed, defineComponent, useAttrs } from 'vue';\nimport { NeonIconRegistry } from '@/common/utils/NeonIconRegistry';\nimport type { NeonFunctionalColor } from '@/common/enums/NeonFunctionalColor';\n\n/**\n * <p>A component for rendering SVG images. These images are generally, but not limited to, <em>icons</em>. This\n * component can render any SVG of any size. Size is not restricted in the NeonIcon component but rather in the\n * components using the icons. Generally, when talking about icons, this component is only used to build other\n * components. But you may also find it useful for rendering SVG images, e.g. illustrations.</p>\n *\n * <p>There is an icon registry where strings containing SVGs can be registered with a name and that name can be used\n * with the NeonIcon component to render the image. Use the classes <em>neon-svg-fill</em> and <em>neon-svg--stroke</em>\n * in the SVG elements to automatically apply the functional colors.</p>\n *\n * <p>This provides the advantage of only registering the icons you actually need, dynamically switching colors in\n * Typescript/CSS without using a large icon font and not having to duplicate icon images to support multiple\n * color variations (including light and dark modes).</p>\n *\n * For more detailed information please see <a href=\"/presentation/icon\">Icons</a>.\n */\nexport default defineComponent({\n name: 'NeonIcon',\n props: {\n /**\n * The name of an icon registered in the icon registry.\n */\n name: { type: String, required: true },\n /**\n * The color to render the icon. By default, it will be the current text color (light text in dark mode or dark text in light mode).\n */\n color: { type: String as () => NeonFunctionalColor, default: null },\n /**\n * Set the icon color to the inverse text color\n */\n inverse: { type: Boolean, default: false },\n /**\n * Apply a disabled style to the icon\n */\n disabled: { type: Boolean, default: false },\n },\n setup(props) {\n const attrs = useAttrs();\n const icon = computed(() => {\n const _icon = NeonIconRegistry.getIcon(props.name);\n if (!_icon) {\n console.error(`icon ${props.name} doesn't exist! Register icon with NeonIconRegistry.addIcon(name, svg);`);\n }\n return _icon;\n });\n\n return {\n attrs,\n icon,\n };\n },\n});\n"],"names":["_sfc_main","defineComponent","props","attrs","useAttrs","icon","computed","_icon","NeonIconRegistry"],"mappings":";;AAoBA,MAAAA,IAAeC,EAAgB;AAAA,EAC7B,MAAM;AAAA,EACN,OAAO;AAAA;AAAA;AAAA;AAAA,IAIL,MAAM,EAAE,MAAM,QAAQ,UAAU,GAAA;AAAA;AAAA;AAAA;AAAA,IAIhC,OAAO,EAAE,MAAM,QAAqC,SAAS,KAAA;AAAA;AAAA;AAAA;AAAA,IAI7D,SAAS,EAAE,MAAM,SAAS,SAAS,GAAA;AAAA;AAAA;AAAA;AAAA,IAInC,UAAU,EAAE,MAAM,SAAS,SAAS,GAAA;AAAA,EAAM;AAAA,EAE5C,MAAMC,GAAO;AACX,UAAMC,IAAQC,EAAA,GACRC,IAAOC,EAAS,MAAM;AAC1B,YAAMC,IAAQC,EAAiB,QAAQN,EAAM,IAAI;AACjD,aAAKK,KACH,QAAQ,MAAM,QAAQL,EAAM,IAAI,yEAAyE,GAEpGK;AAAA,IACT,CAAC;AAED,WAAO;AAAA,MACL,OAAAJ;AAAA,MACA,MAAAE;AAAA,IAAA;AAAA,EAEJ;AACF,CAAC;"}
1
+ {"version":3,"file":"NeonIcon.es.js","sources":["../../../../src/components/presentation/icon/NeonIcon.ts?vue&type=script&src=true&lang.ts"],"sourcesContent":["import { computed, defineComponent, useAttrs } from 'vue';\nimport { NeonIconRegistry } from '@/common/utils/NeonIconRegistry';\nimport type { NeonFunctionalColor } from '@/common/enums/NeonFunctionalColor';\n\n/**\n * <p>A component for rendering SVG images. These images are generally, but not limited to, <em>icons</em>. This\n * component can render any SVG of any size. Size is not restricted in the NeonIcon component but rather in the\n * components using the icons. Generally, when talking about icons, this component is only used to build other\n * components. But you may also find it useful for rendering SVG images, e.g. illustrations.</p>\n *\n * <p>There is an icon registry where strings containing SVGs can be registered with a name and that name can be used\n * with the NeonIcon component to render the image. Use the classes <em>neon-svg--fill</em> and <em>neon-svg--stroke</em>\n * in the SVG elements to automatically apply the functional colors.</p>\n *\n * <p>This provides the advantage of only registering the icons you actually need, dynamically switching colors in\n * Typescript/CSS without using a large icon font and not having to duplicate icon images to support multiple\n * color variations (including light and dark modes).</p>\n *\n * For more detailed information please see <a href=\"/presentation/icon\">Icons</a>.\n */\nexport default defineComponent({\n name: 'NeonIcon',\n props: {\n /**\n * The name of an icon registered in the icon registry.\n */\n name: { type: String, required: true },\n /**\n * The color to render the icon. By default, it will be the current text color (light text in dark mode or dark text in light mode).\n */\n color: { type: String as () => NeonFunctionalColor, default: null },\n /**\n * Set the icon color to the inverse text color\n */\n inverse: { type: Boolean, default: false },\n /**\n * Apply a disabled style to the icon\n */\n disabled: { type: Boolean, default: false },\n },\n setup(props) {\n const attrs = useAttrs();\n const icon = computed(() => {\n const _icon = NeonIconRegistry.getIcon(props.name);\n if (!_icon) {\n console.error(`icon ${props.name} doesn't exist! Register icon with NeonIconRegistry.addIcon(name, svg);`);\n }\n return _icon;\n });\n\n return {\n attrs,\n icon,\n };\n },\n});\n"],"names":["_sfc_main","defineComponent","props","attrs","useAttrs","icon","computed","_icon","NeonIconRegistry"],"mappings":";;AAoBA,MAAAA,IAAeC,EAAgB;AAAA,EAC7B,MAAM;AAAA,EACN,OAAO;AAAA;AAAA;AAAA;AAAA,IAIL,MAAM,EAAE,MAAM,QAAQ,UAAU,GAAA;AAAA;AAAA;AAAA;AAAA,IAIhC,OAAO,EAAE,MAAM,QAAqC,SAAS,KAAA;AAAA;AAAA;AAAA;AAAA,IAI7D,SAAS,EAAE,MAAM,SAAS,SAAS,GAAA;AAAA;AAAA;AAAA;AAAA,IAInC,UAAU,EAAE,MAAM,SAAS,SAAS,GAAA;AAAA,EAAM;AAAA,EAE5C,MAAMC,GAAO;AACX,UAAMC,IAAQC,EAAA,GACRC,IAAOC,EAAS,MAAM;AAC1B,YAAMC,IAAQC,EAAiB,QAAQN,EAAM,IAAI;AACjD,aAAKK,KACH,QAAQ,MAAM,QAAQL,EAAM,IAAI,yEAAyE,GAEpGK;AAAA,IACT,CAAC;AAED,WAAO;AAAA,MACL,OAAAJ;AAAA,MACA,MAAAE;AAAA,IAAA;AAAA,EAEJ;AACF,CAAC;"}
@@ -1,2 +1,2 @@
1
- "use strict";const u=require("vue"),i=require("../../../common/enums/NeonFunctionalColor.cjs.js"),n=require("../../../common/enums/NeonTabsStyle.cjs.js"),s=require("../../../common/enums/NeonSize.cjs.js"),a=require("../icon/NeonIcon.vue.cjs.js"),l=u.defineComponent({name:"NeonTabs",components:{NeonIcon:a},props:{tabs:{type:Array,required:!0},modelValue:{type:String,required:!0},tabsStyle:{type:String,default:n.NeonTabsStyle.Web},color:{type:String,default:i.NeonFunctionalColor.Primary},size:{type:String,default:s.NeonSize.Medium},underline:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(c,{emit:o}){return{onClick:(e,r=!1)=>{if(r){const t=document.getElementById(`${e}ButtonContainer`);t&&t.focus()}o("update:modelValue",e)},NeonTabsStyle:n.NeonTabsStyle}}});module.exports=l;
1
+ "use strict";const r=require("vue"),u=require("../../../common/enums/NeonFunctionalColor.cjs.js"),i=require("../../../common/enums/NeonSize.cjs.js"),s=require("../icon/NeonIcon.vue.cjs.js"),a=r.defineComponent({name:"NeonTabs",components:{NeonIcon:s},props:{tabs:{type:Array,required:!0},modelValue:{type:String,required:!0},color:{type:String,default:u.NeonFunctionalColor.Primary},size:{type:String,default:i.NeonSize.Medium},underline:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(l,{emit:o}){return{onClick:(e,n=!1)=>{if(n){const t=document.getElementById(`${e}ButtonContainer`);t&&t.focus()}o("update:modelValue",e)}}}});module.exports=a;
2
2
  //# sourceMappingURL=NeonTabs.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NeonTabs.cjs.js","sources":["../../../../src/components/presentation/tabs/NeonTabs.ts?vue&type=script&src=true&lang.ts"],"sourcesContent":["import { defineComponent } from 'vue';\nimport type { NeonTabModel } from '@/common/models/NeonTabModel';\nimport { NeonFunctionalColor } from '@/common/enums/NeonFunctionalColor';\nimport { NeonTabsStyle } from '@/common/enums/NeonTabsStyle';\nimport { NeonSize } from '@/common/enums/NeonSize';\nimport NeonIcon from '@/components/presentation/icon/NeonIcon.vue';\n\n/**\n * A component for displaying tabbed content.\n */\nexport default defineComponent({\n name: 'NeonTabs',\n components: {\n NeonIcon,\n },\n props: {\n /**\n * The list of tabs to display.\n * */\n tabs: { type: Array as () => Array<NeonTabModel>, required: true },\n /**\n * The key of the selected tab.\n */\n modelValue: { type: String, required: true },\n /**\n * The tab button style.\n */\n tabsStyle: { type: String as () => NeonTabsStyle, default: NeonTabsStyle.Web },\n /**\n * The tab highlight color (excludes low-contrast).\n */\n color: { type: String as () => NeonFunctionalColor, default: NeonFunctionalColor.Primary },\n /**\n * The tab size (NOTE: web style only)\n */\n size: { type: String as () => NeonSize, default: NeonSize.Medium },\n /**\n * Display a border underlining all tabs. When tabs are in an element with a border-bottom it is preferable to omit the tabs border-bottom\n */\n underline: { type: Boolean, default: true },\n },\n emits: [\n /**\n * Emitted when the selected tab is changed.\n * @type {string} The key of the selected tab.\n */\n 'update:modelValue',\n ],\n setup(_props, { emit }) {\n const onClick = (key: string, changeFocus = false) => {\n if (changeFocus) {\n const tab = document.getElementById(`${key}ButtonContainer`);\n if (tab) {\n tab.focus();\n }\n }\n emit('update:modelValue', key);\n };\n\n return {\n onClick,\n NeonTabsStyle,\n };\n },\n});\n"],"names":["_sfc_main","defineComponent","NeonIcon","NeonTabsStyle","NeonFunctionalColor","NeonSize","_props","emit","key","changeFocus","tab"],"mappings":"sPAUAA,EAAeC,kBAAgB,CAC7B,KAAM,WACN,WAAY,CACV,SAAAC,CAAA,EAEF,MAAO,CAIL,KAAM,CAAE,KAAM,MAAoC,SAAU,EAAA,EAI5D,WAAY,CAAE,KAAM,OAAQ,SAAU,EAAA,EAItC,UAAW,CAAE,KAAM,OAA+B,QAASC,EAAAA,cAAc,GAAA,EAIzE,MAAO,CAAE,KAAM,OAAqC,QAASC,EAAAA,oBAAoB,OAAA,EAIjF,KAAM,CAAE,KAAM,OAA0B,QAASC,EAAAA,SAAS,MAAA,EAI1D,UAAW,CAAE,KAAM,QAAS,QAAS,EAAA,CAAK,EAE5C,MAAO,CAKL,mBAAA,EAEF,MAAMC,EAAQ,CAAE,KAAAC,GAAQ,CAWtB,MAAO,CACL,QAXc,CAACC,EAAaC,EAAc,KAAU,CACpD,GAAIA,EAAa,CACf,MAAMC,EAAM,SAAS,eAAe,GAAGF,CAAG,iBAAiB,EACvDE,GACFA,EAAI,MAAA,CAER,CACAH,EAAK,oBAAqBC,CAAG,CAC/B,EAGE,cACAL,EAAAA,aAAA,CAEJ,CACF,CAAC"}
1
+ {"version":3,"file":"NeonTabs.cjs.js","sources":["../../../../src/components/presentation/tabs/NeonTabs.ts?vue&type=script&src=true&lang.ts"],"sourcesContent":["import { defineComponent } from 'vue';\nimport type { NeonTabModel } from '@/common/models/NeonTabModel';\nimport { NeonFunctionalColor } from '@/common/enums/NeonFunctionalColor';\nimport { NeonSize } from '@/common/enums/NeonSize';\nimport NeonIcon from '@/components/presentation/icon/NeonIcon.vue';\n\n/**\n * A component for displaying tabbed content.\n */\nexport default defineComponent({\n name: 'NeonTabs',\n components: {\n NeonIcon,\n },\n props: {\n /**\n * The list of tabs to display.\n * */\n tabs: { type: Array as () => Array<NeonTabModel>, required: true },\n /**\n * The key of the selected tab.\n */\n modelValue: { type: String, required: true },\n /**\n * The tab highlight color (excludes low-contrast).\n */\n color: { type: String as () => NeonFunctionalColor, default: NeonFunctionalColor.Primary },\n /**\n * The tab size\n */\n size: { type: String as () => NeonSize, default: NeonSize.Medium },\n /**\n * Display a border underlining all tabs. When tabs are in an element with a border-bottom it is preferable to omit the tabs border-bottom\n */\n underline: { type: Boolean, default: true },\n },\n emits: [\n /**\n * Emitted when the selected tab is changed.\n * @type {string} The key of the selected tab.\n */\n 'update:modelValue',\n ],\n setup(_props, { emit }) {\n const onClick = (key: string, changeFocus = false) => {\n if (changeFocus) {\n const tab = document.getElementById(`${key}ButtonContainer`);\n if (tab) {\n tab.focus();\n }\n }\n emit('update:modelValue', key);\n };\n\n return {\n onClick,\n };\n },\n});\n"],"names":["_sfc_main","defineComponent","NeonIcon","NeonFunctionalColor","NeonSize","_props","emit","key","changeFocus","tab"],"mappings":"8LASAA,EAAeC,kBAAgB,CAC7B,KAAM,WACN,WAAY,CACV,SAAAC,CAAA,EAEF,MAAO,CAIL,KAAM,CAAE,KAAM,MAAoC,SAAU,EAAA,EAI5D,WAAY,CAAE,KAAM,OAAQ,SAAU,EAAA,EAItC,MAAO,CAAE,KAAM,OAAqC,QAASC,EAAAA,oBAAoB,OAAA,EAIjF,KAAM,CAAE,KAAM,OAA0B,QAASC,EAAAA,SAAS,MAAA,EAI1D,UAAW,CAAE,KAAM,QAAS,QAAS,EAAA,CAAK,EAE5C,MAAO,CAKL,mBAAA,EAEF,MAAMC,EAAQ,CAAE,KAAAC,GAAQ,CAWtB,MAAO,CACL,QAXc,CAACC,EAAaC,EAAc,KAAU,CACpD,GAAIA,EAAa,CACf,MAAMC,EAAM,SAAS,eAAe,GAAGF,CAAG,iBAAiB,EACvDE,GACFA,EAAI,MAAA,CAER,CACAH,EAAK,oBAAqBC,CAAG,CAC/B,CAGE,CAEJ,CACF,CAAC"}
@@ -1,12 +1,11 @@
1
- import { defineComponent as i } from "vue";
2
- import { NeonFunctionalColor as a } from "../../../common/enums/NeonFunctionalColor.es.js";
3
- import { NeonTabsStyle as o } from "../../../common/enums/NeonTabsStyle.es.js";
1
+ import { defineComponent as r } from "vue";
2
+ import { NeonFunctionalColor as i } from "../../../common/enums/NeonFunctionalColor.es.js";
4
3
  import { NeonSize as u } from "../../../common/enums/NeonSize.es.js";
5
- import l from "../icon/NeonIcon.vue.es.js";
6
- const S = i({
4
+ import a from "../icon/NeonIcon.vue.es.js";
5
+ const c = r({
7
6
  name: "NeonTabs",
8
7
  components: {
9
- NeonIcon: l
8
+ NeonIcon: a
10
9
  },
11
10
  props: {
12
11
  /**
@@ -17,16 +16,12 @@ const S = i({
17
16
  * The key of the selected tab.
18
17
  */
19
18
  modelValue: { type: String, required: !0 },
20
- /**
21
- * The tab button style.
22
- */
23
- tabsStyle: { type: String, default: o.Web },
24
19
  /**
25
20
  * The tab highlight color (excludes low-contrast).
26
21
  */
27
- color: { type: String, default: a.Primary },
22
+ color: { type: String, default: i.Primary },
28
23
  /**
29
- * The tab size (NOTE: web style only)
24
+ * The tab size
30
25
  */
31
26
  size: { type: String, default: u.Medium },
32
27
  /**
@@ -41,20 +36,19 @@ const S = i({
41
36
  */
42
37
  "update:modelValue"
43
38
  ],
44
- setup(m, { emit: r }) {
39
+ setup(m, { emit: t }) {
45
40
  return {
46
41
  onClick: (e, n = !1) => {
47
42
  if (n) {
48
- const t = document.getElementById(`${e}ButtonContainer`);
49
- t && t.focus();
43
+ const o = document.getElementById(`${e}ButtonContainer`);
44
+ o && o.focus();
50
45
  }
51
- r("update:modelValue", e);
52
- },
53
- NeonTabsStyle: o
46
+ t("update:modelValue", e);
47
+ }
54
48
  };
55
49
  }
56
50
  });
57
51
  export {
58
- S as default
52
+ c as default
59
53
  };
60
54
  //# sourceMappingURL=NeonTabs.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NeonTabs.es.js","sources":["../../../../src/components/presentation/tabs/NeonTabs.ts?vue&type=script&src=true&lang.ts"],"sourcesContent":["import { defineComponent } from 'vue';\nimport type { NeonTabModel } from '@/common/models/NeonTabModel';\nimport { NeonFunctionalColor } from '@/common/enums/NeonFunctionalColor';\nimport { NeonTabsStyle } from '@/common/enums/NeonTabsStyle';\nimport { NeonSize } from '@/common/enums/NeonSize';\nimport NeonIcon from '@/components/presentation/icon/NeonIcon.vue';\n\n/**\n * A component for displaying tabbed content.\n */\nexport default defineComponent({\n name: 'NeonTabs',\n components: {\n NeonIcon,\n },\n props: {\n /**\n * The list of tabs to display.\n * */\n tabs: { type: Array as () => Array<NeonTabModel>, required: true },\n /**\n * The key of the selected tab.\n */\n modelValue: { type: String, required: true },\n /**\n * The tab button style.\n */\n tabsStyle: { type: String as () => NeonTabsStyle, default: NeonTabsStyle.Web },\n /**\n * The tab highlight color (excludes low-contrast).\n */\n color: { type: String as () => NeonFunctionalColor, default: NeonFunctionalColor.Primary },\n /**\n * The tab size (NOTE: web style only)\n */\n size: { type: String as () => NeonSize, default: NeonSize.Medium },\n /**\n * Display a border underlining all tabs. When tabs are in an element with a border-bottom it is preferable to omit the tabs border-bottom\n */\n underline: { type: Boolean, default: true },\n },\n emits: [\n /**\n * Emitted when the selected tab is changed.\n * @type {string} The key of the selected tab.\n */\n 'update:modelValue',\n ],\n setup(_props, { emit }) {\n const onClick = (key: string, changeFocus = false) => {\n if (changeFocus) {\n const tab = document.getElementById(`${key}ButtonContainer`);\n if (tab) {\n tab.focus();\n }\n }\n emit('update:modelValue', key);\n };\n\n return {\n onClick,\n NeonTabsStyle,\n };\n },\n});\n"],"names":["_sfc_main","defineComponent","NeonIcon","NeonTabsStyle","NeonFunctionalColor","NeonSize","_props","emit","key","changeFocus","tab"],"mappings":";;;;;AAUA,MAAAA,IAAeC,EAAgB;AAAA,EAC7B,MAAM;AAAA,EACN,YAAY;AAAA,IACV,UAAAC;AAAA,EAAA;AAAA,EAEF,OAAO;AAAA;AAAA;AAAA;AAAA,IAIL,MAAM,EAAE,MAAM,OAAoC,UAAU,GAAA;AAAA;AAAA;AAAA;AAAA,IAI5D,YAAY,EAAE,MAAM,QAAQ,UAAU,GAAA;AAAA;AAAA;AAAA;AAAA,IAItC,WAAW,EAAE,MAAM,QAA+B,SAASC,EAAc,IAAA;AAAA;AAAA;AAAA;AAAA,IAIzE,OAAO,EAAE,MAAM,QAAqC,SAASC,EAAoB,QAAA;AAAA;AAAA;AAAA;AAAA,IAIjF,MAAM,EAAE,MAAM,QAA0B,SAASC,EAAS,OAAA;AAAA;AAAA;AAAA;AAAA,IAI1D,WAAW,EAAE,MAAM,SAAS,SAAS,GAAA;AAAA,EAAK;AAAA,EAE5C,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA,IAKL;AAAA,EAAA;AAAA,EAEF,MAAMC,GAAQ,EAAE,MAAAC,KAAQ;AAWtB,WAAO;AAAA,MACL,SAXc,CAACC,GAAaC,IAAc,OAAU;AACpD,YAAIA,GAAa;AACf,gBAAMC,IAAM,SAAS,eAAe,GAAGF,CAAG,iBAAiB;AAC3D,UAAIE,KACFA,EAAI,MAAA;AAAA,QAER;AACA,QAAAH,EAAK,qBAAqBC,CAAG;AAAA,MAC/B;AAAA,MAIE,eAAAL;AAAA,IAAA;AAAA,EAEJ;AACF,CAAC;"}
1
+ {"version":3,"file":"NeonTabs.es.js","sources":["../../../../src/components/presentation/tabs/NeonTabs.ts?vue&type=script&src=true&lang.ts"],"sourcesContent":["import { defineComponent } from 'vue';\nimport type { NeonTabModel } from '@/common/models/NeonTabModel';\nimport { NeonFunctionalColor } from '@/common/enums/NeonFunctionalColor';\nimport { NeonSize } from '@/common/enums/NeonSize';\nimport NeonIcon from '@/components/presentation/icon/NeonIcon.vue';\n\n/**\n * A component for displaying tabbed content.\n */\nexport default defineComponent({\n name: 'NeonTabs',\n components: {\n NeonIcon,\n },\n props: {\n /**\n * The list of tabs to display.\n * */\n tabs: { type: Array as () => Array<NeonTabModel>, required: true },\n /**\n * The key of the selected tab.\n */\n modelValue: { type: String, required: true },\n /**\n * The tab highlight color (excludes low-contrast).\n */\n color: { type: String as () => NeonFunctionalColor, default: NeonFunctionalColor.Primary },\n /**\n * The tab size\n */\n size: { type: String as () => NeonSize, default: NeonSize.Medium },\n /**\n * Display a border underlining all tabs. When tabs are in an element with a border-bottom it is preferable to omit the tabs border-bottom\n */\n underline: { type: Boolean, default: true },\n },\n emits: [\n /**\n * Emitted when the selected tab is changed.\n * @type {string} The key of the selected tab.\n */\n 'update:modelValue',\n ],\n setup(_props, { emit }) {\n const onClick = (key: string, changeFocus = false) => {\n if (changeFocus) {\n const tab = document.getElementById(`${key}ButtonContainer`);\n if (tab) {\n tab.focus();\n }\n }\n emit('update:modelValue', key);\n };\n\n return {\n onClick,\n };\n },\n});\n"],"names":["_sfc_main","defineComponent","NeonIcon","NeonFunctionalColor","NeonSize","_props","emit","key","changeFocus","tab"],"mappings":";;;;AASA,MAAAA,IAAeC,EAAgB;AAAA,EAC7B,MAAM;AAAA,EACN,YAAY;AAAA,IACV,UAAAC;AAAA,EAAA;AAAA,EAEF,OAAO;AAAA;AAAA;AAAA;AAAA,IAIL,MAAM,EAAE,MAAM,OAAoC,UAAU,GAAA;AAAA;AAAA;AAAA;AAAA,IAI5D,YAAY,EAAE,MAAM,QAAQ,UAAU,GAAA;AAAA;AAAA;AAAA;AAAA,IAItC,OAAO,EAAE,MAAM,QAAqC,SAASC,EAAoB,QAAA;AAAA;AAAA;AAAA;AAAA,IAIjF,MAAM,EAAE,MAAM,QAA0B,SAASC,EAAS,OAAA;AAAA;AAAA;AAAA;AAAA,IAI1D,WAAW,EAAE,MAAM,SAAS,SAAS,GAAA;AAAA,EAAK;AAAA,EAE5C,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA,IAKL;AAAA,EAAA;AAAA,EAEF,MAAMC,GAAQ,EAAE,MAAAC,KAAQ;AAWtB,WAAO;AAAA,MACL,SAXc,CAACC,GAAaC,IAAc,OAAU;AACpD,YAAIA,GAAa;AACf,gBAAMC,IAAM,SAAS,eAAe,GAAGF,CAAG,iBAAiB;AAC3D,UAAIE,KACFA,EAAI,MAAA;AAAA,QAER;AACA,QAAAH,EAAK,qBAAqBC,CAAG;AAAA,MAC/B;AAAA,IAGE;AAAA,EAEJ;AACF,CAAC;"}
@@ -1,2 +1,2 @@
1
- "use strict";const a=require("./NeonTabs.cjs.js"),e=require("vue"),r=require("../../../_virtual/_plugin-vue_export-helper.cjs.js"),i=["id","aria-controls","aria-selected","onClick"],c=["id","tabindex","onKeydown"],u={key:1,class:"neon-tabs__menu-label"};function m(n,k,y,p,_,b){const l=e.resolveComponent("neon-icon");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([[`neon-tabs--${n.size}`,`neon-tabs--${n.color}`,`neon-tabs--${n.tabsStyle}`],"neon-tabs"]),role:"tablist"},[e.createElementVNode("div",{class:e.normalizeClass([{"neon-tabs__menu-items--underlined":n.underline},"neon-tabs__menu-items"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.tabs,(o,t)=>(e.openBlock(),e.createElementBlock("div",{id:`${o.key}Button`,key:o.key,"aria-controls":o.key,"aria-selected":o.key===n.modelValue,class:e.normalizeClass([{"neon-tabs__menu-item--selected":o.key===n.modelValue},"neon-tabs__menu-item"]),role:"tab",tabindex:"-1",onClick:s=>o.key!==n.modelValue&&n.onClick(o.key)},[e.createElementVNode("div",{id:`${o.key}ButtonContainer`,tabindex:o.key===n.modelValue?0:-1,class:"neon-tabs__menu-item-container",onKeydown:[e.withKeys(s=>n.onClick(n.tabs[t+1===n.tabs.length?0:t+1].key,!0),["right"]),e.withKeys(s=>n.onClick(n.tabs[t===0?n.tabs.length-1:t-1].key,!0),["left"])]},[o.icon?(e.openBlock(),e.createBlock(l,{key:0,name:o.icon,class:"neon-tabs__menu-icon"},null,8,["name"])):e.createCommentVNode("",!0),o.label?(e.openBlock(),e.createElementBlock("span",u,e.toDisplayString(o.label),1)):e.createCommentVNode("",!0)],40,c)],10,i))),128))],2),e.renderSlot(n.$slots,"default")],2)}const d=r(a,[["render",m]]);module.exports=d;
1
+ "use strict";const r=require("./NeonTabs.cjs.js"),e=require("vue"),a=require("../../../_virtual/_plugin-vue_export-helper.cjs.js"),i=["id","aria-controls","aria-selected","onClick"],c=["id","tabindex","onKeydown"],u={key:1,class:"neon-tabs__menu-label"};function m(n,k,y,_,p,b){const s=e.resolveComponent("neon-icon");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([[`neon-tabs--${n.size}`,`neon-tabs--${n.color}`],"neon-tabs"]),role:"tablist"},[e.createElementVNode("div",{class:e.normalizeClass([{"neon-tabs__menu-items--underlined":n.underline},"neon-tabs__menu-items"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.tabs,(o,t)=>(e.openBlock(),e.createElementBlock("div",{id:`${o.key}Button`,key:o.key,"aria-controls":o.key,"aria-selected":o.key===n.modelValue,class:e.normalizeClass([{"neon-tabs__menu-item--selected":o.key===n.modelValue},"neon-tabs__menu-item"]),role:"tab",tabindex:"-1",onClick:l=>o.key!==n.modelValue&&n.onClick(o.key)},[e.createElementVNode("div",{id:`${o.key}ButtonContainer`,tabindex:o.key===n.modelValue?0:-1,class:"neon-tabs__menu-item-container",onKeydown:[e.withKeys(l=>n.onClick(n.tabs[t+1===n.tabs.length?0:t+1].key,!0),["right"]),e.withKeys(l=>n.onClick(n.tabs[t===0?n.tabs.length-1:t-1].key,!0),["left"])]},[o.icon?(e.openBlock(),e.createBlock(s,{key:0,name:o.icon,class:"neon-tabs__menu-icon"},null,8,["name"])):e.createCommentVNode("",!0),o.label?(e.openBlock(),e.createElementBlock("span",u,e.toDisplayString(o.label),1)):e.createCommentVNode("",!0)],40,c)],10,i))),128))],2),e.renderSlot(n.$slots,"default")],2)}const d=a(r,[["render",m]]);module.exports=d;
2
2
  //# sourceMappingURL=NeonTabs.vue.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NeonTabs.vue.cjs.js","sources":["../../../../src/components/presentation/tabs/NeonTabs.vue"],"sourcesContent":["<template>\n <div\n :class=\"[`neon-tabs--${size}`, `neon-tabs--${color}`, `neon-tabs--${tabsStyle}`]\"\n class=\"neon-tabs\"\n role=\"tablist\"\n >\n <div :class=\"{ 'neon-tabs__menu-items--underlined': underline }\" class=\"neon-tabs__menu-items\">\n <div\n v-for=\"(tab, index) in tabs\"\n :id=\"`${tab.key}Button`\"\n :key=\"tab.key\"\n :aria-controls=\"tab.key\"\n :aria-selected=\"tab.key === modelValue\"\n :class=\"{ 'neon-tabs__menu-item--selected': tab.key === modelValue }\"\n class=\"neon-tabs__menu-item\"\n role=\"tab\"\n tabindex=\"-1\"\n @click=\"tab.key !== modelValue && onClick(tab.key)\"\n >\n <div\n :id=\"`${tab.key}ButtonContainer`\"\n :tabindex=\"tab.key === modelValue ? 0 : -1\"\n class=\"neon-tabs__menu-item-container\"\n @keydown.right=\"onClick(tabs[index + 1 === tabs.length ? 0 : index + 1].key, true)\"\n @keydown.left=\"onClick(tabs[index === 0 ? tabs.length - 1 : index - 1].key, true)\"\n >\n <neon-icon v-if=\"tab.icon\" :name=\"tab.icon\" class=\"neon-tabs__menu-icon\" />\n <span v-if=\"tab.label\" class=\"neon-tabs__menu-label\">{{ tab.label }}</span>\n </div>\n </div>\n </div>\n <!-- @slot Add tabs here (NeonTab). NOTE: Tabs can also be added outside the component if preferred -->\n <slot></slot>\n </div>\n</template>\n\n<script lang=\"ts\" src=\"./NeonTabs.ts\"></script>\n"],"names":["_createElementBlock","_ctx","_createElementVNode","_normalizeClass","_openBlock","_Fragment","_renderList","tab","index","$event","_createBlock","_component_neon_icon","_hoisted_3","_toDisplayString","_renderSlot"],"mappings":"+NA2BiC,MAAM,8GA1BrCA,EAAAA,mBAgCM,MAAA,CA/BH,uCAAsBC,EAAA,IAAI,GAAA,cAAkBA,OAAK,GAAA,cAAkBA,EAAA,SAAS,IACvE,WAAW,CAAA,EACjB,KAAK,YAELC,EAAAA,mBAwBM,MAAA,CAxBA,MAAKC,EAAAA,eAAA,CAAA,CAAA,oCAAyCF,EAAA,SAAS,EAAU,uBAAuB,CAAA,KAC5FG,EAAAA,UAAA,EAAA,EAAAJ,EAAAA,mBAsBMK,WAAA,KAAAC,EAAAA,WArBmBL,EAAA,KAAI,CAAnBM,EAAKC,mBADfR,EAAAA,mBAsBM,MAAA,CApBH,GAAE,GAAKO,EAAI,GAAG,SACd,IAAKA,EAAI,IACT,gBAAeA,EAAI,IACnB,gBAAeA,EAAI,MAAQN,EAAA,WAC3B,0DAA2CM,EAAI,MAAQN,EAAA,YAClD,sBAAsB,CAAA,EAC5B,KAAK,MACL,SAAS,KACR,QAAKQ,GAAEF,EAAI,MAAQN,EAAA,YAAcA,EAAA,QAAQM,EAAI,GAAG,IAEjDL,EAAAA,mBASM,MAAA,CARH,GAAE,GAAKK,EAAI,GAAG,kBACd,SAAUA,EAAI,MAAQN,EAAA,WAAU,EAAA,GACjC,MAAM,iCACL,UAAO,eAAQA,EAAA,QAAQA,EAAA,KAAKO,EAAK,IAASP,EAAA,KAAK,OAAM,EAAOO,EAAK,CAAA,EAAM,IAAG,EAAA,EAAA,CAAA,OAAA,CAAA,gBAC5DP,EAAA,QAAQA,EAAA,KAAKO,IAAK,EAASP,EAAA,KAAK,OAAM,EAAOO,EAAK,CAAA,EAAM,IAAG,EAAA,EAAA,CAAA,MAAA,CAAA,KAEzDD,EAAI,oBAArBG,EAAAA,YAA2EC,EAAA,OAA/C,KAAMJ,EAAI,KAAM,MAAM,sEACtCA,EAAI,OAAhBH,YAAA,EAAAJ,EAAAA,mBAA2E,OAA3EY,EAA2EC,EAAAA,gBAAnBN,EAAI,KAAK,EAAA,CAAA,yDAKvEO,aAAab,EAAA,OAAA,SAAA"}
1
+ {"version":3,"file":"NeonTabs.vue.cjs.js","sources":["../../../../src/components/presentation/tabs/NeonTabs.vue"],"sourcesContent":["<template>\n <div :class=\"[`neon-tabs--${size}`, `neon-tabs--${color}`]\" class=\"neon-tabs\" role=\"tablist\">\n <div :class=\"{ 'neon-tabs__menu-items--underlined': underline }\" class=\"neon-tabs__menu-items\">\n <div\n v-for=\"(tab, index) in tabs\"\n :id=\"`${tab.key}Button`\"\n :key=\"tab.key\"\n :aria-controls=\"tab.key\"\n :aria-selected=\"tab.key === modelValue\"\n :class=\"{ 'neon-tabs__menu-item--selected': tab.key === modelValue }\"\n class=\"neon-tabs__menu-item\"\n role=\"tab\"\n tabindex=\"-1\"\n @click=\"tab.key !== modelValue && onClick(tab.key)\"\n >\n <div\n :id=\"`${tab.key}ButtonContainer`\"\n :tabindex=\"tab.key === modelValue ? 0 : -1\"\n class=\"neon-tabs__menu-item-container\"\n @keydown.right=\"onClick(tabs[index + 1 === tabs.length ? 0 : index + 1].key, true)\"\n @keydown.left=\"onClick(tabs[index === 0 ? tabs.length - 1 : index - 1].key, true)\"\n >\n <neon-icon v-if=\"tab.icon\" :name=\"tab.icon\" class=\"neon-tabs__menu-icon\" />\n <span v-if=\"tab.label\" class=\"neon-tabs__menu-label\">{{ tab.label }}</span>\n </div>\n </div>\n </div>\n <!-- @slot Add tabs here (NeonTab). NOTE: Tabs can also be added outside the component if preferred -->\n <slot></slot>\n </div>\n</template>\n\n<script lang=\"ts\" src=\"./NeonTabs.ts\"></script>\n"],"names":["_createElementBlock","_normalizeClass","_ctx","_createElementVNode","_openBlock","_Fragment","_renderList","tab","index","$event","_createBlock","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EY,EAA2EC,EAAAA,gBAAnBN,EAAI,KAAK,EAAA,CAAA,yDAKvEO,aAAaZ,EAAA,OAAA,SAAA"}
@@ -1,5 +1,5 @@
1
1
  import u from "./NeonTabs.es.js";
2
- import { resolveComponent as c, openBlock as o, createElementBlock as t, normalizeClass as l, createElementVNode as i, Fragment as k, renderList as y, withKeys as r, createBlock as b, createCommentVNode as m, toDisplayString as p, renderSlot as _ } from "vue";
2
+ import { resolveComponent as c, openBlock as o, createElementBlock as t, normalizeClass as l, createElementVNode as i, Fragment as k, renderList as y, withKeys as r, createBlock as _, createCommentVNode as m, toDisplayString as p, renderSlot as b } from "vue";
3
3
  import $ from "../../../_virtual/_plugin-vue_export-helper.es.js";
4
4
  const f = ["id", "aria-controls", "aria-selected", "onClick"], C = ["id", "tabindex", "onKeydown"], h = {
5
5
  key: 1,
@@ -8,7 +8,7 @@ const f = ["id", "aria-controls", "aria-selected", "onClick"], C = ["id", "tabin
8
8
  function v(e, V, g, B, w, K) {
9
9
  const d = c("neon-icon");
10
10
  return o(), t("div", {
11
- class: l([[`neon-tabs--${e.size}`, `neon-tabs--${e.color}`, `neon-tabs--${e.tabsStyle}`], "neon-tabs"]),
11
+ class: l([[`neon-tabs--${e.size}`, `neon-tabs--${e.color}`], "neon-tabs"]),
12
12
  role: "tablist"
13
13
  }, [
14
14
  i("div", {
@@ -33,7 +33,7 @@ function v(e, V, g, B, w, K) {
33
33
  r((a) => e.onClick(e.tabs[s === 0 ? e.tabs.length - 1 : s - 1].key, !0), ["left"])
34
34
  ]
35
35
  }, [
36
- n.icon ? (o(), b(d, {
36
+ n.icon ? (o(), _(d, {
37
37
  key: 0,
38
38
  name: n.icon,
39
39
  class: "neon-tabs__menu-icon"
@@ -42,11 +42,11 @@ function v(e, V, g, B, w, K) {
42
42
  ], 40, C)
43
43
  ], 10, f))), 128))
44
44
  ], 2),
45
- _(e.$slots, "default")
45
+ b(e.$slots, "default")
46
46
  ], 2);
47
47
  }
48
- const E = /* @__PURE__ */ $(u, [["render", v]]);
48
+ const S = /* @__PURE__ */ $(u, [["render", v]]);
49
49
  export {
50
- E as default
50
+ S as default
51
51
  };
52
52
  //# sourceMappingURL=NeonTabs.vue.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NeonTabs.vue.es.js","sources":["../../../../src/components/presentation/tabs/NeonTabs.vue"],"sourcesContent":["<template>\n <div\n :class=\"[`neon-tabs--${size}`, `neon-tabs--${color}`, `neon-tabs--${tabsStyle}`]\"\n class=\"neon-tabs\"\n role=\"tablist\"\n >\n <div :class=\"{ 'neon-tabs__menu-items--underlined': underline }\" class=\"neon-tabs__menu-items\">\n <div\n v-for=\"(tab, index) in tabs\"\n :id=\"`${tab.key}Button`\"\n :key=\"tab.key\"\n :aria-controls=\"tab.key\"\n :aria-selected=\"tab.key === modelValue\"\n :class=\"{ 'neon-tabs__menu-item--selected': tab.key === modelValue }\"\n class=\"neon-tabs__menu-item\"\n role=\"tab\"\n tabindex=\"-1\"\n @click=\"tab.key !== modelValue && onClick(tab.key)\"\n >\n <div\n :id=\"`${tab.key}ButtonContainer`\"\n :tabindex=\"tab.key === modelValue ? 0 : -1\"\n class=\"neon-tabs__menu-item-container\"\n @keydown.right=\"onClick(tabs[index + 1 === tabs.length ? 0 : index + 1].key, true)\"\n @keydown.left=\"onClick(tabs[index === 0 ? tabs.length - 1 : index - 1].key, true)\"\n >\n <neon-icon v-if=\"tab.icon\" :name=\"tab.icon\" class=\"neon-tabs__menu-icon\" />\n <span v-if=\"tab.label\" class=\"neon-tabs__menu-label\">{{ tab.label }}</span>\n </div>\n </div>\n </div>\n <!-- @slot Add tabs here (NeonTab). NOTE: Tabs can also be added outside the component if preferred -->\n <slot></slot>\n </div>\n</template>\n\n<script lang=\"ts\" src=\"./NeonTabs.ts\"></script>\n"],"names":["_createElementBlock","_ctx","_createElementVNode","_normalizeClass","_openBlock","_Fragment","_renderList","tab","index","$event","_createBlock","_component_neon_icon","_hoisted_3","_toDisplayString","_renderSlot"],"mapp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AJ,EAA2E,QAA3EY,GAA2EC,EAAnBN,EAAI,KAAK,GAAA,CAAA;;;;IAKvEO,EAAab,EAAA,QAAA,SAAA;AAAA;;;"}
1
+ {"version":3,"file":"NeonTabs.vue.es.js","sources":["../../../../src/components/presentation/tabs/NeonTabs.vue"],"sourcesContent":["<template>\n <div :class=\"[`neon-tabs--${size}`, `neon-tabs--${color}`]\" class=\"neon-tabs\" role=\"tablist\">\n <div :class=\"{ 'neon-tabs__menu-items--underlined': underline }\" class=\"neon-tabs__menu-items\">\n <div\n v-for=\"(tab, index) in tabs\"\n :id=\"`${tab.key}Button`\"\n :key=\"tab.key\"\n :aria-controls=\"tab.key\"\n :aria-selected=\"tab.key === modelValue\"\n :class=\"{ 'neon-tabs__menu-item--selected': tab.key === modelValue }\"\n class=\"neon-tabs__menu-item\"\n role=\"tab\"\n tabindex=\"-1\"\n @click=\"tab.key !== modelValue && onClick(tab.key)\"\n >\n <div\n :id=\"`${tab.key}ButtonContainer`\"\n :tabindex=\"tab.key === modelValue ? 0 : -1\"\n class=\"neon-tabs__menu-item-container\"\n @keydown.right=\"onClick(tabs[index + 1 === tabs.length ? 0 : index + 1].key, true)\"\n @keydown.left=\"onClick(tabs[index === 0 ? tabs.length - 1 : index - 1].key, true)\"\n >\n <neon-icon v-if=\"tab.icon\" :name=\"tab.icon\" class=\"neon-tabs__menu-icon\" />\n <span v-if=\"tab.label\" class=\"neon-tabs__menu-label\">{{ tab.label }}</span>\n </div>\n </div>\n </div>\n <!-- @slot Add tabs here (NeonTab). NOTE: Tabs can also be added outside the component if preferred -->\n <slot></slot>\n </div>\n</template>\n\n<script lang=\"ts\" src=\"./NeonTabs.ts\"></script>\n"],"names":["_createElementBlock","_normalizeClass","_ctx","_createElementVNode","_openBlock","_Fragment","_renderList","tab","index","$event","_createBlock","_component_neon_icon","_hoisted_3","_toDisplayString","_renderSlot"],"mappings":";;;;;EAuBiC,OAAM;;;;cAtBrCA,EA4BM,OAAA;AAAA,IA5BA,OAAK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;;;IAKvEO,EAAaZ,EAAA,QAAA,SAAA;AAAA;;;"}
@@ -1,2 +1,2 @@
1
- "use strict";const r=require("./NeonButton.cjs.js"),n=require("vue"),a=require("../../../_virtual/_plugin-vue_export-helper.cjs.js"),d={key:1,class:"neon-button__label"},u=["disabled","tabindex"],b={key:1,class:"neon-button__label"};function c(e,o,k,m,y,B){const t=n.resolveComponent("neon-icon"),l=n.resolveComponent("neon-link"),s=n.resolveComponent("neon-expansion-indicator");return e.href?(n.openBlock(),n.createBlock(l,n.mergeProps({key:0,ref:"button",class:[e.classes,"neon-button"],href:e.href,tabindex:e.disabled?-1:0,"outline-style":"none",role:"button"},e.sanitizedAttributes,{onKeydown:n.withKeys(n.withModifiers(e.clickLink,["prevent"]),["space"])}),{default:n.withCtx(()=>[e.icon||e.state!=="ready"?(n.openBlock(),n.createBlock(t,{key:0,color:e.buttonStyle!=="solid"?e.color:void 0,disabled:e.disabled,inverse:e.buttonStyle==="solid"||e.inverse,name:e.iconName},null,8,["color","disabled","inverse","name"])):n.createCommentVNode("",!0),e.label?(n.openBlock(),n.createElementBlock("span",d,n.toDisplayString(e.label),1)):n.createCommentVNode("",!0)]),_:1},16,["class","href","tabindex","onKeydown"])):(n.openBlock(),n.createElementBlock("button",n.mergeProps({key:1,ref:"button",class:[e.classes,"neon-button"],disabled:e.disabled||e.state!=="ready",tabindex:e.disabled?-1:0},e.sanitizedAttributes,{onClick:o[0]||(o[0]=(...i)=>e.clickButton&&e.clickButton(...i))}),[e.icon||e.state!=="ready"?(n.openBlock(),n.createBlock(t,{key:0,color:e.buttonStyle!=="solid"?e.color:void 0,disabled:e.disabled,inverse:e.buttonStyle==="solid"||e.inverse,name:e.iconName},null,8,["color","disabled","inverse","name"])):n.createCommentVNode("",!0),e.label?(n.openBlock(),n.createElementBlock("span",b,n.toDisplayString(e.label),1)):n.createCommentVNode("",!0),e.indicator?(n.openBlock(),n.createBlock(s,{key:2,color:e.color,disabled:e.disabled,expanded:e.indicatorExpanded,inverse:e.buttonStyle==="solid"||e.inverse,class:"neon-button__indicator"},null,8,["color","disabled","expanded","inverse"])):n.createCommentVNode("",!0)],16,u))}const p=a(r,[["render",c]]);module.exports=p;
1
+ "use strict";const r=require("./NeonButton.cjs.js"),n=require("vue"),a=require("../../../_virtual/_plugin-vue_export-helper.cjs.js"),d={key:1,class:"neon-button__label"},u=["disabled","tabindex"],b={key:1,class:"neon-button__label"};function c(e,o,k,m,y,B){const t=n.resolveComponent("neon-icon"),l=n.resolveComponent("neon-link"),s=n.resolveComponent("neon-expansion-indicator");return e.href?(n.openBlock(),n.createBlock(l,n.mergeProps({key:0,ref:"button",class:[e.classes,"neon-button"],href:e.href,tabindex:e.disabled?-1:0,"outline-style":"none",role:"button"},e.sanitizedAttributes,{onKeydown:n.withKeys(n.withModifiers(e.clickLink,["prevent"]),["space"])}),{default:n.withCtx(()=>[e.icon||e.state!=="ready"?(n.openBlock(),n.createBlock(t,{key:0,color:e.buttonStyle!=="solid"?e.color:void 0,disabled:e.disabled,inverse:e.buttonStyle==="solid"||e.inverse,name:e.iconName},null,8,["color","disabled","inverse","name"])):n.createCommentVNode("",!0),e.label?(n.openBlock(),n.createElementBlock("span",d,n.toDisplayString(e.label),1)):n.createCommentVNode("",!0)]),_:1},16,["class","href","tabindex","onKeydown"])):(n.openBlock(),n.createElementBlock("button",n.mergeProps({key:1,ref:"button",class:[e.classes,"neon-button"],disabled:e.disabled||e.state!=="ready",tabindex:e.disabled?-1:0},e.sanitizedAttributes,{onClick:o[0]||(o[0]=(...i)=>e.clickButton&&e.clickButton(...i))}),[e.icon||e.state!=="ready"?(n.openBlock(),n.createBlock(t,{key:0,color:e.buttonStyle!=="solid"?e.color:void 0,disabled:e.disabled,inverse:e.buttonStyle==="solid"||e.inverse,name:e.iconName},null,8,["color","disabled","inverse","name"])):n.createCommentVNode("",!0),e.label?(n.openBlock(),n.createElementBlock("span",b,n.toDisplayString(e.label),1)):n.createCommentVNode("",!0),e.indicator?(n.openBlock(),n.createBlock(s,{key:2,color:e.buttonStyle==="text"?e.color:"low-contrast",disabled:e.disabled,expanded:e.indicatorExpanded,inverse:e.buttonStyle==="solid"||e.inverse,class:"neon-button__indicator"},null,8,["color","disabled","expanded","inverse"])):n.createCommentVNode("",!0)],16,u))}const p=a(r,[["render",c]]);module.exports=p;
2
2
  //# sourceMappingURL=NeonButton.vue.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NeonButton.vue.cjs.js","sources":["../../../../src/components/user-input/button/NeonButton.vue"],"sourcesContent":["<template>\n <neon-link\n v-if=\"href\"\n ref=\"button\"\n :class=\"classes\"\n :href=\"href\"\n :tabindex=\"!disabled ? 0 : -1\"\n class=\"neon-button\"\n outline-style=\"none\"\n role=\"button\"\n v-bind=\"sanitizedAttributes\"\n @keydown.space.prevent=\"clickLink\"\n >\n <neon-icon\n v-if=\"icon || state !== 'ready'\"\n :color=\"buttonStyle !== 'solid' ? color : undefined\"\n :disabled=\"disabled\"\n :inverse=\"buttonStyle === 'solid' || inverse\"\n :name=\"iconName\"\n />\n <span v-if=\"label\" class=\"neon-button__label\">{{ label }}</span>\n </neon-link>\n <button\n v-else\n ref=\"button\"\n :class=\"classes\"\n :disabled=\"disabled || state !== 'ready'\"\n :tabindex=\"!disabled ? 0 : -1\"\n class=\"neon-button\"\n v-bind=\"sanitizedAttributes\"\n @click=\"clickButton\"\n >\n <neon-icon\n v-if=\"icon || state !== 'ready'\"\n :color=\"buttonStyle !== 'solid' ? color : undefined\"\n :disabled=\"disabled\"\n :inverse=\"buttonStyle === 'solid' || inverse\"\n :name=\"iconName\"\n />\n <span v-if=\"label\" class=\"neon-button__label\">{{ label }}</span>\n <neon-expansion-indicator\n v-if=\"indicator\"\n :color=\"color\"\n :disabled=\"disabled\"\n :expanded=\"indicatorExpanded\"\n :inverse=\"buttonStyle === 'solid' || inverse\"\n class=\"neon-button__indicator\"\n />\n </button>\n</template>\n\n<script lang=\"ts\" src=\"./NeonButton.ts\" />\n"],"names":["_ctx","_openBlock","_createBlock","_component_neon_link","_mergeProps","_component_neon_icon","_createElementBlock","_hoisted_1","_toDisplayString","args","_hoisted_3","_component_neon_expansion_indicator"],"mappings":"8IAoBuB,MAAM,yDAmBN,MAAM,gLArCnBA,EAAA,MADRC,EAAAA,YAAAC,EAAAA,YAoBYC,EApBZC,aAoBY,OAlBV,IAAI,SACH,MAAK,CAAEJ,EAAA,QAGF,aAAa,EAFlB,KAAMA,EAAA,KACN,SAAWA,EAAA,SAAQ,GAAA,EAEpB,gBAAc,OACd,KAAK,UACGA,EAAA,oBAAmB,CAC1B,qCAAuBA,EAAA,UAAS,CAAA,SAAA,CAAA,EAAA,CAAA,OAAA,CAAA,uBAEjC,IAME,CALMA,EAAA,MAAQA,EAAA,QAAK,uBADrBE,EAAAA,YAMEG,EAAA,OAJC,MAAOL,EAAA,cAAW,QAAeA,EAAA,MAAQ,OACzC,SAAUA,EAAA,SACV,QAASA,EAAA,cAAW,SAAgBA,EAAA,QACpC,KAAMA,EAAA,qFAEGA,EAAA,qBAAZM,EAAAA,mBAAgE,OAAhEC,EAAgEC,EAAAA,gBAAfR,EAAA,KAAK,EAAA,CAAA,oFAExDC,EAAAA,YAAAK,EAAAA,mBA0BS,SA1BTF,aA0BS,OAxBP,IAAI,SACH,MAAK,CAAEJ,EAAA,QAGF,aAAa,EAFlB,SAAUA,EAAA,UAAYA,EAAA,QAAK,QAC3B,SAAWA,EAAA,SAAQ,GAAA,GAEZA,EAAA,oBAAmB,CAC1B,4BAAOA,EAAA,aAAAA,EAAA,YAAA,GAAAS,CAAA,MAGAT,EAAA,MAAQA,EAAA,QAAK,uBADrBE,EAAAA,YAMEG,EAAA,OAJC,MAAOL,EAAA,cAAW,QAAeA,EAAA,MAAQ,OACzC,SAAUA,EAAA,SACV,QAASA,EAAA,cAAW,SAAgBA,EAAA,QACpC,KAAMA,EAAA,qFAEGA,EAAA,qBAAZM,EAAAA,mBAAgE,OAAhEI,EAAgEF,EAAAA,gBAAfR,EAAA,KAAK,EAAA,CAAA,+BAE9CA,EAAA,yBADRE,EAAAA,YAOES,EAAA,OALC,MAAOX,EAAA,MACP,SAAUA,EAAA,SACV,SAAUA,EAAA,kBACV,QAASA,EAAA,cAAW,SAAgBA,EAAA,QACrC,MAAM"}
1
+ {"version":3,"file":"NeonButton.vue.cjs.js","sources":["../../../../src/components/user-input/button/NeonButton.vue"],"sourcesContent":["<template>\n <neon-link\n v-if=\"href\"\n ref=\"button\"\n :class=\"classes\"\n :href=\"href\"\n :tabindex=\"!disabled ? 0 : -1\"\n class=\"neon-button\"\n outline-style=\"none\"\n role=\"button\"\n v-bind=\"sanitizedAttributes\"\n @keydown.space.prevent=\"clickLink\"\n >\n <neon-icon\n v-if=\"icon || state !== 'ready'\"\n :color=\"buttonStyle !== 'solid' ? color : undefined\"\n :disabled=\"disabled\"\n :inverse=\"buttonStyle === 'solid' || inverse\"\n :name=\"iconName\"\n />\n <span v-if=\"label\" class=\"neon-button__label\">{{ label }}</span>\n </neon-link>\n <button\n v-else\n ref=\"button\"\n :class=\"classes\"\n :disabled=\"disabled || state !== 'ready'\"\n :tabindex=\"!disabled ? 0 : -1\"\n class=\"neon-button\"\n v-bind=\"sanitizedAttributes\"\n @click=\"clickButton\"\n >\n <neon-icon\n v-if=\"icon || state !== 'ready'\"\n :color=\"buttonStyle !== 'solid' ? color : undefined\"\n :disabled=\"disabled\"\n :inverse=\"buttonStyle === 'solid' || inverse\"\n :name=\"iconName\"\n />\n <span v-if=\"label\" class=\"neon-button__label\">{{ label }}</span>\n <neon-expansion-indicator\n v-if=\"indicator\"\n :color=\"buttonStyle === 'text' ? color : 'low-contrast'\"\n :disabled=\"disabled\"\n :expanded=\"indicatorExpanded\"\n :inverse=\"buttonStyle === 'solid' || inverse\"\n class=\"neon-button__indicator\"\n />\n </button>\n</template>\n\n<script lang=\"ts\" src=\"./NeonButton.ts\" />\n"],"names":["_ctx","_openBlock","_createBlock","_component_neon_link","_mergeProps","_component_neon_icon","_createElementBlock","_hoisted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C,MAAOX,EAAA,cAAW,OAAcA,EAAA,MAAK,eACrC,SAAUA,EAAA,SACV,SAAUA,EAAA,kBACV,QAASA,EAAA,cAAW,SAAgBA,EAAA,QACrC,MAAM"}
@@ -1,16 +1,16 @@
1
1
  import m from "./NeonButton.es.js";
2
- import { resolveComponent as s, openBlock as n, createBlock as i, mergeProps as a, withKeys as y, withModifiers as f, withCtx as k, createCommentVNode as o, createElementBlock as l, toDisplayString as r } from "vue";
2
+ import { resolveComponent as s, openBlock as n, createBlock as i, mergeProps as d, withKeys as y, withModifiers as f, withCtx as k, createCommentVNode as o, createElementBlock as l, toDisplayString as r } from "vue";
3
3
  import c from "../../../_virtual/_plugin-vue_export-helper.es.js";
4
4
  const v = {
5
5
  key: 1,
6
6
  class: "neon-button__label"
7
- }, h = ["disabled", "tabindex"], B = {
7
+ }, h = ["disabled", "tabindex"], S = {
8
8
  key: 1,
9
9
  class: "neon-button__label"
10
10
  };
11
- function S(e, d, w, C, N, $) {
12
- const t = s("neon-icon"), b = s("neon-link"), u = s("neon-expansion-indicator");
13
- return e.href ? (n(), i(b, a({
11
+ function w(e, t, B, C, N, $) {
12
+ const a = s("neon-icon"), b = s("neon-link"), u = s("neon-expansion-indicator");
13
+ return e.href ? (n(), i(b, d({
14
14
  key: 0,
15
15
  ref: "button",
16
16
  class: [e.classes, "neon-button"],
@@ -22,7 +22,7 @@ function S(e, d, w, C, N, $) {
22
22
  onKeydown: y(f(e.clickLink, ["prevent"]), ["space"])
23
23
  }), {
24
24
  default: k(() => [
25
- e.icon || e.state !== "ready" ? (n(), i(t, {
25
+ e.icon || e.state !== "ready" ? (n(), i(a, {
26
26
  key: 0,
27
27
  color: e.buttonStyle !== "solid" ? e.color : void 0,
28
28
  disabled: e.disabled,
@@ -32,26 +32,26 @@ function S(e, d, w, C, N, $) {
32
32
  e.label ? (n(), l("span", v, r(e.label), 1)) : o("", !0)
33
33
  ]),
34
34
  _: 1
35
- }, 16, ["class", "href", "tabindex", "onKeydown"])) : (n(), l("button", a({
35
+ }, 16, ["class", "href", "tabindex", "onKeydown"])) : (n(), l("button", d({
36
36
  key: 1,
37
37
  ref: "button",
38
38
  class: [e.classes, "neon-button"],
39
39
  disabled: e.disabled || e.state !== "ready",
40
40
  tabindex: e.disabled ? -1 : 0
41
41
  }, e.sanitizedAttributes, {
42
- onClick: d[0] || (d[0] = (...p) => e.clickButton && e.clickButton(...p))
42
+ onClick: t[0] || (t[0] = (...p) => e.clickButton && e.clickButton(...p))
43
43
  }), [
44
- e.icon || e.state !== "ready" ? (n(), i(t, {
44
+ e.icon || e.state !== "ready" ? (n(), i(a, {
45
45
  key: 0,
46
46
  color: e.buttonStyle !== "solid" ? e.color : void 0,
47
47
  disabled: e.disabled,
48
48
  inverse: e.buttonStyle === "solid" || e.inverse,
49
49
  name: e.iconName
50
50
  }, null, 8, ["color", "disabled", "inverse", "name"])) : o("", !0),
51
- e.label ? (n(), l("span", B, r(e.label), 1)) : o("", !0),
51
+ e.label ? (n(), l("span", S, r(e.label), 1)) : o("", !0),
52
52
  e.indicator ? (n(), i(u, {
53
53
  key: 2,
54
- color: e.color,
54
+ color: e.buttonStyle === "text" ? e.color : "low-contrast",
55
55
  disabled: e.disabled,
56
56
  expanded: e.indicatorExpanded,
57
57
  inverse: e.buttonStyle === "solid" || e.inverse,
@@ -59,7 +59,7 @@ function S(e, d, w, C, N, $) {
59
59
  }, null, 8, ["color", "disabled", "expanded", "inverse"])) : o("", !0)
60
60
  ], 16, h));
61
61
  }
62
- const A = /* @__PURE__ */ c(m, [["render", S]]);
62
+ const A = /* @__PURE__ */ c(m, [["render", w]]);
63
63
  export {
64
64
  A as default
65
65
  };
@@ -1 +1 @@
1
- {"version":3,"file":"NeonButton.vue.es.js","sources":["../../../../src/components/user-input/button/NeonButton.vue"],"sourcesContent":["<template>\n <neon-link\n v-if=\"href\"\n ref=\"button\"\n :class=\"classes\"\n :href=\"href\"\n :tabindex=\"!disabled ? 0 : -1\"\n class=\"neon-button\"\n outline-style=\"none\"\n role=\"button\"\n v-bind=\"sanitizedAttributes\"\n @keydown.space.prevent=\"clickLink\"\n >\n <neon-icon\n v-if=\"icon || state !== 'ready'\"\n :color=\"buttonStyle !== 'solid' ? color : undefined\"\n :disabled=\"disabled\"\n :inverse=\"buttonStyle === 'solid' || inverse\"\n :name=\"iconName\"\n />\n <span v-if=\"label\" class=\"neon-button__label\">{{ label }}</span>\n </neon-link>\n <button\n v-else\n ref=\"button\"\n :class=\"classes\"\n :disabled=\"disabled || state !== 'ready'\"\n :tabindex=\"!disabled ? 0 : -1\"\n class=\"neon-button\"\n v-bind=\"sanitizedAttributes\"\n @click=\"clickButton\"\n >\n <neon-icon\n v-if=\"icon || state !== 'ready'\"\n :color=\"buttonStyle !== 'solid' ? color : undefined\"\n :disabled=\"disabled\"\n :inverse=\"buttonStyle === 'solid' || inverse\"\n :name=\"iconName\"\n />\n <span v-if=\"label\" class=\"neon-button__label\">{{ label }}</span>\n <neon-expansion-indicator\n v-if=\"indicator\"\n :color=\"color\"\n :disabled=\"disabled\"\n :expanded=\"indicatorExpanded\"\n :inverse=\"buttonStyle === 'solid' || inverse\"\n class=\"neon-button__indicator\"\n />\n </button>\n</template>\n\n<script lang=\"ts\" src=\"./NeonButton.ts\" />\n"],"names":["_ctx","_openBlock","_createBlock","_component_neon_link","_mergeProps","_component_neon_icon","_createElementBlock","_hoisted_1","_toDisplayString","args","_hoisted_3","_component_neon_expansion_indicator"],"mappings":";;;;;EAoBuB,OAAM;;;EAmBN,OAAM;;;;SArCnBA,EAAA,QADRC,KAAAC,EAoBYC,GApBZC,EAoBY;AAAA;IAlBV,KAAI;AAAA,IACH,OAAK,CAAEJ,EAAA,SAGF,aAAa;AAAA,IAFlB,MAAMA,EAAA;AAAA,IACN,UAAWA,EAAA,WAAQ,KAAA;AAAA,IAEpB,iBAAc;AAAA,IACd,MAAK;AAAA,KACGA,EAAA,qBAAmB;AAAA,IAC1B,eAAuBA,EAAA,WAAS,CAAA,SAAA,CAAA,GAAA,CAAA,OAAA,CAAA;AAAA;eAEjC,MAME;AAAA,MALMA,EAAA,QAAQA,EAAA,UAAK,gBADrBE,EAMEG,GAAA;AAAA;QAJC,OAAOL,EAAA,gBAAW,UAAeA,EAAA,QAAQ;AAAA,QACzC,UAAUA,EAAA;AAAA,QACV,SAASA,EAAA,gBAAW,WAAgBA,EAAA;AAAA,QACpC,MAAMA,EAAA;AAAA;MAEGA,EAAA,cAAZM,EAAgE,QAAhEC,GAAgEC,EAAfR,EAAA,KAAK,GAAA,CAAA;;;yDAExDC,KAAAK,EA0BS,UA1BTF,EA0BS;AAAA;IAxBP,KAAI;AAAA,IACH,OAAK,CAAEJ,EAAA,SAGF,aAAa;AAAA,IAFlB,UAAUA,EAAA,YAAYA,EAAA,UAAK;AAAA,IAC3B,UAAWA,EAAA,WAAQ,KAAA;AAAA,KAEZA,EAAA,qBAAmB;AAAA,IAC1B,mCAAOA,EAAA,eAAAA,EAAA,YAAA,GAAAS,CAAA;AAAA;IAGAT,EAAA,QAAQA,EAAA,UAAK,gBADrBE,EAMEG,GAAA;AAAA;MAJC,OAAOL,EAAA,gBAAW,UAAeA,EAAA,QAAQ;AAAA,MACzC,UAAUA,EAAA;AAAA,MACV,SAASA,EAAA,gBAAW,WAAgBA,EAAA;AAAA,MACpC,MAAMA,EAAA;AAAA;IAEGA,EAAA,cAAZM,EAAgE,QAAhEI,GAAgEF,EAAfR,EAAA,KAAK,GAAA,CAAA;IAE9CA,EAAA,kBADRE,EAOES,GAAA;AAAA;MALC,OAAOX,EAAA;AAAA,MACP,UAAUA,EAAA;AAAA,MACV,UAAUA,EAAA;AAAA,MACV,SAASA,EAAA,gBAAW,WAAgBA,EAAA;AAAA,MACrC,OAAM;AAAA;;;;"}
1
+ {"version":3,"file":"NeonButton.vue.es.js","sources":["../../../../src/components/user-input/button/NeonButton.vue"],"sourcesContent":["<template>\n <neon-link\n v-if=\"href\"\n ref=\"button\"\n :class=\"classes\"\n :href=\"href\"\n :tabindex=\"!disabled ? 0 : -1\"\n class=\"neon-button\"\n outline-style=\"none\"\n role=\"button\"\n v-bind=\"sanitizedAttributes\"\n @keydown.space.prevent=\"clickLink\"\n >\n <neon-icon\n v-if=\"icon || state !== 'ready'\"\n :color=\"buttonStyle !== 'solid' ? color : undefined\"\n :disabled=\"disabled\"\n :inverse=\"buttonStyle === 'solid' || inverse\"\n :name=\"iconName\"\n />\n <span v-if=\"label\" class=\"neon-button__label\">{{ label }}</span>\n </neon-link>\n <button\n v-else\n ref=\"button\"\n :class=\"classes\"\n :disabled=\"disabled || state !== 'ready'\"\n :tabindex=\"!disabled ? 0 : -1\"\n class=\"neon-button\"\n v-bind=\"sanitizedAttributes\"\n @click=\"clickButton\"\n >\n <neon-icon\n v-if=\"icon || state !== 'ready'\"\n :color=\"buttonStyle !== 'solid' ? color : undefined\"\n :disabled=\"disabled\"\n :inverse=\"buttonStyle === 'solid' || inverse\"\n :name=\"iconName\"\n />\n <span v-if=\"label\" class=\"neon-button__label\">{{ label }}</span>\n <neon-expansion-indicator\n v-if=\"indicator\"\n :color=\"buttonStyle === 'text' ? color : 'low-contrast'\"\n :disabled=\"disabled\"\n :expanded=\"indicatorExpanded\"\n :inverse=\"buttonStyle === 'solid' || inverse\"\n class=\"neon-button__indicator\"\n />\n </button>\n</template>\n\n<script lang=\"ts\" src=\"./NeonButton.ts\" />\n"],"names":["_ctx","_openBlock","_createBlock","_component_neon_link","_mergeProps","_component_neon_icon","_createElementBlock","_hoisted_1","_toDisplayString","args","_hoisted_3","_component_neon_expansion_indicator"],"mappings":";;;;;EAoBuB,OAAM;;;EAmBN,OAAM;;;;SArCnBA,EAAA,QADRC,KAAAC,EAoBYC,GApBZC,EAoBY;AAAA;IAlBV,KAAI;AAAA,IACH,OAAK,CAAEJ,EAAA,SAGF,aAAa;AAAA,IAFlB,MAAMA,EAAA;AAAA,IACN,UAAWA,EAAA,WAAQ,KAAA;AAAA,IAEpB,iBAAc;AAAA,IACd,MAAK;AAAA,KACGA,EAAA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("../../../_virtual/_plugin-vue_export-helper.cjs.js"),a=["for"],i={class:"neon-field__label-wrapper"},r={class:"neon-field__label"},d={class:"neon-field__contents"};function p(o,l,_,m,u,b){const n=e.resolveComponent("neon-label");return e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass([{"neon-field--optional":o.optional,"neon-field--disabled":o.disabled,"neon-field--with-message":o.message!==null},"neon-field"]),for:o.labelFor},[e.createElementVNode("span",i,[e.createElementVNode("span",r,e.toDisplayString(o.label),1),o.optional?(e.openBlock(),e.createBlock(n,{key:0,disabled:o.disabled,label:o.optionalLabel,class:"neon-field__optional",size:"xxs"},null,8,["disabled","label"])):e.createCommentVNode("",!0)]),e.createElementVNode("div",d,[e.renderSlot(o.$slots,"default"),o.message!==null?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass([`neon-color-text-${o.messageColor}`,"neon-field__message"]),onClick:l[0]||(l[0]=e.withModifiers(()=>{},["prevent","stop"]))},e.toDisplayString(o.message),3)):e.createCommentVNode("",!0)])],10,a)}const c=t(s,[["render",p]]);module.exports=c;
1
+ "use strict";const s=require("./NeonField.cjs.js"),e=require("vue"),a=require("../../../_virtual/_plugin-vue_export-helper.cjs.js"),t=["for"],i={class:"neon-field__label-wrapper"},r={class:"neon-field__label"},d={class:"neon-field__contents"};function p(o,l,_,m,u,b){const n=e.resolveComponent("neon-label");return e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass([{"neon-field--optional":o.optional,"neon-field--disabled":o.disabled,"neon-field--with-message":o.message!==null},"neon-field"]),for:o.labelFor},[e.createElementVNode("span",i,[e.createElementVNode("span",r,e.toDisplayString(o.label),1),o.optional?(e.openBlock(),e.createBlock(n,{key:0,disabled:o.disabled,label:o.optionalLabel,class:"neon-field__optional",size:"xxs"},null,8,["disabled","label"])):e.createCommentVNode("",!0)]),e.createElementVNode("div",d,[e.renderSlot(o.$slots,"default"),o.message!==null?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass([`neon-color-${o.messageColor}`,"neon-field__message"]),onClick:l[0]||(l[0]=e.withModifiers(()=>{},["prevent","stop"]))},e.toDisplayString(o.message),3)):e.createCommentVNode("",!0)])],10,t)}const c=a(s,[["render",p]]);module.exports=c;
2
2
  //# sourceMappingURL=NeonField.vue.cjs.js.map