@dillingerstaffing/strand-vue 0.12.0 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Link/Link.vue.d.ts +3 -0
- package/dist/components/Link/Link.vue.d.ts.map +1 -1
- package/dist/components/Nav/Nav.vue.d.ts +3 -0
- package/dist/components/Nav/Nav.vue.d.ts.map +1 -1
- package/dist/components/Section/Section.vue.d.ts +5 -2
- package/dist/components/Section/Section.vue.d.ts.map +1 -1
- package/dist/css/strand-ui.css +71 -0
- package/dist/index.js +119 -115
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/components/Link/Link.test.ts +12 -0
- package/src/components/Link/Link.vue +4 -1
- package/src/components/Nav/Nav.test.ts +14 -0
- package/src/components/Nav/Nav.vue +4 -1
- package/src/components/Section/Section.test.ts +10 -0
- package/src/components/Section/Section.vue +5 -1
|
@@ -4,9 +4,11 @@ import { computed } from 'vue'
|
|
|
4
4
|
|
|
5
5
|
interface Props {
|
|
6
6
|
/** Padding variant */
|
|
7
|
-
variant?: 'standard' | 'hero'
|
|
7
|
+
variant?: 'standard' | 'hero' | 'compact'
|
|
8
8
|
/** Surface background */
|
|
9
9
|
background?: 'primary' | 'elevated' | 'recessed'
|
|
10
|
+
/** Top border separator */
|
|
11
|
+
borderTop?: boolean
|
|
10
12
|
/** Additional CSS class */
|
|
11
13
|
className?: string
|
|
12
14
|
}
|
|
@@ -14,6 +16,7 @@ interface Props {
|
|
|
14
16
|
const props = withDefaults(defineProps<Props>(), {
|
|
15
17
|
variant: 'standard',
|
|
16
18
|
background: 'primary',
|
|
19
|
+
borderTop: false,
|
|
17
20
|
className: '',
|
|
18
21
|
})
|
|
19
22
|
|
|
@@ -22,6 +25,7 @@ const classes = computed(() =>
|
|
|
22
25
|
'strand-section',
|
|
23
26
|
`strand-section--${props.variant}`,
|
|
24
27
|
`strand-section--bg-${props.background}`,
|
|
28
|
+
props.borderTop && 'strand-section--border-top',
|
|
25
29
|
props.className,
|
|
26
30
|
]
|
|
27
31
|
.filter(Boolean)
|