Skip to content

Commit 7e97429

Browse files
committed
fix(types): reverted export Props for ToolbarGroupToggle
1 parent 4d4125f commit 7e97429

File tree

2 files changed

+15
-14
lines changed

2 files changed

+15
-14
lines changed

packages/core/src/components/Toolbar/ToolbarGroup.vue

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,19 @@
1616
</div>
1717
</template>
1818

19+
<script lang="ts">
20+
export interface Props extends OUIAProps, VisibilityBreakpointProps, AlignBreakpointProps, GapBreakpointProps, ColumnGapBreakpointProps, RowGapBreakpointProps, RowWrapBreakpointProps, /* @vue-ignore */ HTMLAttributes {
21+
/** A type modifier which modifies spacing specifically depending on the type of group */
22+
variant?: 'filter-group' | 'action-group' | 'action-group-inline' | 'action-group-plain' | 'label-group';
23+
/** Vertical alignment of children */
24+
alignItems?: 'start' | 'center' | 'baseline' | 'default' | 'end' | 'stretch';
25+
/** Vertical alignment */
26+
alignSelf?: 'start' | 'center' | 'baseline' | 'default' | 'end' | 'stretch';
27+
/** Flag that modifies the toolbar group to hide overflow and respond to available space. Used for horizontal navigation. */
28+
overflowContainer?: boolean;
29+
}
30+
</script>
31+
1932
<script lang="ts" setup>
2033
import { classesFromBreakpointProps, type AlignBreakpointProps, type VisibilityBreakpointProps, type GapBreakpointProps, type ColumnGapBreakpointProps, type RowGapBreakpointProps, type RowWrapBreakpointProps } from '../../breakpoints';
2134
import { toCamelCase } from '../../util';
@@ -27,17 +40,6 @@ defineOptions({
2740
name: 'PfToolbarGroup',
2841
});
2942
30-
interface Props extends OUIAProps, VisibilityBreakpointProps, AlignBreakpointProps, GapBreakpointProps, ColumnGapBreakpointProps, RowGapBreakpointProps, RowWrapBreakpointProps, /* @vue-ignore */ HTMLAttributes {
31-
/** A type modifier which modifies spacing specifically depending on the type of group */
32-
variant?: 'filter-group' | 'action-group' | 'action-group-inline' | 'action-group-plain' | 'label-group';
33-
/** Vertical alignment of children */
34-
alignItems?: 'start' | 'center' | 'baseline' | 'default' | 'end' | 'stretch';
35-
/** Vertical alignment */
36-
alignSelf?: 'start' | 'center' | 'baseline' | 'default' | 'end' | 'stretch';
37-
/** Flag that modifies the toolbar group to hide overflow and respond to available space. Used for horizontal navigation. */
38-
overflowContainer?: boolean;
39-
}
40-
4143
const props = defineProps<Props>();
4244
const ouiaProps = useOUIAProps({id: props.ouiaId, safe: props.ouiaSafe});
4345

packages/core/src/components/Toolbar/ToolbarToggleGroup.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,14 @@ import { useWindowSize } from '@vueuse/core';
3030
import { computed, inject } from 'vue';
3131
import { ToolbarExpandedKey, ToolbarToggleExpandedKey } from './Toolbar.vue';
3232
import { ToolbarContentExpandableRefKey } from './ToolbarContent.vue';
33-
import type PfToolbarGroup from './ToolbarGroup.vue';
33+
import type { Props as ToolbarGroupProps } from './ToolbarGroup.vue';
3434
import { useOUIAProps } from '../../helpers/ouia';
35-
import type { ComponentProps } from 'vue-component-type-helpers';
3635
3736
defineOptions({
3837
name: 'PfToolbarToggleGroup',
3938
});
4039
41-
interface Props extends ComponentProps<typeof PfToolbarGroup>, BreakpointProps {
40+
interface Props extends ToolbarGroupProps, BreakpointProps {
4241
}
4342
4443
const props = defineProps<Props>();

0 commit comments

Comments
 (0)