Skip to content

Commit

Permalink
feat: remove Booleanish type and useBooleanish composable, replace by…
Browse files Browse the repository at this point in the history
… plain boolean type fixes  #1774
  • Loading branch information
sceee committed Feb 28, 2024
1 parent 7f01828 commit d3a51d3
Show file tree
Hide file tree
Showing 127 changed files with 1,457 additions and 2,117 deletions.
14 changes: 7 additions & 7 deletions apps/docs/src/data/components/accordion.data.ts
Expand Up @@ -7,14 +7,14 @@ export default {
props: [
{
prop: 'flush',
type: 'Booleanish',
type: 'boolean',
default: false,
description:
'Remove the default background-color, some borders, and some rounded corners to render accordions edge-to-edge with their parent container',
},
{
prop: 'free',
type: 'Booleanish',
type: 'boolean',
default: false,
description: 'Accordion items will stay open when another item is opened',
},
Expand Down Expand Up @@ -55,7 +55,7 @@ export default {
},
{
prop: 'modelValue',
type: 'Booleanish',
type: 'boolean',
default: false,
},
{
Expand All @@ -70,22 +70,22 @@ export default {
},
{
prop: 'toggle',
type: 'Booleanish',
type: 'boolean',
default: undefined,
},
{
prop: 'horizontal',
type: 'Booleanish',
type: 'boolean',
default: undefined,
},
{
prop: 'visible',
type: 'Booleanish',
type: 'boolean',
default: false,
},
{
prop: 'isNav',
type: 'Booleanish',
type: 'boolean',
default: undefined,
},
{
Expand Down
10 changes: 5 additions & 5 deletions apps/docs/src/data/components/alert.data.ts
Expand Up @@ -27,18 +27,18 @@ export default {
},
{
prop: 'noHoverPause',
type: 'Booleanish',
type: 'boolean',
default: false,
},
{
prop: 'dismissible',
type: 'Booleanish',
type: 'boolean',
default: false,
description: 'When set, enables the dismiss close button',
},
{
prop: 'fade',
type: 'Booleanish',
type: 'boolean',
default: false,
description: 'When set to true, enables the fade animation/transition on the component',
},
Expand All @@ -55,7 +55,7 @@ export default {
},
{
prop: 'immediate',
type: 'Booleanish',
type: 'boolean',
default: true,
},
{
Expand All @@ -65,7 +65,7 @@ export default {
},
{
prop: 'showOnPause',
type: 'Booleanish',
type: 'boolean',
default: true,
},
],
Expand Down
10 changes: 5 additions & 5 deletions apps/docs/src/data/components/avatar.data.ts
Expand Up @@ -17,7 +17,7 @@ export default {
},
{
prop: 'badgeLeft',
type: 'Booleanish',
type: 'boolean',
default: false,
},
{
Expand All @@ -27,7 +27,7 @@ export default {
},
{
prop: 'badgeTop',
type: 'Booleanish',
type: 'boolean',
default: false,
},
{
Expand All @@ -37,7 +37,7 @@ export default {
},
{
prop: 'button',
type: 'Booleanish',
type: 'boolean',
default: false,
},
{
Expand All @@ -62,7 +62,7 @@ export default {
},
{
prop: 'square',
type: 'Booleanish',
type: 'boolean',
default: false,
},
{
Expand Down Expand Up @@ -138,7 +138,7 @@ export default {
},
{
prop: 'square',
type: 'Booleanish',
type: 'boolean',
default: false,
},
{
Expand Down
6 changes: 3 additions & 3 deletions apps/docs/src/data/components/badge.data.ts
Expand Up @@ -7,7 +7,7 @@ export default {
props: [
{
prop: 'pill',
type: 'Booleanish',
type: 'boolean',
default: false,
description: "When set to 'true', renders the badge in pill style",
},
Expand All @@ -19,13 +19,13 @@ export default {
},
{
prop: 'textIndicator',
type: 'Booleanish',
type: 'boolean',
default: false,
description: 'Indication position applied',
},
{
prop: 'dotIndicator',
type: 'Booleanish',
type: 'boolean',
default: false,
description: 'Indication position and dot styling applied',
},
Expand Down
14 changes: 7 additions & 7 deletions apps/docs/src/data/components/button.data.ts
Expand Up @@ -7,12 +7,12 @@ export default {
props: [
{
prop: 'pill',
type: 'Booleanish',
type: 'boolean',
default: false,
},
{
prop: 'pressed',
type: 'Booleanish',
type: 'boolean',
default: undefined,
},
{
Expand All @@ -22,7 +22,7 @@ export default {
},
{
prop: 'squared',
type: 'Booleanish',
type: 'boolean',
default: false,
},
{
Expand All @@ -42,17 +42,17 @@ export default {
},
{
prop: 'loading',
type: 'Booleanish',
type: 'boolean',
default: false,
},
{
prop: 'loadingFill',
type: 'Booleanish',
type: 'boolean',
default: false,
},
{
prop: 'block',
type: 'Booleanish',
type: 'boolean',
default: false,
},
{
Expand Down Expand Up @@ -110,7 +110,7 @@ export default {
{
description: '',
prop: 'disabled',
type: 'Booleanish',
type: 'boolean',
},
{
prop: 'type',
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/src/data/components/buttonGroup.data.ts
Expand Up @@ -22,7 +22,7 @@ export default {
},
{
prop: 'vertical',
type: 'Booleanish',
type: 'boolean',
default: false,
},
],
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/src/data/components/buttonToolbar.data.ts
Expand Up @@ -12,7 +12,7 @@ export default {
},
{
prop: 'justify',
type: 'Booleanish',
type: 'boolean',
default: false,
},
{
Expand Down
22 changes: 11 additions & 11 deletions apps/docs/src/data/components/card.data.ts
Expand Up @@ -117,12 +117,12 @@ export default {
},
{
prop: 'imgBottom',
type: 'Booleanish',
type: 'boolean',
default: false,
},
{
prop: 'imgEnd',
type: 'Booleanish',
type: 'boolean',
default: false,
},
{
Expand All @@ -137,12 +137,12 @@ export default {
},
{
prop: 'imgStart',
type: 'Booleanish',
type: 'boolean',
default: false,
},
{
prop: 'imgTop',
type: 'Booleanish',
type: 'boolean',
default: false,
},
{
Expand All @@ -152,12 +152,12 @@ export default {
},
{
prop: 'noBody',
type: 'Booleanish',
type: 'boolean',
default: false,
},
{
prop: 'overlay',
type: 'Booleanish',
type: 'boolean',
default: false,
},
{
Expand Down Expand Up @@ -246,7 +246,7 @@ export default {
},
{
prop: 'overlay',
type: 'Booleanish',
type: 'boolean',
default: false,
},
{
Expand Down Expand Up @@ -342,12 +342,12 @@ export default {
props: [
{
prop: 'columns',
type: 'Booleanish',
type: 'boolean',
default: false,
},
{
prop: 'deck',
type: 'Booleanish',
type: 'boolean',
default: false,
},
{
Expand Down Expand Up @@ -413,12 +413,12 @@ export default {
props: [
{
prop: 'bottom',
type: 'Booleanish',
type: 'boolean',
default: false,
},
{
prop: 'top',
type: 'Booleanish',
type: 'boolean',
default: false,
},
],
Expand Down
18 changes: 9 additions & 9 deletions apps/docs/src/data/components/carousel.data.ts
Expand Up @@ -12,17 +12,17 @@ export default {
},
{
prop: 'noHoverPause',
type: 'Booleanish',
type: 'boolean',
default: false,
},
{
prop: 'rideReverse',
type: 'Booleanish',
type: 'boolean',
default: false,
},
{
prop: 'fade',
type: 'Booleanish',
type: 'boolean',
default: false,
},
{
Expand Down Expand Up @@ -52,12 +52,12 @@ export default {
},
{
prop: 'controls',
type: 'Booleanish',
type: 'boolean',
default: false,
},
{
prop: 'indicators',
type: 'Booleanish',
type: 'boolean',
default: false,
},
{
Expand All @@ -67,12 +67,12 @@ export default {
},
{
prop: 'noTouch',
type: 'Booleanish',
type: 'boolean',
default: false,
},
{
prop: 'noWrap',
type: 'Booleanish',
type: 'boolean',
default: false,
},
{
Expand All @@ -92,7 +92,7 @@ export default {
},
{
prop: 'keyboard',
type: 'Booleanish',
type: 'boolean',
default: true,
},
{
Expand Down Expand Up @@ -204,7 +204,7 @@ export default {
},
{
prop: 'imgBlank',
type: 'Booleanish',
type: 'boolean',
default: false,
},
{
Expand Down

0 comments on commit d3a51d3

Please sign in to comment.