Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "pcln-design-system",
"comment": "add documentation for Toggle component",
"type": "patch"
}
],
"packageName": "pcln-design-system"
}
4 changes: 2 additions & 2 deletions packages/core/src/Button/Button.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import alignmentImage from './Button.Image.Alignment.png'
import groupsImage from './Button.Image.Groups.png'
import heroImage from './Button.Image.Hero.png'
import responsiveLayoutImage from './Button.Image.ResponsiveLayout.png'
import buttonStates from './Button.Image.States.png'
import statesImage from './Button.Image.States.png'

type ButtonStory = StoryObj<IButtonProps>

Expand Down Expand Up @@ -328,7 +328,7 @@ const meta: Meta<typeof Button> = {
element.
</Text>
<Flex my={4} borderRadius='xl' bg='primary.light'>
<Image src={buttonStates} />
<Image src={statesImage} />
</Flex>

<StoryHeading storyName='Disabled' storyTitle={meta.title} />
Expand Down
60 changes: 30 additions & 30 deletions packages/core/src/Checkbox/__snapshots__/Checkbox.spec.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,6 @@ exports[`Checkbox renders disabled with defaultChecked 1`] = `
outline: none;
}

.c0 {
font-family: 'Montserrat','Helvetica Neue',Helvetica,Arial,sans-serif;
line-height: 1.4;
font-weight: 500;
}

.c0 * {
box-sizing: border-box;
}

.c1 {
display: -webkit-inline-box;
display: -webkit-inline-flex;
Expand Down Expand Up @@ -120,6 +110,16 @@ exports[`Checkbox renders disabled with defaultChecked 1`] = `
z-index: 0;
}

.c0 {
font-family: 'Montserrat','Helvetica Neue',Helvetica,Arial,sans-serif;
line-height: 1.4;
font-weight: 500;
}

.c0 * {
box-sizing: border-box;
}

<div
class="c0"
>
Expand Down Expand Up @@ -217,16 +217,6 @@ exports[`Checkbox renders disabled with disabled prop 1`] = `
outline: none;
}

.c0 {
font-family: 'Montserrat','Helvetica Neue',Helvetica,Arial,sans-serif;
line-height: 1.4;
font-weight: 500;
}

.c0 * {
box-sizing: border-box;
}

.c1 {
display: -webkit-inline-box;
display: -webkit-inline-flex;
Expand Down Expand Up @@ -315,6 +305,16 @@ exports[`Checkbox renders disabled with disabled prop 1`] = `
z-index: 0;
}

.c0 {
font-family: 'Montserrat','Helvetica Neue',Helvetica,Arial,sans-serif;
line-height: 1.4;
font-weight: 500;
}

.c0 * {
box-sizing: border-box;
}

<div
class="c0"
>
Expand Down Expand Up @@ -411,16 +411,6 @@ exports[`Checkbox renders without the theme passed specifically 1`] = `
outline: none;
}

.c0 {
font-family: 'Montserrat','Helvetica Neue',Helvetica,Arial,sans-serif;
line-height: 1.4;
font-weight: 500;
}

.c0 * {
box-sizing: border-box;
}

.c1 {
display: -webkit-inline-box;
display: -webkit-inline-flex;
Expand Down Expand Up @@ -509,6 +499,16 @@ exports[`Checkbox renders without the theme passed specifically 1`] = `
z-index: 0;
}

.c0 {
font-family: 'Montserrat','Helvetica Neue',Helvetica,Arial,sans-serif;
line-height: 1.4;
font-weight: 500;
}

.c0 * {
box-sizing: border-box;
}

<div
class="c0"
>
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/DocsUtils/DoDont/DoDont.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'

import { Box, createTheme, Text } from '../..'
import { Box, Text } from '../..'
import { createTheme } from '../../utils'

const theme = createTheme()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const TableOfContents = ({ links }: TableOfContentsProps) => (
const id = kebabCase(link)
return (
<Link key={id} onClick={() => scrollTo(id)}>
<li>{link}</li>
<li style={{ color: 'inherit' }}>{link}</li>
</Link>
)
})}
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added packages/core/src/Toggle/Toggle.Image.Hero.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added packages/core/src/Toggle/Toggle.Image.States.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added packages/core/src/Toggle/Toggle.Image.Usage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions packages/core/src/Toggle/Toggle.stories.args.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { ArgTypes } from '@storybook/react'
import type { IToggleProps } from '..'

export const toggleArgTypes: Partial<ArgTypes<IToggleProps>> = {
isOn: {
type: 'boolean',
},
disabled: {
type: 'boolean',
defaultValue: false,
},
height: {
type: 'number',
},
}
Loading