Skip to content

Commit

Permalink
fix: broken stackblitz
Browse files Browse the repository at this point in the history
  • Loading branch information
saurabhdaware committed Nov 29, 2024
1 parent 4e80f18 commit b60fcf3
Show file tree
Hide file tree
Showing 54 changed files with 106 additions and 114 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const Page = (): React.ReactElement => {
Button
} from '@razorpay/blade/components';
function App(): React.ReactElement {
function App() {
return (
<Box backgroundColor="surface.background.gray.intense">
<ActionList>
Expand Down
8 changes: 4 additions & 4 deletions packages/blade/src/components/ActionList/docs/stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const Playground = `
Button
} from '@razorpay/blade/components';
function App(): React.ReactElement {
function App() {
return (
<Box backgroundColor="surface.background.gray.intense">
<ActionList>
Expand Down Expand Up @@ -62,7 +62,7 @@ const Playground = `
const ActionList = `
import { Box, ActionList, ActionListItem } from '@razorpay/blade/components';
function App(): React.ReactElement {
function App() {
return (
<Box backgroundColor="surface.background.gray.intense">
<ActionList>
Expand All @@ -88,7 +88,7 @@ const ActionListItem = `
HomeIcon
} from '@razorpay/blade/components';
function App(): React.ReactElement {
function App() {
return (
<Box backgroundColor="surface.background.gray.intense">
<ActionList>
Expand Down Expand Up @@ -121,7 +121,7 @@ const ActionListSection = `
ActionListSection,
} from '@razorpay/blade/components';
function App(): React.ReactElement {
function App() {
return (
<Box backgroundColor="surface.background.gray.intense">
<ActionList>
Expand Down
2 changes: 1 addition & 1 deletion packages/blade/src/components/Amount/Amount.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const Page = (): React.ReactElement => {
{`
import { Amount } from '@razorpay/blade/components';
function App(): React.ReactElement {
function App() {
return <Amount value={10000} />;
}
export default App;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const Page = (): React.ReactElement => {
{`
import { Avatar } from '@razorpay/blade/components';
function App(): React.ReactElement {
function App() {
return (
<Avatar name="Nitin Kumar" src="https://avatars.githubusercontent.com/u/46647141?v=4" />
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const Page = (): React.ReactElement => {
{`
import { Avatar, AvatarGroup } from '@razorpay/blade/components';
function App(): React.ReactElement {
function App() {
return (
<AvatarGroup>
<Avatar color="primary" name="Kamlesh Chandnani" />
Expand Down
2 changes: 1 addition & 1 deletion packages/blade/src/components/Badge/Badge.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const Page = (): React.ReactElement => {
{`
import { Badge, InfoIcon } from '@razorpay/blade/components';
function App(): React.ReactElement {
function App() {
return (
<Badge color="neutral" icon={InfoIcon}>
Boop
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const Page = (): React.ReactElement => {
Text,
} from '@razorpay/blade/components';
function App(): React.ReactElement {
function App() {
const [isOpen, setIsOpen] = React.useState(false);
return (
Expand Down
8 changes: 4 additions & 4 deletions packages/blade/src/components/Box/LayoutPrimitivesDocs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ function LayoutPrimitivesDocs(): React.ReactElement {
{`
import { Box, Text } from '@razorpay/blade/components'
function App(): React.ReactElement {
function App() {
return (
<Box
as="section" // renders as <section> tag instead of <div>
Expand Down Expand Up @@ -185,7 +185,7 @@ function LayoutPrimitivesDocs(): React.ReactElement {
{`
import { Box, Text } from '@razorpay/blade/components'
function App(): React.ReactElement {
function App() {
return (
<>
<Box
Expand Down Expand Up @@ -238,7 +238,7 @@ function LayoutPrimitivesDocs(): React.ReactElement {
code={`
import { Box, Text } from '@razorpay/blade/components';
function App(): React.ReactElement {
function App() {
return (
<>
<Box display={{ base: 'none', m: 'block' }}><Text>🖥 Desktop View</Text></Box>
Expand Down Expand Up @@ -310,7 +310,7 @@ function LayoutPrimitivesDocs(): React.ReactElement {
{`
import { Text } from '@razorpay/blade/components'
function App(): React.ReactElement {
function App() {
return (
<>
{/** ❌ No need of Box wrappers */}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const Page = (): React.ReactElement => {
{`
import { Box, Breadcrumb, BreadcrumbItem, HomeIcon } from '@razorpay/blade/components';
function App(): React.ReactElement {
function App() {
return (
<Box padding="spacing.4">
<Breadcrumb>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const Page = (): ReactElement => {
{`
import { Button } from '@razorpay/blade/components'
function App(): React.ReactElement {
function App() {
return (
// Try changing variant here to secondary
<Button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const Page = (): React.ReactElement => {
DownloadIcon,
} from '@razorpay/blade/components';
function App(): React.ReactElement {
function App() {
return (
<ButtonGroup>
<Button icon={RefreshIcon}>Sync</Button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const Page = (): React.ReactElement => {
{`
import { Checkbox } from '@razorpay/blade/components'
function App(): React.ReactElement {
function App() {
return (
// Check console
<Checkbox onChange={(e) => console.log(e.isChecked)}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const Page = (): React.ReactElement => {
{`
import { CheckboxGroup, Checkbox } from '@razorpay/blade/components';
function App(): React.ReactElement {
function App() {
return (
<CheckboxGroup
label="Where do you want to collect payments?"
Expand Down
2 changes: 1 addition & 1 deletion packages/blade/src/components/Chip/ChipGroup.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const Page = (): React.ReactElement => {
{`
import { Box, Chip, ChipGroup, Text } from '@razorpay/blade/components';
function App(): React.ReactElement {
function App() {
return (
<Box>
<ChipGroup
Expand Down
2 changes: 1 addition & 1 deletion packages/blade/src/components/Counter/Counter.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const Page = (): ReactElement => {
{`
import { Counter } from '@razorpay/blade/components';
function App(): React.ReactElement {
function App() {
return (
// Change values to anything less than 99 to see change
<Counter max={99} value={140} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export default {
{`
import { DatePicker } from '@razorpay/blade/components';
function App(): React.ReactElement {
function App() {
return (
<DatePicker
label="Name"
Expand Down
2 changes: 1 addition & 1 deletion packages/blade/src/components/Divider/Divider.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const Page = (): React.ReactElement => {
CardBody
} from "@razorpay/blade/components";
function App(): React.ReactElement {
function App() {
return (
<Card>
<CardBody>
Expand Down
2 changes: 1 addition & 1 deletion packages/blade/src/components/Drawer/docs/stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ const DrawerWithTableStory = `import React, { useState } from 'react';
);
};
function App(): React.ReactElement {
function App() {
const [selectedItem, setSelectedItem] = useState<Item | undefined>(undefined);
const [showDrawer, setShowDrawer] = useState(false);
const { theme } = useTheme();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const getSimpleAutoComplete = (
ActionListItem,
} from '@razorpay/blade/components';
function App(): React.ReactElement {
function App() {
return (
<Dropdown
selectionType="${selectionType}"
Expand Down Expand Up @@ -265,7 +265,7 @@ export const tagsOutside = `
Tag,
} from '@razorpay/blade/components';
function App(): React.ReactElement {
function App() {
const [selections, setSelections] = React.useState([]);
return (
Expand Down Expand Up @@ -354,7 +354,7 @@ export const responsiveBottomSheet = `
)
}
function App(): React.ReactElement {
function App() {
return (
<Box>
<Text textAlign="center" marginBottom="spacing.8">Change the <Code>isMobile</Code> flag in code and refresh the sandbox preview</Text>
Expand Down Expand Up @@ -592,7 +592,7 @@ export const withErrorState = `
const cities = ['Mumbai', 'Pune', 'Bangalore', 'Mysore'];
function App(): React.ReactElement {
function App() {
const [isError, setIsError] = React.useState(false);
const [currentInputValue, setCurrentInputValue] = React.useState('');
const [isDismissed, setIsDismissed] = React.useState(false);
Expand Down Expand Up @@ -655,7 +655,7 @@ import {
Box,
} from '@razorpay/blade/components';
function App(): React.ReactElement {
function App() {
return (
<Box>
<Heading size="medium" marginBottom="spacing.3">
Expand Down
24 changes: 12 additions & 12 deletions packages/blade/src/components/Dropdown/docs/stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const Playground = `
Button
} from '@razorpay/blade/components';
function App(): React.ReactElement {
function App() {
return (
<Dropdown
// Uncomment next line to make it multiselectable
Expand Down Expand Up @@ -89,7 +89,7 @@ const getSimpleSelectCode = (selectionType: DropdownProps['selectionType']): str
ActionListItem,
} from '@razorpay/blade/components';
function App(): React.ReactElement {
function App() {
return (
<Dropdown
selectionType="${selectionType}"
Expand Down Expand Up @@ -140,7 +140,7 @@ const WithHeaderFooterScroll = `
Button
} from '@razorpay/blade/components';
function App(): React.ReactElement {
function App() {
const [isDropdownOpen, setIsDropdownOpen] = React.useState(false);
return (
Expand Down Expand Up @@ -248,7 +248,7 @@ const WithValueDisplayStory = `
Box,
} from '@razorpay/blade/components';
function App(): React.ReactElement {
function App() {
const [currentSelections, setCurrentSelections] = React.useState([]);
console.log({currentSelections});
Expand Down Expand Up @@ -302,7 +302,7 @@ const WithHTMLFormSubmissionStory = `
Text,
} from '@razorpay/blade/components';
function App(): React.ReactElement {
function App() {
const [submissionValues, setSubmissionValues] = React.useState('');
return (
Expand Down Expand Up @@ -362,7 +362,7 @@ const WithValidationStateStory = `
} from '@razorpay/blade/components';
import type { SelectInputProps } from '@razorpay/blade/components';
function App(): React.ReactElement {
function App() {
const [validationState, setValidationState] = React.useState<SelectInputProps['validationState']>('none');
return (
Expand Down Expand Up @@ -424,7 +424,7 @@ const WithRefUsageStory = `
Text
} from '@razorpay/blade/components';
function App(): React.ReactElement {
function App() {
const selectRef = React.useRef<HTMLElement>(null);
Expand Down Expand Up @@ -478,7 +478,7 @@ const WithMultipleDropdownsStory = `
} from '@razorpay/blade/components';
function App(): React.ReactElement {
function App() {
return (
<Box display="flex" flexDirection="row" minHeight="300px" gap="spacing.2">
<Box flex={1}>
Expand Down Expand Up @@ -618,7 +618,7 @@ const WithAutoPositioningSelectStory = `
Box,
} from '@razorpay/blade/components';
function App(): React.ReactElement {
function App() {
return (
<Box>
<Box
Expand Down Expand Up @@ -816,7 +816,7 @@ const WithControlledMenuStory = `
CloseIcon
} from '@razorpay/blade/components';
function App(): React.ReactElement {
function App() {
const [status, setStatus] = React.useState<string | undefined>();
return (
Expand Down Expand Up @@ -881,7 +881,7 @@ const WithControlledMultiSelectMenuStory = `
Tag,
} from '@razorpay/blade/components';
function App(): React.ReactElement {
function App() {
const [filters, setFilters] = React.useState<string[]>([]);
const toggleSelection = ({ name, value }: { name: string; value?: boolean }): void => {
Expand Down Expand Up @@ -1025,7 +1025,7 @@ import {
Heading,
} from '@razorpay/blade/components';
function App(): React.ReactElement {
function App() {
return (
<Box>
<Heading size="medium" marginBottom="spacing.3">
Expand Down
Loading

0 comments on commit b60fcf3

Please sign in to comment.