diff --git a/packages/design-system/src/components/OcSingleTile/OcSingleTile.vue b/packages/design-system/src/components/OcSingleTile/OcSingleTile.vue new file mode 100644 index 00000000000..a0ded46c62c --- /dev/null +++ b/packages/design-system/src/components/OcSingleTile/OcSingleTile.vue @@ -0,0 +1,50 @@ + + + + + + diff --git a/packages/design-system/src/components/OcTiles/OcTiles.vue b/packages/design-system/src/components/OcTiles/OcTiles.vue new file mode 100644 index 00000000000..f66f358d0f1 --- /dev/null +++ b/packages/design-system/src/components/OcTiles/OcTiles.vue @@ -0,0 +1,411 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ field.callback(item[field.name]) }} + + + + {{ item[field.name] }} + + + + + + + + + + + + + diff --git a/packages/design-system/src/components/index.ts b/packages/design-system/src/components/index.ts index b0979bd8ba4..853bd61fa68 100644 --- a/packages/design-system/src/components/index.ts +++ b/packages/design-system/src/components/index.ts @@ -40,6 +40,7 @@ export { default as OcResourceName } from './OcResourceName/OcResourceName.vue' export { default as OcResourceSize } from './OcResourceSize/OcResourceSize.vue' export { default as OcSearchBar } from './OcSearchBar/OcSearchBar.vue' export { default as OcSelect } from './OcSelect/OcSelect.vue' +export { default as OcSingleTile } from './OcSingleTile/OcSingleTile.vue' export { default as OcSpinner } from './OcSpinner/OcSpinner.vue' export { default as OcStatusIndicators } from './OcStatusIndicators/OcStatusIndicators.vue' export { default as OcSwitch } from './OcSwitch/OcSwitch.vue' @@ -55,3 +56,4 @@ export { default as OcTableSimple } from './OcTableSimple/OcTableSimple.vue' export { default as OcTag } from './OcTag/OcTag.vue' export { default as OcTextarea } from './OcTextarea/OcTextarea.vue' export { default as OcTextInput } from './OcTextInput/OcTextInput.vue' +export { default as OcTiles } from './OcTiles/OcTiles.vue' diff --git a/packages/design-system/src/tokens/ods/size.yaml b/packages/design-system/src/tokens/ods/size.yaml index f6b739af19f..15a736eb8e5 100644 --- a/packages/design-system/src/tokens/ods/size.yaml +++ b/packages/design-system/src/tokens/ods/size.yaml @@ -1,5 +1,10 @@ --- size: + tiles-size: + # option 1: rem + value: 12rem + # option 2: percent + # value: 12.5% max-width: logo: value: 150px