Skip to content

Commit

Permalink
progress
Browse files Browse the repository at this point in the history
  • Loading branch information
sikhote committed Aug 30, 2024
1 parent 78f3591 commit be80bff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
11 changes: 2 additions & 9 deletions src/components/fulfillmentTile/CdrFulfillmentTileHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,19 @@
import { useCssModule, computed } from 'vue';
import CdrSubheadingSans from '../text/presets/CdrSubheadingSans.vue';
import CdrFulfillmentTileLayout from './CdrFulfillmentTileLayout.vue';
import { fulfillmentTileHeader, surfaceSelectionLayout } from '../../types/interfaces';
import { surfaceSelectionLayout } from '../../types/interfaces';
/** Fulfillment tile header component */
defineOptions({ name: 'CdrFulfillmentTileHeader' });
const props = withDefaults(defineProps<fulfillmentTileHeader>(), {
disabled: false,
});
const style = useCssModule();
const baseClass = 'cdr-fulfillment-tile-header';
const rootProps = computed(
(): surfaceSelectionLayout => ({
orientation: 'horizontal',
class: {
[style[baseClass]]: true,
[style[`${baseClass}--disabled`]]: props.disabled,
},
class: { [style[baseClass]]: true },
}),
);
</script>
Expand Down
7 changes: 0 additions & 7 deletions src/types/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,13 +263,6 @@ export interface fulfillmentTileContent extends HtmlAttributes {
scale?: ScaleValue;
}

export interface fulfillmentTileHeader extends HtmlAttributes {
/**
* Determines if the content should appear disabled.
*/
disabled?: boolean;
}

export interface fulfillmentTileIcon extends HtmlAttributes {
/**
* The intent or type of message being displayed.
Expand Down

0 comments on commit be80bff

Please sign in to comment.