fix: remove eslint and prettier warnings

This commit is contained in:
Łukasz Holeczek
2021-10-31 20:50:56 +01:00
parent 1660d556f7
commit d2d9de7520
40 changed files with 388 additions and 480 deletions
+1 -1
View File
@@ -1,3 +1,3 @@
module.exports = { module.exports = {
presets: ['@vue/cli-plugin-babel/preset'] presets: ['@vue/cli-plugin-babel/preset'],
} }
-1
View File
@@ -6,4 +6,3 @@
// Import Main styles for this application // Import Main styles for this application
@import 'styles/style'; @import 'styles/style';
</style> </style>
+10 -10
View File
@@ -22,9 +22,9 @@ import {
cibCcStripe, cibCcStripe,
cibCcPaypal, cibCcPaypal,
cibCcApplePay, cibCcApplePay,
cibCcAmex cibCcAmex,
} from "@coreui/icons"; } from '@coreui/icons'
import { cifUs, cifBr, cifIn, cifFr, cifEs, cifPl } from "@coreui/icons"; import { cifUs, cifBr, cifIn, cifFr, cifEs, cifPl } from '@coreui/icons'
import { import {
cilArrowBottom, cilArrowBottom,
cilArrowRight, cilArrowRight,
@@ -76,8 +76,8 @@ import {
cilUser, cilUser,
cilUserFemale, cilUserFemale,
cilUserFollow, cilUserFollow,
cilXCircle cilXCircle,
} from "@coreui/icons"; } from '@coreui/icons'
export const iconsSet = Object.assign( export const iconsSet = Object.assign(
{}, {},
@@ -132,7 +132,7 @@ export const iconsSet = Object.assign(
cilUser, cilUser,
cilUserFemale, cilUserFemale,
cilUserFollow, cilUserFollow,
cilXCircle cilXCircle,
}, },
{ {
cifUs, cifUs,
@@ -140,7 +140,7 @@ export const iconsSet = Object.assign(
cifIn, cifIn,
cifFr, cifFr,
cifEs, cifEs,
cifPl cifPl,
}, },
{ {
cibFacebook, cibFacebook,
@@ -166,6 +166,6 @@ export const iconsSet = Object.assign(
cibCcStripe, cibCcStripe,
cibCcPaypal, cibCcPaypal,
cibCcApplePay, cibCcApplePay,
cibCcAmex cibCcAmex,
} },
); )
+1 -1
View File
@@ -2,9 +2,9 @@
<CBreadcrumb class="d-md-down-none me-auto mb-0"> <CBreadcrumb class="d-md-down-none me-auto mb-0">
<CBreadcrumbItem <CBreadcrumbItem
v-for="item in breadcrumbs" v-for="item in breadcrumbs"
:key="item"
:href="item.active ? '' : item.path" :href="item.active ? '' : item.path"
:active="item.active" :active="item.active"
:key="item"
> >
{{ item.name }} {{ item.name }}
</CBreadcrumbItem> </CBreadcrumbItem>
-1
View File
@@ -55,7 +55,6 @@ export default {
AppHeaderDropdownAccnt, AppHeaderDropdownAccnt,
}, },
setup() { setup() {
return { return {
logo, logo,
} }
+2 -2
View File
@@ -13,12 +13,12 @@
> >
<CSidebarBrand> <CSidebarBrand>
<CIcon <CIcon
customClassName="sidebar-brand-full" custom-class-name="sidebar-brand-full"
:icon="logoNegative" :icon="logoNegative"
:height="35" :height="35"
/> />
<CIcon <CIcon
customClassName="sidebar-brand-narrow" custom-class-name="sidebar-brand-narrow"
:icon="sygnet" :icon="sygnet"
:height="35" :height="35"
/> />
+10 -2
View File
@@ -1,7 +1,13 @@
import { defineComponent, h, onMounted, ref, resolveComponent } from 'vue' import { defineComponent, h, onMounted, ref, resolveComponent } from 'vue'
import { RouterLink, useRoute } from 'vue-router' import { RouterLink, useRoute } from 'vue-router'
import { CBadge, CSidebarNav, CNavItem, CNavGroup, CNavTitle } from '@coreui/vue' import {
CBadge,
CSidebarNav,
CNavItem,
CNavGroup,
CNavTitle,
} from '@coreui/vue'
import nav from '@/_nav.js' import nav from '@/_nav.js'
const normalizePath = (path) => const normalizePath = (path) =>
@@ -56,7 +62,9 @@ const AppSidebarNav = defineComponent({
return h( return h(
CNavGroup, CNavGroup,
{ {
...firstRender.value && { visible: item.items.some((child) => isActiveItem(route, child))} ...(firstRender.value && {
visible: item.items.some((child) => isActiveItem(route, child)),
}),
}, },
{ {
togglerContent: () => [ togglerContent: () => [
+10 -6
View File
@@ -1,16 +1,20 @@
<template> <template>
<CCallout color="info" class="bg-white"> <CCallout color="info" class="bg-white">
{{content {{
content
? content ? content
: `A Vue ${name} component ${ : `A Vue ${name} component ${
plural ? 'have' : 'has' plural ? 'have' : 'has'
} been created as a native Vue.js version } been created as a native Vue.js version
of Bootstrap ${name}. ${name} ${plural ? 'are' : 'is'} delivered with some new features, of Bootstrap ${name}. ${name} ${
variants, and unique design that matches CoreUI Design System requirements.`}} plural ? 'are' : 'is'
} delivered with some new features,
variants, and unique design that matches CoreUI Design System requirements.`
}}
<br /> <br />
<br /> <br />
For more information please visit our official For more information please visit our official
<CLink :href="href" target="_blank"> <CLink :href="url" target="_blank">
documentation of CoreUI Components Library for Vue.js documentation of CoreUI Components Library for Vue.js
</CLink> </CLink>
. .
@@ -40,10 +44,10 @@ export default {
plural: Boolean, plural: Boolean,
}, },
setup(props) { setup(props) {
const href = `https://coreui.io/vue/docs/${packageJson.config.coreui_library_short_version}/${props.href}` const url = `https://coreui.io/vue/docs/${packageJson.config.coreui_library_short_version}/${props.url}`
return { return {
href, url,
} }
}, },
} }
+3 -3
View File
@@ -7,7 +7,7 @@
</CNavLink> </CNavLink>
</CNavItem> </CNavItem>
<CNavItem> <CNavItem>
<CNavLink :href="href" target="_blank"> <CNavLink :href="url" target="_blank">
<CIcon icon="cil-code" class="me-2" /> <CIcon icon="cil-code" class="me-2" />
Code Code
</CNavLink> </CNavLink>
@@ -33,10 +33,10 @@ export default {
}, },
}, },
setup(props) { setup(props) {
const href = `https://coreui.io/vue/docs/${pkg.config.coreui_library_short_version}/${props.href}` const url = `https://coreui.io/vue/docs/${pkg.config.coreui_library_short_version}/${props.href}`
return { return {
href, url,
} }
}, },
} }
+6 -6
View File
@@ -13,18 +13,18 @@
</div> </div>
</template> </template>
<script> <script>
import { CContainer, CDropdown, CDropdownItem } from "@coreui/vue"; import { CContainer } from '@coreui/vue'
import AppFooter from "@/components/AppFooter.vue"; import AppFooter from '@/components/AppFooter.vue'
import AppHeader from "@/components/AppHeader.vue"; import AppHeader from '@/components/AppHeader.vue'
import AppSidebar from "@/components/AppSidebar.vue"; import AppSidebar from '@/components/AppSidebar.vue'
export default { export default {
name: "DefaultLayout", name: 'DefaultLayout',
components: { components: {
AppFooter, AppFooter,
AppHeader, AppHeader,
AppSidebar, AppSidebar,
CContainer, CContainer,
}, },
}; }
</script> </script>
+3 -3
View File
@@ -274,17 +274,17 @@ const routes = [
{ {
path: '500', path: '500',
name: 'Page500', name: 'Page500',
component: () => import('@/views/pages/Page500') component: () => import('@/views/pages/Page500'),
}, },
{ {
path: 'login', path: 'login',
name: 'Login', name: 'Login',
component: () => import('@/views/pages/Login') component: () => import('@/views/pages/Login'),
}, },
{ {
path: 'register', path: 'register',
name: 'Register', name: 'Register',
component: () => import('@/views/pages/Register') component: () => import('@/views/pages/Register'),
}, },
], ],
}, },
+1 -1
View File
@@ -14,7 +14,7 @@ export default createStore({
}, },
updateSidebarVisible(state, payload) { updateSidebarVisible(state, payload) {
state.sidebarVisible = payload.value state.sidebarVisible = payload.value
} },
}, },
actions: {}, actions: {},
modules: {}, modules: {},
+21 -5
View File
@@ -128,9 +128,15 @@
</CCol> </CCol>
</CRow> </CRow>
<hr class="mt-0" /> <hr class="mt-0" />
<div class="progress-group mb-4" v-for="item in progressGroupExample1" :key="item.title"> <div
v-for="item in progressGroupExample1"
:key="item.title"
class="progress-group mb-4"
>
<div class="progress-group-prepend"> <div class="progress-group-prepend">
<span class="text-medium-emphasis small">{{item.title}}</span> <span class="text-medium-emphasis small">{{
item.title
}}</span>
</div> </div>
<div class="progress-group-bars"> <div class="progress-group-bars">
<CProgress thin color="info" :value="item.value1" /> <CProgress thin color="info" :value="item.value1" />
@@ -168,7 +174,11 @@
</CCol> </CCol>
</CRow> </CRow>
<hr class="mt-0" /> <hr class="mt-0" />
<div class="progress-group" v-for="item in progressGroupExample2" :key="item.title"> <div
v-for="item in progressGroupExample2"
:key="item.title"
class="progress-group"
>
<div class="progress-group-header"> <div class="progress-group-header">
<CIcon :icon="item.icon" class="me-2" size="lg" /> <CIcon :icon="item.icon" class="me-2" size="lg" />
<span class="title">{{ item.title }}</span> <span class="title">{{ item.title }}</span>
@@ -181,13 +191,19 @@
<div class="mb-5"></div> <div class="mb-5"></div>
<div class="progress-group" v-for="item in progressGroupExample3" :key="item.title"> <div
v-for="item in progressGroupExample3"
:key="item.title"
class="progress-group"
>
<div class="progress-group-header"> <div class="progress-group-header">
<CIcon :icon="item.icon" class="me-2" size="lg" /> <CIcon :icon="item.icon" class="me-2" size="lg" />
<span class="title">Organic Search</span> <span class="title">Organic Search</span>
<span class="ms-auto fw-semibold"> <span class="ms-auto fw-semibold">
{{ item.value }} {{ item.value }}
<span class="text-medium-emphasis small">({{item.percent}}%)</span> <span class="text-medium-emphasis small"
>({{ item.percent }}%)</span
>
</span> </span>
</div> </div>
<div class="progress-group-bars"> <div class="progress-group-bars">
+7 -7
View File
@@ -14,7 +14,7 @@
</p> </p>
<DocsExample href="components/accordion"> <DocsExample href="components/accordion">
<CAccordion> <CAccordion>
<CAccordionItem :itemKey="1"> <CAccordionItem :item-key="1">
<CAccordionHeader> Accordion Item #1 </CAccordionHeader> <CAccordionHeader> Accordion Item #1 </CAccordionHeader>
<CAccordionBody> <CAccordionBody>
<strong>This is the first item's accordion body.</strong> It <strong>This is the first item's accordion body.</strong> It
@@ -28,7 +28,7 @@
overflow. overflow.
</CAccordionBody> </CAccordionBody>
</CAccordionItem> </CAccordionItem>
<CAccordionItem :itemKey="2"> <CAccordionItem :item-key="2">
<CAccordionHeader> Accordion Item #2 </CAccordionHeader> <CAccordionHeader> Accordion Item #2 </CAccordionHeader>
<CAccordionBody> <CAccordionBody>
<strong>This is the second item's accordion body.</strong> It <strong>This is the second item's accordion body.</strong> It
@@ -42,7 +42,7 @@
overflow. overflow.
</CAccordionBody> </CAccordionBody>
</CAccordionItem> </CAccordionItem>
<CAccordionItem :itemKey="3"> <CAccordionItem :item-key="3">
<CAccordionHeader> Accordion Item #3 </CAccordionHeader> <CAccordionHeader> Accordion Item #3 </CAccordionHeader>
<CAccordionBody> <CAccordionBody>
<strong>This is the third item's accordion body.</strong> It <strong>This is the third item's accordion body.</strong> It
@@ -129,8 +129,8 @@
open when another item is opened. open when another item is opened.
</p> </p>
<DocsExample href="components/accordion#always-open"> <DocsExample href="components/accordion#always-open">
<CAccordion :activeItemKey="2" alwaysOpen> <CAccordion :active-item-key="2" always-open>
<CAccordionItem :itemKey="1"> <CAccordionItem :item-key="1">
<CAccordionHeader> Accordion Item #1 </CAccordionHeader> <CAccordionHeader> Accordion Item #1 </CAccordionHeader>
<CAccordionBody> <CAccordionBody>
<strong>This is the first item's accordion body.</strong> It <strong>This is the first item's accordion body.</strong> It
@@ -144,7 +144,7 @@
overflow. overflow.
</CAccordionBody> </CAccordionBody>
</CAccordionItem> </CAccordionItem>
<CAccordionItem :itemKey="2"> <CAccordionItem :item-key="2">
<CAccordionHeader> Accordion Item #2 </CAccordionHeader> <CAccordionHeader> Accordion Item #2 </CAccordionHeader>
<CAccordionBody> <CAccordionBody>
<strong>This is the second item's accordion body.</strong> It <strong>This is the second item's accordion body.</strong> It
@@ -158,7 +158,7 @@
overflow. overflow.
</CAccordionBody> </CAccordionBody>
</CAccordionItem> </CAccordionItem>
<CAccordionItem :itemKey="3"> <CAccordionItem :item-key="3">
<CAccordionHeader> Accordion Item #3 </CAccordionHeader> <CAccordionHeader> Accordion Item #3 </CAccordionHeader>
<CAccordionBody> <CAccordionBody>
<strong>This is the third item's accordion body.</strong> It <strong>This is the third item's accordion body.</strong> It
+10 -13
View File
@@ -571,7 +571,7 @@
<CCard <CCard
class="mb-3" class="mb-3"
:color="item.color" :color="item.color"
:textColor="item.textColor" :text-color="item.textColor"
> >
<CCardHeader>Header</CCardHeader> <CCardHeader>Header</CCardHeader>
<CCardBody> <CCardBody>
@@ -612,7 +612,7 @@
:key="item" :key="item"
> >
<CCard <CCard
:textColor="item.textColor" :text-color="item.textColor"
class="mb-3" class="mb-3"
:class="'border-' + item.color" :class="'border-' + item.color"
style="max-width: 18rem" style="max-width: 18rem"
@@ -654,7 +654,7 @@
:key="item.color" :key="item.color"
> >
<CCard <CCard
:textColor="item.textColor" :text-color="item.textColor"
class="mb-3 border-top-3" class="mb-3 border-top-3"
:class="'border-top-' + item.color" :class="'border-top-' + item.color"
style="max-width: 18rem" style="max-width: 18rem"
@@ -802,16 +802,13 @@
<CCardBody> <CCardBody>
<p class="text-medium-emphasis small"> <p class="text-medium-emphasis small">
Use the <code>CRow</code> component and set Use the <code>CRow</code> component and set
<code <code>&#123;xs|sm|md|lg|xl|xxl&#125;="&#123; cols: * &#125;"</code>
>&#123;xs|sm|md|lg|xl|xxl&#125;="&#123; cols: *
&#125;"</code
>
property to control how many grid columns (wrapped around your property to control how many grid columns (wrapped around your
cards) you show per row. For example, here&#39;s cards) you show per row. For example, here&#39;s
<code>xs="&#123;cols: 1&#125;"</code> laying out the cards <code>xs="&#123;cols: 1&#125;"</code> laying out the cards on one
on one column, and column, and <code>md="&#123;cols: 1&#125;"</code> splitting four
<code>md="&#123;cols: 1&#125;"</code> splitting four cards cards to equal width across multiple rows, from the medium
to equal width across multiple rows, from the medium breakpoint up. breakpoint up.
</p> </p>
<DocsExample href="components/card/#grid-cards"> <DocsExample href="components/card/#grid-cards">
<CRow :xs="{ cols: 1, gutter: 4 }" :md="{ cols: 2 }"> <CRow :xs="{ cols: 1, gutter: 4 }" :md="{ cols: 2 }">
@@ -890,8 +887,8 @@
</CRow> </CRow>
</DocsExample> </DocsExample>
<p class="text-medium-emphasis small"> <p class="text-medium-emphasis small">
Change it to <code>md="&#123; cols: 3&#125;"</code> and Change it to <code>md="&#123; cols: 3&#125;"</code> and you&#39;ll
you&#39;ll see the fourth card wrap. see the fourth card wrap.
</p> </p>
<DocsExample href="components/card/#grid-cards"> <DocsExample href="components/card/#grid-cards">
<CRow :xs="{ cols: 1, gutter: 4 }" :md="{ cols: 3 }"> <CRow :xs="{ cols: 1, gutter: 4 }" :md="{ cols: 3 }">
+19 -91
View File
@@ -15,25 +15,13 @@
<DocsExample href="components/carousel.html#slides-only"> <DocsExample href="components/carousel.html#slides-only">
<CCarousel> <CCarousel>
<CCarouselItem> <CCarouselItem>
<img <img class="d-block w-100" :src="VueImg" alt="slide 1" />
class="d-block w-100"
:src="VueImg"
alt="slide 1"
/>
</CCarouselItem> </CCarouselItem>
<CCarouselItem> <CCarouselItem>
<img <img class="d-block w-100" :src="ReactImg" alt="slide 2" />
class="d-block w-100"
:src="ReactImg"
alt="slide 2"
/>
</CCarouselItem> </CCarouselItem>
<CCarouselItem> <CCarouselItem>
<img <img class="d-block w-100" :src="AngularImg" alt="slide 3" />
class="d-block w-100"
:src="AngularImg"
alt="slide 3"
/>
</CCarouselItem> </CCarouselItem>
</CCarousel> </CCarousel>
</DocsExample> </DocsExample>
@@ -51,25 +39,13 @@
<DocsExample href="components/carousel.html#with-controls"> <DocsExample href="components/carousel.html#with-controls">
<CCarousel controls> <CCarousel controls>
<CCarouselItem> <CCarouselItem>
<img <img class="d-block w-100" :src="VueImg" alt="slide 1" />
class="d-block w-100"
:src="VueImg"
alt="slide 1"
/>
</CCarouselItem> </CCarouselItem>
<CCarouselItem> <CCarouselItem>
<img <img class="d-block w-100" :src="ReactImg" alt="slide 2" />
class="d-block w-100"
:src="ReactImg"
alt="slide 2"
/>
</CCarouselItem> </CCarouselItem>
<CCarouselItem> <CCarouselItem>
<img <img class="d-block w-100" :src="AngularImg" alt="slide 3" />
class="d-block w-100"
:src="AngularImg"
alt="slide 3"
/>
</CCarouselItem> </CCarouselItem>
</CCarousel> </CCarousel>
</DocsExample> </DocsExample>
@@ -87,25 +63,13 @@
<DocsExample href="components/carousel.html#with-indicators"> <DocsExample href="components/carousel.html#with-indicators">
<CCarousel controls indicators> <CCarousel controls indicators>
<CCarouselItem> <CCarouselItem>
<img <img class="d-block w-100" :src="VueImg" alt="slide 1" />
class="d-block w-100"
:src="VueImg"
alt="slide 1"
/>
</CCarouselItem> </CCarouselItem>
<CCarouselItem> <CCarouselItem>
<img <img class="d-block w-100" :src="ReactImg" alt="slide 2" />
class="d-block w-100"
:src="ReactImg"
alt="slide 2"
/>
</CCarouselItem> </CCarouselItem>
<CCarouselItem> <CCarouselItem>
<img <img class="d-block w-100" :src="AngularImg" alt="slide 3" />
class="d-block w-100"
:src="AngularImg"
alt="slide 3"
/>
</CCarouselItem> </CCarouselItem>
</CCarousel> </CCarousel>
</DocsExample> </DocsExample>
@@ -129,11 +93,7 @@
<DocsExample href="components/carousel.html#with-captions"> <DocsExample href="components/carousel.html#with-captions">
<CCarousel controls indicators> <CCarousel controls indicators>
<CCarouselItem> <CCarouselItem>
<img <img class="d-block w-100" :src="VueImg" alt="slide 1" />
class="d-block w-100"
:src="VueImg"
alt="slide 1"
/>
<CCarouselCaption class="d-none d-md-block"> <CCarouselCaption class="d-none d-md-block">
<h5>First slide label</h5> <h5>First slide label</h5>
<p> <p>
@@ -142,11 +102,7 @@
</CCarouselCaption> </CCarouselCaption>
</CCarouselItem> </CCarouselItem>
<CCarouselItem> <CCarouselItem>
<img <img class="d-block w-100" :src="ReactImg" alt="slide 2" />
class="d-block w-100"
:src="ReactImg"
alt="slide 2"
/>
<CCarouselCaption class="d-none d-md-block"> <CCarouselCaption class="d-none d-md-block">
<h5>First slide label</h5> <h5>First slide label</h5>
<p> <p>
@@ -155,11 +111,7 @@
</CCarouselCaption> </CCarouselCaption>
</CCarouselItem> </CCarouselItem>
<CCarouselItem> <CCarouselItem>
<img <img class="d-block w-100" :src="AngularImg" alt="slide 3" />
class="d-block w-100"
:src="AngularImg"
alt="slide 3"
/>
<CCarouselCaption class="d-none d-md-block"> <CCarouselCaption class="d-none d-md-block">
<h5>First slide label</h5> <h5>First slide label</h5>
<p> <p>
@@ -183,25 +135,13 @@
<DocsExample href="components/carousel.html#crossfade"> <DocsExample href="components/carousel.html#crossfade">
<CCarousel controls indicators transition="crossfade"> <CCarousel controls indicators transition="crossfade">
<CCarouselItem> <CCarouselItem>
<img <img class="d-block w-100" :src="VueImg" alt="slide 1" />
class="d-block w-100"
:src="VueImg"
alt="slide 1"
/>
</CCarouselItem> </CCarouselItem>
<CCarouselItem> <CCarouselItem>
<img <img class="d-block w-100" :src="ReactImg" alt="slide 2" />
class="d-block w-100"
:src="ReactImg"
alt="slide 2"
/>
</CCarouselItem> </CCarouselItem>
<CCarouselItem> <CCarouselItem>
<img <img class="d-block w-100" :src="AngularImg" alt="slide 3" />
class="d-block w-100"
:src="AngularImg"
alt="slide 3"
/>
</CCarouselItem> </CCarouselItem>
</CCarousel> </CCarousel>
</DocsExample> </DocsExample>
@@ -223,25 +163,13 @@
<DocsExample href="components/carousel.html#dark-variant"> <DocsExample href="components/carousel.html#dark-variant">
<CCarousel controls indicators dark> <CCarousel controls indicators dark>
<CCarouselItem> <CCarouselItem>
<img <img class="d-block w-100" :src="VueImg" alt="slide 1" />
class="d-block w-100"
:src="VueImg"
alt="slide 1"
/>
</CCarouselItem> </CCarouselItem>
<CCarouselItem> <CCarouselItem>
<img <img class="d-block w-100" :src="ReactImg" alt="slide 2" />
class="d-block w-100"
:src="ReactImg"
alt="slide 2"
/>
</CCarouselItem> </CCarouselItem>
<CCarouselItem> <CCarouselItem>
<img <img class="d-block w-100" :src="AngularImg" alt="slide 3" />
class="d-block w-100"
:src="AngularImg"
alt="slide 3"
/>
</CCarouselItem> </CCarouselItem>
</CCarousel> </CCarousel>
</DocsExample> </DocsExample>
@@ -263,6 +191,6 @@ export default {
ReactImg, ReactImg,
VueImg, VueImg,
} }
} },
} }
</script> </script>
+4 -4
View File
@@ -192,8 +192,8 @@
'light', 'light',
'dark', 'dark',
]" ]"
:color="item"
:key="item" :key="item"
:color="item"
>A simple {{ item }} list group item</CListGroupItem >A simple {{ item }} list group item</CListGroupItem
> >
</CListGroup> </CListGroup>
@@ -221,10 +221,10 @@
'light', 'light',
'dark', 'dark',
]" ]"
:key="item"
component="a" component="a"
href="#" href="#"
:color="item" :color="item"
:key="item"
>A simple {{ item }} list group item</CListGroupItem >A simple {{ item }} list group item</CListGroupItem
> >
</CListGroup> </CListGroup>
@@ -340,10 +340,10 @@
<CFormCheck label="Cras justo odio" /> <CFormCheck label="Cras justo odio" />
</CListGroupItem> </CListGroupItem>
<CListGroupItem> <CListGroupItem>
<CFormCheck label="Dapibus ac facilisis in" defaultChecked /> <CFormCheck label="Dapibus ac facilisis in" checked />
</CListGroupItem> </CListGroupItem>
<CListGroupItem> <CListGroupItem>
<CFormCheck label="Morbi leo risus" defaultChecked /> <CFormCheck label="Morbi leo risus" checked />
</CListGroupItem> </CListGroupItem>
<CListGroupItem> <CListGroupItem>
<CFormCheck label="orta ac consectetur ac" /> <CFormCheck label="orta ac consectetur ac" />
+4 -5
View File
@@ -34,9 +34,8 @@
</DocsExample> </DocsExample>
<p class="text-medium-emphasis small"> <p class="text-medium-emphasis small">
Classes are used throughout, so your markup can be super flexible. Classes are used throughout, so your markup can be super flexible.
Use{' '} Use <code>&lt;ul&gt;</code>s like above, <code>&lt;ol&gt;</code> if
<code>&lt;ul&gt;</code>s like above, <code>&lt;ol&gt;</code> if the the order of your items is important, or roll your own with a
order of your items is important, or roll your own with a
<code>&lt;nav&gt;</code> element. Because the .nav uses display: <code>&lt;nav&gt;</code> element. Because the .nav uses display:
flex, the nav links behave the same as nav items would, but without flex, the nav links behave the same as nav items would, but without
the extra markup. the extra markup.
@@ -59,7 +58,7 @@
</CCardHeader> </CCardHeader>
<CCardBody> <CCardBody>
<p class="text-medium-emphasis small"> <p class="text-medium-emphasis small">
Change the horizontal alignment of your nav with{' '} Change the horizontal alignment of your nav with
<a href="https://coreui.io/docs/layout/grid/#horizontal-alignment"> <a href="https://coreui.io/docs/layout/grid/#horizontal-alignment">
flexbox utilities flexbox utilities
</a> </a>
@@ -207,7 +206,7 @@
<p class="text-medium-emphasis small"> <p class="text-medium-emphasis small">
Force your <code>.nav</code>&#39;s contents to extend the full Force your <code>.nav</code>&#39;s contents to extend the full
available width one of two modifier classes. To proportionately fill available width one of two modifier classes. To proportionately fill
all available space with your{' '} <code>.nav-item</code>s, use all available space with your <code>.nav-item</code>s, use
<code>layout=&#34;fill&#34;</code>. Notice that all horizontal space <code>layout=&#34;fill&#34;</code>. Notice that all horizontal space
is occupied, but not every nav item has the same width. is occupied, but not every nav item has the same width.
</p> </p>
+6 -6
View File
@@ -11,14 +11,14 @@
<CCardBody> <CCardBody>
<DocsExample href="components/popover.html#example"> <DocsExample href="components/popover.html#example">
<CButton <CButton
color="danger"
size="lg"
v-c-popover="{ v-c-popover="{
header: 'Popover title', header: 'Popover title',
content: content:
'And here\s some amazing content. Its very engaging. Right?', 'And here\s some amazing content. Its very engaging. Right?',
placement: 'right', placement: 'right',
}" }"
color="danger"
size="lg"
> >
Click to toggle popover Click to toggle popover
</CButton> </CButton>
@@ -38,39 +38,39 @@
</p> </p>
<DocsExample href="components/popover.html#four-directions"> <DocsExample href="components/popover.html#four-directions">
<CButton <CButton
color="secondary"
v-c-popover="{ v-c-popover="{
content: content:
'Vivamus sagittis lacus vel augue laoreet rutrum faucibus.', 'Vivamus sagittis lacus vel augue laoreet rutrum faucibus.',
placement: 'top', placement: 'top',
}" }"
color="secondary"
>Popover on top</CButton >Popover on top</CButton
> >
<CButton <CButton
color="secondary"
v-c-popover="{ v-c-popover="{
content: content:
'Vivamus sagittis lacus vel augue laoreet rutrum faucibus.', 'Vivamus sagittis lacus vel augue laoreet rutrum faucibus.',
placement: 'right', placement: 'right',
}" }"
color="secondary"
>Popover on right</CButton >Popover on right</CButton
> >
<CButton <CButton
color="secondary"
v-c-popover="{ v-c-popover="{
content: content:
'Vivamus sagittis lacus vel augue laoreet rutrum faucibus.', 'Vivamus sagittis lacus vel augue laoreet rutrum faucibus.',
placement: 'bottom', placement: 'bottom',
}" }"
color="secondary"
>Popover on bottom</CButton >Popover on bottom</CButton
> >
<CButton <CButton
color="secondary"
v-c-popover="{ v-c-popover="{
content: content:
'Vivamus sagittis lacus vel augue laoreet rutrum faucibus.', 'Vivamus sagittis lacus vel augue laoreet rutrum faucibus.',
placement: 'left', placement: 'left',
}" }"
color="secondary"
>Popover on left</CButton >Popover on left</CButton
> >
</DocsExample> </DocsExample>
+19 -19
View File
@@ -38,7 +38,7 @@
</CTableRow> </CTableRow>
<CTableRow> <CTableRow>
<CTableHeaderCell scope="row">3</CTableHeaderCell> <CTableHeaderCell scope="row">3</CTableHeaderCell>
<CTableDataCell colSpan="2">Larry the Bird</CTableDataCell> <CTableDataCell colspan="2">Larry the Bird</CTableDataCell>
<CTableDataCell>@twitter</CTableDataCell> <CTableDataCell>@twitter</CTableDataCell>
</CTableRow> </CTableRow>
</CTableBody> </CTableBody>
@@ -153,7 +153,7 @@
</CTableRow> </CTableRow>
<CTableRow> <CTableRow>
<CTableHeaderCell scope="row">3</CTableHeaderCell> <CTableHeaderCell scope="row">3</CTableHeaderCell>
<CTableDataCell colSpan="2">Larry the Bird</CTableDataCell> <CTableDataCell colspan="2">Larry the Bird</CTableDataCell>
<CTableDataCell>@twitter</CTableDataCell> <CTableDataCell>@twitter</CTableDataCell>
</CTableRow> </CTableRow>
</CTableBody> </CTableBody>
@@ -187,7 +187,7 @@
</CTableRow> </CTableRow>
<CTableRow> <CTableRow>
<CTableHeaderCell scope="row">3</CTableHeaderCell> <CTableHeaderCell scope="row">3</CTableHeaderCell>
<CTableDataCell colSpan="2">Larry the Bird</CTableDataCell> <CTableDataCell colspan="2">Larry the Bird</CTableDataCell>
<CTableDataCell>@twitter</CTableDataCell> <CTableDataCell>@twitter</CTableDataCell>
</CTableRow> </CTableRow>
</CTableBody> </CTableBody>
@@ -218,7 +218,7 @@
</CTableRow> </CTableRow>
<CTableRow> <CTableRow>
<CTableHeaderCell scope="row">3</CTableHeaderCell> <CTableHeaderCell scope="row">3</CTableHeaderCell>
<CTableDataCell colSpan="2">Larry the Bird</CTableDataCell> <CTableDataCell colspan="2">Larry the Bird</CTableDataCell>
<CTableDataCell>@twitter</CTableDataCell> <CTableDataCell>@twitter</CTableDataCell>
</CTableRow> </CTableRow>
</CTableBody> </CTableBody>
@@ -262,7 +262,7 @@
</CTableRow> </CTableRow>
<CTableRow> <CTableRow>
<CTableHeaderCell scope="row">3</CTableHeaderCell> <CTableHeaderCell scope="row">3</CTableHeaderCell>
<CTableDataCell colSpan="2">Larry the Bird</CTableDataCell> <CTableDataCell colspan="2">Larry the Bird</CTableDataCell>
<CTableDataCell>@twitter</CTableDataCell> <CTableDataCell>@twitter</CTableDataCell>
</CTableRow> </CTableRow>
</CTableBody> </CTableBody>
@@ -293,7 +293,7 @@
</CTableRow> </CTableRow>
<CTableRow> <CTableRow>
<CTableHeaderCell scope="row">3</CTableHeaderCell> <CTableHeaderCell scope="row">3</CTableHeaderCell>
<CTableDataCell colSpan="2">Larry the Bird</CTableDataCell> <CTableDataCell colspan="2">Larry the Bird</CTableDataCell>
<CTableDataCell>@twitter</CTableDataCell> <CTableDataCell>@twitter</CTableDataCell>
</CTableRow> </CTableRow>
</CTableBody> </CTableBody>
@@ -324,7 +324,7 @@
</CTableRow> </CTableRow>
<CTableRow> <CTableRow>
<CTableHeaderCell scope="row">3</CTableHeaderCell> <CTableHeaderCell scope="row">3</CTableHeaderCell>
<CTableDataCell colSpan="2">Larry the Bird</CTableDataCell> <CTableDataCell colspan="2">Larry the Bird</CTableDataCell>
<CTableDataCell>@twitter</CTableDataCell> <CTableDataCell>@twitter</CTableDataCell>
</CTableRow> </CTableRow>
</CTableBody> </CTableBody>
@@ -364,7 +364,7 @@
</CTableRow> </CTableRow>
<CTableRow> <CTableRow>
<CTableHeaderCell scope="row">3</CTableHeaderCell> <CTableHeaderCell scope="row">3</CTableHeaderCell>
<CTableDataCell colSpan="2" active> <CTableDataCell colspan="2" active>
Larry the Bird Larry the Bird
</CTableDataCell> </CTableDataCell>
<CTableDataCell>@twitter</CTableDataCell> <CTableDataCell>@twitter</CTableDataCell>
@@ -397,7 +397,7 @@
</CTableRow> </CTableRow>
<CTableRow> <CTableRow>
<CTableHeaderCell scope="row">3</CTableHeaderCell> <CTableHeaderCell scope="row">3</CTableHeaderCell>
<CTableDataCell colSpan="2" active> <CTableDataCell colspan="2" active>
Larry the Bird Larry the Bird
</CTableDataCell> </CTableDataCell>
<CTableDataCell>@twitter</CTableDataCell> <CTableDataCell>@twitter</CTableDataCell>
@@ -443,7 +443,7 @@
</CTableRow> </CTableRow>
<CTableRow> <CTableRow>
<CTableHeaderCell scope="row">3</CTableHeaderCell> <CTableHeaderCell scope="row">3</CTableHeaderCell>
<CTableDataCell colSpan="2">Larry the Bird</CTableDataCell> <CTableDataCell colspan="2">Larry the Bird</CTableDataCell>
<CTableDataCell>@twitter</CTableDataCell> <CTableDataCell>@twitter</CTableDataCell>
</CTableRow> </CTableRow>
</CTableBody> </CTableBody>
@@ -456,7 +456,7 @@
can be added to change colors: can be added to change colors:
</p> </p>
<DocsExample href="components/table.html#bordered-tables"> <DocsExample href="components/table.html#bordered-tables">
<CTable bordered borderColor="primary"> <CTable bordered border-color="primary">
<CTableHead> <CTableHead>
<CTableRow> <CTableRow>
<CTableHeaderCell scope="col">#</CTableHeaderCell> <CTableHeaderCell scope="col">#</CTableHeaderCell>
@@ -480,7 +480,7 @@
</CTableRow> </CTableRow>
<CTableRow> <CTableRow>
<CTableHeaderCell scope="row">3</CTableHeaderCell> <CTableHeaderCell scope="row">3</CTableHeaderCell>
<CTableDataCell colSpan="2">Larry the Bird</CTableDataCell> <CTableDataCell colspan="2">Larry the Bird</CTableDataCell>
<CTableDataCell>@twitter</CTableDataCell> <CTableDataCell>@twitter</CTableDataCell>
</CTableRow> </CTableRow>
</CTableBody> </CTableBody>
@@ -523,7 +523,7 @@
</CTableRow> </CTableRow>
<CTableRow> <CTableRow>
<CTableHeaderCell scope="row">3</CTableHeaderCell> <CTableHeaderCell scope="row">3</CTableHeaderCell>
<CTableDataCell colSpan="2">Larry the Bird</CTableDataCell> <CTableDataCell colspan="2">Larry the Bird</CTableDataCell>
<CTableDataCell>@twitter</CTableDataCell> <CTableDataCell>@twitter</CTableDataCell>
</CTableRow> </CTableRow>
</CTableBody> </CTableBody>
@@ -554,7 +554,7 @@
</CTableRow> </CTableRow>
<CTableRow> <CTableRow>
<CTableHeaderCell scope="row">3</CTableHeaderCell> <CTableHeaderCell scope="row">3</CTableHeaderCell>
<CTableDataCell colSpan="2">Larry the Bird</CTableDataCell> <CTableDataCell colspan="2">Larry the Bird</CTableDataCell>
<CTableDataCell>@twitter</CTableDataCell> <CTableDataCell>@twitter</CTableDataCell>
</CTableRow> </CTableRow>
</CTableBody> </CTableBody>
@@ -599,7 +599,7 @@
</CTableRow> </CTableRow>
<CTableRow> <CTableRow>
<CTableHeaderCell scope="row">3</CTableHeaderCell> <CTableHeaderCell scope="row">3</CTableHeaderCell>
<CTableDataCell colSpan="2">Larry the Bird</CTableDataCell> <CTableDataCell colspan="2">Larry the Bird</CTableDataCell>
<CTableDataCell>@twitter</CTableDataCell> <CTableDataCell>@twitter</CTableDataCell>
</CTableRow> </CTableRow>
</CTableBody> </CTableBody>
@@ -730,7 +730,7 @@
<CTableDataCell>@mdo</CTableDataCell> <CTableDataCell>@mdo</CTableDataCell>
</CTableRow> </CTableRow>
<CTableRow> <CTableRow>
<CTableHeaderCell colSpan="4"> <CTableHeaderCell colspan="4">
<CTable> <CTable>
<CTableHead> <CTableHead>
<CTableRow> <CTableRow>
@@ -767,7 +767,7 @@
</CTableRow> </CTableRow>
<CTableRow> <CTableRow>
<CTableHeaderCell scope="row">3</CTableHeaderCell> <CTableHeaderCell scope="row">3</CTableHeaderCell>
<CTableDataCell colSpan="2">Larry the Bird</CTableDataCell> <CTableDataCell colspan="2">Larry the Bird</CTableDataCell>
<CTableDataCell>@twitter</CTableDataCell> <CTableDataCell>@twitter</CTableDataCell>
</CTableRow> </CTableRow>
</CTableBody> </CTableBody>
@@ -845,7 +845,7 @@
</CTableRow> </CTableRow>
<CTableRow> <CTableRow>
<CTableHeaderCell scope="row">3</CTableHeaderCell> <CTableHeaderCell scope="row">3</CTableHeaderCell>
<CTableDataCell colSpan="2">Larry the Bird</CTableDataCell> <CTableDataCell colspan="2">Larry the Bird</CTableDataCell>
<CTableDataCell>@twitter</CTableDataCell> <CTableDataCell>@twitter</CTableDataCell>
</CTableRow> </CTableRow>
</CTableBody> </CTableBody>
@@ -885,7 +885,7 @@
</CTableRow> </CTableRow>
<CTableRow> <CTableRow>
<CTableHeaderCell scope="row">3</CTableHeaderCell> <CTableHeaderCell scope="row">3</CTableHeaderCell>
<CTableDataCell colSpan="2">Larry the Bird</CTableDataCell> <CTableDataCell colspan="2">Larry the Bird</CTableDataCell>
<CTableDataCell>@twitter</CTableDataCell> <CTableDataCell>@twitter</CTableDataCell>
</CTableRow> </CTableRow>
</CTableBody> </CTableBody>
+4 -4
View File
@@ -34,39 +34,39 @@
</p> </p>
<DocsExample href="components/tooltip.html"> <DocsExample href="components/tooltip.html">
<CButton <CButton
color="secondary"
v-c-tooltip="{ v-c-tooltip="{
content: content:
'Vivamus sagittis lacus vel augue laoreet rutrum faucibus.', 'Vivamus sagittis lacus vel augue laoreet rutrum faucibus.',
placement: 'top', placement: 'top',
}" }"
color="secondary"
>Tooltip on top</CButton >Tooltip on top</CButton
> >
<CButton <CButton
color="secondary"
v-c-tooltip="{ v-c-tooltip="{
content: content:
'Vivamus sagittis lacus vel augue laoreet rutrum faucibus.', 'Vivamus sagittis lacus vel augue laoreet rutrum faucibus.',
placement: 'right', placement: 'right',
}" }"
color="secondary"
>Tooltip on right</CButton >Tooltip on right</CButton
> >
<CButton <CButton
color="secondary"
v-c-tooltip="{ v-c-tooltip="{
content: content:
'Vivamus sagittis lacus vel augue laoreet rutrum faucibus.', 'Vivamus sagittis lacus vel augue laoreet rutrum faucibus.',
placement: 'bottom', placement: 'bottom',
}" }"
color="secondary"
>Tooltip on bottom</CButton >Tooltip on bottom</CButton
> >
<CButton <CButton
color="secondary"
v-c-tooltip="{ v-c-tooltip="{
content: content:
'Vivamus sagittis lacus vel augue laoreet rutrum faucibus.', 'Vivamus sagittis lacus vel augue laoreet rutrum faucibus.',
placement: 'left', placement: 'left',
}" }"
color="secondary"
>Tooltip on left</CButton >Tooltip on left</CButton
> >
</DocsExample> </DocsExample>
+19 -19
View File
@@ -86,21 +86,21 @@
aria-label="Basic checkbox toggle button group" aria-label="Basic checkbox toggle button group"
> >
<CFormCheck <CFormCheck
:button="{ color: 'primary', variant: 'outline' }"
id="btncheck1" id="btncheck1"
autoComplete="off" :button="{ color: 'primary', variant: 'outline' }"
autocomplete="off"
label="Checkbox 1" label="Checkbox 1"
/> />
<CFormCheck <CFormCheck
:button="{ color: 'primary', variant: 'outline' }"
id="btncheck2" id="btncheck2"
autoComplete="off" :button="{ color: 'primary', variant: 'outline' }"
autocomplete="off"
label="Checkbox 2" label="Checkbox 2"
/> />
<CFormCheck <CFormCheck
:button="{ color: 'primary', variant: 'outline' }"
id="btncheck3" id="btncheck3"
autoComplete="off" :button="{ color: 'primary', variant: 'outline' }"
autocomplete="off"
label="Checkbox 3" label="Checkbox 3"
/> />
</CButtonGroup> </CButtonGroup>
@@ -113,27 +113,27 @@
aria-label="Basic checkbox toggle button group" aria-label="Basic checkbox toggle button group"
> >
<CFormCheck <CFormCheck
id="btnradio1"
type="radio" type="radio"
:button="{ color: 'primary', variant: 'outline' }" :button="{ color: 'primary', variant: 'outline' }"
name="btnradio" name="btnradio"
id="btnradio1" autocomplete="off"
autoComplete="off"
label="Radio 1" label="Radio 1"
/> />
<CFormCheck <CFormCheck
id="btnradio2"
type="radio" type="radio"
:button="{ color: 'primary', variant: 'outline' }" :button="{ color: 'primary', variant: 'outline' }"
name="btnradio" name="btnradio"
id="btnradio2" autocomplete="off"
autoComplete="off"
label="Radio 2" label="Radio 2"
/> />
<CFormCheck <CFormCheck
id="btnradio3"
type="radio" type="radio"
:button="{ color: 'primary', variant: 'outline' }" :button="{ color: 'primary', variant: 'outline' }"
name="btnradio" name="btnradio"
id="btnradio3" autocomplete="off"
autoComplete="off"
label="Radio 3" label="Radio 3"
/> />
</CButtonGroup> </CButtonGroup>
@@ -384,30 +384,30 @@
aria-label="Vertical button group" aria-label="Vertical button group"
> >
<CFormCheck <CFormCheck
id="vbtnradio1"
type="radio" type="radio"
:button="{ color: 'danger', variant: 'outline' }" :button="{ color: 'danger', variant: 'outline' }"
name="vbtnradio" name="vbtnradio"
id="vbtnradio1" autocomplete="off"
autoComplete="off"
label="Radio label="Radio
1" 1"
defaultChecked checked
/> />
<CFormCheck <CFormCheck
id="vbtnradio2"
type="radio" type="radio"
:button="{ color: 'danger', variant: 'outline' }" :button="{ color: 'danger', variant: 'outline' }"
name="vbtnradio" name="vbtnradio"
id="vbtnradio2" autocomplete="off"
autoComplete="off"
label="Radio label="Radio
2" 2"
/> />
<CFormCheck <CFormCheck
id="vbtnradio3"
type="radio" type="radio"
:button="{ color: 'danger', variant: 'outline' }" :button="{ color: 'danger', variant: 'outline' }"
name="vbtnradio" name="vbtnradio"
id="vbtnradio3" autocomplete="off"
autoComplete="off"
label="Radio label="Radio
3" 3"
/> />
+2 -8
View File
@@ -294,10 +294,7 @@
]" ]"
:key="color" :key="color"
> >
<CButton <CButton :color="color" shape="rounded-pill">
:color="color"
shape="rounded-pill"
>
{{ color.charAt(0).toUpperCase() + color.slice(1) }} {{ color.charAt(0).toUpperCase() + color.slice(1) }}
</CButton> </CButton>
</template> </template>
@@ -325,10 +322,7 @@
]" ]"
:key="color" :key="color"
> >
<CButton <CButton :color="color" shape="rounded-0">
:color="color"
shape="rounded-0"
>
{{ color.charAt(0).toUpperCase() + color.slice(1) }} {{ color.charAt(0).toUpperCase() + color.slice(1) }}
</CButton> </CButton>
</template> </template>
+1 -1
View File
@@ -224,8 +224,8 @@
<span class="navbar-toggler-icon"></span> <span class="navbar-toggler-icon"></span>
</button> </button>
<div <div
class="collapse navbar-collapse"
id="navbarNavDarkDropdown" id="navbarNavDarkDropdown"
class="collapse navbar-collapse"
> >
<ul class="navbar-nav"> <ul class="navbar-nav">
<CDropdown dark component="li" variant="nav-item"> <CDropdown dark component="li" variant="nav-item">
+54 -58
View File
@@ -14,7 +14,7 @@
<CFormCheck <CFormCheck
id="flexCheckChecked" id="flexCheckChecked"
label="Checked checkbox" label="Checked checkbox"
defaultChecked checked
/> />
</DocsExample> </DocsExample>
</CCardBody> </CCardBody>
@@ -33,11 +33,7 @@
</p> </p>
<DocsExample href="forms/checks-radios.html#disabled"> <DocsExample href="forms/checks-radios.html#disabled">
<CFormCheck label="Disabled checkbox" disabled /> <CFormCheck label="Disabled checkbox" disabled />
<CFormCheck <CFormCheck label="Disabled checked checkbox" checked disabled />
label="Disabled checked checkbox"
defaultChecked
disabled
/>
</DocsExample> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
@@ -55,17 +51,17 @@
</p> </p>
<DocsExample href="forms/checks-radios.html#radios"> <DocsExample href="forms/checks-radios.html#radios">
<CFormCheck <CFormCheck
id="flexRadioDefault1"
type="radio" type="radio"
name="flexRadioDefault" name="flexRadioDefault"
id="flexRadioDefault1"
label="Default radio" label="Default radio"
/> />
<CFormCheck <CFormCheck
id="flexRadioDefault2"
type="radio" type="radio"
name="flexRadioDefault" name="flexRadioDefault"
id="flexRadioDefault2"
label="Checked radio" label="Checked radio"
defaultChecked checked
/> />
</DocsExample> </DocsExample>
</CCardBody> </CCardBody>
@@ -79,18 +75,18 @@
<CCardBody> <CCardBody>
<DocsExample href="forms/checks-radios.html#disabled-1"> <DocsExample href="forms/checks-radios.html#disabled-1">
<CFormCheck <CFormCheck
id="flexRadioDisabled"
type="radio" type="radio"
name="flexRadioDisabled" name="flexRadioDisabled"
id="flexRadioDisabled"
label="Disabled radio" label="Disabled radio"
disabled disabled
/> />
<CFormCheck <CFormCheck
id="flexRadioCheckedDisabled"
type="radio" type="radio"
name="flexRadioDisabled" name="flexRadioDisabled"
id="flexRadioCheckedDisabled"
label="Disabled checked radio" label="Disabled checked radio"
defaultChecked checked
disabled disabled
/> />
</DocsExample> </DocsExample>
@@ -110,23 +106,23 @@
</p> </p>
<DocsExample href="forms/checks-radios.html#switches"> <DocsExample href="forms/checks-radios.html#switches">
<CFormSwitch <CFormSwitch
label="Default switch checkbox input"
id="formSwitchCheckDefault" id="formSwitchCheckDefault"
label="Default switch checkbox input"
/> />
<CFormSwitch <CFormSwitch
label="Checked switch checkbox input"
id="formSwitchCheckChecked" id="formSwitchCheckChecked"
defaultChecked label="Checked switch checkbox input"
checked
/> />
<CFormSwitch <CFormSwitch
label="Disabled switch checkbox input"
id="formSwitchCheckDisabled" id="formSwitchCheckDisabled"
label="Disabled switch checkbox input"
disabled disabled
/> />
<CFormSwitch <CFormSwitch
label="Disabled checked switch checkbox input"
id="formSwitchCheckCheckedDisabled" id="formSwitchCheckCheckedDisabled"
defaultChecked label="Disabled checked switch checkbox input"
checked
disabled disabled
/> />
</DocsExample> </DocsExample>
@@ -141,18 +137,18 @@
<CCardBody> <CCardBody>
<DocsExample href="forms/checks-radios.html#sizes"> <DocsExample href="forms/checks-radios.html#sizes">
<CFormSwitch <CFormSwitch
label="Default switch checkbox input"
id="formSwitchCheckDefault" id="formSwitchCheckDefault"
label="Default switch checkbox input"
/> />
<CFormSwitch <CFormSwitch
id="formSwitchCheckDefaultLg"
size="lg" size="lg"
label="Large switch checkbox input" label="Large switch checkbox input"
id="formSwitchCheckDefaultLg"
/> />
<CFormSwitch <CFormSwitch
id="formSwitchCheckDefaultXL"
size="xl" size="xl"
label="Extra large switch checkbox input" label="Extra large switch checkbox input"
id="formSwitchCheckDefaultXL"
/> />
</DocsExample> </DocsExample>
</CCardBody> </CCardBody>
@@ -175,24 +171,24 @@
</DocsExample> </DocsExample>
<DocsExample href="forms/checks-radios.html#default-stacked"> <DocsExample href="forms/checks-radios.html#default-stacked">
<CFormCheck <CFormCheck
id="exampleRadios1"
type="radio" type="radio"
name="exampleRadios" name="exampleRadios"
id="exampleRadios1"
value="option1" value="option1"
label="Default radio" label="Default radio"
defaultChecked checked
/> />
<CFormCheck <CFormCheck
id="exampleRadios2"
type="radio" type="radio"
name="exampleRadios" name="exampleRadios"
id="exampleRadios2"
value="option2" value="option2"
label="Second default radio" label="Second default radio"
/> />
<CFormCheck <CFormCheck
id="exampleRadios3"
type="radio" type="radio"
name="exampleRadios" name="exampleRadios"
id="exampleRadios3"
value="option3" value="option3"
label="Disabled radio" label="Disabled radio"
disabled disabled
@@ -213,11 +209,11 @@
<code>&lt;CFormCheck&gt;</code>. <code>&lt;CFormCheck&gt;</code>.
</p> </p>
<DocsExample href="forms/checks-radios.html#inline"> <DocsExample href="forms/checks-radios.html#inline">
<CFormCheck inline id="inlineCheckbox1" value="option1" label="1" /> <CFormCheck id="inlineCheckbox1" inline value="option1" label="1" />
<CFormCheck inline id="inlineCheckbox2" value="option2" label="2" /> <CFormCheck id="inlineCheckbox2" inline value="option2" label="2" />
<CFormCheck <CFormCheck
inline
id="inlineCheckbox3" id="inlineCheckbox3"
inline
value="option3" value="option3"
label="3 (disabled)" label="3 (disabled)"
disabled disabled
@@ -225,26 +221,26 @@
</DocsExample> </DocsExample>
<DocsExample href="forms/checks-radios.html#inline"> <DocsExample href="forms/checks-radios.html#inline">
<CFormCheck <CFormCheck
id="inlineCheckbox1"
inline inline
type="radio" type="radio"
name="inlineRadioOptions" name="inlineRadioOptions"
id="inlineCheckbox1"
value="option1" value="option1"
label="1" label="1"
/> />
<CFormCheck <CFormCheck
id="inlineCheckbox2"
inline inline
type="radio" type="radio"
name="inlineRadioOptions" name="inlineRadioOptions"
id="inlineCheckbox2"
value="option2" value="option2"
label="2" label="2"
/> />
<CFormCheck <CFormCheck
id="inlineCheckbox3"
inline inline
type="radio" type="radio"
name="inlineRadioOptions" name="inlineRadioOptions"
id="inlineCheckbox3"
value="option3" value="option3"
label="3 (disabled)" label="3 (disabled)"
disabled disabled
@@ -269,9 +265,9 @@
</div> </div>
<div> <div>
<CFormCheck <CFormCheck
id="radioNoLabel"
type="radio" type="radio"
name="radioNoLabel" name="radioNoLabel"
id="radioNoLabel"
value="" value=""
aria-label="..." aria-label="..."
/> />
@@ -294,26 +290,26 @@
</p> </p>
<DocsExample href="forms/checks-radios.html#toggle-buttons"> <DocsExample href="forms/checks-radios.html#toggle-buttons">
<CFormCheck <CFormCheck
:button="{ color: 'primary' }"
id="btn-check" id="btn-check"
autoComplete="off" :button="{ color: 'primary' }"
autocomplete="off"
label="Single toggle" label="Single toggle"
/> />
</DocsExample> </DocsExample>
<DocsExample href="forms/checks-radios.html#toggle-buttons"> <DocsExample href="forms/checks-radios.html#toggle-buttons">
<CFormCheck <CFormCheck
:button="{ color: 'primary' }"
id="btn-check-2" id="btn-check-2"
autoComplete="off" :button="{ color: 'primary' }"
autocomplete="off"
label="Checked" label="Checked"
defaultChecked checked
/> />
</DocsExample> </DocsExample>
<DocsExample href="forms/checks-radios.html#toggle-buttons"> <DocsExample href="forms/checks-radios.html#toggle-buttons">
<CFormCheck <CFormCheck
:button="{ color: 'primary' }"
id="btn-check-3" id="btn-check-3"
autoComplete="off" :button="{ color: 'primary' }"
autocomplete="off"
label="Disabled" label="Disabled"
disabled disabled
/> />
@@ -321,37 +317,37 @@
<h3>Radio toggle buttons</h3> <h3>Radio toggle buttons</h3>
<DocsExample href="forms/checks-radios.html#toggle-buttons"> <DocsExample href="forms/checks-radios.html#toggle-buttons">
<CFormCheck <CFormCheck
id="option1"
:button="{ color: 'secondary' }" :button="{ color: 'secondary' }"
type="radio" type="radio"
name="options" name="options"
id="option1" autocomplete="off"
autoComplete="off"
label="Checked" label="Checked"
defaultChecked checked
/> />
<CFormCheck <CFormCheck
id="option2"
:button="{ color: 'secondary' }" :button="{ color: 'secondary' }"
type="radio" type="radio"
name="options" name="options"
id="option2" autocomplete="off"
autoComplete="off"
label="Radio" label="Radio"
/> />
<CFormCheck <CFormCheck
id="option3"
:button="{ color: 'secondary' }" :button="{ color: 'secondary' }"
type="radio" type="radio"
name="options" name="options"
id="option3" autocomplete="off"
autoComplete="off"
label="Radio" label="Radio"
disabled disabled
/> />
<CFormCheck <CFormCheck
id="option4"
:button="{ color: 'secondary' }" :button="{ color: 'secondary' }"
type="radio" type="radio"
name="options" name="options"
id="option4" autocomplete="off"
autoComplete="off"
label="Radio" label="Radio"
/> />
</DocsExample> </DocsExample>
@@ -363,37 +359,37 @@
<DocsExample href="forms/checks-radios.html#toggle-buttons"> <DocsExample href="forms/checks-radios.html#toggle-buttons">
<div> <div>
<CFormCheck <CFormCheck
:button="{ color: 'primary', variant: 'outline' }"
id="btn-check-outlined" id="btn-check-outlined"
autoComplete="off" :button="{ color: 'primary', variant: 'outline' }"
autocomplete="off"
label="Single toggle" label="Single toggle"
/> />
</div> </div>
<div> <div>
<CFormCheck <CFormCheck
:button="{ color: 'secondary', variant: 'outline' }"
id="btn-check-2-outlined" id="btn-check-2-outlined"
autoComplete="off" :button="{ color: 'secondary', variant: 'outline' }"
autocomplete="off"
label="Checked" label="Checked"
defaultChecked checked
/> />
</div> </div>
<div> <div>
<CFormCheck <CFormCheck
id="success-outlined"
:button="{ color: 'success', variant: 'outline' }" :button="{ color: 'success', variant: 'outline' }"
type="radio" type="radio"
name="options-outlined" name="options-outlined"
id="success-outlined" autocomplete="off"
autoComplete="off"
label="Radio" label="Radio"
defaultChecked checked
/> />
<CFormCheck <CFormCheck
id="danger-outlined"
:button="{ color: 'danger', variant: 'outline' }" :button="{ color: 'danger', variant: 'outline' }"
type="radio" type="radio"
name="options-outlined" name="options-outlined"
id="danger-outlined" autocomplete="off"
autoComplete="off"
label="Radio" label="Radio"
/> />
</div> </div>
+15 -21
View File
@@ -22,19 +22,19 @@
<DocsExample href="forms/floating-labels.html"> <DocsExample href="forms/floating-labels.html">
<CFormFloating class="mb-3"> <CFormFloating class="mb-3">
<CFormInput <CFormInput
type="email"
id="floatingInput" id="floatingInput"
type="email"
placeholder="name@example.com" placeholder="name@example.com"
/> />
<CFormLabel htmlFor="floatingInput">Email address</CFormLabel> <CFormLabel for="floatingInput">Email address</CFormLabel>
</CFormFloating> </CFormFloating>
<CFormFloating> <CFormFloating>
<CFormInput <CFormInput
type="password"
id="floatingPassword" id="floatingPassword"
type="password"
placeholder="Password" placeholder="Password"
/> />
<CFormLabel htmlFor="floatingPassword">Password</CFormLabel> <CFormLabel for="floatingPassword">Password</CFormLabel>
</CFormFloating> </CFormFloating>
</DocsExample> </DocsExample>
<p class="text-medium-emphasis small"> <p class="text-medium-emphasis small">
@@ -45,14 +45,12 @@
<DocsExample href="forms/floating-labels.html"> <DocsExample href="forms/floating-labels.html">
<CFormFloating> <CFormFloating>
<CFormInput <CFormInput
type="email"
id="floatingInputValue" id="floatingInputValue"
type="email"
placeholder="name@example.com" placeholder="name@example.com"
defaultValue="test@example.com" value="test@example.com"
/> />
<CFormLabel htmlFor="floatingInputValue" <CFormLabel for="floatingInputValue">Input with value</CFormLabel>
>Input with value</CFormLabel
>
</CFormFloating> </CFormFloating>
</DocsExample> </DocsExample>
</CCardBody> </CCardBody>
@@ -74,7 +72,7 @@
id="floatingTextarea" id="floatingTextarea"
placeholder="Leave a comment here" placeholder="Leave a comment here"
></CFormTextarea> ></CFormTextarea>
<CFormLabel htmlFor="floatingTextarea">Comments</CFormLabel> <CFormLabel for="floatingTextarea">Comments</CFormLabel>
</CFormFloating> </CFormFloating>
</DocsExample> </DocsExample>
<p class="text-medium-emphasis small"> <p class="text-medium-emphasis small">
@@ -85,11 +83,11 @@
<DocsExample href="forms/floating-labels.html#textareas"> <DocsExample href="forms/floating-labels.html#textareas">
<CFormFloating> <CFormFloating>
<CFormTextarea <CFormTextarea
placeholder="Leave a comment here"
id="floatingTextarea2" id="floatingTextarea2"
placeholder="Leave a comment here"
style="height: 100px" style="height: 100px"
></CFormTextarea> ></CFormTextarea>
<CFormLabel htmlFor="floatingTextarea2">Comments</CFormLabel> <CFormLabel for="floatingTextarea2">Comments</CFormLabel>
</CFormFloating> </CFormFloating>
</DocsExample> </DocsExample>
</CCardBody> </CCardBody>
@@ -123,9 +121,7 @@
<option value="2">Two</option> <option value="2">Two</option>
<option value="3">Three</option> <option value="3">Three</option>
</CFormSelect> </CFormSelect>
<CFormLabel htmlFor="floatingSelect" <CFormLabel for="floatingSelect">Works with selects</CFormLabel>
>Works with selects</CFormLabel
>
</CFormFloating> </CFormFloating>
</DocsExample> </DocsExample>
</CCardBody> </CCardBody>
@@ -146,14 +142,12 @@
<CCol md> <CCol md>
<CFormFloating> <CFormFloating>
<CFormInput <CFormInput
type="email"
id="floatingInputGrid" id="floatingInputGrid"
type="email"
placeholder="name@example.com" placeholder="name@example.com"
defaultValue="email@example.com" value="email@example.com"
/> />
<CFormLabel htmlFor="floatingInputGrid" <CFormLabel for="floatingInputGrid">Email address</CFormLabel>
>Email address</CFormLabel
>
</CFormFloating> </CFormFloating>
</CCol> </CCol>
<CCol md> <CCol md>
@@ -167,7 +161,7 @@
<option value="2">Two</option> <option value="2">Two</option>
<option value="3">Three</option> <option value="3">Three</option>
</CFormSelect> </CFormSelect>
<CFormLabel htmlFor="floatingSelectGrid" <CFormLabel for="floatingSelectGrid"
>Works with selects</CFormLabel >Works with selects</CFormLabel
> >
</CFormFloating> </CFormFloating>
+22 -22
View File
@@ -16,8 +16,8 @@
>Email address</CFormLabel >Email address</CFormLabel
> >
<CFormInput <CFormInput
type="email"
id="exampleFormControlInput1" id="exampleFormControlInput1"
type="email"
placeholder="name@example.com" placeholder="name@example.com"
/> />
</div> </div>
@@ -92,7 +92,7 @@
placeholder="Disabled readonly input" placeholder="Disabled readonly input"
aria-label="Disabled input example" aria-label="Disabled input example"
disabled disabled
readOnly readonly
/> />
<br /> <br />
</DocsExample> </DocsExample>
@@ -106,7 +106,7 @@
</CCardHeader> </CCardHeader>
<CCardBody> <CCardBody>
<p class="text-medium-emphasis small"> <p class="text-medium-emphasis small">
Add the <code>readOnly</code> boolean attribute on an input to Add the <code>readonly</code> boolean attribute on an input to
prevent modification of the input&#39;s value. Read-only inputs prevent modification of the input&#39;s value. Read-only inputs
appear lighter (just like disabled inputs), but retain the standard appear lighter (just like disabled inputs), but retain the standard
cursor. cursor.
@@ -116,7 +116,7 @@
type="text" type="text"
placeholder="Readonly input here..." placeholder="Readonly input here..."
aria-label="readonly input example" aria-label="readonly input example"
readOnly readonly
/> />
</DocsExample> </DocsExample>
</CCardBody> </CCardBody>
@@ -131,7 +131,7 @@
<p class="text-medium-emphasis small"> <p class="text-medium-emphasis small">
If you want to have <code>&lt;input readonly&gt;</code> elements in If you want to have <code>&lt;input readonly&gt;</code> elements in
your form styled as plain text, use the your form styled as plain text, use the
<code>plainText</code> boolean property to remove the default form <code>plain-text</code> boolean property to remove the default form
field styling and preserve the correct margin and padding. field styling and preserve the correct margin and padding.
</p> </p>
<DocsExample href="components/accordion"> <DocsExample href="components/accordion">
@@ -141,11 +141,11 @@
</CFormLabel> </CFormLabel>
<div class="col-sm-10"> <div class="col-sm-10">
<CFormInput <CFormInput
type="text"
id="staticEmail" id="staticEmail"
defaultValue="email@example.com" type="text"
readOnly value="email@example.com"
plainText readonly
plain-text
/> />
</div> </div>
</CRow> </CRow>
@@ -154,7 +154,7 @@
Password Password
</CFormLabel> </CFormLabel>
<div class="col-sm-10"> <div class="col-sm-10">
<CFormInput type="password" id="inputPassword" /> <CFormInput id="inputPassword" type="password" />
</div> </div>
</CRow> </CRow>
</DocsExample> </DocsExample>
@@ -165,11 +165,11 @@
Email Email
</CFormLabel> </CFormLabel>
<CFormInput <CFormInput
type="text"
id="staticEmail2" id="staticEmail2"
defaultValue="email@example.com" type="text"
readOnly value="email@example.com"
plainText readonly
plain-text
/> />
</div> </div>
<div class="col-auto"> <div class="col-auto">
@@ -177,8 +177,8 @@
Password Password
</CFormLabel> </CFormLabel>
<CFormInput <CFormInput
type="password"
id="inputPassword2" id="inputPassword2"
type="password"
placeholder="Password" placeholder="Password"
/> />
</div> </div>
@@ -199,27 +199,27 @@
<DocsExample href="forms/form-control.html#file-input"> <DocsExample href="forms/form-control.html#file-input">
<div class="mb-3"> <div class="mb-3">
<CFormLabel for="formFile">Default file input example</CFormLabel> <CFormLabel for="formFile">Default file input example</CFormLabel>
<CFormInput type="file" id="formFile" /> <CFormInput id="formFile" type="file" />
</div> </div>
<div class="mb-3"> <div class="mb-3">
<CFormLabel for="formFileMultiple" <CFormLabel for="formFileMultiple"
>Multiple files input example</CFormLabel >Multiple files input example</CFormLabel
> >
<CFormInput type="file" id="formFileMultiple" multiple /> <CFormInput id="formFileMultiple" type="file" multiple />
</div> </div>
<div class="mb-3"> <div class="mb-3">
<CFormLabel for="formFileDisabled" <CFormLabel for="formFileDisabled"
>Disabled file input example</CFormLabel >Disabled file input example</CFormLabel
> >
<CFormInput type="file" id="formFileDisabled" disabled /> <CFormInput id="formFileDisabled" type="file" disabled />
</div> </div>
<div class="mb-3"> <div class="mb-3">
<CFormLabel for="formFileSm">Small file input example</CFormLabel> <CFormLabel for="formFileSm">Small file input example</CFormLabel>
<CFormInput type="file" size="sm" id="formFileSm" /> <CFormInput id="formFileSm" type="file" size="sm" />
</div> </div>
<div> <div>
<CFormLabel for="formFileLg">Large file input example</CFormLabel> <CFormLabel for="formFileLg">Large file input example</CFormLabel>
<CFormInput type="file" size="lg" id="formFileLg" /> <CFormInput id="formFileLg" type="file" size="lg" />
</div> </div>
</DocsExample> </DocsExample>
</CCardBody> </CCardBody>
@@ -234,9 +234,9 @@
<DocsExample href="forms/form-control.html#color"> <DocsExample href="forms/form-control.html#color">
<CFormLabel for="exampleColorInput">Color picker</CFormLabel> <CFormLabel for="exampleColorInput">Color picker</CFormLabel>
<CFormInput <CFormInput
type="color"
id="exampleColorInput" id="exampleColorInput"
defaultValue="#563d7c" type="color"
value="#563d7c"
title="Choose your color" title="Choose your color"
/> />
</DocsExample> </DocsExample>
+8 -8
View File
@@ -224,10 +224,10 @@
<DocsExample href="forms/input-group.html#button-addons"> <DocsExample href="forms/input-group.html#button-addons">
<CInputGroup class="mb-3"> <CInputGroup class="mb-3">
<CButton <CButton
id="button-addon1"
type="button" type="button"
color="secondary" color="secondary"
variant="outline" variant="outline"
id="button-addon1"
> >
Button Button
</CButton> </CButton>
@@ -244,10 +244,10 @@
aria-describedby="button-addon2" aria-describedby="button-addon2"
/> />
<CButton <CButton
id="button-addon2"
type="button" type="button"
color="secondary" color="secondary"
variant="outline" variant="outline"
id="button-addon2"
> >
Button Button
</CButton> </CButton>
@@ -467,42 +467,42 @@
<CInputGroupText component="label" for="inputGroupFile01"> <CInputGroupText component="label" for="inputGroupFile01">
Upload Upload
</CInputGroupText> </CInputGroupText>
<CFormInput type="file" id="inputGroupFile01" /> <CFormInput id="inputGroupFile01" type="file" />
</CInputGroup> </CInputGroup>
<CInputGroup class="mb-3"> <CInputGroup class="mb-3">
<CFormInput type="file" id="inputGroupFile02" /> <CFormInput id="inputGroupFile02" type="file" />
<CInputGroupText component="label" for="inputGroupFile02"> <CInputGroupText component="label" for="inputGroupFile02">
Upload Upload
</CInputGroupText> </CInputGroupText>
</CInputGroup> </CInputGroup>
<CInputGroup class="mb-3"> <CInputGroup class="mb-3">
<CButton <CButton
id="inputGroupFileAddon03"
type="button" type="button"
color="secondary" color="secondary"
variant="outline" variant="outline"
id="inputGroupFileAddon03"
> >
Button Button
</CButton> </CButton>
<CFormInput <CFormInput
type="file"
id="inputGroupFile03" id="inputGroupFile03"
type="file"
aria-describedby="inputGroupFileAddon03" aria-describedby="inputGroupFileAddon03"
aria-label="Upload" aria-label="Upload"
/> />
</CInputGroup> </CInputGroup>
<CInputGroup> <CInputGroup>
<CFormInput <CFormInput
type="file"
id="inputGroupFile04" id="inputGroupFile04"
type="file"
aria-describedby="inputGroupFileAddon04" aria-describedby="inputGroupFileAddon04"
aria-label="Upload" aria-label="Upload"
/> />
<CButton <CButton
id="inputGroupFileAddon04"
type="button" type="button"
color="secondary" color="secondary"
variant="outline" variant="outline"
id="inputGroupFileAddon04"
> >
Button Button
</CButton> </CButton>
+16 -16
View File
@@ -55,11 +55,11 @@
<CForm class="row g-3"> <CForm class="row g-3">
<CCol :md="6"> <CCol :md="6">
<CFormLabel for="inputEmail4">Email</CFormLabel> <CFormLabel for="inputEmail4">Email</CFormLabel>
<CFormInput type="email" id="inputEmail4" /> <CFormInput id="inputEmail4" type="email" />
</CCol> </CCol>
<CCol :md="6"> <CCol :md="6">
<CFormLabel for="inputPassword4">Password</CFormLabel> <CFormLabel for="inputPassword4">Password</CFormLabel>
<CFormInput type="password" id="inputPassword4" /> <CFormInput id="inputPassword4" type="password" />
</CCol> </CCol>
<CCol :xs="12"> <CCol :xs="12">
<CFormLabel for="inputAddress">Address</CFormLabel> <CFormLabel for="inputAddress">Address</CFormLabel>
@@ -89,8 +89,8 @@
</CCol> </CCol>
<CCol :xs="12"> <CCol :xs="12">
<CFormCheck <CFormCheck
type="checkbox"
id="gridCheck" id="gridCheck"
type="checkbox"
label="Check me out" label="Check me out"
/> />
</CCol> </CCol>
@@ -129,7 +129,7 @@
Email Email
</CFormLabel> </CFormLabel>
<CCol :sm="10"> <CCol :sm="10">
<CFormInput type="email" id="inputEmail3" /> <CFormInput id="inputEmail3" type="email" />
</CCol> </CCol>
</CRow> </CRow>
<CRow class="mb-3"> <CRow class="mb-3">
@@ -140,31 +140,31 @@
Password Password
</CFormLabel> </CFormLabel>
<CCol :sm="10"> <CCol :sm="10">
<CFormInput type="password" id="inputPassword3" /> <CFormInput id="inputPassword3" type="password" />
</CCol> </CCol>
</CRow> </CRow>
<fieldset class="row mb-3"> <fieldset class="row mb-3">
<legend class="col-form-label col-sm-2 pt-0">Radios</legend> <legend class="col-form-label col-sm-2 pt-0">Radios</legend>
<CCol :sm="10"> <CCol :sm="10">
<CFormCheck <CFormCheck
id="gridRadios1"
type="radio" type="radio"
name="gridRadios" name="gridRadios"
id="gridRadios1"
value="option1" value="option1"
label="First radio" label="First radio"
defaultChecked checked
/> />
<CFormCheck <CFormCheck
id="gridRadios2"
type="radio" type="radio"
name="gridRadios" name="gridRadios"
id="gridRadios2"
value="option2" value="option2"
label="Second radio" label="Second radio"
/> />
<CFormCheck <CFormCheck
id="gridRadios3"
type="radio" type="radio"
name="gridRadios" name="gridRadios"
id="gridRadios3"
value="option3" value="option3"
label="Third disabled radio" label="Third disabled radio"
disabled disabled
@@ -174,8 +174,8 @@
<CRow class="mb-3"> <CRow class="mb-3">
<div class="col-sm-10 offset-sm-2"> <div class="col-sm-10 offset-sm-2">
<CFormCheck <CFormCheck
type="checkbox"
id="gridCheck1" id="gridCheck1"
type="checkbox"
label="Example checkbox" label="Example checkbox"
/> />
</div> </div>
@@ -209,9 +209,9 @@
</CFormLabel> </CFormLabel>
<CCol :sm="10"> <CCol :sm="10">
<CFormInput <CFormInput
id="colFormLabelSm"
type="email" type="email"
class="form-control form-control-sm" class="form-control form-control-sm"
id="colFormLabelSm"
placeholder="col-form-label-sm" placeholder="col-form-label-sm"
/> />
</CCol> </CCol>
@@ -222,8 +222,8 @@
</CFormLabel> </CFormLabel>
<CCol :sm="10"> <CCol :sm="10">
<CFormInput <CFormInput
type="email"
id="colFormLabel" id="colFormLabel"
type="email"
placeholder="col-form-label" placeholder="col-form-label"
/> />
</CCol> </CCol>
@@ -237,9 +237,9 @@
</CFormLabel> </CFormLabel>
<CCol :sm="10"> <CCol :sm="10">
<CFormInput <CFormInput
id="colFormLabelLg"
type="email" type="email"
class="form-control form-control-lg" class="form-control form-control-lg"
id="colFormLabelLg"
placeholder="col-form-label-lg" placeholder="col-form-label-lg"
/> />
</CCol> </CCol>
@@ -327,8 +327,8 @@
</CCol> </CCol>
<CCol xs="auto"> <CCol xs="auto">
<CFormCheck <CFormCheck
type="checkbox"
id="autoSizingCheck" id="autoSizingCheck"
type="checkbox"
label="Remember me" label="Remember me"
/> />
</CCol> </CCol>
@@ -377,8 +377,8 @@
</CCol> </CCol>
<CCol xs="auto"> <CCol xs="auto">
<CFormCheck <CFormCheck
type="checkbox"
id="autoSizingCheck2" id="autoSizingCheck2"
type="checkbox"
label="Remember me" label="Remember me"
/> />
</CCol> </CCol>
@@ -435,8 +435,8 @@
</CCol> </CCol>
<CCol :xs="12"> <CCol :xs="12">
<CFormCheck <CFormCheck
type="checkbox"
id="inlineFormCheck" id="inlineFormCheck"
type="checkbox"
label="Remember me" label="Remember me"
/> />
</CCol> </CCol>
+3 -3
View File
@@ -50,7 +50,7 @@
</p> </p>
<DocsExample href="forms/range.html#min-and-max"> <DocsExample href="forms/range.html#min-and-max">
<CFormLabel for="customRange2">Example range</CFormLabel> <CFormLabel for="customRange2">Example range</CFormLabel>
<CFormRange :min="0" :max="5" defaultValue="3" id="customRange2" /> <CFormRange id="customRange2" :min="0" :max="5" value="3" />
</DocsExample> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
@@ -70,11 +70,11 @@
<DocsExample href="forms/range.html#steps"> <DocsExample href="forms/range.html#steps">
<CFormLabel for="customRange3">Example range</CFormLabel> <CFormLabel for="customRange3">Example range</CFormLabel>
<CFormRange <CFormRange
id="customRange3"
:min="0" :min="0"
:max="5" :max="5"
:step="0.5" :step="0.5"
defaultValue="3" value="3"
id="customRange3"
/> />
</DocsExample> </DocsExample>
</CCardBody> </CCardBody>
+40 -66
View File
@@ -9,7 +9,7 @@
<p class="text-medium-emphasis small"> <p class="text-medium-emphasis small">
For custom CoreUI form validation messages, you&#39;ll need to add For custom CoreUI form validation messages, you&#39;ll need to add
the the
<code>noValidate</code> boolean property to your <code>novalidate</code> boolean property to your
<code>&lt;CForm&gt;</code>. This disables the browser default <code>&lt;CForm&gt;</code>. This disables the browser default
feedback tooltips, but still provides access to the form validation feedback tooltips, but still provides access to the form validation
APIs in JavaScript. Try to submit the form below; our JavaScript APIs in JavaScript. Try to submit the form below; our JavaScript
@@ -24,26 +24,18 @@
<DocsExample href="forms/validation.html"> <DocsExample href="forms/validation.html">
<CForm <CForm
class="row g-3 needs-validation" class="row g-3 needs-validation"
noValidate novalidate
:validated="validatedCustom01" :validated="validatedCustom01"
@submit="handleSubmitCustom01" @submit="handleSubmitCustom01"
> >
<CCol :md="4"> <CCol :md="4">
<CFormLabel for="validationCustom01">Email</CFormLabel> <CFormLabel for="validationCustom01">Email</CFormLabel>
<CFormInput <CFormInput id="validationCustom01" value="Mark" required />
id="validationCustom01"
defaultValue="Mark"
required
/>
<CFormFeedback valid> Looks good! </CFormFeedback> <CFormFeedback valid> Looks good! </CFormFeedback>
</CCol> </CCol>
<CCol :md="4"> <CCol :md="4">
<CFormLabel for="validationCustom02">Email</CFormLabel> <CFormLabel for="validationCustom02">Email</CFormLabel>
<CFormInput <CFormInput id="validationCustom02" value="Otto" required />
id="validationCustom02"
defaultValue="Otto"
required
/>
<CFormFeedback valid> Looks good! </CFormFeedback> <CFormFeedback valid> Looks good! </CFormFeedback>
</CCol> </CCol>
<CCol :md="4"> <CCol :md="4">
@@ -52,7 +44,7 @@
<CInputGroupText id="inputGroupPrepend">@</CInputGroupText> <CInputGroupText id="inputGroupPrepend">@</CInputGroupText>
<CFormInput <CFormInput
id="validationCustomUsername" id="validationCustomUsername"
defaultValue="" value=""
aria-describedby="inputGroupPrepend" aria-describedby="inputGroupPrepend"
required required
/> />
@@ -87,8 +79,8 @@
</CCol> </CCol>
<CCol :xs="12"> <CCol :xs="12">
<CFormCheck <CFormCheck
type="checkbox"
id="invalidCheck" id="invalidCheck"
type="checkbox"
label="Agree to terms and conditions" label="Agree to terms and conditions"
required required
/> />
@@ -129,20 +121,12 @@
> >
<CCol :md="4"> <CCol :md="4">
<CFormLabel for="validationDefault01">Email</CFormLabel> <CFormLabel for="validationDefault01">Email</CFormLabel>
<CFormInput <CFormInput id="validationDefault01" value="Mark" required />
id="validationDefault01"
defaultValue="Mark"
required
/>
<CFormFeedback valid> Looks good! </CFormFeedback> <CFormFeedback valid> Looks good! </CFormFeedback>
</CCol> </CCol>
<CCol :md="4"> <CCol :md="4">
<CFormLabel for="validationDefault02">Email</CFormLabel> <CFormLabel for="validationDefault02">Email</CFormLabel>
<CFormInput <CFormInput id="validationDefault02" value="Otto" required />
id="validationDefault02"
defaultValue="Otto"
required
/>
<CFormFeedback valid> Looks good! </CFormFeedback> <CFormFeedback valid> Looks good! </CFormFeedback>
</CCol> </CCol>
<CCol :md="4"> <CCol :md="4">
@@ -153,7 +137,7 @@
<CInputGroupText id="inputGroupPrepend02">@</CInputGroupText> <CInputGroupText id="inputGroupPrepend02">@</CInputGroupText>
<CFormInput <CFormInput
id="validationDefaultUsername" id="validationDefaultUsername"
defaultValue="" value=""
aria-describedby="inputGroupPrepend02" aria-describedby="inputGroupPrepend02"
required required
/> />
@@ -188,8 +172,8 @@
</CCol> </CCol>
<CCol :xs="12"> <CCol :xs="12">
<CFormCheck <CFormCheck
type="checkbox"
id="invalidCheck" id="invalidCheck"
type="checkbox"
label="Agree to terms and conditions" label="Agree to terms and conditions"
required required
/> />
@@ -227,37 +211,35 @@
<DocsExample href="forms/validation.html#server-side"> <DocsExample href="forms/validation.html#server-side">
<CForm class="row g-3 needs-validation"> <CForm class="row g-3 needs-validation">
<CCol ::md="4"> <CCol ::md="4">
<CFormLabel htmlFor="validationServer01">Email</CFormLabel> <CFormLabel for="validationServer01">Email</CFormLabel>
<CFormInput <CFormInput
type="text"
id="validationServer01" id="validationServer01"
defaultValue="Mark"
valid
required
/>
<CFormFeedback valid>Looks good!</CFormFeedback>
</CCol>
<CCol ::md="4">
<CFormLabel htmlFor="validationServer02">Email</CFormLabel>
<CFormInput
type="text" type="text"
id="validationServer02" value="Mark"
defaultValue="Otto"
valid valid
required required
/> />
<CFormFeedback valid>Looks good!</CFormFeedback> <CFormFeedback valid>Looks good!</CFormFeedback>
</CCol> </CCol>
<CCol ::md="4"> <CCol ::md="4">
<CFormLabel htmlFor="validationServerUsername" <CFormLabel for="validationServer02">Email</CFormLabel>
>Username</CFormLabel <CFormInput
> id="validationServer02"
type="text"
value="Otto"
valid
required
/>
<CFormFeedback valid>Looks good!</CFormFeedback>
</CCol>
<CCol ::md="4">
<CFormLabel for="validationServerUsername">Username</CFormLabel>
<CInputGroup class="has-validation"> <CInputGroup class="has-validation">
<CInputGroupText id="inputGroupPrepend03">@</CInputGroupText> <CInputGroupText id="inputGroupPrepend03">@</CInputGroupText>
<CFormInput <CFormInput
type="text"
id="validationServerUsername" id="validationServerUsername"
defaultValue="" type="text"
value=""
aria-describedby="inputGroupPrepend03" aria-describedby="inputGroupPrepend03"
invalid invalid
required required
@@ -268,10 +250,10 @@
</CInputGroup> </CInputGroup>
</CCol> </CCol>
<CCol :md="6"> <CCol :md="6">
<CFormLabel htmlFor="validationServer03">City</CFormLabel> <CFormLabel for="validationServer03">City</CFormLabel>
<CFormInput <CFormInput
type="text"
id="validationServer03" id="validationServer03"
type="text"
invalid invalid
required required
/> />
@@ -280,7 +262,7 @@
> >
</CCol> </CCol>
<CCol :md="3"> <CCol :md="3">
<CFormLabel htmlFor="validationServer04">City</CFormLabel> <CFormLabel for="validationServer04">City</CFormLabel>
<CFormSelect id="validationServer04" invalid> <CFormSelect id="validationServer04" invalid>
<option disabled>Choose...</option> <option disabled>Choose...</option>
<option>...</option> <option>...</option>
@@ -290,10 +272,10 @@
> >
</CCol> </CCol>
<CCol :md="3"> <CCol :md="3">
<CFormLabel htmlFor="validationServer05">City</CFormLabel> <CFormLabel for="validationServer05">City</CFormLabel>
<CFormInput <CFormInput
type="text"
id="validationServer05" id="validationServer05"
type="text"
invalid invalid
required required
/> />
@@ -303,8 +285,8 @@
</CCol> </CCol>
<CCol :xs="12"> <CCol :xs="12">
<CFormCheck <CFormCheck
type="checkbox"
id="invalidCheck" id="invalidCheck"
type="checkbox"
label="Agree to terms and conditions" label="Agree to terms and conditions"
invalid invalid
required required
@@ -353,8 +335,8 @@
</CFormFeedback> </CFormFeedback>
</div> </div>
<CFormCheck <CFormCheck
class="mb-3"
id="validationFormCheck1" id="validationFormCheck1"
class="mb-3"
label="Check this checkbox" label="Check this checkbox"
required required
/> />
@@ -362,17 +344,17 @@
>Example invalid feedback text</CFormFeedback >Example invalid feedback text</CFormFeedback
> >
<CFormCheck <CFormCheck
id="validationFormCheck2"
type="radio" type="radio"
name="radio-stacked" name="radio-stacked"
id="validationFormCheck2"
label="Check this checkbox" label="Check this checkbox"
required required
/> />
<CFormCheck <CFormCheck
id="validationFormCheck3"
class="mb-3" class="mb-3"
type="radio" type="radio"
name="radio-stacked" name="radio-stacked"
id="validationFormCheck3"
label="Or toggle this other radio" label="Or toggle this other radio"
required required
/> />
@@ -392,8 +374,8 @@
</div> </div>
<div class="mb-3"> <div class="mb-3">
<CFormInput <CFormInput
type="file"
id="validationTextarea" id="validationTextarea"
type="file"
aria-label="file example" aria-label="file example"
required required
/> />
@@ -428,26 +410,18 @@
<DocsExample href="forms/validation.html#tooltips"> <DocsExample href="forms/validation.html#tooltips">
<CForm <CForm
class="row g-3 needs-validation" class="row g-3 needs-validation"
noValidate novalidate
:validated="validatedTooltip01" :validated="validatedTooltip01"
@submit="handleSubmitTooltip01" @submit="handleSubmitTooltip01"
> >
<CCol :md="4" class="position-relative"> <CCol :md="4" class="position-relative">
<CFormLabel for="validationTooltip01">Email</CFormLabel> <CFormLabel for="validationTooltip01">Email</CFormLabel>
<CFormInput <CFormInput id="validationTooltip01" value="Mark" required />
id="validationTooltip01"
defaultValue="Mark"
required
/>
<CFormFeedback tooltip valid> Looks good! </CFormFeedback> <CFormFeedback tooltip valid> Looks good! </CFormFeedback>
</CCol> </CCol>
<CCol :md="4" class="position-relative"> <CCol :md="4" class="position-relative">
<CFormLabel for="validationTooltip02">Email</CFormLabel> <CFormLabel for="validationTooltip02">Email</CFormLabel>
<CFormInput <CFormInput id="validationTooltip02" value="Otto" required />
id="validationTooltip02"
defaultValue="Otto"
required
/>
<CFormFeedback tooltip valid> Looks good! </CFormFeedback> <CFormFeedback tooltip valid> Looks good! </CFormFeedback>
</CCol> </CCol>
<CCol :md="4" class="position-relative"> <CCol :md="4" class="position-relative">
@@ -458,7 +432,7 @@
<CInputGroupText id="inputGroupPrepend">@</CInputGroupText> <CInputGroupText id="inputGroupPrepend">@</CInputGroupText>
<CFormInput <CFormInput
id="validationTooltipUsername" id="validationTooltipUsername"
defaultValue="" value=""
aria-describedby="inputGroupPrepend" aria-describedby="inputGroupPrepend"
required required
/> />
+6 -7
View File
@@ -3,13 +3,11 @@
<CCol> <CCol>
<DocsCallout <DocsCallout
name="CoreUI Brand Icons" name="CoreUI Brand Icons"
href="components/chart" href="components/icon"
content="CoreUI Brand Icons. CoreUI Icons package is delivered with more than 1500 icons in multiple formats SVG, PNG, and Webfonts. CoreUI Icons are beautifully crafted symbols for common actions and items. You can use them in your digital products for web or mobile app." content="CoreUI Brand Icons. CoreUI Icons package is delivered with more than 1500 icons in multiple formats SVG, PNG, and Webfonts. CoreUI Icons are beautifully crafted symbols for common actions and items. You can use them in your digital products for web or mobile app."
/> />
<CCard> <CCard>
<CCardHeader> <CCardHeader>CoreUI Icons - Brand</CCardHeader>
CoreUI Icons - Brand
</CCardHeader>
<CCardBody> <CCardBody>
<CRow class="text-center"> <CRow class="text-center">
<template v-for="(icon, iconName) in icons" :key="iconName"> <template v-for="(icon, iconName) in icons" :key="iconName">
@@ -30,13 +28,14 @@ import { brandSet } from '@coreui/icons'
export default { export default {
name: 'CoreUIIcons', name: 'CoreUIIcons',
setup() { setup() {
const toKebabCase = (str) => str.replace(/([a-z])([A-Z0-9])/g, '$1-$2').toLowerCase() const toKebabCase = (str) =>
str.replace(/([a-z])([A-Z0-9])/g, '$1-$2').toLowerCase()
const icons = brandSet const icons = brandSet
return { return {
icons, icons,
toKebabCase toKebabCase,
}
} }
},
} }
</script> </script>
+6 -7
View File
@@ -3,13 +3,11 @@
<CCol> <CCol>
<DocsCallout <DocsCallout
name="CoreUI Icons" name="CoreUI Icons"
href="components/chart" href="components/icon"
content="CoreUI Icons. CoreUI Icons package is delivered with more than 1500 icons in multiple formats SVG, PNG, and Webfonts. CoreUI Icons are beautifully crafted symbols for common actions and items. You can use them in your digital products for web or mobile app." content="CoreUI Icons. CoreUI Icons package is delivered with more than 1500 icons in multiple formats SVG, PNG, and Webfonts. CoreUI Icons are beautifully crafted symbols for common actions and items. You can use them in your digital products for web or mobile app."
/> />
<CCard> <CCard>
<CCardHeader> <CCardHeader>CoreUI Icons Free</CCardHeader>
CoreUI Icons Free
</CCardHeader>
<CCardBody> <CCardBody>
<CRow class="text-center"> <CRow class="text-center">
<template v-for="(icon, iconName) in icons" :key="iconName"> <template v-for="(icon, iconName) in icons" :key="iconName">
@@ -30,13 +28,14 @@ import { freeSet } from '@coreui/icons'
export default { export default {
name: 'CoreUIIcons', name: 'CoreUIIcons',
setup() { setup() {
const toKebabCase = (str) => str.replace(/([a-z])([A-Z0-9])/g, '$1-$2').toLowerCase() const toKebabCase = (str) =>
str.replace(/([a-z])([A-Z0-9])/g, '$1-$2').toLowerCase()
const icons = freeSet const icons = freeSet
return { return {
icons, icons,
toKebabCase toKebabCase,
}
} }
},
} }
</script> </script>
+6 -7
View File
@@ -3,13 +3,11 @@
<CCol> <CCol>
<DocsCallout <DocsCallout
name="CoreUI Flag Icons" name="CoreUI Flag Icons"
href="components/chart" href="components/icon"
content="CoreUI Flag Icons. CoreUI Icons package is delivered with more than 1500 icons in multiple formats SVG, PNG, and Webfonts. CoreUI Icons are beautifully crafted symbols for common actions and items. You can use them in your digital products for web or mobile app." content="CoreUI Flag Icons. CoreUI Icons package is delivered with more than 1500 icons in multiple formats SVG, PNG, and Webfonts. CoreUI Icons are beautifully crafted symbols for common actions and items. You can use them in your digital products for web or mobile app."
/> />
<CCard> <CCard>
<CCardHeader> <CCardHeader>CoreUI Icons - Flag</CCardHeader>
CoreUI Icons - Flag
</CCardHeader>
<CCardBody> <CCardBody>
<CRow class="text-center"> <CRow class="text-center">
<template v-for="(icon, iconName) in icons" :key="iconName"> <template v-for="(icon, iconName) in icons" :key="iconName">
@@ -30,13 +28,14 @@ import { flagSet } from '@coreui/icons'
export default { export default {
name: 'CoreUIIcons', name: 'CoreUIIcons',
setup() { setup() {
const toKebabCase = (str) => str.replace(/([a-z])([A-Z0-9])/g, '$1-$2').toLowerCase() const toKebabCase = (str) =>
str.replace(/([a-z])([A-Z0-9])/g, '$1-$2').toLowerCase()
const icons = flagSet const icons = flagSet
return { return {
icons, icons,
toKebabCase toKebabCase,
}
} }
},
} }
</script> </script>
+1 -1
View File
@@ -593,11 +593,11 @@
<p> <p>
This This
<CButton <CButton
color="secondary"
v-c-popover="{ v-c-popover="{
header: 'Popover title', header: 'Popover title',
content: 'Popover body content is set in this property.', content: 'Popover body content is set in this property.',
}" }"
color="secondary"
>button</CButton >button</CButton
> >
</p> </p>
+2 -2
View File
@@ -15,7 +15,7 @@
</CInputGroupText> </CInputGroupText>
<CFormInput <CFormInput
placeholder="Username" placeholder="Username"
autoComplete="username" autocomplete="username"
/> />
</CInputGroup> </CInputGroup>
<CInputGroup class="mb-4"> <CInputGroup class="mb-4">
@@ -25,7 +25,7 @@
<CFormInput <CFormInput
type="password" type="password"
placeholder="Password" placeholder="Password"
autoComplete="current-password" autocomplete="current-password"
/> />
</CInputGroup> </CInputGroup>
<CRow> <CRow>
+4 -4
View File
@@ -12,11 +12,11 @@
<CInputGroupText> <CInputGroupText>
<CIcon icon="cil-user" /> <CIcon icon="cil-user" />
</CInputGroupText> </CInputGroupText>
<CFormInput placeholder="Username" autoComplete="username" /> <CFormInput placeholder="Username" autocomplete="username" />
</CInputGroup> </CInputGroup>
<CInputGroup class="mb-3"> <CInputGroup class="mb-3">
<CInputGroupText>@</CInputGroupText> <CInputGroupText>@</CInputGroupText>
<CFormInput placeholder="Email" autoComplete="email" /> <CFormInput placeholder="Email" autocomplete="email" />
</CInputGroup> </CInputGroup>
<CInputGroup class="mb-3"> <CInputGroup class="mb-3">
<CInputGroupText> <CInputGroupText>
@@ -25,7 +25,7 @@
<CFormInput <CFormInput
type="password" type="password"
placeholder="Password" placeholder="Password"
autoComplete="new-password" autocomplete="new-password"
/> />
</CInputGroup> </CInputGroup>
<CInputGroup class="mb-4"> <CInputGroup class="mb-4">
@@ -35,7 +35,7 @@
<CFormInput <CFormInput
type="password" type="password"
placeholder="Repeat password" placeholder="Repeat password"
autoComplete="new-password" autocomplete="new-password"
/> />
</CInputGroup> </CInputGroup>
<div class="d-grid"> <div class="d-grid">
+4 -1
View File
@@ -12,7 +12,10 @@
export default { export default {
name: 'ColorTheme', name: 'ColorTheme',
props: { props: {
color: String, color: {
type: String,
default: undefined,
},
}, },
} }
</script> </script>
+3 -3
View File
@@ -369,11 +369,11 @@
</template> </template>
<script> <script>
import { CChart } from "@coreui/vue-chartjs"; import { CChart } from '@coreui/vue-chartjs'
export default { export default {
name: "WidgetsStatsA", name: 'WidgetsStatsA',
components: { components: {
CChart, CChart,
}, },
}; }
</script> </script>
+5 -5
View File
@@ -172,9 +172,9 @@
</template> </template>
<script> <script>
import { CChart } from "@coreui/vue-chartjs"; import { CChart } from '@coreui/vue-chartjs'
export default { export default {
name: "WidgetsStatsD", name: 'WidgetsStatsD',
components: { components: {
CChart, CChart,
}, },
@@ -205,11 +205,11 @@ export default {
display: false, display: false,
}, },
}, },
}; }
return { return {
options, options,
}; }
}, },
}; }
</script> </script>