Skip to content

Commit

Permalink
feat(components): use BIMDataTextBox component from design-system
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasRichel committed Dec 9, 2021
1 parent d149fd3 commit 7b158e2
Show file tree
Hide file tree
Showing 37 changed files with 177 additions and 300 deletions.
67 changes: 58 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "platform-next",
"version": "0.1.0",
"version": "1.0.0",
"private": true,
"scripts": {
"dev": "vue-cli-service serve",
Expand All @@ -10,7 +10,7 @@
"test:e2e": "start-server-and-test 'npm run dev -- --port 3030' 3030 'cypress open'"
},
"dependencies": {
"@bimdata/design-system": "^1.1.0-rc.3",
"@bimdata/design-system": "^1.1.0-rc.8",
"@bimdata/typescript-fetch-api-client": "^6.20.0",
"@bimdata/viewer": "^1.9.0-rc.10",
"@uppy/core": "^2.1.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,16 @@
&__header {
padding: calc(var(--spacing-unit) / 2);
cursor: pointer;
display: flex;
align-items: center;

&__text {
flex-grow: 1;
max-width: 120px;
}

&__icon {
margin-left: calc(var(--spacing-unit) / 2);
margin-bottom: 1px;
vertical-align: bottom;
min-width: 16px;
}
}

Expand Down
16 changes: 5 additions & 11 deletions src/components/generic/breadcrumb-selector/BreadcrumbSelector.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<template>
<div class="breadcrumb-selector" v-click-away="close">
<div class="breadcrumb-selector__header">
<TextBox
<BIMDataTextBox
class="breadcrumb-selector__header__text"
:text="header"
:maxLength="24"
@click="$emit('header-clicked')"
/>
<BIMDataIcon
Expand All @@ -12,7 +12,7 @@
size="xs"
:rotate="isOpen ? 90 : 0"
@click="toggle"
margin="0 0 1px 6px"
margin="0 0 0 6px"
/>
</div>
<transition name="slide-fade-down">
Expand All @@ -30,10 +30,9 @@
:key="item[keyProp]"
@click="() => selectItem(item)"
>
<TextBox
<BIMDataTextBox
:text="item[labelProp]"
:maxLength="24"
cutOn="end"
cutPosition="end"
:tooltip="false"
/>
</div>
Expand All @@ -47,13 +46,8 @@
import { computed } from "vue";
import { useToggle } from "@/composables/toggle";
import { useListFilter } from "@/composables/list-filter";
// Components
import TextBox from "@/components/generic/text-box/TextBox";
export default {
components: {
TextBox
},
props: {
list: {
type: Array,
Expand Down
98 changes: 0 additions & 98 deletions src/components/generic/text-box/TextBox.scss

This file was deleted.

112 changes: 0 additions & 112 deletions src/components/generic/text-box/TextBox.vue

This file was deleted.

Loading

0 comments on commit 7b158e2

Please sign in to comment.