odaptos_design_system 1.0.0 → 1.2.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/README.md +8 -74
- package/package.json +24 -15
- package/src/Accordion/Accordion.modules.scss +41 -0
- package/src/Accordion/Accordion.tsx +55 -0
- package/src/Badge/Badge.modules.scss +83 -0
- package/src/Badge/Badge.tsx +69 -0
- package/src/Buttons/Button.modules.scss +235 -0
- package/src/Buttons/Button.tsx +55 -7
- package/src/Buttons/IconButton.modules.scss +185 -0
- package/src/Buttons/IconButton.tsx +53 -0
- package/src/Cards/Card.modules.scss +12 -0
- package/src/Cards/Card.tsx +14 -0
- package/src/Cards/CardButton.modules.scss +23 -0
- package/src/Cards/CardButton.tsx +14 -0
- package/src/Checkbox/Checkbox.module.scss +4 -0
- package/src/Checkbox/Checkbox.tsx +120 -0
- package/src/ColorGuide/colors.ts +99 -0
- package/src/Icons/Arrows/ArrowDoubleLineDownIcon.tsx +44 -0
- package/src/Icons/Arrows/ArrowDoubleLineLeftIcon.tsx +44 -0
- package/src/Icons/Arrows/ArrowDoubleLineRightIcon.tsx +44 -0
- package/src/Icons/Arrows/ArrowDoubleLineUpIcon.tsx +44 -0
- package/src/Icons/Arrows/ArrowFilledDownIcon.tsx +29 -0
- package/src/Icons/Arrows/ArrowFilledLeftIcon.tsx +29 -0
- package/src/Icons/Arrows/ArrowFilledRightIcon.tsx +29 -0
- package/src/Icons/Arrows/ArrowFilledUpIcon.tsx +29 -0
- package/src/Icons/Arrows/ArrowLineDownIcon.tsx +38 -0
- package/src/Icons/Arrows/ArrowLineLeftIcon.tsx +38 -0
- package/src/Icons/Arrows/ArrowLineRightIcon.tsx +38 -0
- package/src/Icons/Arrows/ArrowLineUpIcon.tsx +38 -0
- package/src/Icons/Arrows/ArrowPointerDown.tsx +44 -0
- package/src/Icons/Arrows/ArrowPointerDownLeft.tsx +37 -0
- package/src/Icons/Arrows/ArrowPointerDownRight.tsx +37 -0
- package/src/Icons/Arrows/ArrowPointerLeft.tsx +44 -0
- package/src/Icons/Arrows/ArrowPointerRight.tsx +44 -0
- package/src/Icons/Arrows/ArrowPointerUp.tsx +44 -0
- package/src/Icons/Arrows/ArrowPointerUpLeft.tsx +37 -0
- package/src/Icons/Arrows/ArrowPointerUpRight.tsx +37 -0
- package/src/Icons/Circled/AddCircledIcon.tsx +43 -0
- package/src/Icons/Circled/AlertCircledIcon.tsx +56 -0
- package/src/Icons/Circled/CheckedCircled.tsx +44 -0
- package/src/Icons/Circled/InfoCircledIcon.tsx +56 -0
- package/src/Icons/Circled/MinusCircledIcon.tsx +44 -0
- package/src/Icons/Circled/NavigationCircledIcon.tsx +50 -0
- package/src/Icons/Circled/QuestionCircledIcon.tsx +49 -0
- package/src/Icons/Circled/RemoveCircledIcon.tsx +43 -0
- package/src/Icons/Circled/SearchCircledIcon.tsx +50 -0
- package/src/Icons/Circled/SettingsCircledIcon.tsx +43 -0
- package/src/Icons/Equipment/CameraIcon.tsx +37 -0
- package/src/Icons/Equipment/LaptopIcon.tsx +66 -0
- package/src/Icons/Equipment/MicrophonePodcastIcon.tsx +31 -0
- package/src/Icons/Equipment/MobileIcon.tsx +73 -0
- package/src/Icons/Equipment/TvFlatScreenIcon.tsx +67 -0
- package/src/Icons/Equipment/TvIcon.tsx +43 -0
- package/src/Icons/Interaction/AccountIcon.tsx +31 -0
- package/src/Icons/Interaction/AddIcon.tsx +44 -0
- package/src/Icons/Interaction/AgendaIcon.tsx +68 -0
- package/src/Icons/Interaction/BillingIcon.tsx +67 -0
- package/src/Icons/Interaction/BinIcon.tsx +50 -0
- package/src/Icons/Interaction/CheckedIcon.tsx +31 -0
- package/src/Icons/Interaction/ClockIcon.tsx +50 -0
- package/src/Icons/Interaction/CopyPasteIcon.tsx +75 -0
- package/src/Icons/Interaction/DragDropIcon.tsx +34 -0
- package/src/Icons/Interaction/EditIcon.tsx +44 -0
- package/src/Icons/Interaction/EditTextIcon.tsx +56 -0
- package/src/Icons/Interaction/LogoutIcon.tsx +50 -0
- package/src/Icons/Interaction/MenuHorizontalIcon.tsx +28 -0
- package/src/Icons/Interaction/MenuVerticalIcon.tsx +40 -0
- package/src/Icons/Interaction/MinusIcon.tsx +26 -0
- package/src/Icons/Interaction/SearchIcon.tsx +44 -0
- package/src/Icons/Interaction/SearchRemoveIcon.tsx +56 -0
- package/src/Icons/Interaction/ShareIcon.tsx +55 -0
- package/src/Icons/Interaction/TeamIcon.tsx +68 -0
- package/src/Icons/Logos/LogoBeta.tsx +51 -0
- package/src/Icons/Logos/LogoNormal.tsx +37 -0
- package/src/Icons/Logos/LogoSmall.tsx +31 -0
- package/src/Icons/Logos/LogoSquare.tsx +71 -0
- package/src/Icons/Logos/LogoText.tsx +31 -0
- package/src/Icons/MediaControl/HangUpIcon.tsx +50 -0
- package/src/Icons/MediaControl/MeetingIcon.tsx +37 -0
- package/src/Icons/MediaControl/MicrophoneIcon.tsx +43 -0
- package/src/Icons/MediaControl/MoveInIcon.tsx +51 -0
- package/src/Icons/MediaControl/MuteIcon.tsx +43 -0
- package/src/Icons/MediaControl/PauseIcon.tsx +37 -0
- package/src/Icons/MediaControl/PlayIcon.tsx +30 -0
- package/src/Icons/MediaControl/PreviousIcon.tsx +39 -0
- package/src/Icons/MediaControl/RecordingIcon.tsx +74 -0
- package/src/Icons/MediaControl/VolumeIcon.tsx +49 -0
- package/src/Icons/Miscellaneous/AddSeatIcon.tsx +29 -0
- package/src/Icons/Miscellaneous/AddUsersIcon.tsx +62 -0
- package/src/Icons/Miscellaneous/BillPdfIcon.tsx +29 -0
- package/src/Icons/Miscellaneous/BinocularIcon.tsx +31 -0
- package/src/Icons/Miscellaneous/BrainIcon.tsx +98 -0
- package/src/Icons/Miscellaneous/ChatBubbleIcon.tsx +60 -0
- package/src/Icons/Miscellaneous/ChatIcon.tsx +29 -0
- package/src/Icons/Miscellaneous/CheckoutIcon.tsx +29 -0
- package/src/Icons/Miscellaneous/ClipIcon.tsx +49 -0
- package/src/Icons/Miscellaneous/CreditCardIcon.tsx +29 -0
- package/src/Icons/Miscellaneous/DownloadIcon.tsx +29 -0
- package/src/Icons/Miscellaneous/EarthIcon.tsx +50 -0
- package/src/Icons/Miscellaneous/FaceCenterIcon.tsx +34 -0
- package/src/Icons/Miscellaneous/FaceRecognitionIcon.tsx +80 -0
- package/src/Icons/Miscellaneous/FilesIcon.tsx +43 -0
- package/src/Icons/Miscellaneous/FillRecordIcon.tsx +29 -0
- package/src/Icons/Miscellaneous/FolderIcon.tsx +31 -0
- package/src/Icons/Miscellaneous/GoogleIcon.tsx +59 -0
- package/src/Icons/Miscellaneous/HardDriveIcon.tsx +50 -0
- package/src/Icons/Miscellaneous/HelpIcon.tsx +29 -0
- package/src/Icons/Miscellaneous/LanguageIcon.tsx +27 -0
- package/src/Icons/Miscellaneous/LinkIcon.tsx +34 -0
- package/src/Icons/Miscellaneous/MetaAnalyseIcon.tsx +67 -0
- package/src/Icons/Miscellaneous/ModeratedIcon.tsx +80 -0
- package/src/Icons/Miscellaneous/NbOfUsersIcon.tsx +56 -0
- package/src/Icons/Miscellaneous/NeutralBackgroudIcon.tsx +34 -0
- package/src/Icons/Miscellaneous/ReportIcon.tsx +62 -0
- package/src/Icons/Miscellaneous/SeatIcon.tsx +29 -0
- package/src/Icons/Miscellaneous/SendEmailIcon.tsx +43 -0
- package/src/Icons/Miscellaneous/SendIcon.tsx +38 -0
- package/src/Icons/Miscellaneous/SmartBrainIcon.tsx +44 -0
- package/src/Icons/Miscellaneous/TasksIcon.tsx +48 -0
- package/src/Icons/Miscellaneous/TestDetailsIcon.tsx +29 -0
- package/src/Icons/Miscellaneous/TestIcon.tsx +38 -0
- package/src/Icons/Miscellaneous/UnmoderatedIcon.tsx +55 -0
- package/src/Icons/Notifications/AlamBellIdleIcon.tsx +46 -0
- package/src/Icons/Notifications/AlarmBellStatusIcon.tsx +54 -0
- package/src/Icons/Notifications/NotifAlertIcon.tsx +33 -0
- package/src/Icons/index.ts +108 -0
- package/src/Interviews/Chat.modules.scss +29 -0
- package/src/Interviews/Chat.tsx +123 -0
- package/src/Interviews/ChatInput.modules.scss +29 -0
- package/src/Interviews/ChatInput.tsx +33 -0
- package/src/Interviews/CircleIconButton.modules.scss +44 -0
- package/src/Interviews/CircledIconButton.tsx +31 -0
- package/src/Interviews/ControlsBar.modules.scss +15 -0
- package/src/Interviews/ControlsBar.tsx +101 -0
- package/src/Interviews/GoBack.modules.scss +14 -0
- package/src/Interviews/GoBack.tsx +22 -0
- package/src/Interviews/InterviewButton.modules.scss +107 -0
- package/src/Interviews/InterviewButton.tsx +45 -0
- package/src/Interviews/MarkUpBar.modules.scss +33 -0
- package/src/Interviews/MarkUpBar.tsx +40 -0
- package/src/Interviews/StartInterview.modules.scss +14 -0
- package/src/Interviews/StartInterview.tsx +27 -0
- package/src/Interviews/Task.modules.scss +179 -0
- package/src/Interviews/Task.tsx +176 -0
- package/src/Interviews/WelcomeMessage.modules.scss +29 -0
- package/src/Interviews/WelcomeMessage.tsx +33 -0
- package/src/LateralMenu/LateralMenu.modules.scss +21 -0
- package/src/LateralMenu/LateralMenu.tsx +23 -0
- package/src/Modal/Modal.modules.scss +58 -0
- package/src/Modal/Modal.tsx +135 -0
- package/src/MultiSelect/MultiSelect.scss +66 -0
- package/src/MultiSelect/MultiSelect.tsx +226 -0
- package/src/MultiSelect/utils/textInputStyle.ts +78 -0
- package/src/Notifications/Banner.modules.scss +35 -0
- package/src/Notifications/Banner.tsx +103 -0
- package/src/Notifications/NotificationIcon.scss +0 -0
- package/src/Notifications/NotificationIcon.tsx +26 -0
- package/src/Notifications/Toast.modules.scss +87 -0
- package/src/Notifications/Toast.tsx +92 -0
- package/src/Popover/Popover.modules.scss +47 -0
- package/src/Popover/Popover.tsx +77 -0
- package/src/Radio/Radio.module.scss +9 -0
- package/src/Radio/Radio.tsx +82 -0
- package/src/Search/Search.tsx +25 -0
- package/src/SingleSelect/SingleSelect.scss +62 -0
- package/src/SingleSelect/SingleSelect.tsx +209 -0
- package/src/Step/Step.module.scss +54 -0
- package/src/Step/Step.tsx +88 -0
- package/src/Switch/Switch.module.scss +5 -0
- package/src/Switch/Switch.tsx +51 -0
- package/src/Table/header.modules.scss +20 -0
- package/src/Table/header.tsx +74 -0
- package/src/Table/index.tsx +53 -0
- package/src/Table/rows.modules.scss +16 -0
- package/src/Table/rows.tsx +74 -0
- package/src/Table/table-cell.modules.scss +12 -0
- package/src/Table/table-cell.tsx +40 -0
- package/src/Tabs/Tabs.tsx +83 -0
- package/src/Tabs/TabsUnderLine.tsx +90 -0
- package/src/Tabs/tabs.modules.scss +60 -0
- package/src/Tabs/tabsUnderline.modules.scss +29 -0
- package/src/Tag/Tag.modules.scss +58 -0
- package/src/Tag/Tag.tsx +63 -0
- package/src/TextInput/TextInput.scss +50 -0
- package/src/TextInput/TextInput.tsx +212 -0
- package/src/Textarea/Textarea.module.scss +19 -0
- package/src/Textarea/Textarea.tsx +88 -0
- package/src/Tooltip/Layout/TooltipCustomLayout.module.scss +24 -0
- package/src/Tooltip/Layout/TooltipCustomLayout.tsx +104 -0
- package/src/Tooltip/Tooltip.tsx +139 -0
- package/src/Typography/{Caption.css → Caption.modules.scss} +5 -5
- package/src/Typography/Caption.tsx +8 -4
- package/src/Typography/Link.modules.scss +140 -0
- package/src/Typography/Link.tsx +73 -0
- package/src/Typography/Text.modules.scss +277 -0
- package/src/Typography/Text.tsx +38 -8
- package/src/Typography/{TextForButton.css → TextForButton.modules.scss} +8 -8
- package/src/Typography/TextForButton.tsx +15 -5
- package/src/Typography/{TextForDropDownItem.css → TextForDropDownItem.modules.scss} +11 -14
- package/src/Typography/TextForDropDownItem.tsx +14 -4
- package/src/Typography/TextWithLink.modules.scss +281 -0
- package/src/Typography/TextWithLink.tsx +65 -0
- package/src/Typography/{Title.css → Title.modules.scss} +27 -25
- package/src/Typography/Title.tsx +114 -16
- package/src/hooks/useClickOutside.ts +31 -0
- package/src/index.ts +34 -0
- package/dist/Buttons/Button.d.ts +0 -6
- package/dist/Color Guide/colors.d.ts +0 -6
- package/dist/Typography/Caption.d.ts +0 -12
- package/dist/Typography/Text.d.ts +0 -15
- package/dist/Typography/TextForButton.d.ts +0 -13
- package/dist/Typography/TextForDropDownItem.d.ts +0 -13
- package/dist/Typography/Title.d.ts +0 -14
- package/dist/index.d.ts +0 -6
- package/dist/index.js +0 -8
- package/dist/odaptos_design_system.cjs.development.css +0 -5
- package/dist/odaptos_design_system.cjs.development.js +0 -108
- package/dist/odaptos_design_system.cjs.development.js.map +0 -1
- package/dist/odaptos_design_system.cjs.production.min.js +0 -2
- package/dist/odaptos_design_system.cjs.production.min.js.map +0 -1
- package/dist/odaptos_design_system.esm.js +0 -97
- package/dist/odaptos_design_system.esm.js.map +0 -1
- package/src/Color Guide/colors.ts +0 -89
- package/src/Typography/Text.css +0 -272
package/README.md
CHANGED
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
#
|
|
2
|
-
|
|
3
|
-
Congrats! You just saved yourself hours of work by bootstrapping this project with TSDX. Let’s get you oriented with what’s here and how to use it.
|
|
4
|
-
|
|
5
|
-
> This TSDX setup is meant for developing React component libraries (not apps!) that can be published to NPM. If you’re looking to build a React-based app, you should use `create-react-app`, `razzle`, `nextjs`, `gatsby`, or `react-static`.
|
|
6
|
-
|
|
7
|
-
> If you’re new to TypeScript and React, checkout [this handy cheatsheet](https://github.com/sw-yx/react-typescript-cheatsheet/)
|
|
1
|
+
# Odaptos Design System
|
|
8
2
|
|
|
9
3
|
## Commands
|
|
10
4
|
|
|
@@ -48,10 +42,6 @@ To do a one-off build, use `npm run build` or `yarn build`.
|
|
|
48
42
|
|
|
49
43
|
To run tests, use `npm test` or `yarn test`.
|
|
50
44
|
|
|
51
|
-
## Configuration
|
|
52
|
-
|
|
53
|
-
Code quality is set up for you with `prettier`, `husky`, and `lint-staged`. Adjust the respective fields in `package.json` accordingly.
|
|
54
|
-
|
|
55
45
|
### Jest
|
|
56
46
|
|
|
57
47
|
Jest tests are set up to run with `npm test` or `yarn test`.
|
|
@@ -85,49 +75,10 @@ README.md # EDIT THIS
|
|
|
85
75
|
tsconfig.json
|
|
86
76
|
```
|
|
87
77
|
|
|
88
|
-
#### React Testing Library
|
|
89
|
-
|
|
90
|
-
We do not set up `react-testing-library` for you yet, we welcome contributions and documentation on this.
|
|
91
|
-
|
|
92
|
-
### Rollup
|
|
93
|
-
|
|
94
|
-
TSDX uses [Rollup](https://rollupjs.org) as a bundler and generates multiple rollup configs for various module formats and build settings. See [Optimizations](#optimizations) for details.
|
|
95
|
-
|
|
96
78
|
### TypeScript
|
|
97
79
|
|
|
98
80
|
`tsconfig.json` is set up to interpret `dom` and `esnext` types, as well as `react` for `jsx`. Adjust according to your needs.
|
|
99
81
|
|
|
100
|
-
## Continuous Integration
|
|
101
|
-
|
|
102
|
-
### GitHub Actions
|
|
103
|
-
|
|
104
|
-
Two actions are added by default:
|
|
105
|
-
|
|
106
|
-
- `main` which installs deps w/ cache, lints, tests, and builds on all pushes against a Node and OS matrix
|
|
107
|
-
- `size` which comments cost comparison of your library on every pull request using [size-limit](https://github.com/ai/size-limit)
|
|
108
|
-
|
|
109
|
-
## Optimizations
|
|
110
|
-
|
|
111
|
-
Please see the main `tsdx` [optimizations docs](https://github.com/palmerhq/tsdx#optimizations). In particular, know that you can take advantage of development-only optimizations:
|
|
112
|
-
|
|
113
|
-
```js
|
|
114
|
-
// ./types/index.d.ts
|
|
115
|
-
declare var __DEV__: boolean;
|
|
116
|
-
|
|
117
|
-
// inside your code...
|
|
118
|
-
if (__DEV__) {
|
|
119
|
-
console.log('foo');
|
|
120
|
-
}
|
|
121
|
-
```
|
|
122
|
-
|
|
123
|
-
You can also choose to install and use [invariant](https://github.com/palmerhq/tsdx#invariant) and [warning](https://github.com/palmerhq/tsdx#warning) functions.
|
|
124
|
-
|
|
125
|
-
## Module Formats
|
|
126
|
-
|
|
127
|
-
CJS, ESModules, and UMD module formats are supported.
|
|
128
|
-
|
|
129
|
-
The appropriate paths are configured in `package.json` and `dist/index.js` accordingly. Please report if any issues are found.
|
|
130
|
-
|
|
131
82
|
## Deploying the Example Playground
|
|
132
83
|
|
|
133
84
|
The Playground is just a simple [Parcel](https://parceljs.org) app, you can deploy it anywhere you would normally deploy that. Here are some guidelines for **manually** deploying with the Netlify CLI (`npm i -g netlify-cli`):
|
|
@@ -151,31 +102,14 @@ netlify init
|
|
|
151
102
|
|
|
152
103
|
Per Palmer Group guidelines, [always use named exports.](https://github.com/palmerhq/typescript#exports) Code split inside your React app instead of your React library.
|
|
153
104
|
|
|
154
|
-
## Including Styles
|
|
155
|
-
|
|
156
|
-
There are many ways to ship styles, including with CSS-in-JS. TSDX has no opinion on this, configure how you like.
|
|
157
|
-
|
|
158
|
-
For vanilla CSS, you can include it at the root directory and add it to the `files` section in your `package.json`, so that it can be imported separately by your users and run through their bundler's loader.
|
|
159
|
-
|
|
160
105
|
## Publishing to NPM
|
|
161
106
|
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
## Usage with Lerna
|
|
165
|
-
|
|
166
|
-
When creating a new package with TSDX within a project set up with Lerna, you might encounter a `Cannot resolve dependency` error when trying to run the `example` project. To fix that you will need to make changes to the `package.json` file _inside the `example` directory_.
|
|
107
|
+
`npm version minor / major / patch`
|
|
108
|
+
`npm publish`
|
|
167
109
|
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
Change the `alias` to point to where those packages are actually installed. This depends on the directory structure of your Lerna project, so the actual path might be different from the diff below.
|
|
171
|
-
|
|
172
|
-
```diff
|
|
173
|
-
"alias": {
|
|
174
|
-
- "react": "../node_modules/react",
|
|
175
|
-
- "react-dom": "../node_modules/react-dom"
|
|
176
|
-
+ "react": "../../../node_modules/react",
|
|
177
|
-
+ "react-dom": "../../../node_modules/react-dom"
|
|
178
|
-
},
|
|
179
|
-
```
|
|
110
|
+
## How to use this package ?
|
|
180
111
|
|
|
181
|
-
|
|
112
|
+
`npm install odaptos_design_system`
|
|
113
|
+
And next just import the component like :
|
|
114
|
+
`import { Button } from 'odaptos_design_system';`
|
|
115
|
+
`<Button>Hello</Button>`
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.
|
|
2
|
+
"version": "1.2.0",
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"typings": "dist/index.d.ts",
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
"build": "tsdx build",
|
|
16
16
|
"test": "tsdx test --passWithNoTests",
|
|
17
17
|
"lint": "tsdx lint",
|
|
18
|
-
"prepare": "tsdx build",
|
|
19
18
|
"size": "size-limit",
|
|
20
19
|
"analyze": "size-limit --why",
|
|
21
|
-
"storybook": "storybook dev",
|
|
22
|
-
"build-storybook": "storybook build"
|
|
20
|
+
"storybook": "storybook dev -p 8080",
|
|
21
|
+
"build-storybook": "storybook build",
|
|
22
|
+
"deploy:dev": "sh deploy.sh dev"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"react": ">=16"
|
|
@@ -54,13 +54,15 @@
|
|
|
54
54
|
"@babel/preset-react": "^7.18.6",
|
|
55
55
|
"@babel/preset-typescript": "^7.21.5",
|
|
56
56
|
"@size-limit/preset-small-lib": "^8.2.4",
|
|
57
|
-
"@storybook/addon-essentials": "^7.
|
|
57
|
+
"@storybook/addon-essentials": "^7.5.3",
|
|
58
58
|
"@storybook/addon-info": "^5.3.21",
|
|
59
|
-
"@storybook/addon-links": "^7.
|
|
60
|
-
"@storybook/
|
|
61
|
-
"@storybook/
|
|
62
|
-
"@storybook/
|
|
63
|
-
"@storybook/react
|
|
59
|
+
"@storybook/addon-links": "^7.5.3",
|
|
60
|
+
"@storybook/addon-styling-webpack": "^0.0.5",
|
|
61
|
+
"@storybook/addons": "^7.5.3",
|
|
62
|
+
"@storybook/cli": "^7.5.3",
|
|
63
|
+
"@storybook/react": "^7.5.3",
|
|
64
|
+
"@storybook/react-webpack5": "^7.5.3",
|
|
65
|
+
"@types/css-modules": "^1.0.4",
|
|
64
66
|
"@types/react": "^18.2.6",
|
|
65
67
|
"@types/react-dom": "^18.2.4",
|
|
66
68
|
"babel-loader": "^9.1.2",
|
|
@@ -68,15 +70,21 @@
|
|
|
68
70
|
"react": "^18.2.0",
|
|
69
71
|
"react-dom": "^18.2.0",
|
|
70
72
|
"react-is": "^18.2.0",
|
|
73
|
+
"resolve-url-loader": "^5.0.0",
|
|
71
74
|
"size-limit": "^8.2.4",
|
|
72
|
-
"storybook": "^7.
|
|
75
|
+
"storybook": "^7.5.3",
|
|
76
|
+
"storybook-addon-grid-overlay": "^0.0.7",
|
|
73
77
|
"storybook-design-token": "^3.0.0-beta.3",
|
|
74
|
-
"tsdx": "^0.14.1",
|
|
75
78
|
"tslib": "^2.5.0",
|
|
76
|
-
"typescript": "^
|
|
79
|
+
"typescript": "^5.2.2",
|
|
80
|
+
"typescript-plugin-css-modules": "^5.0.2"
|
|
77
81
|
},
|
|
78
82
|
"dependencies": {
|
|
79
|
-
"@
|
|
83
|
+
"@emotion/react": "^11.11.1",
|
|
84
|
+
"@mui/material": "^5.14.15",
|
|
85
|
+
"@storybook/addon-interactions": "^7.5.3",
|
|
86
|
+
"@storybook/preset-scss": "^1.0.3",
|
|
87
|
+
"@types/typescript": "^2.0.0",
|
|
80
88
|
"autoprefixer": "^10.4.16",
|
|
81
89
|
"css-loader": "^6.7.3",
|
|
82
90
|
"cssnano": "^6.0.1",
|
|
@@ -85,6 +93,7 @@
|
|
|
85
93
|
"sass": "^1.62.1",
|
|
86
94
|
"sass-loader": "^13.2.2",
|
|
87
95
|
"storybook-css-modules-preset": "^1.1.1",
|
|
88
|
-
"style-loader": "^3.3.2"
|
|
96
|
+
"style-loader": "^3.3.2",
|
|
97
|
+
"tsdx": "^0.14.1"
|
|
89
98
|
}
|
|
90
99
|
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
.accordion {
|
|
2
|
+
display: flex;
|
|
3
|
+
max-width: 32rem;
|
|
4
|
+
padding: 0.5rem;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
align-items: flex-start;
|
|
7
|
+
gap: 0.5rem;
|
|
8
|
+
background: var(--color-neutral-basics-white, #fff);
|
|
9
|
+
width: 100%;
|
|
10
|
+
box-shadow: 0px 4px 5px 0px rgba(0, 0, 0, 0.08);
|
|
11
|
+
border-radius: 0.5rem;
|
|
12
|
+
&:hover {
|
|
13
|
+
background: var(--color-neutral-clear-shades-100, #fafafa);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.accordion_header {
|
|
17
|
+
display: flex;
|
|
18
|
+
align-items: center;
|
|
19
|
+
justify-content: space-between;
|
|
20
|
+
gap: 0.5rem;
|
|
21
|
+
width: 100%;
|
|
22
|
+
cursor: pointer;
|
|
23
|
+
|
|
24
|
+
p {
|
|
25
|
+
text-overflow: ellipsis;
|
|
26
|
+
overflow: hidden;
|
|
27
|
+
white-space: nowrap;
|
|
28
|
+
user-select: none;
|
|
29
|
+
-webkit-user-select: none;
|
|
30
|
+
-moz-user-select: none;
|
|
31
|
+
-ms-user-select: none;
|
|
32
|
+
-khtml-user-select: none;
|
|
33
|
+
width: 85%;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
svg {
|
|
37
|
+
width: 1rem;
|
|
38
|
+
height: 1rem;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
2
|
+
import styles from './Accordion.modules.scss';
|
|
3
|
+
import { Text } from '../Typography/Text';
|
|
4
|
+
import { IconButton } from '../Buttons/IconButton';
|
|
5
|
+
import { ArrowLineDownIcon } from '../Icons';
|
|
6
|
+
|
|
7
|
+
interface AccordionProps {
|
|
8
|
+
title: string;
|
|
9
|
+
children: JSX.Element;
|
|
10
|
+
icon?: JSX.Element;
|
|
11
|
+
className?: string;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/** Figma link : https://www.figma.com/file/fjnhhbL12HvKccPmJchVnr/Atomic-Library?type=design&node-id=2760-23794&mode=dev */
|
|
15
|
+
export const Accordion = ({
|
|
16
|
+
title,
|
|
17
|
+
children,
|
|
18
|
+
className,
|
|
19
|
+
icon,
|
|
20
|
+
...props
|
|
21
|
+
}: AccordionProps) => {
|
|
22
|
+
const [isAccordionOpen, setIsAccordionOpen] = useState(false);
|
|
23
|
+
return (
|
|
24
|
+
<div {...props} className={`${styles.accordion} ${className ?? ''}`}>
|
|
25
|
+
<div
|
|
26
|
+
className={styles.accordion_header}
|
|
27
|
+
onClick={() => setIsAccordionOpen((prev) => !prev)}
|
|
28
|
+
>
|
|
29
|
+
<Text size="base" text={title} weight="bold" />
|
|
30
|
+
<IconButton
|
|
31
|
+
variant="tertiary"
|
|
32
|
+
icon={
|
|
33
|
+
icon ? (
|
|
34
|
+
icon
|
|
35
|
+
) : (
|
|
36
|
+
<ArrowLineDownIcon
|
|
37
|
+
style={{
|
|
38
|
+
transform: isAccordionOpen
|
|
39
|
+
? 'rotate(180deg)'
|
|
40
|
+
: 'rotate(0deg)',
|
|
41
|
+
transition: 'all 0.2s linear',
|
|
42
|
+
}}
|
|
43
|
+
/>
|
|
44
|
+
)
|
|
45
|
+
}
|
|
46
|
+
/>
|
|
47
|
+
</div>
|
|
48
|
+
{isAccordionOpen && (
|
|
49
|
+
<div>
|
|
50
|
+
{children}
|
|
51
|
+
</div>
|
|
52
|
+
)}
|
|
53
|
+
</div>
|
|
54
|
+
);
|
|
55
|
+
};
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
.badge {
|
|
2
|
+
display: flex;
|
|
3
|
+
padding: 0rem 0.75rem;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
align-items: center;
|
|
6
|
+
gap: 0.5rem;
|
|
7
|
+
border-radius: 62.4375rem;
|
|
8
|
+
max-width: 10rem;
|
|
9
|
+
width: fit-content;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.badge_idle {
|
|
13
|
+
background: var(--color-neutral-dark-shades-600, #717376);
|
|
14
|
+
svg {
|
|
15
|
+
stroke: #ffffff !important;
|
|
16
|
+
fill: #ffffff !important;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
.badge_info {
|
|
20
|
+
background: var(--color-primary-100, #e5f1ff);
|
|
21
|
+
svg {
|
|
22
|
+
stroke: #004799 !important;
|
|
23
|
+
fill: #004799 !important;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
.badge_success {
|
|
27
|
+
background: var(--color-extended-green-100, #e8f5ea);
|
|
28
|
+
svg {
|
|
29
|
+
stroke: #3c743d !important;
|
|
30
|
+
fill: #3c743d !important;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
.badge_warning {
|
|
34
|
+
background: var(--color-extended-yellow-100, #fff3d6);
|
|
35
|
+
svg {
|
|
36
|
+
stroke: #6e4f00 !important;
|
|
37
|
+
fill: #6e4f00 !important;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
.badge_critical {
|
|
41
|
+
background: var(--color-extended-red-100, #fddbdb);
|
|
42
|
+
svg {
|
|
43
|
+
stroke: #98312e !important;
|
|
44
|
+
fill: #98312e !important;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.badge_sm {
|
|
49
|
+
padding: 0rem 0.75rem;
|
|
50
|
+
justify-content: center;
|
|
51
|
+
height: 1.25rem;
|
|
52
|
+
align-items: center;
|
|
53
|
+
gap: 0.25rem;
|
|
54
|
+
svg {
|
|
55
|
+
height: 0.75rem;
|
|
56
|
+
width: 0.75rem;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.badge_lg {
|
|
61
|
+
height: 2.25rem;
|
|
62
|
+
padding: 0rem 0.75rem;
|
|
63
|
+
justify-content: center;
|
|
64
|
+
align-items: center;
|
|
65
|
+
gap: 0.5rem;
|
|
66
|
+
|
|
67
|
+
svg {
|
|
68
|
+
height: 1rem;
|
|
69
|
+
width: 1rem;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
.badge_base {
|
|
73
|
+
padding: 0rem 0.75rem;
|
|
74
|
+
height: 1.75rem;
|
|
75
|
+
justify-content: center;
|
|
76
|
+
align-items: center;
|
|
77
|
+
gap: 0.5rem;
|
|
78
|
+
|
|
79
|
+
svg {
|
|
80
|
+
height: 1rem;
|
|
81
|
+
width: 1rem;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
import styles from './Badge.modules.scss';
|
|
3
|
+
import { Text } from '../Typography/Text';
|
|
4
|
+
|
|
5
|
+
interface BadgeProps extends HTMLAttributes<HTMLDivElement> {
|
|
6
|
+
text: string;
|
|
7
|
+
status: 'idle' | 'success' | 'info' | 'warning' | 'critical';
|
|
8
|
+
size: 'sm' | 'base' | 'lg';
|
|
9
|
+
iconLeft: JSX.Element;
|
|
10
|
+
iconRight: JSX.Element;
|
|
11
|
+
className?: string;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/** Figma link : https://www.figma.com/file/fjnhhbL12HvKccPmJchVnr/Atomic-Library?type=design&node-id=3073-110563&mode=dev */
|
|
15
|
+
export const Badge = ({
|
|
16
|
+
text,
|
|
17
|
+
status = 'idle',
|
|
18
|
+
size = 'base',
|
|
19
|
+
iconLeft,
|
|
20
|
+
iconRight,
|
|
21
|
+
className,
|
|
22
|
+
...props
|
|
23
|
+
}: BadgeProps) => {
|
|
24
|
+
const getStatusColor = (): string => {
|
|
25
|
+
if (status === 'idle') {
|
|
26
|
+
return '#FFFFFF';
|
|
27
|
+
} else if (status === 'success') return '#3C743D';
|
|
28
|
+
else if (status === 'info') return '#004799';
|
|
29
|
+
else if (status === 'warning') return '#6E4F00';
|
|
30
|
+
else if (status === 'critical') return '#98312E';
|
|
31
|
+
else return '#004799';
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
const getTextSize = () => {
|
|
35
|
+
if (size === 'lg') return 'base';
|
|
36
|
+
else if (size === 'sm') return 'xs';
|
|
37
|
+
else if (size === 'base') return 'sm';
|
|
38
|
+
else return size;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
const getStyleByStatus = (): string => {
|
|
42
|
+
if (status === 'idle') return styles.badge_idle;
|
|
43
|
+
else if (status === 'info') return styles.badge_info;
|
|
44
|
+
else if (status === 'success') return styles.badge_success;
|
|
45
|
+
else if (status === 'warning') return styles.badge_warning;
|
|
46
|
+
else if (status === 'critical') return styles.badge_critical;
|
|
47
|
+
else return styles.badge;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
const getSizeByStatus = (): string => {
|
|
51
|
+
if (size === 'sm') return styles.badge_sm;
|
|
52
|
+
else if (size === 'lg') return styles.badge_lg;
|
|
53
|
+
else if (size === 'base') return styles.badge_base;
|
|
54
|
+
else return styles.badge_base;
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
return (
|
|
58
|
+
<div
|
|
59
|
+
{...props}
|
|
60
|
+
className={`${styles.badge} ${getStyleByStatus()} ${getSizeByStatus()} ${
|
|
61
|
+
className ?? ''
|
|
62
|
+
}`}
|
|
63
|
+
>
|
|
64
|
+
{iconLeft && iconLeft}
|
|
65
|
+
<Text size={getTextSize()} text={text} color={getStatusColor()} />
|
|
66
|
+
{iconRight && iconRight}
|
|
67
|
+
</div>
|
|
68
|
+
);
|
|
69
|
+
};
|
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
.button {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
justify-content: center;
|
|
4
|
+
align-items: center;
|
|
5
|
+
gap: 0.5rem;
|
|
6
|
+
cursor: pointer;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.button_primary {
|
|
10
|
+
background: var(--color-neutral-basics-black, #00040a);
|
|
11
|
+
border: 1px solid var(--color-neutral-basics-black, #00040a);
|
|
12
|
+
|
|
13
|
+
&:hover {
|
|
14
|
+
background: var(--color-neutral-dark-shades-900, #32353a);
|
|
15
|
+
border: 1px solid var(--color-neutral-dark-shades-900, #32353a);
|
|
16
|
+
}
|
|
17
|
+
&:active {
|
|
18
|
+
background: var(--color-neutral-dark-shades-800, #4b4e52);
|
|
19
|
+
border: 1px solid var(--color-neutral-dark-shades-800, #4b4e52);
|
|
20
|
+
}
|
|
21
|
+
&:disabled {
|
|
22
|
+
background: var(--color-neutral-clear-shades-300, #d5d5d6);
|
|
23
|
+
border: 1px solid var(--color-neutral-clear-shades-300, #d5d5d6);
|
|
24
|
+
}
|
|
25
|
+
p {
|
|
26
|
+
color: white !important;
|
|
27
|
+
}
|
|
28
|
+
svg {
|
|
29
|
+
stroke: white !important;
|
|
30
|
+
fill: white !important;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.button_secondary {
|
|
35
|
+
background: transparent;
|
|
36
|
+
border: 1px solid transparent;
|
|
37
|
+
&:hover {
|
|
38
|
+
border: 1px solid var(--color-neutral-basics-black, #00040a);
|
|
39
|
+
background: var(--color-neutral-clear-shades-200, #e1e1e2);
|
|
40
|
+
}
|
|
41
|
+
&:active {
|
|
42
|
+
border: 1px solid var(--color-neutral-basics-black, #00040a);
|
|
43
|
+
background: var(--color-neutral-clear-shades-300, #d5d5d6);
|
|
44
|
+
}
|
|
45
|
+
&:disabled {
|
|
46
|
+
border: 1px solid var(--color-neutral-clear-shades-300, #d5d5d6);
|
|
47
|
+
background: var(--color-neutral-clear-shades-300, #d5d5d6);
|
|
48
|
+
p {
|
|
49
|
+
color: #96989a !important;
|
|
50
|
+
}
|
|
51
|
+
svg {
|
|
52
|
+
stroke: #96989a !important;
|
|
53
|
+
fill: #96989a !important;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
p {
|
|
57
|
+
color: var(--color-neutral-basics-black, #00040a) !important;
|
|
58
|
+
}
|
|
59
|
+
svg {
|
|
60
|
+
stroke: var(--color-neutral-basics-black, #00040a) !important;
|
|
61
|
+
fill: var(--color-neutral-basics-black, #00040a) !important;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
.button_secondary {
|
|
65
|
+
background: transparent;
|
|
66
|
+
border: 1px solid transparent;
|
|
67
|
+
&:hover {
|
|
68
|
+
border: 1px solid var(--color-neutral-basics-black, #00040a);
|
|
69
|
+
background: var(--color-neutral-clear-shades-200, #e1e1e2);
|
|
70
|
+
}
|
|
71
|
+
&:active {
|
|
72
|
+
border: 1px solid var(--color-neutral-clear-shades-300, #d5d5d6);
|
|
73
|
+
background: var(--color-neutral-clear-shades-300, #d5d5d6);
|
|
74
|
+
}
|
|
75
|
+
&:disabled {
|
|
76
|
+
background: transparent;
|
|
77
|
+
border: 1px solid transparent;
|
|
78
|
+
p {
|
|
79
|
+
color: #96989a !important;
|
|
80
|
+
}
|
|
81
|
+
svg {
|
|
82
|
+
stroke: #96989a !important;
|
|
83
|
+
fill: #96989a !important;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
p {
|
|
87
|
+
color: var(--color-neutral-basics-black, #00040a) !important;
|
|
88
|
+
}
|
|
89
|
+
svg {
|
|
90
|
+
stroke: var(--color-neutral-basics-black, #00040a) !important;
|
|
91
|
+
fill: var(--color-neutral-basics-black, #00040a) !important;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.button_tertiary {
|
|
96
|
+
background: transparent;
|
|
97
|
+
border: 1px solid transparent;
|
|
98
|
+
&:hover {
|
|
99
|
+
border: 1px solid var(--color-neutral-clear-shades-200, #e1e1e2);
|
|
100
|
+
background: var(--color-neutral-clear-shades-200, #e1e1e2);
|
|
101
|
+
}
|
|
102
|
+
&:active {
|
|
103
|
+
background: var(--color-neutral-clear-shades-300, #d5d5d6);
|
|
104
|
+
border: 1px solid var(--color-neutral-clear-shades-300, #d5d5d6);
|
|
105
|
+
}
|
|
106
|
+
&:disabled {
|
|
107
|
+
background: transparent;
|
|
108
|
+
border: 1px solid transparent;
|
|
109
|
+
p {
|
|
110
|
+
color: #96989a !important;
|
|
111
|
+
}
|
|
112
|
+
svg {
|
|
113
|
+
stroke: #96989a !important;
|
|
114
|
+
fill: #96989a !important;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
p {
|
|
118
|
+
color: var(--color-neutral-basics-black, #00040a) !important;
|
|
119
|
+
}
|
|
120
|
+
svg {
|
|
121
|
+
stroke: var(--color-neutral-basics-black, #00040a) !important;
|
|
122
|
+
fill: var(--color-neutral-basics-black, #00040a) !important;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.button_tertiary_alt {
|
|
127
|
+
background: transparent;
|
|
128
|
+
border: 1px solid transparent;
|
|
129
|
+
&:hover {
|
|
130
|
+
border: 1px solid var(--color-neutral-clear-shades-150, #eee);
|
|
131
|
+
background: var(--color-neutral-clear-shades-150, #eee);
|
|
132
|
+
}
|
|
133
|
+
&:active {
|
|
134
|
+
background: var(--color-neutral-clear-shades-100, #fafafa);
|
|
135
|
+
border: 1px solid var(--color-neutral-clear-shades-100, #fafafa);
|
|
136
|
+
}
|
|
137
|
+
&:disabled {
|
|
138
|
+
background: transparent;
|
|
139
|
+
border: 1px solid transparent;
|
|
140
|
+
p {
|
|
141
|
+
color: #99c9ff !important;
|
|
142
|
+
}
|
|
143
|
+
svg {
|
|
144
|
+
stroke: #99c9ff !important;
|
|
145
|
+
fill: #99c9ff !important;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
p {
|
|
149
|
+
color: #0077ff !important;
|
|
150
|
+
}
|
|
151
|
+
svg {
|
|
152
|
+
stroke: #0077ff !important;
|
|
153
|
+
fill: #0077ff !important;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.button_alert {
|
|
158
|
+
background: transparent;
|
|
159
|
+
border: 1px solid transparent;
|
|
160
|
+
&:hover {
|
|
161
|
+
border: 1px solid var(--color-extended-red-50, #fff6f6);
|
|
162
|
+
background: var(--color-extended-red-50, #fff6f6);
|
|
163
|
+
}
|
|
164
|
+
&:active {
|
|
165
|
+
background: var(--color-extended-red-100, #fddbdb);
|
|
166
|
+
border: 1px solid var(--color-extended-red-100, #fddbdb);
|
|
167
|
+
}
|
|
168
|
+
&:disabled {
|
|
169
|
+
background: transparent;
|
|
170
|
+
border: 1px solid transparent;
|
|
171
|
+
p {
|
|
172
|
+
color: #fbb7b7 !important;
|
|
173
|
+
}
|
|
174
|
+
svg {
|
|
175
|
+
stroke: #fbb7b7 !important;
|
|
176
|
+
fill: #fbb7b7 !important;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
p {
|
|
180
|
+
color: #f54c4c !important;
|
|
181
|
+
}
|
|
182
|
+
svg {
|
|
183
|
+
stroke: #f54c4c !important;
|
|
184
|
+
fill: #f54c4c !important;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.button_success {
|
|
189
|
+
background: var(--color-extended-green-400, #7dc984);
|
|
190
|
+
border: 1px solid var(--color-extended-green-400, #7dc984);
|
|
191
|
+
&:hover {
|
|
192
|
+
border: 1px solid var(--color-extended-green-300, #9dd6a3);
|
|
193
|
+
background: var(--color-extended-green-300, #9dd6a3);
|
|
194
|
+
}
|
|
195
|
+
&:active {
|
|
196
|
+
background: var(--color-extended-green-500, #5cbb65);
|
|
197
|
+
border: 1px solid var(--color-extended-green-500, #5cbb65);
|
|
198
|
+
}
|
|
199
|
+
&:disabled {
|
|
200
|
+
background: var(--color-extended-green-200, #d5edd8);
|
|
201
|
+
border: 1px solid var(--color-extended-green-200, #d5edd8);
|
|
202
|
+
}
|
|
203
|
+
p {
|
|
204
|
+
color: #ffffff !important;
|
|
205
|
+
}
|
|
206
|
+
svg {
|
|
207
|
+
stroke: #ffffff !important;
|
|
208
|
+
fill: #ffffff !important;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.button_sm {
|
|
213
|
+
padding: 0rem 1rem;
|
|
214
|
+
border-radius: 0.375rem;
|
|
215
|
+
svg {
|
|
216
|
+
height: 0.75rem;
|
|
217
|
+
width: 0.75rem;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
.button_base {
|
|
221
|
+
padding: 0.25rem 1rem;
|
|
222
|
+
border-radius: 0.5rem;
|
|
223
|
+
svg {
|
|
224
|
+
height: 1rem;
|
|
225
|
+
width: 1rem;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
.button_lg {
|
|
229
|
+
padding: 0.25rem 1.25rem 0.375rem 1.25rem;
|
|
230
|
+
border-radius: 0.5rem;
|
|
231
|
+
svg {
|
|
232
|
+
height: 1.25rem;
|
|
233
|
+
width: 1.25rem;
|
|
234
|
+
}
|
|
235
|
+
}
|