@chotot/clad-ui 0.16.1 → 1.2.5
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 +1 -1
- package/README.md +74 -12
- package/brand/ChototLogoText.d.ts +1 -1
- package/brand/CtC2C.d.ts +1 -1
- package/brand/CtProperty.d.ts +1 -1
- package/brand/CtVehicle.d.ts +1 -1
- package/brand/Tot.d.ts +1 -1
- package/components/Announcer/Announcer.d.ts +40 -21
- package/components/Announcer/Announcer.stories.js +338 -293
- package/components/Announcer/Announcer.styles.d.ts +12 -15
- package/components/Announcer/Announcer.styles.js +29 -37
- package/components/Announcer/{Announcer.js → Announcer.tsx} +86 -98
- package/components/Badge/Badge.d.ts +36 -0
- package/components/Badge/Badge.stories.js +251 -0
- package/components/Badge/Badge.styles.d.ts +9 -0
- package/components/Badge/Badge.styles.js +45 -0
- package/components/Badge/Badge.tsx +132 -0
- package/components/Box/Box.d.ts +97 -75
- package/components/Box/Box.spec.js +3 -3
- package/components/Box/Box.stories.js +419 -350
- package/components/Box/Box.styles.js +1 -1
- package/components/Box/Box.tsx +216 -0
- package/components/Breadcrumbs/Breadcrumbs.d.ts +16 -19
- package/components/Breadcrumbs/Breadcrumbs.stories.js +77 -67
- package/components/Breadcrumbs/Breadcrumbs.styles.d.ts +4 -4
- package/components/Breadcrumbs/Breadcrumbs.styles.js +6 -5
- package/components/Breadcrumbs/{Breadcrumbs.js → Breadcrumbs.tsx} +41 -46
- package/components/Button/Button.d.ts +58 -30
- package/components/Button/Button.stories.js +249 -184
- package/components/Button/Button.styles.d.ts +1 -1
- package/components/Button/Button.styles.js +231 -124
- package/components/Button/Button.tsx +143 -0
- package/components/Button/ButtonLink.d.ts +63 -26
- package/components/Button/ButtonLink.stories.js +76 -5
- package/components/Button/ButtonLink.styles.d.ts +2 -0
- package/components/Button/ButtonLink.styles.js +172 -0
- package/components/Button/ButtonLink.tsx +116 -0
- package/components/Button/IconButton.d.ts +33 -24
- package/components/Button/IconButton.stories.js +58 -23
- package/components/Button/IconButton.tsx +72 -0
- package/components/Checkbox/Checkbox.d.ts +39 -23
- package/components/Checkbox/Checkbox.stories.js +176 -118
- package/components/Checkbox/Checkbox.styles.d.ts +2 -2
- package/components/Checkbox/Checkbox.styles.js +29 -12
- package/components/Checkbox/Checkbox.tsx +98 -0
- package/components/Chip/Chip.d.ts +65 -22
- package/components/Chip/Chip.stories.js +291 -69
- package/components/Chip/Chip.styles.d.ts +6 -2
- package/components/Chip/Chip.styles.js +157 -20
- package/components/Chip/Chip.tsx +132 -0
- package/components/CurrencyInput/CurrencyInput.d.ts +83 -43
- package/components/CurrencyInput/CurrencyInput.stories.js +143 -128
- package/components/CurrencyInput/CurrencyInput.styles.d.ts +4 -4
- package/components/CurrencyInput/CurrencyInput.styles.js +19 -24
- package/components/CurrencyInput/{CurrencyInput.js → CurrencyInput.tsx} +187 -214
- package/components/CurrencyInput/utils/_cleanValue.d.ts +4 -4
- package/components/Dropdown/Dropdown.d.ts +74 -41
- package/components/Dropdown/Dropdown.stories.js +232 -218
- package/components/Dropdown/{Dropdown.js → Dropdown.tsx} +123 -147
- package/components/Grid/Col.d.ts +32 -25
- package/components/Grid/{Col.js → Col.tsx} +33 -50
- package/components/Grid/Grid.d.ts +53 -32
- package/components/Grid/Grid.styles.js +1 -1
- package/components/Grid/{Grid.js → Grid.tsx} +61 -93
- package/components/Grid/aGrid.stories.js +492 -473
- package/components/Grid/bCol.stories.js +139 -129
- package/components/Input/Input.d.ts +108 -43
- package/components/Input/Input.spec.js +9 -0
- package/components/Input/Input.stories.js +482 -272
- package/components/Input/Input.styles.d.ts +10 -6
- package/components/Input/Input.styles.js +86 -54
- package/components/Input/{Input.js → Input.tsx} +221 -201
- package/components/RadioButton/RadioButton.d.ts +45 -23
- package/components/RadioButton/RadioButton.stories.js +211 -130
- package/components/RadioButton/RadioButton.styles.d.ts +7 -0
- package/components/RadioButton/RadioButton.styles.js +124 -0
- package/components/RadioButton/RadioButton.tsx +108 -0
- package/components/RowItem/RowItem.d.ts +58 -0
- package/components/RowItem/RowItem.stories.js +560 -0
- package/components/RowItem/RowItem.styles.d.ts +11 -0
- package/components/RowItem/RowItem.styles.js +51 -0
- package/components/RowItem/RowItem.tsx +184 -0
- package/components/ShapeIcon/ShapeIcon.d.ts +36 -26
- package/components/ShapeIcon/ShapeIcon.stories.js +56 -36
- package/components/ShapeIcon/ShapeIcon.styles.d.ts +9 -0
- package/components/ShapeIcon/ShapeIcon.styles.js +24 -0
- package/components/ShapeIcon/ShapeIcon.tsx +65 -0
- package/components/Slider/Slider.d.ts +60 -0
- package/components/Slider/Slider.stories.js +191 -0
- package/components/Slider/Slider.styles.d.ts +17 -0
- package/components/Slider/Slider.styles.js +204 -0
- package/components/Slider/Slider.tsx +359 -0
- package/components/Snack/Snack.d.ts +36 -16
- package/components/Snack/Snack.stories.js +303 -175
- package/components/Snack/Snack.styles.d.ts +10 -4
- package/components/Snack/Snack.styles.js +39 -6
- package/components/Snack/Snack.tsx +99 -0
- package/components/Tabs/Tab.d.ts +70 -30
- package/components/Tabs/Tab.tsx +143 -0
- package/components/Tabs/Tabs.d.ts +54 -20
- package/components/Tabs/Tabs.stories.js +238 -47
- package/components/Tabs/Tabs.styles.d.ts +14 -8
- package/components/Tabs/Tabs.styles.js +93 -19
- package/components/Tabs/Tabs.tsx +188 -0
- package/components/TextArea/TextArea.d.ts +80 -40
- package/components/TextArea/TextArea.spec.js +30 -0
- package/components/TextArea/TextArea.stories.js +356 -300
- package/components/TextArea/TextArea.styles.js +18 -17
- package/components/TextArea/{TextArea.js → TextArea.tsx} +114 -146
- package/components/ToggleSwitch/ToggleSwitch.d.ts +42 -0
- package/components/ToggleSwitch/ToggleSwitch.stories.js +142 -0
- package/components/ToggleSwitch/ToggleSwitch.styles.d.ts +14 -0
- package/components/ToggleSwitch/ToggleSwitch.styles.js +103 -0
- package/components/ToggleSwitch/ToggleSwitch.tsx +133 -0
- package/components/Tooltip/Tooltip.d.ts +80 -30
- package/components/Tooltip/Tooltip.spec.js +2 -1
- package/components/Tooltip/Tooltip.stories.d.ts +172 -0
- package/components/Tooltip/Tooltip.stories.tsx +649 -0
- package/components/Tooltip/Tooltip.styles.d.ts +28 -5
- package/components/Tooltip/Tooltip.styles.ts +104 -0
- package/components/Tooltip/Tooltip.tsx +226 -0
- package/components/index.d.ts +48 -20
- package/components/index.ts +48 -0
- package/css/__snapshots__/baseline.spec.js.snap +1 -1
- package/css/baseline.d.ts +1 -1
- package/css/baseline.js +7 -10
- package/icons/AdDashboard.d.ts +2 -0
- package/icons/AdDashboard.js +29 -0
- package/icons/AdDashboardFilled.d.ts +2 -0
- package/icons/AdDashboardFilled.js +21 -0
- package/icons/AddFriend.d.ts +2 -0
- package/icons/AddFriend.js +19 -0
- package/icons/AddFriendFilled.d.ts +2 -0
- package/icons/AddFriendFilled.js +19 -0
- package/icons/Alarm.d.ts +2 -0
- package/icons/Alarm.js +39 -0
- package/icons/AlarmFilled.d.ts +2 -0
- package/icons/AlarmFilled.js +33 -0
- package/icons/App.d.ts +2 -0
- package/icons/App.js +39 -0
- package/icons/AppFilled.d.ts +2 -0
- package/icons/AppFilled.js +37 -0
- package/icons/ArrowDown.d.ts +1 -1
- package/icons/ArrowDown.js +2 -3
- package/icons/ArrowLeft.d.ts +1 -1
- package/icons/ArrowLeft.js +5 -9
- package/icons/ArrowRight.d.ts +1 -1
- package/icons/ArrowRight.js +5 -9
- package/icons/ArrowUp.d.ts +5 -0
- package/icons/ArrowUp.js +20 -0
- package/icons/BIDashboard.d.ts +2 -0
- package/icons/BIDashboard.js +19 -0
- package/icons/Bell.d.ts +0 -3
- package/icons/Bell.js +22 -7
- package/icons/BellFilled.d.ts +2 -0
- package/icons/BellFilled.js +36 -0
- package/icons/Bookmark.d.ts +0 -3
- package/icons/Bookmark.js +5 -7
- package/icons/BookmarkFilled.d.ts +2 -0
- package/icons/BookmarkFilled.js +23 -0
- package/icons/BoyFace.d.ts +0 -3
- package/icons/BoyFace.js +12 -6
- package/icons/BoyFaceFilled.d.ts +2 -0
- package/icons/BoyFaceFilled.js +31 -0
- package/icons/Bump.d.ts +0 -3
- package/icons/Bump.js +4 -16
- package/icons/BumpDays.d.ts +2 -0
- package/icons/BumpDays.js +28 -0
- package/icons/BumpDaysFilled.d.ts +2 -0
- package/icons/BumpDaysFilled.js +24 -0
- package/icons/BumpFilled.d.ts +2 -0
- package/icons/BumpFilled.js +21 -0
- package/icons/Calendar.d.ts +2 -0
- package/icons/Calendar.js +38 -0
- package/icons/CalendarFilled.d.ts +2 -0
- package/icons/CalendarFilled.js +19 -0
- package/icons/CallWithSignal.d.ts +2 -0
- package/icons/CallWithSignal.js +21 -0
- package/icons/CallWithSignalFilled.d.ts +2 -0
- package/icons/CallWithSignalFilled.js +21 -0
- package/icons/Camera.d.ts +0 -3
- package/icons/Camera.js +19 -17
- package/icons/CameraFilled.d.ts +2 -0
- package/icons/CameraFilled.js +20 -0
- package/icons/CardPayment.d.ts +0 -3
- package/icons/CardPayment.js +5 -6
- package/icons/CardPaymentFilled.d.ts +2 -0
- package/icons/CardPaymentFilled.js +21 -0
- package/icons/Certificate.d.ts +0 -3
- package/icons/Certificate.js +12 -10
- package/icons/CertificateFilled.d.ts +2 -0
- package/icons/CertificateFilled.js +27 -0
- package/icons/Chat.d.ts +2 -5
- package/icons/Chat.js +26 -16
- package/icons/ChatFilled.d.ts +2 -0
- package/icons/ChatFilled.js +29 -0
- package/icons/Check.d.ts +0 -3
- package/icons/Check.js +7 -3
- package/icons/CheckCircleWavy.d.ts +2 -0
- package/icons/CheckCircleWavy.js +27 -0
- package/icons/CheckCircleWavyFilled.d.ts +2 -0
- package/icons/CheckCircleWavyFilled.js +21 -0
- package/icons/CheckFilled.d.ts +2 -0
- package/icons/CheckFilled.js +21 -0
- package/icons/ChevronDown.d.ts +2 -0
- package/icons/ChevronDown.js +19 -0
- package/icons/ChevronDownFilled.d.ts +2 -0
- package/icons/ChevronDownFilled.js +19 -0
- package/icons/ChevronLeft.d.ts +2 -0
- package/icons/ChevronLeft.js +19 -0
- package/icons/ChevronLeftFilled.d.ts +2 -0
- package/icons/ChevronLeftFilled.js +19 -0
- package/icons/ChevronRight.d.ts +2 -0
- package/icons/ChevronRight.js +19 -0
- package/icons/ChevronRightFilled.d.ts +2 -0
- package/icons/ChevronRightFilled.js +19 -0
- package/icons/ChevronUp.d.ts +2 -0
- package/icons/ChevronUp.js +19 -0
- package/icons/ChevronUpFilled.d.ts +2 -0
- package/icons/ChevronUpFilled.js +19 -0
- package/icons/CircleCheck.d.ts +0 -3
- package/icons/CircleCheck.js +5 -12
- package/icons/CircleCheckFilled.d.ts +2 -0
- package/icons/CircleCheckFilled.js +23 -0
- package/icons/CircleMedal.d.ts +2 -0
- package/icons/CircleMedal.js +21 -0
- package/icons/CircleStar.d.ts +2 -0
- package/icons/CircleStar.js +19 -0
- package/icons/Clock.d.ts +0 -3
- package/icons/Clock.js +4 -5
- package/icons/ClockFilled.d.ts +2 -0
- package/icons/ClockFilled.js +23 -0
- package/icons/Close.d.ts +0 -3
- package/icons/Close.js +5 -7
- package/icons/CloseFilled.d.ts +2 -0
- package/icons/CloseFilled.js +19 -0
- package/icons/Comment.d.ts +2 -0
- package/icons/Comment.js +33 -0
- package/icons/CommentFilled.d.ts +2 -0
- package/icons/CommentFilled.js +21 -0
- package/icons/CtFeed.d.ts +2 -0
- package/icons/CtFeed.js +65 -0
- package/icons/CtFeedFilled.d.ts +2 -0
- package/icons/CtFeedFilled.js +75 -0
- package/icons/CupidDashboard.d.ts +2 -0
- package/icons/CupidDashboard.js +22 -0
- package/icons/CupidDashboardFilled.d.ts +2 -0
- package/icons/CupidDashboardFilled.js +22 -0
- package/icons/CurrentLocation.d.ts +2 -0
- package/icons/CurrentLocation.js +17 -0
- package/icons/Delivery.d.ts +2 -0
- package/icons/Delivery.js +19 -0
- package/icons/DoubleArrowDown.d.ts +2 -0
- package/icons/DoubleArrowDown.js +21 -0
- package/icons/DoubleArrowUp.d.ts +2 -0
- package/icons/DoubleArrowUp.js +16 -0
- package/icons/Download.d.ts +0 -3
- package/icons/Download.js +5 -10
- package/icons/DownloadFilled.d.ts +2 -0
- package/icons/DownloadFilled.js +19 -0
- package/icons/Duplicate.d.ts +2 -0
- package/icons/Duplicate.js +28 -0
- package/icons/DuplicateFilled.d.ts +2 -0
- package/icons/DuplicateFilled.js +28 -0
- package/icons/Edit.d.ts +0 -3
- package/icons/Edit.js +8 -8
- package/icons/EditFilled.d.ts +2 -0
- package/icons/EditFilled.js +23 -0
- package/icons/Ellipsis.d.ts +0 -3
- package/icons/Ellipsis.js +4 -6
- package/icons/EllipsisFilled.d.ts +2 -0
- package/icons/EllipsisFilled.js +21 -0
- package/icons/Facebook.d.ts +2 -0
- package/icons/Facebook.js +19 -0
- package/icons/FacebookFilled.d.ts +2 -0
- package/icons/FacebookFilled.js +19 -0
- package/icons/Fee.d.ts +2 -0
- package/icons/Fee.js +24 -0
- package/icons/FeeFilled.d.ts +2 -0
- package/icons/FeeFilled.js +22 -0
- package/icons/Filter.d.ts +2 -0
- package/icons/Filter.js +21 -0
- package/icons/FilterFilled.d.ts +2 -0
- package/icons/FilterFilled.js +21 -0
- package/icons/Gift.d.ts +0 -3
- package/icons/Gift.js +6 -9
- package/icons/GiftFilled.d.ts +2 -0
- package/icons/GiftFilled.js +19 -0
- package/icons/GroupOfUser.d.ts +2 -0
- package/icons/GroupOfUser.js +19 -0
- package/icons/GroupOfUserFilled.d.ts +2 -0
- package/icons/GroupOfUserFilled.js +23 -0
- package/icons/HandBag.d.ts +2 -0
- package/icons/HandBag.js +27 -0
- package/icons/HandBagFilled.d.ts +2 -0
- package/icons/HandBagFilled.js +25 -0
- package/icons/HeadPhone.d.ts +2 -0
- package/icons/HeadPhone.js +21 -0
- package/icons/HeadPhoneFilled.d.ts +2 -0
- package/icons/HeadPhoneFilled.js +21 -0
- package/icons/Heart.d.ts +0 -3
- package/icons/Heart.js +4 -8
- package/icons/HeartFilled.d.ts +2 -0
- package/icons/HeartFilled.js +19 -0
- package/icons/Help.d.ts +2 -0
- package/icons/Help.js +29 -0
- package/icons/HelpFilled.d.ts +2 -0
- package/icons/HelpFilled.js +21 -0
- package/icons/Hide.d.ts +2 -0
- package/icons/Hide.js +20 -0
- package/icons/HourGlass.d.ts +2 -0
- package/icons/HourGlass.js +17 -0
- package/icons/House.d.ts +0 -3
- package/icons/House.js +5 -7
- package/icons/HouseFilled.d.ts +2 -0
- package/icons/HouseFilled.js +19 -0
- package/icons/Image.d.ts +2 -0
- package/icons/Image.js +29 -0
- package/icons/ImageFilled.d.ts +2 -0
- package/icons/ImageFilled.js +27 -0
- package/icons/Impression.d.ts +0 -3
- package/icons/Impression.js +29 -41
- package/icons/ImpressionFilled.d.ts +2 -0
- package/icons/ImpressionFilled.js +44 -0
- package/icons/Info.d.ts +0 -3
- package/icons/Info.js +8 -7
- package/icons/InfoFilled.d.ts +2 -0
- package/icons/InfoFilled.js +19 -0
- package/icons/InsertAd.d.ts +0 -3
- package/icons/InsertAd.js +6 -7
- package/icons/InternationalPayment.d.ts +0 -3
- package/icons/InternationalPayment.js +21 -29
- package/icons/InternationalPaymentFilled.d.ts +2 -0
- package/icons/InternationalPaymentFilled.js +35 -0
- package/icons/Label.d.ts +0 -3
- package/icons/Label.js +17 -7
- package/icons/LabelFilled.d.ts +2 -0
- package/icons/LabelFilled.js +30 -0
- package/icons/Like.d.ts +2 -0
- package/icons/Like.js +19 -0
- package/icons/LikeFilled.d.ts +2 -0
- package/icons/LikeFilled.js +21 -0
- package/icons/Listview.d.ts +2 -0
- package/icons/Listview.js +22 -0
- package/icons/Loading.d.ts +2 -0
- package/icons/Loading.js +20 -0
- package/icons/Loan.d.ts +0 -3
- package/icons/Loan.js +30 -19
- package/icons/LoanFilled.d.ts +2 -0
- package/icons/LoanFilled.js +36 -0
- package/icons/Location.d.ts +0 -3
- package/icons/Location.js +20 -10
- package/icons/LocationFilled.d.ts +2 -0
- package/icons/LocationFilled.js +30 -0
- package/icons/Lock.d.ts +2 -0
- package/icons/Lock.js +17 -0
- package/icons/LockFilled.d.ts +2 -0
- package/icons/LockFilled.js +17 -0
- package/icons/Mail.d.ts +2 -0
- package/icons/Mail.js +28 -0
- package/icons/MailFilled.d.ts +2 -0
- package/icons/MailFilled.js +23 -0
- package/icons/Medal.d.ts +0 -3
- package/icons/Medal.js +18 -6
- package/icons/Menu.d.ts +2 -0
- package/icons/Menu.js +19 -0
- package/icons/MoreHorizontal.d.ts +2 -0
- package/icons/MoreHorizontal.js +21 -0
- package/icons/MoreVertical.d.ts +2 -0
- package/icons/MoreVertical.js +21 -0
- package/icons/Note.d.ts +2 -0
- package/icons/Note.js +43 -0
- package/icons/NoteFilled.d.ts +2 -0
- package/icons/NoteFilled.js +27 -0
- package/icons/Package.d.ts +2 -0
- package/icons/Package.js +29 -0
- package/icons/PackageFilled.d.ts +2 -0
- package/icons/PackageFilled.js +27 -0
- package/icons/PaymentInfo.d.ts +0 -3
- package/icons/PaymentInfo.js +20 -24
- package/icons/PaymentInfoFilled.d.ts +2 -0
- package/icons/PaymentInfoFilled.js +22 -0
- package/icons/Phone.d.ts +2 -0
- package/icons/Phone.js +19 -0
- package/icons/PhoneFilled.d.ts +2 -0
- package/icons/PhoneFilled.js +19 -0
- package/icons/Pin.d.ts +2 -0
- package/icons/Pin.js +45 -0
- package/icons/PinFilled.d.ts +2 -0
- package/icons/PinFilled.js +10 -0
- package/icons/Plus.d.ts +2 -0
- package/icons/Plus.js +23 -0
- package/icons/PrivateSellerAvatar.d.ts +2 -0
- package/icons/PrivateSellerAvatar.js +24 -0
- package/icons/Profile.d.ts +0 -3
- package/icons/Profile.js +28 -14
- package/icons/ProfileFilled.d.ts +2 -0
- package/icons/ProfileFilled.js +29 -0
- package/icons/Promotion.d.ts +2 -0
- package/icons/Promotion.js +25 -0
- package/icons/PromotionFilled.d.ts +2 -0
- package/icons/PromotionFilled.js +21 -0
- package/icons/Recurring.d.ts +2 -0
- package/icons/Recurring.js +19 -0
- package/icons/Report.d.ts +2 -0
- package/icons/Report.js +21 -0
- package/icons/ReportFilled.d.ts +2 -0
- package/icons/ReportFilled.js +21 -0
- package/icons/Retry.d.ts +2 -0
- package/icons/Retry.js +23 -0
- package/icons/Sda.d.ts +2 -0
- package/icons/Sda.js +22 -0
- package/icons/Search.d.ts +0 -3
- package/icons/Search.js +14 -7
- package/icons/SearchFilled.d.ts +2 -0
- package/icons/SearchFilled.js +28 -0
- package/icons/SellFaster.d.ts +0 -3
- package/icons/SellFaster.js +13 -17
- package/icons/Sellerinfo.d.ts +2 -0
- package/icons/Sellerinfo.js +20 -0
- package/icons/SellerinfoFilled.d.ts +2 -0
- package/icons/SellerinfoFilled.js +20 -0
- package/icons/Setting.d.ts +2 -0
- package/icons/Setting.js +19 -0
- package/icons/SettingFilled.d.ts +2 -0
- package/icons/SettingFilled.js +21 -0
- package/icons/Share.d.ts +2 -0
- package/icons/Share.js +19 -0
- package/icons/ShareFilled.d.ts +2 -0
- package/icons/ShareFilled.js +19 -0
- package/icons/Shield.d.ts +2 -0
- package/icons/Shield.js +27 -0
- package/icons/ShieldFilled.d.ts +2 -0
- package/icons/ShieldFilled.js +21 -0
- package/icons/ShieldPlus.d.ts +2 -0
- package/icons/ShieldPlus.js +27 -0
- package/icons/ShieldPlusFilled.d.ts +2 -0
- package/icons/ShieldPlusFilled.js +21 -0
- package/icons/Shop.d.ts +0 -3
- package/icons/Shop.js +7 -7
- package/icons/ShopFilled.d.ts +2 -0
- package/icons/ShopFilled.js +22 -0
- package/icons/Sms.d.ts +2 -0
- package/icons/Sms.js +26 -0
- package/icons/SmsFilled.d.ts +2 -0
- package/icons/SmsFilled.js +32 -0
- package/icons/Sort.d.ts +2 -0
- package/icons/Sort.js +27 -0
- package/icons/Sparkle.d.ts +2 -0
- package/icons/Sparkle.js +21 -0
- package/icons/SparkleFilled.d.ts +2 -0
- package/icons/SparkleFilled.js +19 -0
- package/icons/Speaker.d.ts +2 -0
- package/icons/Speaker.js +28 -0
- package/icons/SpeakerFilled.d.ts +2 -0
- package/icons/SpeakerFilled.js +28 -0
- package/icons/SpeechBubbles.d.ts +0 -3
- package/icons/SpeechBubbles.js +24 -10
- package/icons/SpeechBubblesFilled.d.ts +2 -0
- package/icons/SpeechBubblesFilled.js +29 -0
- package/icons/SponsoredIcon.d.ts +2 -0
- package/icons/SponsoredIcon.js +26 -0
- package/icons/Star.d.ts +0 -3
- package/icons/Star.js +14 -7
- package/icons/StarFilled.d.ts +2 -0
- package/icons/StarFilled.js +29 -0
- package/icons/Stats.d.ts +0 -3
- package/icons/Stats.js +15 -7
- package/icons/Suitcase.d.ts +0 -3
- package/icons/Suitcase.js +4 -10
- package/icons/SuitcaseFilled.d.ts +2 -0
- package/icons/SuitcaseFilled.js +19 -0
- package/icons/Tag.d.ts +2 -0
- package/icons/Tag.js +32 -0
- package/icons/TagFilled.d.ts +2 -0
- package/icons/TagFilled.js +28 -0
- package/icons/TrashBin.d.ts +2 -0
- package/icons/TrashBin.js +43 -0
- package/icons/TrashBinFilled.d.ts +2 -0
- package/icons/TrashBinFilled.js +28 -0
- package/icons/Unhide.d.ts +2 -0
- package/icons/Unhide.js +25 -0
- package/icons/Unpublish.d.ts +2 -0
- package/icons/Unpublish.js +19 -0
- package/icons/User.d.ts +0 -3
- package/icons/User.js +18 -123
- package/icons/UserFeedback.d.ts +2 -0
- package/icons/UserFeedback.js +31 -0
- package/icons/UserFeedbackFilled.d.ts +2 -0
- package/icons/UserFeedbackFilled.js +21 -0
- package/icons/UserFilled.d.ts +2 -0
- package/icons/UserFilled.js +31 -0
- package/icons/VerifiedShop.d.ts +2 -0
- package/icons/VerifiedShop.js +22 -0
- package/icons/VerticalNavigation.d.ts +2 -0
- package/icons/VerticalNavigation.js +19 -0
- package/icons/Wallet.d.ts +0 -3
- package/icons/Wallet.js +9 -15
- package/icons/WalletFilled.d.ts +2 -0
- package/icons/WalletFilled.js +28 -0
- package/icons/Warning.d.ts +0 -3
- package/icons/Warning.js +10 -17
- package/icons/WarningFilled.d.ts +2 -0
- package/icons/WarningFilled.js +22 -0
- package/icons/index.d.ts +160 -60
- package/icons/index.js +160 -60
- package/index.d.ts +33 -25
- package/index.spec.js +4 -4
- package/{index.js → index.ts} +9 -1
- package/package.json +70 -138
- package/patterns/Drawer/Drawer.d.ts +95 -0
- package/patterns/Drawer/Drawer.stories.js +563 -0
- package/patterns/Drawer/Drawer.styles.d.ts +35 -0
- package/patterns/Drawer/Drawer.styles.js +336 -0
- package/patterns/Drawer/Drawer.tsx +370 -0
- package/patterns/EmptyState/EmptyState.d.ts +34 -0
- package/patterns/EmptyState/EmptyState.stories.js +106 -0
- package/patterns/EmptyState/EmptyState.styles.d.ts +15 -0
- package/patterns/EmptyState/EmptyState.styles.js +59 -0
- package/patterns/EmptyState/EmptyState.tsx +128 -0
- package/patterns/InputGroup/InputGroup.d.ts +16 -17
- package/patterns/InputGroup/InputGroup.stories.js +198 -149
- package/patterns/InputGroup/InputGroup.styles.d.ts +4 -4
- package/patterns/InputGroup/InputGroup.styles.js +44 -32
- package/patterns/InputGroup/InputGroup.tsx +35 -0
- package/patterns/LegacyDialog/LegacyDialog.d.ts +50 -0
- package/patterns/LegacyDialog/LegacyDialog.stories.js +414 -0
- package/patterns/LegacyDialog/LegacyDialog.styles.d.ts +14 -0
- package/patterns/{Dialog/Dialog.styles.js → LegacyDialog/LegacyDialog.styles.js} +11 -16
- package/patterns/{Dialog/Dialog.js → LegacyDialog/LegacyDialog.tsx} +81 -91
- package/patterns/LegacyPopup/LegacyPopup.d.ts +66 -0
- package/patterns/{Popup/Popup.spec.js → LegacyPopup/LegacyPopup.spec.js} +2 -2
- package/patterns/LegacyPopup/LegacyPopup.stories.js +581 -0
- package/patterns/LegacyPopup/LegacyPopup.styles.d.ts +21 -0
- package/patterns/LegacyPopup/LegacyPopup.styles.js +248 -0
- package/patterns/{Popup/Popup.js → LegacyPopup/LegacyPopup.tsx} +96 -112
- package/patterns/MultiSearchDropdown/MultiSearchDropdown.d.ts +106 -0
- package/patterns/MultiSearchDropdown/MultiSearchDropdown.stories.js +455 -0
- package/patterns/MultiSearchDropdown/MultiSearchDropdown.styles.d.ts +23 -0
- package/patterns/MultiSearchDropdown/MultiSearchDropdown.styles.js +260 -0
- package/patterns/MultiSearchDropdown/MultiSearchDropdown.tsx +506 -0
- package/patterns/Popup/Popup.d.ts +84 -36
- package/patterns/Popup/Popup.stories.js +401 -471
- package/patterns/Popup/Popup.styles.d.ts +22 -12
- package/patterns/Popup/Popup.styles.js +183 -143
- package/patterns/Popup/Popup.tsx +254 -0
- package/patterns/SearchInput/SearchInput.d.ts +103 -60
- package/patterns/SearchInput/SearchInput.stories.js +422 -339
- package/patterns/SearchInput/SearchInput.styles.d.ts +5 -2
- package/patterns/SearchInput/SearchInput.styles.js +57 -18
- package/patterns/SearchInput/{SearchInput.js → SearchInput.tsx} +169 -192
- package/patterns/TagCloud/TagCloud.d.ts +56 -31
- package/patterns/TagCloud/TagCloud.stories.js +304 -246
- package/patterns/TagCloud/TagCloud.styles.d.ts +4 -4
- package/patterns/TagCloud/TagCloud.styles.js +8 -3
- package/patterns/TagCloud/TagCloud.tsx +98 -0
- package/patterns/TagCloud/TagCloudMultiActive.d.ts +14 -34
- package/patterns/TagCloud/{TagCloudMultiActive.js → TagCloudMultiActive.tsx} +23 -37
- package/patterns/TagCloud/TagCloudSingleActive.d.ts +11 -22
- package/patterns/TagCloud/{TagCloudSingleActive.js → TagCloudSingleActive.tsx} +20 -19
- package/patterns/index.d.ts +18 -5
- package/patterns/index.ts +18 -0
- package/patterns/patterns-index.spec.js +1 -1
- package/storybook/Bar.d.ts +4 -0
- package/storybook/BorderRadius.d.ts +5 -0
- package/storybook/BorderWidth.d.ts +4 -0
- package/storybook/ColorClass.d.ts +13 -0
- package/storybook/ColorFoundation.d.ts +12 -0
- package/storybook/ColorFoundationList.d.ts +7 -0
- package/storybook/Gradient.d.ts +10 -0
- package/storybook/GuideImage.d.ts +14 -0
- package/storybook/Member.d.ts +15 -0
- package/storybook/Popover.d.ts +6 -0
- package/storybook/Shadow.d.ts +4 -0
- package/storybook/Square.d.ts +4 -0
- package/storybook/{components/Swatch.d.ts → Swatch.d.ts} +1 -1
- package/storybook/SystemIcons.d.ts +2 -0
- package/storybook/Transition.d.ts +4 -0
- package/storybook/Type.d.ts +17 -0
- package/theme/__snapshots__/chotot.spec.js.snap +267 -111
- package/theme/__snapshots__/mudah.spec.js.snap +19 -19
- package/theme/chotot-color1.d.ts +489 -0
- package/theme/chotot-color1.js +374 -0
- package/theme/chotot.d.ts +820 -228
- package/theme/chotot.js +654 -298
- package/theme/ct-job.d.ts +478 -0
- package/theme/ct-job.js +64 -0
- package/theme/ct-pty.d.ts +724 -0
- package/theme/ct-pty.js +82 -0
- package/theme/index.d.ts +62 -2
- package/theme/index.ts +67 -0
- package/theme/mudah.d.ts +53 -21
- package/types.d.ts +10 -1
- package/utils/_inlineCreatePortal.d.ts +9 -0
- package/utils/_inlineCreatePortal.tsx +42 -0
- package/utils/_simulateChangeEvent.d.ts +2 -2
- package/utils/_simulateChangeEvent.js +2 -2
- package/utils/_simulateChangeEvent.spec.js +5 -7
- package/utils/cleanHtml.js +3 -2
- package/utils/createUniversalPortal.d.ts +11 -6
- package/utils/createUniversalPortal.js +23 -11
- package/utils/createUniversalPortal.server.spec.js +2 -2
- package/utils/cx.d.ts +17 -0
- package/utils/cx.js +53 -0
- package/utils/index.d.ts +2 -0
- package/utils/index.js +2 -0
- package/utils/scrollTop.d.ts +7 -0
- package/utils/scrollTop.js +12 -0
- package/utils/sx.d.ts +2831 -2251
- package/utils/sx.js +1 -1
- package/utils/sx.spec.js +2 -0
- package/components/Box/Box.js +0 -314
- package/components/Button/Button.js +0 -165
- package/components/Button/ButtonLink.js +0 -89
- package/components/Button/IconButton.js +0 -81
- package/components/Checkbox/Checkbox.js +0 -106
- package/components/Chip/Chip.js +0 -84
- package/components/RadioButton/RadioButton.js +0 -107
- package/components/ShapeIcon/ShapeIcon.js +0 -74
- package/components/Snack/Snack.js +0 -82
- package/components/Tabs/Tab.js +0 -145
- package/components/Tabs/Tabs.js +0 -107
- package/components/Tooltip/Tooltip.js +0 -188
- package/components/Tooltip/Tooltip.stories.js +0 -467
- package/components/Tooltip/Tooltip.styles.js +0 -57
- package/components/index.js +0 -20
- package/docs/1.1-intro.stories.mdx +0 -18
- package/docs/1.2-getting-started.stories.mdx +0 -111
- package/docs/1.3-theming.stories.mdx +0 -193
- package/docs/1.4-development-guide.stories.mdx +0 -448
- package/docs/1.5-contribution-guide.stories.mdx +0 -19
- package/docs/1.6-solution-rationale.stories.mdx +0 -155
- package/docs/1.7-team-members.stories.mdx +0 -138
- package/docs/2.1-tokens-intro.stories.mdx +0 -51
- package/docs/2.2-colors.stories.mdx +0 -124
- package/docs/2.2-typography.stories.mdx +0 -126
- package/docs/2.4-others.stories.mdx +0 -180
- package/docs/2.5-icons.stories.mdx +0 -64
- package/docs/2.6-baselinecss.stories.mdx +0 -439
- package/docs/2.7-layout-breakpoints.stories.mdx +0 -185
- package/icons/ArrowDownB.d.ts +0 -5
- package/icons/ArrowDownB.js +0 -21
- package/icons/Back.d.ts +0 -5
- package/icons/Back.js +0 -21
- package/icons/BellOutline.d.ts +0 -5
- package/icons/BellOutline.js +0 -21
- package/icons/BinOutline.d.ts +0 -5
- package/icons/BinOutline.js +0 -25
- package/icons/BookmarkOutline.d.ts +0 -5
- package/icons/BookmarkOutline.js +0 -21
- package/icons/BoyFaceOutline.d.ts +0 -5
- package/icons/BoyFaceOutline.js +0 -21
- package/icons/BumpTime.d.ts +0 -5
- package/icons/BumpTime.js +0 -35
- package/icons/CallOutline.d.ts +0 -5
- package/icons/CallOutline.js +0 -24
- package/icons/Chart.d.ts +0 -5
- package/icons/Chart.js +0 -27
- package/icons/ChartImpression.d.ts +0 -5
- package/icons/ChartImpression.js +0 -28
- package/icons/ChartView.d.ts +0 -5
- package/icons/ChartView.js +0 -27
- package/icons/CircleCopylink.d.ts +0 -5
- package/icons/CircleCopylink.js +0 -23
- package/icons/CircleFacebook.d.ts +0 -5
- package/icons/CircleFacebook.js +0 -22
- package/icons/CircleMessenger.d.ts +0 -5
- package/icons/CircleMessenger.js +0 -19
- package/icons/CircleSms.d.ts +0 -5
- package/icons/CircleSms.js +0 -22
- package/icons/CircleUser.d.ts +0 -5
- package/icons/CircleUser.js +0 -24
- package/icons/CircleViber.d.ts +0 -5
- package/icons/CircleViber.js +0 -28
- package/icons/CircleZalo.d.ts +0 -5
- package/icons/CircleZalo.js +0 -63
- package/icons/CtCoin.d.ts +0 -5
- package/icons/CtCoin.js +0 -218
- package/icons/EditAd.d.ts +0 -5
- package/icons/EditAd.js +0 -22
- package/icons/EllipsisOutline.d.ts +0 -5
- package/icons/EllipsisOutline.js +0 -21
- package/icons/FacebookOutline.d.ts +0 -5
- package/icons/FacebookOutline.js +0 -32
- package/icons/Follow.d.ts +0 -5
- package/icons/Follow.js +0 -38
- package/icons/Gallery.d.ts +0 -5
- package/icons/Gallery.js +0 -24
- package/icons/GiftOutline.d.ts +0 -5
- package/icons/GiftOutline.js +0 -21
- package/icons/HeartOutline.d.ts +0 -5
- package/icons/HeartOutline.js +0 -23
- package/icons/HideAd.d.ts +0 -5
- package/icons/HideAd.js +0 -22
- package/icons/Hot.d.ts +0 -5
- package/icons/Hot.js +0 -21
- package/icons/HouseOutline.d.ts +0 -5
- package/icons/HouseOutline.js +0 -21
- package/icons/LocationOutline.d.ts +0 -5
- package/icons/LocationOutline.js +0 -27
- package/icons/MailOutline.d.ts +0 -5
- package/icons/MailOutline.js +0 -32
- package/icons/Msg.d.ts +0 -5
- package/icons/Msg.js +0 -42
- package/icons/PageIndicator.d.ts +0 -5
- package/icons/PageIndicator.js +0 -25
- package/icons/PercentMsg.d.ts +0 -5
- package/icons/PercentMsg.js +0 -51
- package/icons/PhoneOutline.d.ts +0 -5
- package/icons/PhoneOutline.js +0 -21
- package/icons/Selected.d.ts +0 -5
- package/icons/Selected.js +0 -34
- package/icons/ShopFree.d.ts +0 -5
- package/icons/ShopFree.js +0 -49
- package/icons/ShopOutline.d.ts +0 -5
- package/icons/ShopOutline.js +0 -24
- package/icons/SpeechBubblesOutline.d.ts +0 -5
- package/icons/SpeechBubblesOutline.js +0 -21
- package/icons/StarOutline.d.ts +0 -5
- package/icons/StarOutline.js +0 -23
- package/icons/Sticky.d.ts +0 -5
- package/icons/Sticky.js +0 -29
- package/icons/Tot.d.ts +0 -5
- package/icons/Tot.js +0 -21
- package/icons/UnhideOutline.d.ts +0 -5
- package/icons/UnhideOutline.js +0 -25
- package/icons/UserOutline.d.ts +0 -5
- package/icons/UserOutline.js +0 -22
- package/icons/Users.d.ts +0 -5
- package/icons/Users.js +0 -44
- package/icons/Verification.d.ts +0 -5
- package/icons/Verification.js +0 -22
- package/icons/VerifiedHouse.d.ts +0 -5
- package/icons/VerifiedHouse.js +0 -30
- package/icons/ViewMore.d.ts +0 -5
- package/icons/ViewMore.js +0 -25
- package/patterns/Dialog/Dialog.d.ts +0 -32
- package/patterns/Dialog/Dialog.stories.js +0 -388
- package/patterns/Dialog/Dialog.styles.d.ts +0 -14
- package/patterns/InputGroup/InputGroup.js +0 -52
- package/patterns/TagCloud/TagCloud.js +0 -120
- package/patterns/index.js +0 -5
- package/scripts/create-badge-svg.d.ts +0 -2
- package/shared/global.d.ts +0 -12
- package/shared/global.js +0 -17
- package/storybook/components/Bar.d.ts +0 -10
- package/storybook/components/BorderRadius.d.ts +0 -12
- package/storybook/components/BorderWidth.d.ts +0 -10
- package/storybook/components/Gradient.d.ts +0 -16
- package/storybook/components/GuideImage.d.ts +0 -22
- package/storybook/components/Member.d.ts +0 -26
- package/storybook/components/Shadow.d.ts +0 -10
- package/storybook/components/Square.d.ts +0 -10
- package/storybook/components/Transition.d.ts +0 -10
- package/storybook/components/Type.d.ts +0 -42
- package/storybook/main.d.ts +0 -3
- package/storybook/manager.d.ts +0 -1
- package/storybook/preview.d.ts +0 -76
- package/storybook/theme-clad.d.ts +0 -2
- package/storybook/utils/jsonStringify.d.ts +0 -8
- package/storybook/utils/loadFontsForStorybook.d.ts +0 -1
- package/theme/index.js +0 -7
- /package/storybook/{components/Icons.d.ts → Icons.d.ts} +0 -0
package/theme/chotot.js
CHANGED
|
@@ -64,25 +64,25 @@ const mediaQueries = {
|
|
|
64
64
|
};
|
|
65
65
|
|
|
66
66
|
/**
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
]}
|
|
85
|
-
|
|
67
|
+
* Note: We use tuple to define string literal type in each element.
|
|
68
|
+
* This will help to expose the value of the theme key with it's actual value.
|
|
69
|
+
* The only caveat is that we have to duplicate the array into this JSDoc at-type
|
|
70
|
+
*
|
|
71
|
+
* @type {[
|
|
72
|
+
'0px',
|
|
73
|
+
'2px',
|
|
74
|
+
'4px',
|
|
75
|
+
'8px',
|
|
76
|
+
'12px',
|
|
77
|
+
'16px',
|
|
78
|
+
'24px',
|
|
79
|
+
'32px',
|
|
80
|
+
'48px',
|
|
81
|
+
'64px',
|
|
82
|
+
'96px',
|
|
83
|
+
'128px',
|
|
84
|
+
]}
|
|
85
|
+
*/
|
|
86
86
|
const spaceScale = [
|
|
87
87
|
'0px', // 0
|
|
88
88
|
'2px', // 1
|
|
@@ -121,25 +121,25 @@ const space = {
|
|
|
121
121
|
};
|
|
122
122
|
|
|
123
123
|
/**
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
]}
|
|
142
|
-
|
|
124
|
+
* @type {[
|
|
125
|
+
'12px',
|
|
126
|
+
'16px',
|
|
127
|
+
'20px',
|
|
128
|
+
'24px',
|
|
129
|
+
'28px',
|
|
130
|
+
'32px',
|
|
131
|
+
'48px',
|
|
132
|
+
'64px',
|
|
133
|
+
'80px',
|
|
134
|
+
'96px',
|
|
135
|
+
'128px',
|
|
136
|
+
'236px',
|
|
137
|
+
'352px',
|
|
138
|
+
'480px',
|
|
139
|
+
'636px',
|
|
140
|
+
'864px',
|
|
141
|
+
]}
|
|
142
|
+
*/
|
|
143
143
|
const sizesScale = [
|
|
144
144
|
'12px', // 0
|
|
145
145
|
'16px', // 1
|
|
@@ -160,17 +160,17 @@ const sizesScale = [
|
|
|
160
160
|
];
|
|
161
161
|
|
|
162
162
|
/**
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
}}
|
|
173
|
-
|
|
163
|
+
* @type {{
|
|
164
|
+
vW: '100vw',
|
|
165
|
+
vH: '100vh',
|
|
166
|
+
quarter: '25%',
|
|
167
|
+
third: '33.33%',
|
|
168
|
+
half: '50%',
|
|
169
|
+
twoThird: '66.66%',
|
|
170
|
+
threeQuarter: '75%',
|
|
171
|
+
full: '100%',
|
|
172
|
+
}}
|
|
173
|
+
*/
|
|
174
174
|
const sizePct = {
|
|
175
175
|
vW: '100vw',
|
|
176
176
|
vH: '100vh',
|
|
@@ -213,16 +213,16 @@ const sizes = {
|
|
|
213
213
|
*
|
|
214
214
|
* font-family
|
|
215
215
|
*/
|
|
216
|
-
const fonts = {
|
|
216
|
+
const fonts = /** @type {const} */ ({
|
|
217
217
|
body: 'Helvetica, Arial, Roboto, sans-serif',
|
|
218
218
|
heading: 'Helvetica, Arial, Roboto, sans-serif',
|
|
219
219
|
monospace: 'SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace',
|
|
220
|
+
|
|
220
221
|
// Allow design system consumers to access font settings but control how and where they load the font.
|
|
221
222
|
urls: {
|
|
222
|
-
body:
|
|
223
|
-
'https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,700;1,400&display=swap',
|
|
223
|
+
body: 'https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,700;1,400&display=swap',
|
|
224
224
|
},
|
|
225
|
-
};
|
|
225
|
+
});
|
|
226
226
|
|
|
227
227
|
/**
|
|
228
228
|
* Map px values to rem values with assumption root's font size of 16px
|
|
@@ -237,19 +237,8 @@ const rem = (v) => `${v / 16}rem`;
|
|
|
237
237
|
* Note: because we convert pixel to rem, we need an augmented tuple type
|
|
238
238
|
* without the rem() function
|
|
239
239
|
*/
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
'10px',
|
|
243
|
-
'12px',
|
|
244
|
-
'14px',
|
|
245
|
-
'16px',
|
|
246
|
-
'18px',
|
|
247
|
-
'20px',
|
|
248
|
-
'24px',
|
|
249
|
-
'32px',
|
|
250
|
-
]}
|
|
251
|
-
*/
|
|
252
|
-
const fszScale = [
|
|
240
|
+
|
|
241
|
+
const fszScale = /** @type {const} */ ([
|
|
253
242
|
rem(10), // 0
|
|
254
243
|
rem(12), // 1
|
|
255
244
|
rem(14), // 2
|
|
@@ -258,14 +247,14 @@ const fszScale = [
|
|
|
258
247
|
rem(20), // 5
|
|
259
248
|
rem(24), // 6
|
|
260
249
|
rem(32), // 7
|
|
261
|
-
];
|
|
250
|
+
]);
|
|
262
251
|
|
|
263
252
|
/**
|
|
264
253
|
* theme.fontSizes
|
|
265
254
|
*
|
|
266
255
|
* font-size
|
|
267
256
|
*/
|
|
268
|
-
const fontSizes = {
|
|
257
|
+
const fontSizes = /** @type {const} */ ({
|
|
269
258
|
// ...fszScale,
|
|
270
259
|
h1: fszScale[7],
|
|
271
260
|
h2: fszScale[6],
|
|
@@ -273,6 +262,7 @@ const fontSizes = {
|
|
|
273
262
|
h4: fszScale[4],
|
|
274
263
|
h5: fszScale[3],
|
|
275
264
|
h6: fszScale[2],
|
|
265
|
+
subtitle: fszScale[1],
|
|
276
266
|
body: fszScale[2],
|
|
277
267
|
xxs: fszScale[0],
|
|
278
268
|
xs: fszScale[1],
|
|
@@ -282,398 +272,754 @@ const fontSizes = {
|
|
|
282
272
|
xl: fszScale[5],
|
|
283
273
|
xxl: fszScale[6],
|
|
284
274
|
xxxl: fszScale[7],
|
|
285
|
-
};
|
|
275
|
+
});
|
|
286
276
|
|
|
287
|
-
/**
|
|
288
|
-
|
|
289
|
-
1,
|
|
290
|
-
|
|
291
|
-
1.5,
|
|
292
|
-
1.75,
|
|
293
|
-
2,
|
|
294
|
-
2.5,
|
|
295
|
-
]}
|
|
296
|
-
*/
|
|
297
|
-
const lh = [
|
|
298
|
-
1, // 0
|
|
299
|
-
1.25, // 1
|
|
300
|
-
1.5, // 2
|
|
301
|
-
1.75, // 3
|
|
302
|
-
2, // 4
|
|
303
|
-
2.5, // 5
|
|
304
|
-
];
|
|
277
|
+
const lh = /** @type {const} */ ([
|
|
278
|
+
1.25, // 0
|
|
279
|
+
1.5, // 1
|
|
280
|
+
]);
|
|
305
281
|
|
|
306
282
|
/**
|
|
307
283
|
* theme.lineHeights
|
|
308
284
|
*
|
|
309
285
|
* line-height
|
|
310
286
|
*/
|
|
311
|
-
const lineHeights = {
|
|
312
|
-
|
|
313
|
-
|
|
287
|
+
const lineHeights = /** @type {const} */ ({
|
|
288
|
+
// new semantic
|
|
289
|
+
heading: lh[0],
|
|
290
|
+
paragraph: lh[1],
|
|
291
|
+
// legacy
|
|
292
|
+
h1: lh[0],
|
|
293
|
+
h2: lh[0],
|
|
294
|
+
h3: lh[0],
|
|
295
|
+
h4: lh[0],
|
|
296
|
+
h5: lh[0],
|
|
297
|
+
h6: lh[0],
|
|
298
|
+
subtitle: lh[0],
|
|
299
|
+
body: lh[1],
|
|
300
|
+
xs: lh[1],
|
|
301
|
+
xxs: lh[1],
|
|
314
302
|
sm: lh[1],
|
|
315
|
-
md: lh[
|
|
316
|
-
lg: lh[
|
|
317
|
-
xl: lh[
|
|
318
|
-
|
|
319
|
-
};
|
|
303
|
+
md: lh[1],
|
|
304
|
+
lg: lh[1],
|
|
305
|
+
xl: lh[1],
|
|
306
|
+
});
|
|
320
307
|
|
|
321
308
|
/**
|
|
322
309
|
* theme.fontWeights
|
|
323
310
|
*
|
|
324
311
|
* font-weight
|
|
325
|
-
* @type {{
|
|
326
|
-
body: 400,
|
|
327
|
-
heading: 700,
|
|
328
|
-
normal: 400,
|
|
329
|
-
bold: 700,
|
|
330
|
-
}}
|
|
331
312
|
*/
|
|
332
|
-
const fontWeights = {
|
|
313
|
+
const fontWeights = /** @type {const} */ ({
|
|
333
314
|
body: 400,
|
|
334
315
|
heading: 700,
|
|
335
316
|
normal: 400,
|
|
336
317
|
bold: 700,
|
|
337
|
-
};
|
|
318
|
+
});
|
|
338
319
|
|
|
339
|
-
/**
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
*/
|
|
354
|
-
|
|
355
|
-
black: '#222222',
|
|
320
|
+
const grays = /** @type {const} */ ({
|
|
321
|
+
gray50: '#F4F4F4',
|
|
322
|
+
gray75: '#E8E8E8',
|
|
323
|
+
gray100: '#DADADA',
|
|
324
|
+
gray200: '#C0C0C0',
|
|
325
|
+
gray300: '#A7A7A7',
|
|
326
|
+
gray400: '#8C8C8C',
|
|
327
|
+
gray500: '#737373',
|
|
328
|
+
gray600: '#595959',
|
|
329
|
+
gray700: '#404040',
|
|
330
|
+
gray800: '#2E2E2E',
|
|
331
|
+
gray900: '#222222',
|
|
332
|
+
});
|
|
333
|
+
|
|
334
|
+
const legacyGrays = /** @type {const} */ ({
|
|
335
|
+
black: grays.gray900,
|
|
356
336
|
darkgray1: '',
|
|
357
337
|
darkgray2: '',
|
|
358
338
|
darkgray3: '#777777',
|
|
359
339
|
darkgray4: '',
|
|
360
|
-
gray1:
|
|
361
|
-
gray2:
|
|
362
|
-
gray3:
|
|
363
|
-
gray4:
|
|
364
|
-
gray5:
|
|
340
|
+
gray1: grays.gray400,
|
|
341
|
+
gray2: grays.gray200,
|
|
342
|
+
gray3: grays.gray75,
|
|
343
|
+
gray4: grays.gray50,
|
|
344
|
+
gray5: grays.gray50,
|
|
365
345
|
white: '#FFFFFF',
|
|
366
|
-
};
|
|
346
|
+
});
|
|
367
347
|
|
|
368
|
-
/**
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
red4: '#FFD7DB',
|
|
382
|
-
red5: '#FFEFF1',
|
|
383
|
-
};
|
|
348
|
+
const reds = /** @type {const} */ ({
|
|
349
|
+
red50: '#FFF0F2',
|
|
350
|
+
red75: '#FFE5EA',
|
|
351
|
+
red100: '#FCCFD7',
|
|
352
|
+
red200: '#F5ADB9',
|
|
353
|
+
red300: '#FC8296',
|
|
354
|
+
red400: '#FF4766',
|
|
355
|
+
red500: '#E5193B',
|
|
356
|
+
red600: '#B01730',
|
|
357
|
+
red700: '#7F1022',
|
|
358
|
+
red800: '#650B1A',
|
|
359
|
+
red900: '#4B0611',
|
|
360
|
+
});
|
|
384
361
|
|
|
385
|
-
/**
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
}}
|
|
393
|
-
*/
|
|
394
|
-
const oranges = {
|
|
395
|
-
orange1: '#CC7A00',
|
|
396
|
-
orange2: '#FE9900',
|
|
397
|
-
orange3: '#FFB647',
|
|
398
|
-
orange4: '#FFEFD6',
|
|
399
|
-
orange5: '#FFF7EA',
|
|
400
|
-
};
|
|
362
|
+
const legacyReds = /** @type {const} */ ({
|
|
363
|
+
red1: reds.red700,
|
|
364
|
+
red2: reds.red600,
|
|
365
|
+
red3: reds.red500,
|
|
366
|
+
red4: reds.red75,
|
|
367
|
+
red5: reds.red50,
|
|
368
|
+
});
|
|
401
369
|
|
|
402
|
-
/**
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
yellow4: '#FFF4D6',
|
|
416
|
-
yellow5: '#FFF9EA',
|
|
417
|
-
};
|
|
370
|
+
const oranges = /** @type {const} */ ({
|
|
371
|
+
orange50: '#FFF4E0',
|
|
372
|
+
orange75: '#FFE9C2',
|
|
373
|
+
orange100: '#FFD494',
|
|
374
|
+
orange200: '#FFB057',
|
|
375
|
+
orange300: '#FF8800',
|
|
376
|
+
orange400: '#E56700',
|
|
377
|
+
orange500: '#C74C00',
|
|
378
|
+
orange600: '#9F3504',
|
|
379
|
+
orange700: '#752506',
|
|
380
|
+
orange800: '#5E1A03',
|
|
381
|
+
orange900: '#451608',
|
|
382
|
+
});
|
|
418
383
|
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
green5: '#F1F8EE',
|
|
426
|
-
}}
|
|
427
|
-
*/
|
|
428
|
-
const greens = {
|
|
429
|
-
green1: '#42782B',
|
|
430
|
-
green2: '#589F39',
|
|
431
|
-
green3: '#7AC45A',
|
|
432
|
-
green4: '#E4F1DE',
|
|
433
|
-
green5: '#F1F8EE',
|
|
384
|
+
const legacyOranges = {
|
|
385
|
+
orange1: oranges.orange400,
|
|
386
|
+
orange2: oranges.orange300,
|
|
387
|
+
orange3: oranges.orange200,
|
|
388
|
+
orange4: oranges.orange75,
|
|
389
|
+
orange5: oranges.orange50,
|
|
434
390
|
};
|
|
435
391
|
|
|
436
|
-
/**
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
};
|
|
392
|
+
const yellows = /** @type {const} */ ({
|
|
393
|
+
yellow50: '#FFF6CC',
|
|
394
|
+
yellow75: '#FFE999',
|
|
395
|
+
yellow100: '#FFD54C',
|
|
396
|
+
yellow200: '#FFBA00',
|
|
397
|
+
yellow300: '#E09900',
|
|
398
|
+
yellow400: '#CC7A00',
|
|
399
|
+
yellow500: '#AD6200',
|
|
400
|
+
yellow600: '#8A4900',
|
|
401
|
+
yellow700: '#663000',
|
|
402
|
+
yellow800: '#522500',
|
|
403
|
+
yellow900: '#421C00',
|
|
404
|
+
});
|
|
450
405
|
|
|
451
|
-
/**
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
406
|
+
const legacyYellows = /** @type {const} */ ({
|
|
407
|
+
yellow1: yellows.yellow300,
|
|
408
|
+
yellow2: yellows.yellow200,
|
|
409
|
+
yellow3: yellows.yellow100,
|
|
410
|
+
yellow4: yellows.yellow75,
|
|
411
|
+
yellow5: yellows.yellow50,
|
|
412
|
+
});
|
|
413
|
+
|
|
414
|
+
const greens = /** @type {const} */ ({
|
|
415
|
+
green50: '#ECF9F1',
|
|
416
|
+
green75: '#D9F2E4',
|
|
417
|
+
green100: '#ABE7C5',
|
|
418
|
+
green200: '#6ED498',
|
|
419
|
+
green300: '#26C06E',
|
|
420
|
+
green400: '#12A154',
|
|
421
|
+
green500: '#108446',
|
|
422
|
+
green600: '#0F6638',
|
|
423
|
+
green700: '#0D4A29',
|
|
424
|
+
green800: '#0E3A22',
|
|
425
|
+
green900: '#082B18',
|
|
426
|
+
});
|
|
427
|
+
|
|
428
|
+
const legacyGreens = /** @type {const} */ ({
|
|
429
|
+
green1: greens.green500,
|
|
430
|
+
green2: greens.green400,
|
|
431
|
+
green3: greens.green300,
|
|
432
|
+
green4: greens.green75,
|
|
433
|
+
green5: greens.green50,
|
|
434
|
+
});
|
|
435
|
+
|
|
436
|
+
const blues = /** @type {const} */ ({
|
|
437
|
+
blue50: '#F2F6FC',
|
|
438
|
+
blue75: '#E4ECFB',
|
|
439
|
+
blue100: '#CADBF7',
|
|
440
|
+
blue200: '#A3C0F5',
|
|
441
|
+
blue300: '#7FA7F0',
|
|
442
|
+
blue400: '#548AF0',
|
|
443
|
+
blue500: '#306BD9',
|
|
444
|
+
blue600: '#1952BA',
|
|
445
|
+
blue700: '#113B8A',
|
|
446
|
+
blue800: '#0B2F70',
|
|
447
|
+
blue900: '#0B234F',
|
|
448
|
+
});
|
|
449
|
+
|
|
450
|
+
const legacyBlues = /** @type {const} */ ({
|
|
451
|
+
blue1: blues.blue500,
|
|
452
|
+
blue2: blues.blue400,
|
|
453
|
+
blue3: blues.blue300,
|
|
454
|
+
blue4: blues.blue75,
|
|
455
|
+
blue5: blues.blue50,
|
|
456
|
+
darkblue1: blues.blue600,
|
|
457
|
+
darkblue2: blues.blue600,
|
|
458
|
+
darkblue3: blues.blue400,
|
|
459
|
+
darkblue4: blues.blue75,
|
|
460
|
+
});
|
|
475
461
|
|
|
476
462
|
const semantics = {
|
|
477
463
|
/**
|
|
478
464
|
* Main body text color
|
|
479
465
|
*/
|
|
480
|
-
text:
|
|
466
|
+
text: grays.gray900,
|
|
481
467
|
/**
|
|
482
468
|
* De-emphasized / footer text color
|
|
483
469
|
*/
|
|
484
|
-
textLighter:
|
|
470
|
+
textLighter: grays.gray400,
|
|
485
471
|
/**
|
|
486
472
|
* Regular hyperlinks color
|
|
487
473
|
*/
|
|
488
|
-
link: blues.
|
|
474
|
+
link: blues.blue500,
|
|
489
475
|
/**
|
|
490
476
|
* Regular hyperlinks hover color
|
|
491
477
|
*/
|
|
492
|
-
linkHover: blues.
|
|
478
|
+
linkHover: blues.blue400,
|
|
493
479
|
/**
|
|
494
480
|
* Regular hyperlinks active color
|
|
495
481
|
*/
|
|
496
|
-
linkActive: blues.
|
|
482
|
+
linkActive: blues.blue600,
|
|
497
483
|
/**
|
|
498
484
|
* Color for borders
|
|
499
485
|
*/
|
|
500
|
-
border:
|
|
486
|
+
border: grays.gray200,
|
|
501
487
|
/**
|
|
502
488
|
* Color for lines, visual separators
|
|
503
489
|
*/
|
|
504
|
-
line:
|
|
490
|
+
line: grays.gray75,
|
|
505
491
|
/**
|
|
506
492
|
* Body background color
|
|
507
493
|
*/
|
|
508
|
-
background:
|
|
494
|
+
background: grays.gray50,
|
|
509
495
|
/**
|
|
510
496
|
* A background color for highlighting text
|
|
511
497
|
*/
|
|
512
|
-
highlight: yellows.
|
|
498
|
+
highlight: yellows.yellow75,
|
|
513
499
|
/**
|
|
514
500
|
* A faint color for backgrounds, borders, and accents that do not require high contrast with the background color
|
|
515
501
|
*/
|
|
516
|
-
muted:
|
|
502
|
+
muted: grays.gray200,
|
|
517
503
|
/**
|
|
518
504
|
* Primary brand color for links, buttons, etc.
|
|
519
505
|
*/
|
|
520
|
-
primary:
|
|
506
|
+
primary: oranges.orange300,
|
|
521
507
|
/**
|
|
522
508
|
* Primary brand color for links, buttons, etc.
|
|
523
509
|
*/
|
|
524
|
-
primaryDark:
|
|
510
|
+
primaryDark: oranges.orange400,
|
|
525
511
|
/**
|
|
526
512
|
* Primary brand color for links, buttons, etc.
|
|
527
513
|
*/
|
|
528
|
-
primaryLight:
|
|
514
|
+
primaryLight: oranges.orange200,
|
|
529
515
|
/**
|
|
530
516
|
* Background color. Primary brand color for links, buttons, etc.
|
|
531
517
|
*/
|
|
532
|
-
primaryBG:
|
|
518
|
+
primaryBG: oranges.orange75,
|
|
533
519
|
/**
|
|
534
520
|
* Alternative lighter background color to primaryBG.
|
|
535
521
|
*/
|
|
536
|
-
primaryBGLight:
|
|
522
|
+
primaryBGLight: oranges.orange50,
|
|
537
523
|
/**
|
|
538
524
|
* A secondary brand color for alternative styling
|
|
539
525
|
*/
|
|
540
|
-
secondary: greens.
|
|
526
|
+
secondary: greens.green400,
|
|
541
527
|
/**
|
|
542
528
|
* A secondary brand color for alternative styling
|
|
543
529
|
*/
|
|
544
|
-
secondaryDark: greens.
|
|
530
|
+
secondaryDark: greens.green500,
|
|
545
531
|
/**
|
|
546
532
|
* A secondary brand color for alternative styling
|
|
547
533
|
*/
|
|
548
|
-
secondaryLight: greens.
|
|
534
|
+
secondaryLight: greens.green300,
|
|
549
535
|
/**
|
|
550
536
|
* Background color. A secondary brand color for alternative styling
|
|
551
537
|
*/
|
|
552
|
-
secondaryBG: greens.
|
|
538
|
+
secondaryBG: greens.green75,
|
|
553
539
|
/**
|
|
554
540
|
* Alternative lighter background color to secondaryBG.
|
|
555
541
|
*/
|
|
556
|
-
secondaryBGLight: greens.
|
|
542
|
+
secondaryBGLight: greens.green50,
|
|
557
543
|
/**
|
|
558
544
|
* A contrast color for emphasizing UI
|
|
559
545
|
*/
|
|
560
|
-
accent: oranges.
|
|
546
|
+
accent: oranges.orange300,
|
|
561
547
|
/**
|
|
562
548
|
* A contrast color for emphasizing UI
|
|
563
549
|
*/
|
|
564
|
-
accentDark: oranges.
|
|
550
|
+
accentDark: oranges.orange400,
|
|
565
551
|
/**
|
|
566
552
|
* A contrast color for emphasizing UI
|
|
567
553
|
*/
|
|
568
|
-
accentLight: oranges.
|
|
554
|
+
accentLight: oranges.orange200,
|
|
569
555
|
/**
|
|
570
556
|
* Background color. A contrast color for emphasizing UI
|
|
571
557
|
*/
|
|
572
|
-
accentBG: oranges.
|
|
558
|
+
accentBG: oranges.orange75,
|
|
573
559
|
/**
|
|
574
560
|
* Alternative lighter background color to accentBG.
|
|
575
561
|
*/
|
|
576
|
-
accentBGLight: oranges.
|
|
562
|
+
accentBGLight: oranges.orange50,
|
|
577
563
|
/**
|
|
578
564
|
* Subtle information or details historic in nature. Often already actioned & in the past. No priority required due to the lack of importance or change.
|
|
579
565
|
*/
|
|
580
|
-
neutral:
|
|
566
|
+
neutral: grays.gray200,
|
|
581
567
|
/**
|
|
582
568
|
* Subtle information or details historic in nature. Often already actioned & in the past. No priority required due to the lack of importance or change.
|
|
583
569
|
*/
|
|
584
|
-
neutralDark:
|
|
570
|
+
neutralDark: grays.gray400,
|
|
585
571
|
/**
|
|
586
572
|
* Subtle information or details historic in nature. Often already actioned & in the past. No priority required due to the lack of importance or change.
|
|
587
573
|
*/
|
|
588
|
-
neutralLight:
|
|
574
|
+
neutralLight: grays.gray75,
|
|
589
575
|
/**
|
|
590
576
|
* Background color. Subtle information or details historic in nature. Often already actioned & in the past. No priority required due to the lack of importance or change.
|
|
591
577
|
*/
|
|
592
|
-
neutralBG:
|
|
578
|
+
neutralBG: grays.gray50,
|
|
593
579
|
/**
|
|
594
580
|
* Alternative lighter background color to neutralBG.
|
|
595
581
|
*/
|
|
596
|
-
neutralBGLight:
|
|
582
|
+
neutralBGLight: grays.gray50,
|
|
597
583
|
/**
|
|
598
584
|
* Super important, high urgency, high risk, errors...
|
|
599
585
|
*/
|
|
600
|
-
critical: reds.
|
|
586
|
+
critical: reds.red500,
|
|
601
587
|
/**
|
|
602
588
|
* Super important, high urgency, high risk, errors...
|
|
603
589
|
*/
|
|
604
|
-
criticalDark: reds.
|
|
590
|
+
criticalDark: reds.red400,
|
|
605
591
|
/**
|
|
606
592
|
* Super important, high urgency, high risk, errors...
|
|
607
593
|
*/
|
|
608
|
-
criticalLight: reds.
|
|
594
|
+
criticalLight: reds.red600,
|
|
609
595
|
/**
|
|
610
596
|
* Background color. Super important, high urgency, high risk, errors...
|
|
611
597
|
*/
|
|
612
|
-
criticalBG: reds.
|
|
598
|
+
criticalBG: reds.red75,
|
|
613
599
|
/**
|
|
614
600
|
* Alternative lighter background color to criticalBG.
|
|
615
601
|
*/
|
|
616
|
-
criticalBGLight: reds.
|
|
602
|
+
criticalBGLight: reds.red50,
|
|
617
603
|
/**
|
|
618
604
|
* Guidance & advice. Generally from the UI or business. Functional, calm and non urgent.
|
|
619
605
|
*/
|
|
620
|
-
info: blues.
|
|
606
|
+
info: blues.blue400,
|
|
621
607
|
/**
|
|
622
608
|
* Guidance & advice. Generally from the UI or business. Functional, calm and non urgent.
|
|
623
609
|
*/
|
|
624
|
-
infoDark: blues.
|
|
610
|
+
infoDark: blues.blue500,
|
|
625
611
|
/**
|
|
626
612
|
* Guidance & advice. Generally from the UI or business. Functional, calm and non urgent.
|
|
627
613
|
*/
|
|
628
|
-
infoLight: blues.
|
|
614
|
+
infoLight: blues.blue300,
|
|
629
615
|
/**
|
|
630
616
|
* Background color. Guidance & advice. Generally from the UI or business. Functional, calm and non urgent.
|
|
631
617
|
*/
|
|
632
|
-
infoBG: blues.
|
|
618
|
+
infoBG: blues.blue75,
|
|
633
619
|
/**
|
|
634
620
|
* Alternative lighter background to infoBG.
|
|
635
621
|
*/
|
|
636
|
-
infoBGLight: blues.
|
|
622
|
+
infoBGLight: blues.blue50,
|
|
637
623
|
/**
|
|
638
624
|
* Good vibes & new things! Wants to get the user to act on something or be aware something good happened.
|
|
639
625
|
*/
|
|
640
|
-
positive: greens.
|
|
626
|
+
positive: greens.green400,
|
|
641
627
|
/**
|
|
642
628
|
* Good vibes & new things! Wants to get the user to act on something or be aware something good happened.
|
|
643
629
|
*/
|
|
644
|
-
positiveDark: greens.
|
|
630
|
+
positiveDark: greens.green500,
|
|
645
631
|
/**
|
|
646
632
|
* Good vibes & new things! Wants to get the user to act on something or be aware something good happened.
|
|
647
633
|
*/
|
|
648
|
-
positiveLight: greens.
|
|
634
|
+
positiveLight: greens.green300,
|
|
649
635
|
/**
|
|
650
636
|
* Background color. Good vibes & new things! Wants to get the user to act on something or be aware something good happened.
|
|
651
637
|
*/
|
|
652
|
-
positiveBG: greens.
|
|
638
|
+
positiveBG: greens.green75,
|
|
653
639
|
/**
|
|
654
640
|
* Alternative lighter background color to positiveBG.
|
|
655
641
|
*/
|
|
656
|
-
positiveBGLight: greens.
|
|
642
|
+
positiveBGLight: greens.green50,
|
|
657
643
|
/**
|
|
658
644
|
* You should be aware something is happening or mid-way through a process. Could be a risk or an item that needs to be acted upon.
|
|
659
645
|
*/
|
|
660
|
-
caution: yellows.
|
|
646
|
+
caution: yellows.yellow200,
|
|
661
647
|
/**
|
|
662
648
|
* You should be aware something is happening or mid-way through a process. Could be a risk or an item that needs to be acted upon.
|
|
663
649
|
*/
|
|
664
|
-
cautionDark: yellows.
|
|
650
|
+
cautionDark: yellows.yellow300,
|
|
665
651
|
/**
|
|
666
652
|
* You should be aware something is happening or mid-way through a process. Could be a risk or an item that needs to be acted upon.
|
|
667
653
|
*/
|
|
668
|
-
cautionLight: yellows.
|
|
654
|
+
cautionLight: yellows.yellow100,
|
|
669
655
|
/**
|
|
670
656
|
* Background color. You should be aware something is happening or mid-way through a process. Could be a risk or an item that needs to be acted upon.
|
|
671
657
|
*/
|
|
672
|
-
cautionBG: yellows.
|
|
658
|
+
cautionBG: yellows.yellow75,
|
|
673
659
|
/**
|
|
674
660
|
* Alternative lighter background color to cautionBG.
|
|
675
661
|
*/
|
|
676
|
-
cautionBGLight: yellows.
|
|
662
|
+
cautionBGLight: yellows.yellow50,
|
|
663
|
+
/**
|
|
664
|
+
* Negative
|
|
665
|
+
*/
|
|
666
|
+
negative: reds.red500,
|
|
667
|
+
/**
|
|
668
|
+
* Notice
|
|
669
|
+
*/
|
|
670
|
+
notice: yellows.red200,
|
|
671
|
+
};
|
|
672
|
+
|
|
673
|
+
export const alias = {
|
|
674
|
+
/**
|
|
675
|
+
* Brand color for decorations: banner, illustrations, tag...
|
|
676
|
+
*/
|
|
677
|
+
backgroundBrand: oranges.orange300,
|
|
678
|
+
/**
|
|
679
|
+
* Highlight background for decorations; Highlighted announcer
|
|
680
|
+
*/
|
|
681
|
+
backgroundBrandLight: oranges.orange50,
|
|
682
|
+
|
|
683
|
+
/**
|
|
684
|
+
* Info Snackbar
|
|
685
|
+
*/
|
|
686
|
+
backgroundInfo: blues.blue500,
|
|
687
|
+
/**
|
|
688
|
+
* Info Announcer
|
|
689
|
+
*/
|
|
690
|
+
backgroundInfoLight: blues.blue50,
|
|
691
|
+
/**
|
|
692
|
+
* Success Snackbar
|
|
693
|
+
*/
|
|
694
|
+
backgroundSuccess: greens.green400,
|
|
695
|
+
/**
|
|
696
|
+
* Success / Payment Announcer
|
|
697
|
+
*/
|
|
698
|
+
backgroundSuccessLight: greens.green50,
|
|
699
|
+
/**
|
|
700
|
+
* Critical error Snackbar
|
|
701
|
+
*/
|
|
702
|
+
backgroundError: reds.red500,
|
|
703
|
+
/**
|
|
704
|
+
* Critical error Announcer
|
|
705
|
+
*/
|
|
706
|
+
backgroundErrorLight: reds.red50,
|
|
707
|
+
/**
|
|
708
|
+
* Warning Snackbar
|
|
709
|
+
*/
|
|
710
|
+
backgroundWarning: oranges.orange300,
|
|
711
|
+
/**
|
|
712
|
+
* Warning Announcer
|
|
713
|
+
*/
|
|
714
|
+
backgroundWarningLight: oranges.orange50,
|
|
715
|
+
/**
|
|
716
|
+
* Appwrapper header, customized for verticals
|
|
717
|
+
*/
|
|
718
|
+
backgroundAppwrapper: yellows.yellow200,
|
|
719
|
+
/**
|
|
720
|
+
* Layer 1 (background) or layer 2 (container)
|
|
721
|
+
*/
|
|
722
|
+
backgroundPrimary: legacyGrays.white,
|
|
723
|
+
/**
|
|
724
|
+
* Background for default snackbar
|
|
725
|
+
*/
|
|
726
|
+
backgroundInverted: grays.gray900,
|
|
727
|
+
/**
|
|
728
|
+
* Layer 1 (background) or layer 2 (container). Often used for neutral announcer
|
|
729
|
+
*/
|
|
730
|
+
backgroundSecondary: grays.gray50,
|
|
731
|
+
/**
|
|
732
|
+
* Overlay layer: 50% black for popup/drawer
|
|
733
|
+
*/
|
|
734
|
+
backgroundOverlay: grays.gray900 + '80',
|
|
735
|
+
/**
|
|
736
|
+
* Layer 3 over secondary background
|
|
737
|
+
*/
|
|
738
|
+
backgroundTertiary: grays.gray75,
|
|
739
|
+
|
|
740
|
+
/**
|
|
741
|
+
* Chotot's original Yellow, used for banner or illustrations
|
|
742
|
+
*/
|
|
743
|
+
backgroundChotot: yellows.yellow200,
|
|
744
|
+
|
|
745
|
+
/**
|
|
746
|
+
* Brand text color
|
|
747
|
+
*/
|
|
748
|
+
textBrand: oranges.orange300,
|
|
749
|
+
/**
|
|
750
|
+
* Primary body copy; Headers, text button
|
|
751
|
+
*/
|
|
752
|
+
textPrimary: grays.gray900,
|
|
753
|
+
/**
|
|
754
|
+
* Secondary copy / Help text, often used in conjunction with bold text-primary
|
|
755
|
+
*/
|
|
756
|
+
textSecondary: grays.gray600,
|
|
757
|
+
/**
|
|
758
|
+
* Tertiary copy; Help text
|
|
759
|
+
*/
|
|
760
|
+
textTertiary: grays.gray400,
|
|
761
|
+
/**
|
|
762
|
+
* Link button color
|
|
763
|
+
*/
|
|
764
|
+
textLink: blues.blue500,
|
|
765
|
+
/**
|
|
766
|
+
* Information messages. Used for small text with no interaction
|
|
767
|
+
*/
|
|
768
|
+
textInfo: blues.blue500,
|
|
769
|
+
/**
|
|
770
|
+
* Success message. Used for small text with no interaction
|
|
771
|
+
*/
|
|
772
|
+
textSuccess: greens.green400,
|
|
773
|
+
/**
|
|
774
|
+
* Error message
|
|
775
|
+
*/
|
|
776
|
+
textError: reds.red500,
|
|
777
|
+
/**
|
|
778
|
+
* Text color for critical messages. Used for small text with no interaction
|
|
779
|
+
*/
|
|
780
|
+
textWarning: oranges.orange400,
|
|
781
|
+
/**
|
|
782
|
+
* Disabled text color
|
|
783
|
+
*/
|
|
784
|
+
textDisabled: grays.gray200,
|
|
785
|
+
/**
|
|
786
|
+
* Text on color background
|
|
787
|
+
*/
|
|
788
|
+
textBlank: legacyGrays.white,
|
|
789
|
+
/**
|
|
790
|
+
* Primary button solid background color
|
|
791
|
+
*/
|
|
792
|
+
buttonPrimary: oranges.orange300,
|
|
793
|
+
/**
|
|
794
|
+
* Primary info button background color
|
|
795
|
+
*/
|
|
796
|
+
buttonInfo: blues.blue500,
|
|
797
|
+
/**
|
|
798
|
+
* Primary success button background color
|
|
799
|
+
*/
|
|
800
|
+
buttonSuccess: greens.green400,
|
|
801
|
+
/**
|
|
802
|
+
* Primary danger button background color
|
|
803
|
+
*/
|
|
804
|
+
buttonError: reds.red500,
|
|
805
|
+
/**
|
|
806
|
+
* Chotot brand button background color
|
|
807
|
+
*/
|
|
808
|
+
buttonChotot: yellows.yellow100,
|
|
809
|
+
/**
|
|
810
|
+
* Tertiary button border and text color
|
|
811
|
+
*/
|
|
812
|
+
buttonBlank: legacyGrays.white,
|
|
813
|
+
/**
|
|
814
|
+
* Disabled state color for all buttons
|
|
815
|
+
*/
|
|
816
|
+
buttonDisabled: grays.gray200,
|
|
817
|
+
/**
|
|
818
|
+
* Primary button solid background color
|
|
819
|
+
*/
|
|
820
|
+
buttonAppwrapper: oranges.orange300,
|
|
821
|
+
/**
|
|
822
|
+
* Secondary button tonal background color
|
|
823
|
+
*/
|
|
824
|
+
buttonSecondary: oranges.orange50,
|
|
825
|
+
/**
|
|
826
|
+
* Secondary info button background color
|
|
827
|
+
*/
|
|
828
|
+
buttonTonalInfo: blues.blue50,
|
|
829
|
+
/**
|
|
830
|
+
* Secondary success button border and text color
|
|
831
|
+
*/
|
|
832
|
+
buttonTonalSuccess: greens.green50,
|
|
833
|
+
/**
|
|
834
|
+
* Secondary danger button background color
|
|
835
|
+
*/
|
|
836
|
+
buttonTonalError: reds.red50,
|
|
837
|
+
/**
|
|
838
|
+
* Secondary neutral button background color
|
|
839
|
+
*/
|
|
840
|
+
buttonTonalNeutral: grays.gray50,
|
|
841
|
+
/**
|
|
842
|
+
* Used for divider or card stroke
|
|
843
|
+
*/
|
|
844
|
+
borderThin: grays.gray75,
|
|
845
|
+
/**
|
|
846
|
+
* Border for inputs and buttons
|
|
847
|
+
*/
|
|
848
|
+
borderRegular: grays.gray200,
|
|
849
|
+
/**
|
|
850
|
+
* Hover border
|
|
851
|
+
*/
|
|
852
|
+
borderBold: grays.gray400,
|
|
853
|
+
/**
|
|
854
|
+
* Focus or selected state of inputs
|
|
855
|
+
*/
|
|
856
|
+
borderActive: oranges.orange300,
|
|
857
|
+
/**
|
|
858
|
+
* White border for badge / labels
|
|
859
|
+
*/
|
|
860
|
+
borderBlank: legacyGrays.white,
|
|
861
|
+
/**
|
|
862
|
+
* Border customized by verticals
|
|
863
|
+
*/
|
|
864
|
+
borderBrand: oranges.orange300,
|
|
865
|
+
/**
|
|
866
|
+
* Info state color for borders text
|
|
867
|
+
*/
|
|
868
|
+
borderInfo: blues.blue500,
|
|
869
|
+
/**
|
|
870
|
+
* Success state color for borders text
|
|
871
|
+
*/
|
|
872
|
+
borderSuccess: greens.green400,
|
|
873
|
+
/**
|
|
874
|
+
* Error state color for borders text
|
|
875
|
+
*/
|
|
876
|
+
borderError: reds.red500,
|
|
877
|
+
/**
|
|
878
|
+
* Disabled state color for borders
|
|
879
|
+
*/
|
|
880
|
+
borderDisabled: grays.gray200,
|
|
881
|
+
/**
|
|
882
|
+
* Backup color, currently not in used
|
|
883
|
+
*/
|
|
884
|
+
borderBlack: grays.gray900,
|
|
885
|
+
/**
|
|
886
|
+
* Brand color for icons
|
|
887
|
+
*/
|
|
888
|
+
iconBrand: oranges.orange300,
|
|
889
|
+
/**
|
|
890
|
+
* Primary icons, often used with primary text
|
|
891
|
+
*/
|
|
892
|
+
iconPrimary: grays.gray900,
|
|
893
|
+
/**
|
|
894
|
+
* Secondary icons, often used with secondary text
|
|
895
|
+
*/
|
|
896
|
+
iconSecondary: grays.gray600,
|
|
897
|
+
/**
|
|
898
|
+
* Tertiary icons, often used with tertiary text
|
|
899
|
+
*/
|
|
900
|
+
iconTertiary: grays.gray400,
|
|
901
|
+
/**
|
|
902
|
+
* Icons on interactive colors
|
|
903
|
+
*/
|
|
904
|
+
iconBlank: legacyGrays.white,
|
|
905
|
+
/**
|
|
906
|
+
* Icons on interactive colors
|
|
907
|
+
*/
|
|
908
|
+
iconInfo: blues.blue500,
|
|
909
|
+
/**
|
|
910
|
+
* Icons on interactive colors
|
|
911
|
+
*/
|
|
912
|
+
iconSuccess: greens.green400,
|
|
913
|
+
|
|
914
|
+
/**
|
|
915
|
+
* Icons on interactive colors
|
|
916
|
+
*/
|
|
917
|
+
iconError: reds.red500,
|
|
918
|
+
/**
|
|
919
|
+
* Icons for warning case
|
|
920
|
+
*/
|
|
921
|
+
iconWarning: oranges.orange300,
|
|
922
|
+
/**
|
|
923
|
+
* Icons on interactive colors
|
|
924
|
+
*/
|
|
925
|
+
iconChotot: yellows.yellow200,
|
|
926
|
+
/**
|
|
927
|
+
* Disabled state for icons
|
|
928
|
+
*/
|
|
929
|
+
iconDisabled: grays.gray200,
|
|
930
|
+
|
|
931
|
+
/**
|
|
932
|
+
* Hover color for “button-secondary”
|
|
933
|
+
*/
|
|
934
|
+
interactionBrandHover: oranges.orange200,
|
|
935
|
+
/**
|
|
936
|
+
* Active color for “button-button-secondary”
|
|
937
|
+
*/
|
|
938
|
+
interactionBrandPressed: oranges.orange400,
|
|
939
|
+
/**
|
|
940
|
+
* Active color for “button-button-secondary”
|
|
941
|
+
*/
|
|
942
|
+
interactionBrandLightHover: oranges.orange75,
|
|
943
|
+
/**
|
|
944
|
+
* Active color for “button-button-secondary”
|
|
945
|
+
*/
|
|
946
|
+
interactionBrandLightPressed: oranges.orange100,
|
|
947
|
+
/**
|
|
948
|
+
* Information
|
|
949
|
+
*/
|
|
950
|
+
interactionInfoHover: blues.blue400,
|
|
951
|
+
/**
|
|
952
|
+
* Information
|
|
953
|
+
*/
|
|
954
|
+
interactionInfoPressed: blues.blue600,
|
|
955
|
+
/**
|
|
956
|
+
* Subtle background color for “support-info”
|
|
957
|
+
*/
|
|
958
|
+
interactionInfoLightHover: blues.blue75,
|
|
959
|
+
/**
|
|
960
|
+
* Subtle background color for “support-info”
|
|
961
|
+
*/
|
|
962
|
+
interactionInfoLightPressed: blues.blue100,
|
|
963
|
+
/**
|
|
964
|
+
* Success
|
|
965
|
+
*/
|
|
966
|
+
interactionSuccessHover: greens.green300,
|
|
967
|
+
/**
|
|
968
|
+
* Success
|
|
969
|
+
*/
|
|
970
|
+
interactionSuccessPressed: greens.green500,
|
|
971
|
+
/**
|
|
972
|
+
* Success
|
|
973
|
+
*/
|
|
974
|
+
interactionSuccessLightHover: greens.green75,
|
|
975
|
+
/**
|
|
976
|
+
* Success
|
|
977
|
+
*/
|
|
978
|
+
interactionSuccessLightPressed: greens.green100,
|
|
979
|
+
/**
|
|
980
|
+
* Error
|
|
981
|
+
*/
|
|
982
|
+
interactionErrorHover: reds.red400,
|
|
983
|
+
/**
|
|
984
|
+
* Error
|
|
985
|
+
*/
|
|
986
|
+
interactionErrorPressed: reds.red600,
|
|
987
|
+
/**
|
|
988
|
+
* Subtle background color for “support-error”
|
|
989
|
+
*/
|
|
990
|
+
interactionErrorLightHover: reds.red75,
|
|
991
|
+
/**
|
|
992
|
+
* Subtle background color for “support-error”
|
|
993
|
+
*/
|
|
994
|
+
interactionErrorLightPressed: reds.red100,
|
|
995
|
+
/**
|
|
996
|
+
* Hover color for “button-tertiary”
|
|
997
|
+
*/
|
|
998
|
+
interactionNeutralHover: grays.gray600,
|
|
999
|
+
/**
|
|
1000
|
+
* Pressed color for “button-tertiary”
|
|
1001
|
+
*/
|
|
1002
|
+
interactionNeutralPressed: grays.gray700,
|
|
1003
|
+
/**
|
|
1004
|
+
* Hover color for “button-tertiary”
|
|
1005
|
+
*/
|
|
1006
|
+
interactionNeutralLightHover: grays.gray75,
|
|
1007
|
+
/**
|
|
1008
|
+
* Active color for “button-tertiary”
|
|
1009
|
+
*/
|
|
1010
|
+
interactionNeutralLightPressed: grays.gray100,
|
|
1011
|
+
/**
|
|
1012
|
+
* For more flexibility in design
|
|
1013
|
+
*/
|
|
1014
|
+
interactionChototHover: yellows.yellow75,
|
|
1015
|
+
/**
|
|
1016
|
+
* For more flexibility in design
|
|
1017
|
+
*/
|
|
1018
|
+
interactionChototPressed: yellows.yellow200,
|
|
1019
|
+
/**
|
|
1020
|
+
* Hover color for elements on white background
|
|
1021
|
+
*/
|
|
1022
|
+
interactionPrimaryHover: grays.gray50,
|
|
677
1023
|
};
|
|
678
1024
|
|
|
679
1025
|
/**
|
|
@@ -682,32 +1028,38 @@ const semantics = {
|
|
|
682
1028
|
* color, background-color, border-color
|
|
683
1029
|
*/
|
|
684
1030
|
const colors = {
|
|
685
|
-
...
|
|
686
|
-
...
|
|
1031
|
+
...legacyGrays,
|
|
1032
|
+
...legacyReds,
|
|
1033
|
+
...legacyOranges,
|
|
1034
|
+
...legacyYellows,
|
|
1035
|
+
...legacyGreens,
|
|
1036
|
+
...legacyBlues,
|
|
1037
|
+
...blues,
|
|
687
1038
|
...oranges,
|
|
688
|
-
...yellows,
|
|
689
1039
|
...greens,
|
|
690
|
-
...
|
|
691
|
-
...
|
|
1040
|
+
...reds,
|
|
1041
|
+
...grays,
|
|
1042
|
+
...yellows,
|
|
692
1043
|
...semantics,
|
|
1044
|
+
...alias,
|
|
693
1045
|
};
|
|
694
1046
|
|
|
695
1047
|
/**
|
|
696
|
-
* @type {
|
|
697
|
-
'0px',
|
|
698
|
-
'1px',
|
|
699
|
-
'2px',
|
|
700
|
-
'3px',
|
|
701
|
-
'4px',
|
|
702
|
-
|
|
1048
|
+
* @type {{
|
|
1049
|
+
'0': '0px',
|
|
1050
|
+
'1': '1px',
|
|
1051
|
+
'2': '2px',
|
|
1052
|
+
'3': '3px',
|
|
1053
|
+
'4': '4px',
|
|
1054
|
+
}}
|
|
703
1055
|
*/
|
|
704
|
-
const bw =
|
|
705
|
-
'0px',
|
|
706
|
-
'1px',
|
|
707
|
-
'2px',
|
|
708
|
-
'3px',
|
|
709
|
-
'4px',
|
|
710
|
-
|
|
1056
|
+
const bw = {
|
|
1057
|
+
0: '0px',
|
|
1058
|
+
1: '1px',
|
|
1059
|
+
2: '2px',
|
|
1060
|
+
3: '3px',
|
|
1061
|
+
4: '4px',
|
|
1062
|
+
};
|
|
711
1063
|
|
|
712
1064
|
/**
|
|
713
1065
|
* theme.borderWidths
|
|
@@ -749,16 +1101,18 @@ const borders = {
|
|
|
749
1101
|
'2px',
|
|
750
1102
|
'4px',
|
|
751
1103
|
'8px',
|
|
752
|
-
'
|
|
1104
|
+
'12px',
|
|
753
1105
|
'20px',
|
|
754
1106
|
]}
|
|
755
1107
|
*/
|
|
1108
|
+
// Radius Scale update step from 14px to 12px
|
|
1109
|
+
// Since Design System Update (16/5/2022)
|
|
756
1110
|
const radiusScales = [
|
|
757
1111
|
'0', // 0
|
|
758
1112
|
'2px', // 1
|
|
759
1113
|
'4px', // 2
|
|
760
1114
|
'8px', // 3
|
|
761
|
-
'
|
|
1115
|
+
'12px', // 4
|
|
762
1116
|
'20px', // 5
|
|
763
1117
|
];
|
|
764
1118
|
/**
|
|
@@ -883,6 +1237,7 @@ const gradients = {
|
|
|
883
1237
|
* @beta This key is NOT standard styled-system's theme specs (hence not applicable for `sx()`).
|
|
884
1238
|
*
|
|
885
1239
|
* @type {{
|
|
1240
|
+
none: 0,
|
|
886
1241
|
xxxs: 100,
|
|
887
1242
|
xxs: 150,
|
|
888
1243
|
xs: 300,
|
|
@@ -896,6 +1251,7 @@ const gradients = {
|
|
|
896
1251
|
}}
|
|
897
1252
|
*/
|
|
898
1253
|
const durations = {
|
|
1254
|
+
none: 0,
|
|
899
1255
|
xxxs: 100,
|
|
900
1256
|
xxs: 150,
|
|
901
1257
|
xs: 300,
|