From 10ec8843af2653e831bab40f930aa116e17993ed Mon Sep 17 00:00:00 2001 From: Sarka Chwastkova Date: Fri, 17 Jan 2025 13:54:49 +0100 Subject: [PATCH] chore: add Playroom snippets --- .../playroom/snippets/BasicComponents.ts | 173 ++++++++++++++++++ 1 file changed, 173 insertions(+) diff --git a/packages/orbit-components/playroom/snippets/BasicComponents.ts b/packages/orbit-components/playroom/snippets/BasicComponents.ts index 5af07a68b6..90e75948cc 100644 --- a/packages/orbit-components/playroom/snippets/BasicComponents.ts +++ b/packages/orbit-components/playroom/snippets/BasicComponents.ts @@ -54,6 +54,139 @@ const dialog = ` const heading = `Heading`; +const linkList = ` + + + Flight 1 + + + Flight 2 + + + Flight 3 + + +`; + +const list = ` + + + 24,000 locations{' '} + + around + + {' '}the globe + + + Lowest price car rental in{' '} + + Warsaw + + + + From 3 star budget to 5 star luxury + + +`; + +const listChoice = ` +<> + } + role="list" + selectable + tabIndex={0} + title="Choice Title" + /> + } + role="list" + selectable + tabIndex={0} + title="Choice Title" + /> + +`; + +const loading = ``; + +const navigationBar = ` + + + } + type="secondary" + > + Flights + + + } + type="secondary" + /> + } + type="secondary" + /> + + + +`; + +const notificationBadge = `10`; + +const pagination = ` + Numbers of pages: 6} + pageCount={6} + /> +`; + +const popover = ` +

Passengers

Adult11+Child2-11
} + > + +
+`; + +const radio = ``; + +const seat = ``; + export default [ { group: "Alert", @@ -107,4 +240,44 @@ export default [ group: "Heading", code: heading, }, + { + group: "LinkList", + code: linkList, + }, + { + group: "List", + code: list, + }, + { + group: "ListChoice", + code: listChoice, + }, + { + group: "Loading", + code: loading, + }, + { + group: "NavigationBar", + code: navigationBar, + }, + { + group: "NotificationBadge", + code: notificationBadge, + }, + { + group: "Pagination", + code: pagination, + }, + { + group: "Popover", + code: popover, + }, + { + group: "Radio", + code: radio, + }, + { + group: "Seat", + code: seat, + }, ];