@energysage/es-ds-components 6.2.0 → 6.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [6.3.1](https://github.com/EnergySage/es-ds/compare/es-ds-components-v6.3.0...es-ds-components-v6.3.1) (2026-10-12)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * EsAutocomplete now works in Safari inside a position fixed container with transform ([#1794](https://github.com/EnergySage/es-ds/issues/1794)) ([233fa49](https://github.com/EnergySage/es-ds/commit/233fa49838d3abf9fb956317c73ef920c5862c11))
9
+
10
+ ## [6.3.0](https://github.com/EnergySage/es-ds/compare/es-ds-components-v6.2.0...es-ds-components-v6.3.0) (2026-10-07)
11
+
12
+
13
+ ### Features
14
+
15
+ * added EsAutocomplete ([#1777](https://github.com/EnergySage/es-ds/issues/1777)) ([2bf3f1e](https://github.com/EnergySage/es-ds/commit/2bf3f1ec79a1af24c96508cdb3662b5503f64700))
16
+
3
17
  ## [6.2.0](https://github.com/EnergySage/es-ds/compare/es-ds-components-v6.1.1...es-ds-components-v6.2.0) (2026-10-02)
4
18
 
5
19
 
@@ -0,0 +1,48 @@
1
+ <script setup lang="ts">
2
+ interface Props {
3
+ clearText?: string;
4
+ }
5
+
6
+ defineProps<Props>();
7
+
8
+ const emit = defineEmits<{
9
+ clear: [];
10
+ }>();
11
+ </script>
12
+
13
+ <template>
14
+ <!-- out of the tab order, not out of the accessibility tree: a screen reader
15
+ cursor, click, or tap still work, while a keyboard user can use select-all
16
+ and delete to clear the text and doesn't have tabbing to the next field impeded
17
+ by the clear button -->
18
+ <button
19
+ class="es-autocomplete-clear align-items-center bg-transparent border-0 d-flex flex-shrink-0 h-100 justify-content-center p-0 rounded-xs text-gray-700"
20
+ tabindex="-1"
21
+ type="button"
22
+ :aria-label="clearText"
23
+ @click="emit('clear')">
24
+ <icon-x
25
+ height="20px"
26
+ width="20px" />
27
+ </button>
28
+ </template>
29
+
30
+ <style lang="scss" scoped>
31
+ @use '@energysage/es-ds-styles/scss/variables' as variables;
32
+
33
+ /* ≥44px square so it is comfortably tappable; a flex sibling of the input, so
34
+ * it can never overlap the entered text */
35
+ .es-autocomplete-clear {
36
+ cursor: pointer;
37
+ width: 2.75rem;
38
+
39
+ &:hover {
40
+ color: variables.$gray-900;
41
+ }
42
+
43
+ &:focus-visible {
44
+ outline: 0.125rem solid variables.$blue-600;
45
+ outline-offset: -0.25rem;
46
+ }
47
+ }
48
+ </style>