Skip to content

Commit b95ce8c

Browse files
committed
fix(TableWrapper): move from components/prose to components/content
1 parent c204bc3 commit b95ce8c

File tree

31 files changed

+32
-31
lines changed

31 files changed

+32
-31
lines changed

demo/app/composables/usePageMeta.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ const components: IComponentInfo[] = [
7070
{ id: 'slideover', description: 'A dialog that slides in from any side of the screen.', icon: GroupIcon },
7171
{ id: 'switch', description: 'A control that toggles between two states.', icon: FormIcon },
7272
{ id: 'tabs', description: 'A set of tab panels that are displayed one at a time.', icon: FolderEmptyIcon },
73-
{ id: 'prose/table-wrapper', description: 'Wrapper for displaying a table.', icon: GroupIcon },
73+
{ id: 'content/table-wrapper', description: 'Wrapper for displaying a table.', icon: GroupIcon },
7474
{ id: 'textarea', description: 'A textarea element to input multi-line text.', icon: FormIcon },
7575
{ id: 'toast', description: 'A succinct message to provide information or feedback to the user.', icon: GroupIcon },
7676
{ id: 'tooltip', description: 'A popup that reveals information when hovering over an element.', icon: GroupIcon }

demo/app/pages/components/prose/table-wrapper.vue renamed to demo/app/pages/components/content/table-wrapper.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup lang="ts">
2-
import theme from '#build/b24ui/prose/table-wrapper'
2+
import theme from '#build/b24ui/content/table-wrapper'
33
import usePageMeta from './../../../composables/usePageMeta'
44
import ExampleGrid from '../../../components/ExampleGrid.vue'
55
import ExampleCard from '../../../components/ExampleCard.vue'

docs/.vitepress/config/en.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ function sidebarComponents(): DefaultTheme.SidebarItem[] {
123123
{ text: 'Badge', link: 'badge' },
124124
{ text: 'Countdown', link: 'countdown' },
125125
{ text: 'Kbd', link: 'kbd' },
126-
{ text: 'TableWrapper', base: '/components/prose/', link: 'table-wrapper' }
126+
{ text: 'TableWrapper', base: '/components/content/', link: 'table-wrapper' }
127127
]
128128
},
129129
{

docs/components/prose/table-wrapper.md renamed to docs/components/content/table-wrapper.md

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,20 @@ description: Wrapper for displaying a html table
44
outline: deep
55
---
66
<script setup>
7-
import TableWrapperExample from '/examples/prose/tablewrapper/TableWrapper.vue';
8-
import BorderBackgroundExample from '/examples/prose/tablewrapper/BorderBackground.vue';
9-
import HighlightsRowExample from '/examples/prose/tablewrapper/HighlightsRow.vue';
10-
import HighlightsRowHoverExample from '/examples/prose/tablewrapper/HighlightsRowHover.vue';
11-
import ZebraExample from '/examples/prose/tablewrapper/Zebra.vue';
12-
import PinnedRowsExample from '/examples/prose/tablewrapper/PinnedRows.vue';
13-
import PinnedRowsColsExample from '/examples/prose/tablewrapper/PinnedRowsCols.vue';
14-
import SizeExample from '/examples/prose/tablewrapper/Size.vue';
7+
import TableWrapperExample from '/examples/content/tablewrapper/TableWrapper.vue';
8+
import BorderBackgroundExample from '/examples/content/tablewrapper/BorderBackground.vue';
9+
import HighlightsRowExample from '/examples/content/tablewrapper/HighlightsRow.vue';
10+
import HighlightsRowHoverExample from '/examples/content/tablewrapper/HighlightsRowHover.vue';
11+
import ZebraExample from '/examples/content/tablewrapper/Zebra.vue';
12+
import PinnedRowsExample from '/examples/content/tablewrapper/PinnedRows.vue';
13+
import PinnedRowsColsExample from '/examples/content/tablewrapper/PinnedRowsCols.vue';
14+
import SizeExample from '/examples/content/tablewrapper/Size.vue';
1515
</script>
1616
# TableWrapper
1717

1818
<Description
19-
git="https://github.com/bitrix24/b24ui/blob/main/src/runtime/components/prose/TableWrapper.vue"
19+
git="https://github.com/bitrix24/b24ui/blob/main/src/runtime/components/content/TableWrapper.vue"
20+
demo="/components/content/table-wrapper"
2021
>
2122
Wrapper for displaying a html table
2223
</Description>
@@ -34,7 +35,7 @@ You are free to style the table as you wish.
3435
</div>
3536

3637
::: details
37-
<<< @/examples/prose/tablewrapper/demo/TableWrapper.vue{2-4,63 vue:line-numbers}
38+
<<< @/examples/content/tablewrapper/demo/TableWrapper.vue{2-4,63 vue:line-numbers}
3839
:::
3940

4041
### Size
@@ -48,7 +49,7 @@ By using the `size` property, you can adjust the size of the table.
4849
</div>
4950

5051
::: details
51-
<<< @/examples/prose/tablewrapper/demo/Size.vue{14 vue:line-numbers}
52+
<<< @/examples/content/tablewrapper/demo/Size.vue{14 vue:line-numbers}
5253
:::
5354

5455
### Border and background
@@ -66,7 +67,7 @@ To round the corners, use the `rounded` parameter.
6667
</div>
6768

6869
::: details
69-
<<< @/examples/prose/tablewrapper/demo/BorderBackground.vue{3-8 vue:line-numbers}
70+
<<< @/examples/content/tablewrapper/demo/BorderBackground.vue{3-8 vue:line-numbers}
7071
:::
7172

7273
### Highlights row
@@ -80,7 +81,7 @@ To highlight table rows, use the class of the `tr` tag.
8081
</div>
8182

8283
::: details
83-
<<< @/examples/prose/tablewrapper/demo/HighlightsRow.vue{24,38 vue:line-numbers}
84+
<<< @/examples/content/tablewrapper/demo/HighlightsRow.vue{24,38 vue:line-numbers}
8485
:::
8586

8687
### Highlights row on hover
@@ -94,7 +95,7 @@ To highlight a row when hovering the cursor, use something like `hover:bg-red-50
9495
</div>
9596

9697
::: details
97-
<<< @/examples/prose/tablewrapper/demo/HighlightsRowHover.vue{24,38 vue:line-numbers}
98+
<<< @/examples/content/tablewrapper/demo/HighlightsRowHover.vue{24,38 vue:line-numbers}
9899
:::
99100

100101
### Zebra
@@ -110,7 +111,7 @@ For automatic row highlighting on hover, use the `rowHover` property.
110111
</div>
111112

112113
::: details
113-
<<< @/examples/prose/tablewrapper/demo/Zebra.vue{4,5 vue:line-numbers}
114+
<<< @/examples/content/tablewrapper/demo/Zebra.vue{4,5 vue:line-numbers}
114115
:::
115116

116117
### Pinned rows
@@ -126,7 +127,7 @@ Define the pinned-row using `<thead> ... </thead>` or `<tfoot></tfoot>`.
126127
</div>
127128

128129
::: details
129-
<<< @/examples/prose/tablewrapper/demo/PinnedRows.vue{5 vue:line-numbers}
130+
<<< @/examples/content/tablewrapper/demo/PinnedRows.vue{5 vue:line-numbers}
130131
:::
131132

132133
### Pinned rows and cols
@@ -142,7 +143,7 @@ Define the columns using `<th>...</th>`.
142143
</div>
143144

144145
::: details
145-
<<< @/examples/prose/tablewrapper/demo/PinnedRowsCols.vue{5-6 vue:line-numbers}
146+
<<< @/examples/content/tablewrapper/demo/PinnedRowsCols.vue{5-6 vue:line-numbers}
146147
:::
147148

148149
## API

docs/components/description-list.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ description: 'For instances requiring the conversion of a table row into its own
44
outline: deep
55
---
66
<script setup>
7-
import DescriptionListExample from '/examples/descriptionlist/DescriptionList.vue';
87
import IconsExample from '/examples/descriptionlist/Icons.vue';
8+
import DescriptionListExample from '/examples/descriptionlist/DescriptionList.vue';
99
import ActionsExample from '/examples/descriptionlist/Actions.vue';
1010
import CustomExample from '/examples/descriptionlist/Custom.vue';
1111
</script>

0 commit comments

Comments
 (0)