@nobak/design-system 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +73 -0
- package/README.md +142 -0
- package/lib/assets/icons.js +67 -0
- package/lib/components/AccountOverview/AccountOverview.js +122 -0
- package/lib/components/AdminPanel.js +58 -0
- package/lib/components/AssetExchange/AssetExchange.js +189 -0
- package/lib/components/AuthenticationFlow.js +216 -0
- package/lib/components/ConversationInterface/ConversationInterface.js +232 -0
- package/lib/components/DevFooter.js +38 -0
- package/lib/components/DevMenu.js +35 -0
- package/lib/components/DevSidebar.js +28 -0
- package/lib/components/DigitalDisplay.js +83 -0
- package/lib/components/Footer.js +45 -0
- package/lib/components/HeroContainer.js +10 -0
- package/lib/components/IntentRecognition/IntentRecognition.js +174 -0
- package/lib/components/Logo.js +259 -0
- package/lib/components/MenuBar.js +56 -0
- package/lib/components/NetworkSettings.js +223 -0
- package/lib/components/RecoverySetup/RecoverySetup.js +354 -0
- package/lib/components/RisingSun.js +122 -0
- package/lib/components/Symbol.js +226 -0
- package/lib/components/TransactionComposer/TransactionComposer.js +258 -0
- package/lib/components/TransactionConfirmation.js +184 -0
- package/lib/components/WalletMenu.js +33 -0
- package/lib/components/console/code/CodeBlock.js +150 -0
- package/lib/components/console/code/index.js +9 -0
- package/lib/components/console/data/DataTable.js +245 -0
- package/lib/components/console/data/MetricCard.js +79 -0
- package/lib/components/console/data/index.js +11 -0
- package/lib/components/console/documentation/index.js +10 -0
- package/lib/components/console/forms/APIKeyGenerator.js +261 -0
- package/lib/components/console/forms/SearchBar.js +210 -0
- package/lib/components/console/forms/index.js +10 -0
- package/lib/components/console/index.js +29 -0
- package/lib/components/console/layout/ConsoleCard.js +82 -0
- package/lib/components/console/layout/ConsoleLayout.js +86 -0
- package/lib/components/console/layout/index.js +10 -0
- package/lib/components/console/monitoring/StatusIndicator.js +128 -0
- package/lib/components/console/monitoring/index.js +9 -0
- package/lib/components/console/navigation/DevFooter.js +38 -0
- package/lib/components/console/navigation/DevMenu.js +35 -0
- package/lib/components/console/navigation/DevSidebar.js +28 -0
- package/lib/components/console/navigation/index.js +11 -0
- package/lib/components/console/settings/index.js +10 -0
- package/lib/components/index.js +12 -0
- package/lib/design/ColorPicker.stories.js +9 -0
- package/lib/design/HSLTool-V1.js +345 -0
- package/lib/design/HSLTool-V2.js +475 -0
- package/lib/design/HSLTool-V3.js +543 -0
- package/lib/design/HSLTool-V4.js +1139 -0
- package/lib/design/HSLTool.js +374 -0
- package/lib/design/OKLCHColorPicker.stories.js +24 -0
- package/lib/design/OKLCHTool.js +1014 -0
- package/lib/index.js +4 -0
- package/lib/shared/components/Avatar/Avatar.js +18 -0
- package/lib/shared/components/Avatar/index.js +1 -0
- package/lib/shared/components/Badge/Badge.js +34 -0
- package/lib/shared/components/Badge/index.js +1 -0
- package/lib/shared/components/Breadcrumb/Breadcrumb.js +13 -0
- package/lib/shared/components/Breadcrumb/index.js +1 -0
- package/lib/shared/components/Button/Button.js +184 -0
- package/lib/shared/components/Button/index.js +1 -0
- package/lib/shared/components/Calendar/Calendar.js +155 -0
- package/lib/shared/components/Calendar/CalendarDay.js +251 -0
- package/lib/shared/components/Calendar/CalendarHeader.js +88 -0
- package/lib/shared/components/Calendar/CalendarMonth.js +106 -0
- package/lib/shared/components/Calendar/CalendarWeek.js +267 -0
- package/lib/shared/components/Calendar/constants.js +73 -0
- package/lib/shared/components/Calendar/index.js +3 -0
- package/lib/shared/components/Calendar/types.d.js +0 -0
- package/lib/shared/components/Cartel/Cartel.js +44 -0
- package/lib/shared/components/Cartel/index.js +1 -0
- package/lib/shared/components/Cell/Cell.js +105 -0
- package/lib/shared/components/Cell/index.js +1 -0
- package/lib/shared/components/Checkbox/Checkbox.js +27 -0
- package/lib/shared/components/Checkbox/index.js +1 -0
- package/lib/shared/components/Clock/Clock.js +6 -0
- package/lib/shared/components/Clock/index.js +1 -0
- package/lib/shared/components/ColorChecker/ColorChecker.js +89 -0
- package/lib/shared/components/ColorChecker/index.js +2 -0
- package/lib/shared/components/ColorChecker/utils.js +159 -0
- package/lib/shared/components/Command/Command.js +95 -0
- package/lib/shared/components/Command/index.js +1 -0
- package/lib/shared/components/Container/Container.js +18 -0
- package/lib/shared/components/Container/index.js +1 -0
- package/lib/shared/components/Cover/Cover.js +17 -0
- package/lib/shared/components/Cover/index.js +1 -0
- package/lib/shared/components/DatePicker/DatePicker.js +52 -0
- package/lib/shared/components/DatePicker/components/Calendar.js +125 -0
- package/lib/shared/components/DatePicker/components/CalendarDay.js +23 -0
- package/lib/shared/components/DatePicker/components/DateWrapper.js +15 -0
- package/lib/shared/components/DatePicker/components/index.js +2 -0
- package/lib/shared/components/DatePicker/index.js +1 -0
- package/lib/shared/components/DateTime/DateTime.js +51 -0
- package/lib/shared/components/DateTime/index.js +1 -0
- package/lib/shared/components/Debug/Debug.js +12 -0
- package/lib/shared/components/Debug/index.js +1 -0
- package/lib/shared/components/Disclosure/Disclosure.js +31 -0
- package/lib/shared/components/Disclosure/index.js +1 -0
- package/lib/shared/components/Dropdown/Dropdown.js +91 -0
- package/lib/shared/components/Dropdown/index.js +1 -0
- package/lib/shared/components/EmptyState/EmptyState.js +40 -0
- package/lib/shared/components/EmptyState/index.js +1 -0
- package/lib/shared/components/Form/Form.js +41 -0
- package/lib/shared/components/Form/components/DynamicForm.js +66 -0
- package/lib/shared/components/Form/components/StepperForm.js +266 -0
- package/lib/shared/components/Form/components/index.js +2 -0
- package/lib/shared/components/Form/context/Form.js +164 -0
- package/lib/shared/components/Form/context/index.js +1 -0
- package/lib/shared/components/Form/index.js +1 -0
- package/lib/shared/components/Form/types.d.js +1 -0
- package/lib/shared/components/Form/utils/index.js +31 -0
- package/lib/shared/components/GroupItems/GroupItems.js +17 -0
- package/lib/shared/components/GroupItems/index.js +1 -0
- package/lib/shared/components/Header/Header.js +26 -0
- package/lib/shared/components/Header/index.js +1 -0
- package/lib/shared/components/Heading/Heading.js +5 -0
- package/lib/shared/components/Heading/index.js +1 -0
- package/lib/shared/components/Icon/Icon.js +28 -0
- package/lib/shared/components/Icon/index.js +1 -0
- package/lib/shared/components/Identicons/Identicons.js +6 -0
- package/lib/shared/components/Identicons/index.d.js +0 -0
- package/lib/shared/components/Identicons/index.js +1 -0
- package/lib/shared/components/Image/Image.js +22 -0
- package/lib/shared/components/Image/index.js +1 -0
- package/lib/shared/components/Input/Input.js +201 -0
- package/lib/shared/components/Input/components/CheckBoxInput.js +81 -0
- package/lib/shared/components/Input/components/DateInput.js +89 -0
- package/lib/shared/components/Input/components/DefaultInput.js +102 -0
- package/lib/shared/components/Input/components/FileReaderInput.js +88 -0
- package/lib/shared/components/Input/components/NumberInput.js +141 -0
- package/lib/shared/components/Input/components/PickerInput.js +122 -0
- package/lib/shared/components/Input/components/RCInput.js +112 -0
- package/lib/shared/components/Input/components/Radiobox/RadioboxBasic.js +56 -0
- package/lib/shared/components/Input/components/Radiobox/RadioboxCard.js +27 -0
- package/lib/shared/components/Input/components/Radiobox/RadioboxFull.js +44 -0
- package/lib/shared/components/Input/components/Radiobox/index.js +3 -0
- package/lib/shared/components/Input/components/RadioboxInput.js +102 -0
- package/lib/shared/components/Input/components/SelectInput.js +70 -0
- package/lib/shared/components/Input/components/TextAreaInput.js +67 -0
- package/lib/shared/components/Input/components/TextInput.js +139 -0
- package/lib/shared/components/Input/components/TimeInput.js +37 -0
- package/lib/shared/components/Input/components/UploadFileInput.js +123 -0
- package/lib/shared/components/Input/components/index.js +13 -0
- package/lib/shared/components/Input/components/types.d.js +0 -0
- package/lib/shared/components/Input/index.js +1 -0
- package/lib/shared/components/Input/types.d.js +0 -0
- package/lib/shared/components/Layout/Layout.js +13 -0
- package/lib/shared/components/Layout/index.js +1 -0
- package/lib/shared/components/List/List.js +30 -0
- package/lib/shared/components/List/index.js +1 -0
- package/lib/shared/components/Loader/Loader.js +27 -0
- package/lib/shared/components/Loader/index.js +1 -0
- package/lib/shared/components/Modal/Modal.js +102 -0
- package/lib/shared/components/Modal/index.js +1 -0
- package/lib/shared/components/Notification/Notification.js +39 -0
- package/lib/shared/components/Notification/index.js +1 -0
- package/lib/shared/components/Person/Person.js +81 -0
- package/lib/shared/components/Person/index.js +1 -0
- package/lib/shared/components/Popover/Popover.js +39 -0
- package/lib/shared/components/Popover/index.js +1 -0
- package/lib/shared/components/QRCode/QRCode.js +329 -0
- package/lib/shared/components/QRCode/index.js +1 -0
- package/lib/shared/components/RadioGroup/RadioGroup.js +35 -0
- package/lib/shared/components/RadioGroup/components/DefaultGroup.js +71 -0
- package/lib/shared/components/RadioGroup/components/VerticalGroup.js +83 -0
- package/lib/shared/components/RadioGroup/components/index.js +2 -0
- package/lib/shared/components/RadioGroup/index.js +1 -0
- package/lib/shared/components/Search/Search.js +12 -0
- package/lib/shared/components/Search/index.js +1 -0
- package/lib/shared/components/Select/Select.js +90 -0
- package/lib/shared/components/Select/index.js +1 -0
- package/lib/shared/components/Sidebar/Sidebar.js +42 -0
- package/lib/shared/components/Sidebar/index.js +1 -0
- package/lib/shared/components/SlideOver/SlideOver.js +81 -0
- package/lib/shared/components/SlideOver/index.js +1 -0
- package/lib/shared/components/Slider/Slider.js +80 -0
- package/lib/shared/components/Slider/index.js +1 -0
- package/lib/shared/components/Stepper/Stepper.js +32 -0
- package/lib/shared/components/Stepper/index.js +1 -0
- package/lib/shared/components/Steps/Steps.js +53 -0
- package/lib/shared/components/Steps/index.js +1 -0
- package/lib/shared/components/Switch/Switch.js +26 -0
- package/lib/shared/components/Switch/index.js +1 -0
- package/lib/shared/components/Tab/Tab.js +59 -0
- package/lib/shared/components/Tab/index.js +1 -0
- package/lib/shared/components/Table/Table.js +47 -0
- package/lib/shared/components/Table/index.js +1 -0
- package/lib/shared/components/Text/Text.js +11 -0
- package/lib/shared/components/Text/index.js +1 -0
- package/lib/shared/components/TextList/TextList.js +15 -0
- package/lib/shared/components/TextList/index.js +1 -0
- package/lib/shared/components/TimePicker/TimePicker.js +161 -0
- package/lib/shared/components/TimePicker/index.js +1 -0
- package/lib/shared/components/Tooltip/Tooltip.js +13 -0
- package/lib/shared/components/Tooltip/index.js +1 -0
- package/lib/shared/components/Uploader/Uploader.js +63 -0
- package/lib/shared/components/Uploader/index.js +1 -0
- package/lib/shared/components/Video/Video.js +20 -0
- package/lib/shared/components/Video/index.js +1 -0
- package/lib/shared/components/index.d.js +0 -0
- package/lib/shared/components/index.js +50 -0
- package/lib/shared/elements/Color/ColorPallet.js +20 -0
- package/lib/shared/elements/Color/index.js +1 -0
- package/lib/shared/elements/Text.js +37 -0
- package/lib/shared/elements/index.js +1 -0
- package/lib/shared/helpers/FakeLink.js +8 -0
- package/lib/shared/helpers/constants.js +359 -0
- package/lib/shared/helpers/index.js +2 -0
- package/lib/shared/helpers/isEqual.js +56 -0
- package/lib/shared/index.d.js +0 -0
- package/lib/shared/index.js +1 -0
- package/lib/shared/stories/components/Avatar.stories.js +17 -0
- package/lib/shared/stories/components/Badge.stories.dev.js +37 -0
- package/lib/shared/stories/components/Button.stories.js +553 -0
- package/lib/shared/stories/components/Calendar.stories.js +62 -0
- package/lib/shared/stories/components/Cartel.stories.js +32 -0
- package/lib/shared/stories/components/Checkbox.stories.js +15 -0
- package/lib/shared/stories/components/ColorChecker.stories.dev.js +16 -0
- package/lib/shared/stories/components/DateTime.stories.js +27 -0
- package/lib/shared/stories/components/Disclosure.stories.js +30 -0
- package/lib/shared/stories/components/Dropdown.stories.js +39 -0
- package/lib/shared/stories/components/Form/Default.stories.js +201 -0
- package/lib/shared/stories/components/Form/DummyForm.stories.js +48 -0
- package/lib/shared/stories/components/Form/DynamicForm.stories.js +155 -0
- package/lib/shared/stories/components/Form/StepperForm.stories.js +138 -0
- package/lib/shared/stories/components/Form/ValidateForm.stories.js +70 -0
- package/lib/shared/stories/components/Form/Validation.stories.js +184 -0
- package/lib/shared/stories/components/GroupItems.stories.js +23 -0
- package/lib/shared/stories/components/Header.stories.js +29 -0
- package/lib/shared/stories/components/Heading.stories.js +27 -0
- package/lib/shared/stories/components/Icon.stories.js +22 -0
- package/lib/shared/stories/components/Image.stories.js +23 -0
- package/lib/shared/stories/components/Input/Checkbox.stories.js +45 -0
- package/lib/shared/stories/components/Input/DatePicker.stories.js +23 -0
- package/lib/shared/stories/components/Input/Defaut.stories.js +24 -0
- package/lib/shared/stories/components/Input/Number.stories.js +24 -0
- package/lib/shared/stories/components/Input/RCI.stories.js +59 -0
- package/lib/shared/stories/components/Input/Radiobox.stories.dev.js +28 -0
- package/lib/shared/stories/components/Input/Select.stories.dev.js +27 -0
- package/lib/shared/stories/components/Input/SelectMultiple.stories.dev.js +510 -0
- package/lib/shared/stories/components/Input/Textarea.stories.js +24 -0
- package/lib/shared/stories/components/List.stories.js +34 -0
- package/lib/shared/stories/components/Loader.stories.js +15 -0
- package/lib/shared/stories/components/Modal.stories.js +50 -0
- package/lib/shared/stories/components/Notification.stories.js +22 -0
- package/lib/shared/stories/components/Person.stories.js +41 -0
- package/lib/shared/stories/components/Picker.stories.js +15 -0
- package/lib/shared/stories/components/Popover.stories.js +36 -0
- package/lib/shared/stories/components/QRCode.stories.js +20 -0
- package/lib/shared/stories/components/RadioGroup.stories.js +56 -0
- package/lib/shared/stories/components/Select.stories.js +50 -0
- package/lib/shared/stories/components/Sidebar.stories.js +35 -0
- package/lib/shared/stories/components/Slider.stories.dev.js +48 -0
- package/lib/shared/stories/components/Stepper/Stepper.stories.js +38 -0
- package/lib/shared/stories/components/Steps.stories.js +15 -0
- package/lib/shared/stories/components/Switch.stories.js +15 -0
- package/lib/shared/stories/components/Tab.stories.js +15 -0
- package/lib/shared/stories/components/Table.stories.js +95 -0
- package/lib/shared/stories/components/TextList.stories.js +23 -0
- package/lib/shared/stories/components/Tooltip.stories.dev.js +40 -0
- package/lib/shared/stories/elements/Color.stories.js +269 -0
- package/lib/shared/stories/elements/Text.stories.js +45 -0
- package/lib/shared/types/index.js +1 -0
- package/lib/stories/Foundation/BrandIdentity.prod.stories.js +510 -0
- package/lib/stories/Foundation/Logo.stories.js +19 -0
- package/lib/stories/Foundation/RisingSun.stories.js +16 -0
- package/lib/stories/Foundation/Shadows.stories.js +601 -0
- package/lib/stories/Foundation/Symbol.stories.js +18 -0
- package/lib/stories/HeroContainer.stories.js +18 -0
- package/lib/styles/accessibilityTokens.js +72 -0
- package/lib/styles/borderWidth.js +10 -0
- package/lib/styles/colors.js +303 -0
- package/lib/styles/elevation.js +240 -0
- package/lib/styles/icons.js +218 -0
- package/lib/styles/index.js +29 -0
- package/lib/styles/motion.js +668 -0
- package/lib/styles/opacity.js +10 -0
- package/lib/styles/radius.js +11 -0
- package/lib/styles/sizing.js +35 -0
- package/lib/styles/space.js +24 -0
- package/lib/styles/theme/darkTheme.js +471 -0
- package/lib/styles/theme/index.js +44 -0
- package/lib/styles/theme/lightTheme.js +480 -0
- package/lib/styles/theme/themeTypes.js +1 -0
- package/lib/styles/theme/themeUtils.js +63 -0
- package/lib/styles/typography-advanced.js +510 -0
- package/lib/styles/typography.js +1419 -0
- package/lib/styles/zIndex.js +19 -0
- package/lib/tokens/borders.js +161 -0
- package/lib/tokens/colors.js +426 -0
- package/lib/tokens/components.js +499 -0
- package/lib/tokens/index.js +84 -0
- package/lib/tokens/lighting.js +384 -0
- package/lib/tokens/motion.js +284 -0
- package/lib/tokens/semantic.js +367 -0
- package/lib/tokens/shadows.js +114 -0
- package/lib/tokens/spacing.js +189 -0
- package/lib/tokens/typography.js +268 -0
- package/package.json +176 -0
- package/styles/generated-tokens.css +677 -0
- package/styles/index.css +2 -0
- package/styles/main.css +610 -0
- package/tailwind.config.js +64 -0
|
@@ -0,0 +1,553 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Button } from "../../components/Button";
|
|
3
|
+
import "../../../../styles/index.css";
|
|
4
|
+
import { FakeLink } from "../../helpers";
|
|
5
|
+
export default {
|
|
6
|
+
component: Button,
|
|
7
|
+
title: 'Components / Button',
|
|
8
|
+
args: {
|
|
9
|
+
variant: 'primary',
|
|
10
|
+
text: 'Button',
|
|
11
|
+
size: 'medium',
|
|
12
|
+
icon: 'Clockwork',
|
|
13
|
+
loading: false
|
|
14
|
+
}
|
|
15
|
+
// argTypes: {
|
|
16
|
+
// variant: {
|
|
17
|
+
// type: {
|
|
18
|
+
// summary: 'string'
|
|
19
|
+
// },
|
|
20
|
+
// options: ['primary', 'secondary', 'alert', 'warning', 'positive', 'icon'],
|
|
21
|
+
// control: {
|
|
22
|
+
// type: 'radio'
|
|
23
|
+
// }
|
|
24
|
+
// },
|
|
25
|
+
// size: {
|
|
26
|
+
// type: {
|
|
27
|
+
// summary: 'string'
|
|
28
|
+
// },
|
|
29
|
+
// options: ['small', 'medium', 'large'],
|
|
30
|
+
// control: {
|
|
31
|
+
// type: 'radio'
|
|
32
|
+
// }
|
|
33
|
+
// },
|
|
34
|
+
// text: {
|
|
35
|
+
// type: {
|
|
36
|
+
// summary: 'string'
|
|
37
|
+
// }
|
|
38
|
+
// },
|
|
39
|
+
// },
|
|
40
|
+
//
|
|
41
|
+
};
|
|
42
|
+
export var Default = function Default(args) {
|
|
43
|
+
return /*#__PURE__*/React.createElement(Button, args);
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
// Default.parameters = {
|
|
47
|
+
// design: {
|
|
48
|
+
// type: 'figma',
|
|
49
|
+
// url: 'https://www.figma.com/file/94RZpTzUGCb20phpH5PFaC/Untitled?node-id=137%3A24870'
|
|
50
|
+
// }
|
|
51
|
+
// };
|
|
52
|
+
|
|
53
|
+
var buttonCollection = [{
|
|
54
|
+
variant: 'primary',
|
|
55
|
+
size: 'tiny'
|
|
56
|
+
}, {
|
|
57
|
+
variant: 'primary',
|
|
58
|
+
size: 'small'
|
|
59
|
+
}, {
|
|
60
|
+
variant: 'primary',
|
|
61
|
+
size: 'medium'
|
|
62
|
+
}, {
|
|
63
|
+
variant: 'primary',
|
|
64
|
+
size: 'large'
|
|
65
|
+
}, {
|
|
66
|
+
variant: 'primary',
|
|
67
|
+
size: 'xlarge'
|
|
68
|
+
}, {
|
|
69
|
+
variant: 'secondary',
|
|
70
|
+
size: 'tiny'
|
|
71
|
+
}, {
|
|
72
|
+
variant: 'secondary',
|
|
73
|
+
size: 'small'
|
|
74
|
+
}, {
|
|
75
|
+
variant: 'secondary',
|
|
76
|
+
size: 'medium'
|
|
77
|
+
}, {
|
|
78
|
+
variant: 'secondary',
|
|
79
|
+
size: 'large'
|
|
80
|
+
}, {
|
|
81
|
+
variant: 'secondary',
|
|
82
|
+
size: 'xlarge'
|
|
83
|
+
}, {
|
|
84
|
+
variant: 'warning',
|
|
85
|
+
size: 'tiny'
|
|
86
|
+
}, {
|
|
87
|
+
variant: 'warning',
|
|
88
|
+
size: 'small'
|
|
89
|
+
}, {
|
|
90
|
+
variant: 'warning',
|
|
91
|
+
size: 'medium'
|
|
92
|
+
}, {
|
|
93
|
+
variant: 'warning',
|
|
94
|
+
size: 'large'
|
|
95
|
+
}, {
|
|
96
|
+
variant: 'warning',
|
|
97
|
+
size: 'xlarge'
|
|
98
|
+
}, {
|
|
99
|
+
variant: 'positive',
|
|
100
|
+
size: 'tiny'
|
|
101
|
+
}, {
|
|
102
|
+
variant: 'positive',
|
|
103
|
+
size: 'small'
|
|
104
|
+
}, {
|
|
105
|
+
variant: 'positive',
|
|
106
|
+
size: 'medium'
|
|
107
|
+
}, {
|
|
108
|
+
variant: 'positive',
|
|
109
|
+
size: 'large'
|
|
110
|
+
}, {
|
|
111
|
+
variant: 'positive',
|
|
112
|
+
size: 'xlarge'
|
|
113
|
+
}, {
|
|
114
|
+
variant: 'basic',
|
|
115
|
+
size: 'tiny'
|
|
116
|
+
}, {
|
|
117
|
+
variant: 'basic',
|
|
118
|
+
size: 'small'
|
|
119
|
+
}, {
|
|
120
|
+
variant: 'basic',
|
|
121
|
+
size: 'medium'
|
|
122
|
+
}, {
|
|
123
|
+
variant: 'basic',
|
|
124
|
+
size: 'large'
|
|
125
|
+
}, {
|
|
126
|
+
variant: 'basic',
|
|
127
|
+
size: 'xlarge'
|
|
128
|
+
}, {
|
|
129
|
+
variant: 'outline',
|
|
130
|
+
size: 'tiny'
|
|
131
|
+
}, {
|
|
132
|
+
variant: 'outline',
|
|
133
|
+
size: 'small'
|
|
134
|
+
}, {
|
|
135
|
+
variant: 'outline',
|
|
136
|
+
size: 'medium'
|
|
137
|
+
}, {
|
|
138
|
+
variant: 'outline',
|
|
139
|
+
size: 'large'
|
|
140
|
+
}, {
|
|
141
|
+
variant: 'outline',
|
|
142
|
+
size: 'xlarge'
|
|
143
|
+
}, {
|
|
144
|
+
variant: 'dropdown',
|
|
145
|
+
size: 'tiny'
|
|
146
|
+
}, {
|
|
147
|
+
variant: 'dropdown',
|
|
148
|
+
size: 'small'
|
|
149
|
+
}, {
|
|
150
|
+
variant: 'dropdown',
|
|
151
|
+
size: 'medium'
|
|
152
|
+
}, {
|
|
153
|
+
variant: 'dropdown',
|
|
154
|
+
size: 'large'
|
|
155
|
+
}, {
|
|
156
|
+
variant: 'dropdown',
|
|
157
|
+
size: 'xlarge'
|
|
158
|
+
}];
|
|
159
|
+
var iconCollection = [{
|
|
160
|
+
variant: 'primary',
|
|
161
|
+
size: 'tiny',
|
|
162
|
+
icon: 'Clockwork'
|
|
163
|
+
}, {
|
|
164
|
+
variant: 'primary',
|
|
165
|
+
size: 'small',
|
|
166
|
+
icon: 'Clockwork'
|
|
167
|
+
}, {
|
|
168
|
+
variant: 'primary',
|
|
169
|
+
size: 'medium',
|
|
170
|
+
icon: 'Clockwork'
|
|
171
|
+
}, {
|
|
172
|
+
variant: 'primary',
|
|
173
|
+
size: 'large',
|
|
174
|
+
icon: 'Clockwork'
|
|
175
|
+
}, {
|
|
176
|
+
variant: 'primary',
|
|
177
|
+
size: 'xlarge',
|
|
178
|
+
icon: 'Clockwork'
|
|
179
|
+
}, {
|
|
180
|
+
variant: 'secondary',
|
|
181
|
+
size: 'tiny',
|
|
182
|
+
icon: 'Clockwork'
|
|
183
|
+
}, {
|
|
184
|
+
variant: 'secondary',
|
|
185
|
+
size: 'small',
|
|
186
|
+
icon: 'Clockwork'
|
|
187
|
+
}, {
|
|
188
|
+
variant: 'secondary',
|
|
189
|
+
size: 'medium',
|
|
190
|
+
icon: 'Clockwork'
|
|
191
|
+
}, {
|
|
192
|
+
variant: 'secondary',
|
|
193
|
+
size: 'large',
|
|
194
|
+
icon: 'Clockwork'
|
|
195
|
+
}, {
|
|
196
|
+
variant: 'secondary',
|
|
197
|
+
size: 'xlarge',
|
|
198
|
+
icon: 'Clockwork'
|
|
199
|
+
}, {
|
|
200
|
+
variant: 'warning',
|
|
201
|
+
size: 'tiny',
|
|
202
|
+
icon: 'Clockwork'
|
|
203
|
+
}, {
|
|
204
|
+
variant: 'warning',
|
|
205
|
+
size: 'small',
|
|
206
|
+
icon: 'Clockwork'
|
|
207
|
+
}, {
|
|
208
|
+
variant: 'warning',
|
|
209
|
+
size: 'medium',
|
|
210
|
+
icon: 'Clockwork'
|
|
211
|
+
}, {
|
|
212
|
+
variant: 'warning',
|
|
213
|
+
size: 'large',
|
|
214
|
+
icon: 'Clockwork'
|
|
215
|
+
}, {
|
|
216
|
+
variant: 'warning',
|
|
217
|
+
size: 'xlarge',
|
|
218
|
+
icon: 'Clockwork'
|
|
219
|
+
}, {
|
|
220
|
+
variant: 'positive',
|
|
221
|
+
size: 'tiny',
|
|
222
|
+
icon: 'Clockwork'
|
|
223
|
+
}, {
|
|
224
|
+
variant: 'positive',
|
|
225
|
+
size: 'small',
|
|
226
|
+
icon: 'Clockwork'
|
|
227
|
+
}, {
|
|
228
|
+
variant: 'positive',
|
|
229
|
+
size: 'medium',
|
|
230
|
+
icon: 'Clockwork'
|
|
231
|
+
}, {
|
|
232
|
+
variant: 'positive',
|
|
233
|
+
size: 'large',
|
|
234
|
+
icon: 'Clockwork'
|
|
235
|
+
}, {
|
|
236
|
+
variant: 'positive',
|
|
237
|
+
size: 'xlarge',
|
|
238
|
+
icon: 'Clockwork'
|
|
239
|
+
}, {
|
|
240
|
+
variant: 'basic',
|
|
241
|
+
size: 'tiny',
|
|
242
|
+
icon: 'Clockwork'
|
|
243
|
+
}, {
|
|
244
|
+
variant: 'basic',
|
|
245
|
+
size: 'small',
|
|
246
|
+
icon: 'Clockwork'
|
|
247
|
+
}, {
|
|
248
|
+
variant: 'basic',
|
|
249
|
+
size: 'medium',
|
|
250
|
+
icon: 'Clockwork'
|
|
251
|
+
}, {
|
|
252
|
+
variant: 'basic',
|
|
253
|
+
size: 'large',
|
|
254
|
+
icon: 'Clockwork'
|
|
255
|
+
}, {
|
|
256
|
+
variant: 'basic',
|
|
257
|
+
size: 'xlarge',
|
|
258
|
+
icon: 'Clockwork'
|
|
259
|
+
}, {
|
|
260
|
+
variant: 'outline',
|
|
261
|
+
size: 'tiny',
|
|
262
|
+
icon: 'Clockwork'
|
|
263
|
+
}, {
|
|
264
|
+
variant: 'outline',
|
|
265
|
+
size: 'small',
|
|
266
|
+
icon: 'Clockwork'
|
|
267
|
+
}, {
|
|
268
|
+
variant: 'outline',
|
|
269
|
+
size: 'medium',
|
|
270
|
+
icon: 'Clockwork'
|
|
271
|
+
}, {
|
|
272
|
+
variant: 'outline',
|
|
273
|
+
size: 'large',
|
|
274
|
+
icon: 'Clockwork'
|
|
275
|
+
}, {
|
|
276
|
+
variant: 'outline',
|
|
277
|
+
size: 'xlarge',
|
|
278
|
+
icon: 'Clockwork'
|
|
279
|
+
}, {
|
|
280
|
+
variant: 'dropdown',
|
|
281
|
+
size: 'tiny',
|
|
282
|
+
icon: 'Clockwork'
|
|
283
|
+
}, {
|
|
284
|
+
variant: 'dropdown',
|
|
285
|
+
size: 'small',
|
|
286
|
+
icon: 'Clockwork'
|
|
287
|
+
}, {
|
|
288
|
+
variant: 'dropdown',
|
|
289
|
+
size: 'medium',
|
|
290
|
+
icon: 'Clockwork'
|
|
291
|
+
}, {
|
|
292
|
+
variant: 'dropdown',
|
|
293
|
+
size: 'large',
|
|
294
|
+
icon: 'Clockwork'
|
|
295
|
+
}, {
|
|
296
|
+
variant: 'dropdown',
|
|
297
|
+
size: 'xlarge',
|
|
298
|
+
icon: 'Clockwork'
|
|
299
|
+
}];
|
|
300
|
+
var iconButtonCollection = [{
|
|
301
|
+
variant: 'primary',
|
|
302
|
+
size: 'tiny',
|
|
303
|
+
icon: 'Clockwork'
|
|
304
|
+
}, {
|
|
305
|
+
variant: 'primary',
|
|
306
|
+
size: 'small',
|
|
307
|
+
icon: 'Clockwork'
|
|
308
|
+
}, {
|
|
309
|
+
variant: 'primary',
|
|
310
|
+
size: 'medium',
|
|
311
|
+
icon: 'Clockwork'
|
|
312
|
+
}, {
|
|
313
|
+
variant: 'primary',
|
|
314
|
+
size: 'large',
|
|
315
|
+
icon: 'Clockwork'
|
|
316
|
+
}, {
|
|
317
|
+
variant: 'primary',
|
|
318
|
+
size: 'xlarge',
|
|
319
|
+
icon: 'Clockwork'
|
|
320
|
+
}, {
|
|
321
|
+
variant: 'secondary',
|
|
322
|
+
size: 'tiny',
|
|
323
|
+
icon: 'Clockwork'
|
|
324
|
+
}, {
|
|
325
|
+
variant: 'secondary',
|
|
326
|
+
size: 'small',
|
|
327
|
+
icon: 'Clockwork'
|
|
328
|
+
}, {
|
|
329
|
+
variant: 'secondary',
|
|
330
|
+
size: 'medium',
|
|
331
|
+
icon: 'Clockwork'
|
|
332
|
+
}, {
|
|
333
|
+
variant: 'secondary',
|
|
334
|
+
size: 'large',
|
|
335
|
+
icon: 'Clockwork'
|
|
336
|
+
}, {
|
|
337
|
+
variant: 'secondary',
|
|
338
|
+
size: 'xlarge',
|
|
339
|
+
icon: 'Clockwork'
|
|
340
|
+
}, {
|
|
341
|
+
variant: 'warning',
|
|
342
|
+
size: 'tiny',
|
|
343
|
+
icon: 'Clockwork'
|
|
344
|
+
}, {
|
|
345
|
+
variant: 'warning',
|
|
346
|
+
size: 'small',
|
|
347
|
+
icon: 'Clockwork'
|
|
348
|
+
}, {
|
|
349
|
+
variant: 'warning',
|
|
350
|
+
size: 'medium',
|
|
351
|
+
icon: 'Clockwork'
|
|
352
|
+
}, {
|
|
353
|
+
variant: 'warning',
|
|
354
|
+
size: 'large',
|
|
355
|
+
icon: 'Clockwork'
|
|
356
|
+
}, {
|
|
357
|
+
variant: 'warning',
|
|
358
|
+
size: 'xlarge',
|
|
359
|
+
icon: 'Clockwork'
|
|
360
|
+
}, {
|
|
361
|
+
variant: 'positive',
|
|
362
|
+
size: 'tiny',
|
|
363
|
+
icon: 'Clockwork'
|
|
364
|
+
}, {
|
|
365
|
+
variant: 'positive',
|
|
366
|
+
size: 'small',
|
|
367
|
+
icon: 'Clockwork'
|
|
368
|
+
}, {
|
|
369
|
+
variant: 'positive',
|
|
370
|
+
size: 'medium',
|
|
371
|
+
icon: 'Clockwork'
|
|
372
|
+
}, {
|
|
373
|
+
variant: 'positive',
|
|
374
|
+
size: 'large',
|
|
375
|
+
icon: 'Clockwork'
|
|
376
|
+
}, {
|
|
377
|
+
variant: 'positive',
|
|
378
|
+
size: 'xlarge',
|
|
379
|
+
icon: 'Clockwork'
|
|
380
|
+
}, {
|
|
381
|
+
variant: 'basic',
|
|
382
|
+
size: 'tiny',
|
|
383
|
+
icon: 'Clockwork'
|
|
384
|
+
}, {
|
|
385
|
+
variant: 'basic',
|
|
386
|
+
size: 'small',
|
|
387
|
+
icon: 'Clockwork'
|
|
388
|
+
}, {
|
|
389
|
+
variant: 'basic',
|
|
390
|
+
size: 'medium',
|
|
391
|
+
icon: 'Clockwork'
|
|
392
|
+
}, {
|
|
393
|
+
variant: 'basic',
|
|
394
|
+
size: 'large',
|
|
395
|
+
icon: 'Clockwork'
|
|
396
|
+
}, {
|
|
397
|
+
variant: 'basic',
|
|
398
|
+
size: 'xlarge',
|
|
399
|
+
icon: 'Clockwork'
|
|
400
|
+
}, {
|
|
401
|
+
variant: 'outline',
|
|
402
|
+
size: 'tiny',
|
|
403
|
+
icon: 'Clockwork'
|
|
404
|
+
}, {
|
|
405
|
+
variant: 'outline',
|
|
406
|
+
size: 'small',
|
|
407
|
+
icon: 'Clockwork'
|
|
408
|
+
}, {
|
|
409
|
+
variant: 'outline',
|
|
410
|
+
size: 'medium',
|
|
411
|
+
icon: 'Clockwork'
|
|
412
|
+
}, {
|
|
413
|
+
variant: 'outline',
|
|
414
|
+
size: 'large',
|
|
415
|
+
icon: 'Clockwork'
|
|
416
|
+
}, {
|
|
417
|
+
variant: 'outline',
|
|
418
|
+
size: 'xlarge',
|
|
419
|
+
icon: 'Clockwork'
|
|
420
|
+
}, {
|
|
421
|
+
variant: 'dropdown',
|
|
422
|
+
size: 'tiny',
|
|
423
|
+
icon: 'Clockwork'
|
|
424
|
+
}, {
|
|
425
|
+
variant: 'dropdown',
|
|
426
|
+
size: 'small',
|
|
427
|
+
icon: 'Clockwork'
|
|
428
|
+
}, {
|
|
429
|
+
variant: 'dropdown',
|
|
430
|
+
size: 'medium',
|
|
431
|
+
icon: 'Clockwork'
|
|
432
|
+
}, {
|
|
433
|
+
variant: 'dropdown',
|
|
434
|
+
size: 'large',
|
|
435
|
+
icon: 'Clockwork'
|
|
436
|
+
}, {
|
|
437
|
+
variant: 'dropdown',
|
|
438
|
+
size: 'xlarge',
|
|
439
|
+
icon: 'Clockwork'
|
|
440
|
+
}];
|
|
441
|
+
export var Collection = function Collection(args) {
|
|
442
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
443
|
+
className: "light"
|
|
444
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
445
|
+
className: "text-neutral-800 text-h2-bold"
|
|
446
|
+
}, "Buttons"), /*#__PURE__*/React.createElement("div", {
|
|
447
|
+
className: "flex flex-col space-y-[20px]"
|
|
448
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
449
|
+
className: "text-neutral-800 text-h3-bold"
|
|
450
|
+
}, "Action"), /*#__PURE__*/React.createElement("div", {
|
|
451
|
+
className: "grid grid-cols-5 grid-flow-row gap-[20px]"
|
|
452
|
+
}, buttonCollection.map(function (_ref) {
|
|
453
|
+
var variant = _ref.variant,
|
|
454
|
+
size = _ref.size;
|
|
455
|
+
var type = 'button';
|
|
456
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Button, {
|
|
457
|
+
variant: variant,
|
|
458
|
+
size: size,
|
|
459
|
+
type: type,
|
|
460
|
+
text: variant !== 'icon' && variant
|
|
461
|
+
}));
|
|
462
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
463
|
+
className: "grid grid-cols-5 grid-flow-row gap-[20px]"
|
|
464
|
+
}, buttonCollection.map(function (_ref2) {
|
|
465
|
+
var variant = _ref2.variant,
|
|
466
|
+
size = _ref2.size;
|
|
467
|
+
var type = 'button';
|
|
468
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Button, {
|
|
469
|
+
variant: variant,
|
|
470
|
+
size: size,
|
|
471
|
+
type: type,
|
|
472
|
+
loading: true,
|
|
473
|
+
text: variant !== 'icon' && variant
|
|
474
|
+
}));
|
|
475
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
476
|
+
className: "grid grid-cols-5 grid-flow-row gap-[20px]"
|
|
477
|
+
}, iconCollection.map(function (_ref3) {
|
|
478
|
+
var variant = _ref3.variant,
|
|
479
|
+
size = _ref3.size,
|
|
480
|
+
icon = _ref3.icon;
|
|
481
|
+
var type = 'button';
|
|
482
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Button, {
|
|
483
|
+
variant: variant,
|
|
484
|
+
size: size,
|
|
485
|
+
type: type,
|
|
486
|
+
icon: icon
|
|
487
|
+
}));
|
|
488
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
489
|
+
className: "grid grid-cols-5 grid-flow-row gap-[20px]"
|
|
490
|
+
}, iconButtonCollection.map(function (_ref4) {
|
|
491
|
+
var variant = _ref4.variant,
|
|
492
|
+
size = _ref4.size,
|
|
493
|
+
icon = _ref4.icon;
|
|
494
|
+
var type = 'button';
|
|
495
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Button, {
|
|
496
|
+
variant: variant,
|
|
497
|
+
size: size,
|
|
498
|
+
type: type,
|
|
499
|
+
icon: icon,
|
|
500
|
+
text: variant
|
|
501
|
+
}));
|
|
502
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
503
|
+
className: "text-neutral-800 text-h3-bold"
|
|
504
|
+
}, "Links"), /*#__PURE__*/React.createElement("div", {
|
|
505
|
+
className: "grid grid-cols-5 grid-flow-row gap-[20px]"
|
|
506
|
+
}, buttonCollection.map(function (_ref5) {
|
|
507
|
+
var variant = _ref5.variant,
|
|
508
|
+
size = _ref5.size;
|
|
509
|
+
var type = 'link';
|
|
510
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Button, {
|
|
511
|
+
variant: variant,
|
|
512
|
+
size: size,
|
|
513
|
+
type: type,
|
|
514
|
+
text: variant !== 'icon' && variant,
|
|
515
|
+
component: FakeLink
|
|
516
|
+
}));
|
|
517
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
518
|
+
className: "grid grid-cols-5 grid-flow-row gap-[20px]"
|
|
519
|
+
}, iconCollection.map(function (_ref6) {
|
|
520
|
+
var variant = _ref6.variant,
|
|
521
|
+
size = _ref6.size,
|
|
522
|
+
icon = _ref6.icon;
|
|
523
|
+
var type = 'link';
|
|
524
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Button, {
|
|
525
|
+
variant: variant,
|
|
526
|
+
size: size,
|
|
527
|
+
type: type,
|
|
528
|
+
icon: icon,
|
|
529
|
+
component: FakeLink
|
|
530
|
+
}));
|
|
531
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
532
|
+
className: "grid grid-cols-5 grid-flow-row gap-[20px]"
|
|
533
|
+
}, iconButtonCollection.map(function (_ref7) {
|
|
534
|
+
var variant = _ref7.variant,
|
|
535
|
+
size = _ref7.size,
|
|
536
|
+
icon = _ref7.icon;
|
|
537
|
+
var type = 'link';
|
|
538
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Button, {
|
|
539
|
+
variant: variant,
|
|
540
|
+
size: size,
|
|
541
|
+
type: type,
|
|
542
|
+
icon: icon,
|
|
543
|
+
text: variant,
|
|
544
|
+
component: FakeLink
|
|
545
|
+
}));
|
|
546
|
+
}))));
|
|
547
|
+
};
|
|
548
|
+
Collection.parameters = {
|
|
549
|
+
design: {
|
|
550
|
+
type: 'figma',
|
|
551
|
+
url: 'https://www.figma.com/file/OG2qkuEFEhNmf2wTA0wAGq/Design-System?node-id=462%3A3547'
|
|
552
|
+
}
|
|
553
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { Calendar, Layout } from "../../components";
|
|
2
|
+
import "../../../../styles/index.css";
|
|
3
|
+
export default {
|
|
4
|
+
component: Calendar,
|
|
5
|
+
title: 'Date Time / Calendar',
|
|
6
|
+
args: {
|
|
7
|
+
events: [{
|
|
8
|
+
id: 1,
|
|
9
|
+
name: 'Dive into Meditation',
|
|
10
|
+
timestamp: 1645102800,
|
|
11
|
+
duration: 60,
|
|
12
|
+
href: '#'
|
|
13
|
+
}, {
|
|
14
|
+
id: 2,
|
|
15
|
+
name: 'Yoga Class',
|
|
16
|
+
timestamp: 1645444800,
|
|
17
|
+
duration: 60,
|
|
18
|
+
href: '#'
|
|
19
|
+
}, {
|
|
20
|
+
id: 3,
|
|
21
|
+
name: 'Yoga Class #2',
|
|
22
|
+
timestamp: 1645617600,
|
|
23
|
+
duration: 60,
|
|
24
|
+
href: '#'
|
|
25
|
+
}, {
|
|
26
|
+
id: 4,
|
|
27
|
+
name: 'Yoga Class #3',
|
|
28
|
+
timestamp: 1645696800,
|
|
29
|
+
duration: 60,
|
|
30
|
+
href: '#'
|
|
31
|
+
}, {
|
|
32
|
+
id: 5,
|
|
33
|
+
name: 'Yoga Class #5',
|
|
34
|
+
timestamp: 1645628400,
|
|
35
|
+
duration: 60,
|
|
36
|
+
href: '#'
|
|
37
|
+
}, {
|
|
38
|
+
id: 7,
|
|
39
|
+
name: 'Yoga Class #7',
|
|
40
|
+
timestamp: 1645704000,
|
|
41
|
+
duration: 60,
|
|
42
|
+
href: '#'
|
|
43
|
+
}, {
|
|
44
|
+
id: 8,
|
|
45
|
+
name: 'Yoga Class #8',
|
|
46
|
+
timestamp: 1645714800,
|
|
47
|
+
duration: 60,
|
|
48
|
+
href: '#'
|
|
49
|
+
}]
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
export var Default = function Default(args) {
|
|
53
|
+
return /*#__PURE__*/React.createElement(Layout, {
|
|
54
|
+
variant: "large"
|
|
55
|
+
}, /*#__PURE__*/React.createElement(Calendar, args));
|
|
56
|
+
};
|
|
57
|
+
Default.parameters = {
|
|
58
|
+
design: {
|
|
59
|
+
type: 'figma',
|
|
60
|
+
url: 'https://www.figma.com/file/vkIFRuwbONhF3qrGI7bHvL/App?node-id=2%3A129'
|
|
61
|
+
}
|
|
62
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Cartel } from "../../components/Cartel";
|
|
2
|
+
import { Button } from "../../components/Button";
|
|
3
|
+
import "../../../../styles/index.css";
|
|
4
|
+
export default {
|
|
5
|
+
component: Cartel,
|
|
6
|
+
title: 'Components / Cartel',
|
|
7
|
+
argTypes: {
|
|
8
|
+
message: {
|
|
9
|
+
type: {
|
|
10
|
+
summary: 'object'
|
|
11
|
+
},
|
|
12
|
+
defaultValue: {
|
|
13
|
+
title: 'Profile',
|
|
14
|
+
description: 'Start your crypto career faster than you can imagine, with this incredible tools'
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
CTA: {
|
|
18
|
+
defaultValue: /*#__PURE__*/React.createElement(Button, {
|
|
19
|
+
text: "Continue"
|
|
20
|
+
})
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
export var Default = function Default(args) {
|
|
25
|
+
return /*#__PURE__*/React.createElement(Cartel, args);
|
|
26
|
+
};
|
|
27
|
+
Default.parameters = {
|
|
28
|
+
design: {
|
|
29
|
+
type: 'figma',
|
|
30
|
+
url: 'https://www.figma.com/file/OG2qkuEFEhNmf2wTA0wAGq/Design-System?node-id=612%3A4832'
|
|
31
|
+
}
|
|
32
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Checkbox } from "../../components";
|
|
2
|
+
import "../../../../styles/index.css";
|
|
3
|
+
export default {
|
|
4
|
+
component: Checkbox,
|
|
5
|
+
title: 'Components / Checkbox'
|
|
6
|
+
};
|
|
7
|
+
export var Default = function Default(args) {
|
|
8
|
+
return /*#__PURE__*/React.createElement(Checkbox, args);
|
|
9
|
+
};
|
|
10
|
+
Default.parameters = {
|
|
11
|
+
design: {
|
|
12
|
+
type: 'figma',
|
|
13
|
+
url: 'https://www.figma.com/file/vkIFRuwbONhF3qrGI7bHvL/App?node-id=971%3A68'
|
|
14
|
+
}
|
|
15
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ColorChecker } from "../../components/ColorChecker";
|
|
2
|
+
import "../../../../styles/index.css";
|
|
3
|
+
export default {
|
|
4
|
+
component: ColorChecker,
|
|
5
|
+
title: 'Lab / ColorChecker',
|
|
6
|
+
args: {}
|
|
7
|
+
};
|
|
8
|
+
export var Default = function Default(args) {
|
|
9
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
10
|
+
};
|
|
11
|
+
Default.parameters = {
|
|
12
|
+
design: {
|
|
13
|
+
type: 'figma',
|
|
14
|
+
url: 'https://www.figma.com/file/vkIFRuwbONhF3qrGI7bHvL/App?node-id=971%3A68'
|
|
15
|
+
}
|
|
16
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
|
+
import { DateTime } from "../../components/DateTime";
|
|
3
|
+
import "../../../../styles/index.css";
|
|
4
|
+
import { FakeLink } from "../../helpers";
|
|
5
|
+
export default {
|
|
6
|
+
component: DateTime,
|
|
7
|
+
title: 'Components / DateTime'
|
|
8
|
+
};
|
|
9
|
+
export var Default = function Default(args) {
|
|
10
|
+
return /*#__PURE__*/React.createElement(DateTime, _extends({}, args, {
|
|
11
|
+
component: FakeLink,
|
|
12
|
+
to: "/"
|
|
13
|
+
}));
|
|
14
|
+
};
|
|
15
|
+
export var Medium = function Medium(args) {
|
|
16
|
+
return /*#__PURE__*/React.createElement(DateTime, _extends({}, args, {
|
|
17
|
+
variant: "medium",
|
|
18
|
+
component: FakeLink,
|
|
19
|
+
to: "/"
|
|
20
|
+
}));
|
|
21
|
+
};
|
|
22
|
+
Default.parameters = {
|
|
23
|
+
design: {
|
|
24
|
+
type: 'figma',
|
|
25
|
+
url: 'https://www.figma.com/file/OG2qkuEFEhNmf2wTA0wAGq/Design-System?node-id=346%3A2961'
|
|
26
|
+
}
|
|
27
|
+
};
|