@aws-amplify/ui 5.8.0 → 6.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/helpers/accountSettings/utils.mjs +33 -1
- package/dist/esm/helpers/accountSettings/validator.mjs +120 -1
- package/dist/esm/helpers/authenticator/actor.mjs +20 -1
- package/dist/esm/helpers/authenticator/constants.mjs +144 -1
- package/dist/esm/helpers/authenticator/defaultAuthHubHandler.mjs +52 -0
- package/dist/esm/helpers/authenticator/facade.mjs +137 -1
- package/dist/esm/helpers/authenticator/form.mjs +43 -1
- package/dist/esm/helpers/authenticator/formFields/defaults.mjs +132 -1
- package/dist/esm/helpers/authenticator/formFields/formFields.mjs +62 -1
- package/dist/esm/helpers/authenticator/formFields/utils.mjs +35 -0
- package/dist/esm/helpers/authenticator/getRoute.mjs +47 -0
- package/dist/esm/helpers/authenticator/textUtil.mjs +112 -1
- package/dist/esm/helpers/authenticator/utils.mjs +38 -1
- package/dist/esm/helpers/utils.mjs +5 -1
- package/dist/esm/i18n/country-dial-codes.mjs +210 -1
- package/dist/esm/i18n/dictionaries/authenticator/de.mjs +87 -1
- package/dist/esm/i18n/dictionaries/authenticator/defaultTexts.mjs +83 -1
- package/dist/esm/i18n/dictionaries/authenticator/en.mjs +74 -1
- package/dist/esm/i18n/dictionaries/authenticator/es.mjs +83 -1
- package/dist/esm/i18n/dictionaries/authenticator/fr.mjs +92 -1
- package/dist/esm/i18n/dictionaries/authenticator/he.mjs +54 -1
- package/dist/esm/i18n/dictionaries/authenticator/id.mjs +96 -1
- package/dist/esm/i18n/dictionaries/authenticator/it.mjs +82 -1
- package/dist/esm/i18n/dictionaries/authenticator/ja.mjs +86 -1
- package/dist/esm/i18n/dictionaries/authenticator/kr.mjs +71 -1
- package/dist/esm/i18n/dictionaries/authenticator/nb.mjs +95 -1
- package/dist/esm/i18n/dictionaries/authenticator/nl.mjs +67 -1
- package/dist/esm/i18n/dictionaries/authenticator/pl.mjs +71 -1
- package/dist/esm/i18n/dictionaries/authenticator/pt.mjs +61 -1
- package/dist/esm/i18n/dictionaries/authenticator/ru.mjs +61 -1
- package/dist/esm/i18n/dictionaries/authenticator/sv.mjs +82 -1
- package/dist/esm/i18n/dictionaries/authenticator/tr.mjs +76 -1
- package/dist/esm/i18n/dictionaries/authenticator/ua.mjs +84 -1
- package/dist/esm/i18n/dictionaries/authenticator/zh.mjs +74 -1
- package/dist/esm/i18n/dictionaries/index.mjs +47 -1
- package/dist/esm/i18n/translations.mjs +67 -1
- package/dist/esm/index.mjs +28 -1
- package/dist/esm/machines/authenticator/actions.mjs +188 -1
- package/dist/esm/machines/authenticator/actors/forgotPassword.mjs +184 -0
- package/dist/esm/machines/authenticator/actors/signIn.mjs +328 -1
- package/dist/esm/machines/authenticator/actors/signOut.mjs +28 -1
- package/dist/esm/machines/authenticator/actors/signUp.mjs +295 -0
- package/dist/esm/machines/authenticator/actors/verifyUserAttributes.mjs +106 -0
- package/dist/esm/machines/authenticator/defaultServices.mjs +102 -1
- package/dist/esm/machines/authenticator/guards.mjs +70 -0
- package/dist/esm/machines/authenticator/index.mjs +368 -1
- package/dist/esm/machines/authenticator/utils.mjs +71 -0
- package/dist/esm/theme/breakpoints.mjs +14 -1
- package/dist/esm/theme/createTheme.mjs +156 -1
- package/dist/esm/theme/defaultDarkModeOverride.mjs +128 -1
- package/dist/esm/theme/defaultTheme.mjs +10 -1
- package/dist/esm/theme/tokens/borderWidths.mjs +7 -1
- package/dist/esm/theme/tokens/colors.mjs +166 -1
- package/dist/esm/theme/tokens/components/accordion.mjs +47 -0
- package/dist/esm/theme/tokens/components/alert.mjs +35 -1
- package/dist/esm/theme/tokens/components/authenticator.mjs +39 -1
- package/dist/esm/theme/tokens/components/autocomplete.mjs +42 -1
- package/dist/esm/theme/tokens/components/badge.mjs +44 -1
- package/dist/esm/theme/tokens/components/breadcrumbs.mjs +34 -1
- package/dist/esm/theme/tokens/components/button.mjs +685 -1
- package/dist/esm/theme/tokens/components/card.mjs +27 -1
- package/dist/esm/theme/tokens/components/checkbox.mjs +87 -1
- package/dist/esm/theme/tokens/components/checkboxField.mjs +8 -1
- package/dist/esm/theme/tokens/components/collection.mjs +72 -1
- package/dist/esm/theme/tokens/components/copy.mjs +18 -1
- package/dist/esm/theme/tokens/components/dialCodeSelect.mjs +7 -1
- package/dist/esm/theme/tokens/components/divider.mjs +22 -1
- package/dist/esm/theme/tokens/components/dropZone.mjs +46 -1
- package/dist/esm/theme/tokens/components/field.mjs +20 -1
- package/dist/esm/theme/tokens/components/fieldControl.mjs +131 -1
- package/dist/esm/theme/tokens/components/fieldGroup.mjs +11 -1
- package/dist/esm/theme/tokens/components/fieldMessages.mjs +13 -1
- package/dist/esm/theme/tokens/components/fieldset.mjs +40 -1
- package/dist/esm/theme/tokens/components/flex.mjs +9 -1
- package/dist/esm/theme/tokens/components/heading.mjs +30 -1
- package/dist/esm/theme/tokens/components/highlightMatch.mjs +7 -1
- package/dist/esm/theme/tokens/components/icon.mjs +6 -1
- package/dist/esm/theme/tokens/components/image.mjs +8 -1
- package/dist/esm/theme/tokens/components/inAppMessaging.mjs +23 -1
- package/dist/esm/theme/tokens/components/index.mjs +111 -1
- package/dist/esm/theme/tokens/components/input.mjs +12 -1
- package/dist/esm/theme/tokens/components/link.mjs +9 -1
- package/dist/esm/theme/tokens/components/liveness.mjs +7 -1
- package/dist/esm/theme/tokens/components/loader.mjs +42 -1
- package/dist/esm/theme/tokens/components/menu.mjs +27 -1
- package/dist/esm/theme/tokens/components/message.mjs +102 -1
- package/dist/esm/theme/tokens/components/pagination.mjs +40 -1
- package/dist/esm/theme/tokens/components/passwordField.mjs +38 -1
- package/dist/esm/theme/tokens/components/phoneNumberField.mjs +10 -1
- package/dist/esm/theme/tokens/components/placeholder.mjs +18 -1
- package/dist/esm/theme/tokens/components/radio.mjs +67 -1
- package/dist/esm/theme/tokens/components/radioGroup.mjs +19 -1
- package/dist/esm/theme/tokens/components/rating.mjs +9 -1
- package/dist/esm/theme/tokens/components/searchField.mjs +39 -1
- package/dist/esm/theme/tokens/components/select.mjs +63 -1
- package/dist/esm/theme/tokens/components/selectField.mjs +16 -1
- package/dist/esm/theme/tokens/components/sliderField.mjs +70 -1
- package/dist/esm/theme/tokens/components/stepperField.mjs +33 -1
- package/dist/esm/theme/tokens/components/storagemanager.mjs +97 -1
- package/dist/esm/theme/tokens/components/switchField.mjs +61 -1
- package/dist/esm/theme/tokens/components/table.mjs +105 -1
- package/dist/esm/theme/tokens/components/tabs.mjs +59 -1
- package/dist/esm/theme/tokens/components/text.mjs +28 -1
- package/dist/esm/theme/tokens/components/textAreaField.mjs +11 -1
- package/dist/esm/theme/tokens/components/textField.mjs +12 -1
- package/dist/esm/theme/tokens/components/toggleButton.mjs +96 -1
- package/dist/esm/theme/tokens/components/toggleButtonGroup.mjs +7 -1
- package/dist/esm/theme/tokens/fontSizes.mjs +14 -1
- package/dist/esm/theme/tokens/fontWeights.mjs +13 -1
- package/dist/esm/theme/tokens/fonts.mjs +19 -1
- package/dist/esm/theme/tokens/index.mjs +65 -1
- package/dist/esm/theme/tokens/lineHeights.mjs +7 -1
- package/dist/esm/theme/tokens/opacities.mjs +15 -1
- package/dist/esm/theme/tokens/outlineOffsets.mjs +7 -1
- package/dist/esm/theme/tokens/outlineWidths.mjs +7 -1
- package/dist/esm/theme/tokens/radii.mjs +11 -1
- package/dist/esm/theme/tokens/shadows.mjs +28 -1
- package/dist/esm/theme/tokens/space.mjs +29 -1
- package/dist/esm/theme/tokens/time.mjs +7 -1
- package/dist/esm/theme/tokens/transforms.mjs +10 -1
- package/dist/esm/theme/utils.mjs +81 -1
- package/dist/esm/types/authenticator/attributes.mjs +41 -1
- package/dist/esm/types/authenticator/user.mjs +18 -1
- package/dist/esm/types/authenticator/utils.mjs +5 -1
- package/dist/esm/types/primitives/componentClassName.mjs +164 -1
- package/dist/esm/utils/classNames.mjs +39 -0
- package/dist/esm/utils/setUserAgent/constants.mjs +43 -0
- package/dist/esm/utils/setUserAgent/setUserAgent.mjs +65 -0
- package/dist/esm/utils/utils.mjs +227 -0
- package/dist/esm/validators/index.mjs +19 -1
- package/dist/index.js +8396 -1
- package/dist/styles/StorageManager.css +138 -0
- package/dist/styles/StorageManager.layer.css +140 -0
- package/dist/styles/_fieldControl.css +0 -0
- package/dist/styles/_fieldControl.layer.css +3 -0
- package/dist/styles/accordion.css +64 -0
- package/dist/styles/accordion.layer.css +66 -0
- package/dist/styles/alert.css +44 -0
- package/dist/styles/alert.layer.css +46 -0
- package/dist/styles/authenticator.css +72 -0
- package/dist/styles/authenticator.layer.css +74 -0
- package/dist/styles/autocomplete.css +48 -0
- package/dist/styles/autocomplete.layer.css +50 -0
- package/dist/styles/badge.css +35 -0
- package/dist/styles/badge.layer.css +37 -0
- package/dist/styles/base.css +1491 -0
- package/dist/styles/base.layer.css +1493 -0
- package/dist/styles/breadcrumbs.css +40 -0
- package/dist/styles/breadcrumbs.layer.css +42 -0
- package/dist/styles/button.css +1122 -0
- package/dist/styles/button.layer.css +1124 -0
- package/dist/styles/card.css +26 -0
- package/dist/styles/card.layer.css +28 -0
- package/dist/styles/checkbox.css +95 -0
- package/dist/styles/checkbox.layer.css +97 -0
- package/dist/styles/checkboxField.css +6 -0
- package/dist/styles/checkboxField.layer.css +8 -0
- package/dist/styles/collection.css +70 -0
- package/dist/styles/collection.layer.css +72 -0
- package/dist/styles/copy.css +27 -0
- package/dist/styles/copy.layer.css +29 -0
- package/dist/styles/dialCodeSelect.css +3 -0
- package/dist/styles/dialCodeSelect.layer.css +5 -0
- package/dist/styles/divider.css +47 -0
- package/dist/styles/divider.layer.css +49 -0
- package/dist/styles/dropZone.css +45 -0
- package/dist/styles/dropZone.layer.css +47 -0
- package/dist/styles/field.css +17 -0
- package/dist/styles/field.layer.css +19 -0
- package/dist/styles/fieldGroup.css +130 -0
- package/dist/styles/fieldGroup.layer.css +132 -0
- package/dist/styles/fieldMessages.css +10 -0
- package/dist/styles/fieldMessages.layer.css +12 -0
- package/dist/styles/fieldModifiers.css +15 -0
- package/dist/styles/fieldModifiers.layer.css +17 -0
- package/dist/styles/fieldset.css +37 -0
- package/dist/styles/fieldset.layer.css +39 -0
- package/dist/styles/flex.css +8 -0
- package/dist/styles/flex.layer.css +10 -0
- package/dist/styles/grid.css +3 -0
- package/dist/styles/grid.layer.css +5 -0
- package/dist/styles/heading.css +40 -0
- package/dist/styles/heading.layer.css +42 -0
- package/dist/styles/highlightMatch.css +3 -0
- package/dist/styles/highlightMatch.layer.css +5 -0
- package/dist/styles/icon.css +14 -0
- package/dist/styles/icon.layer.css +16 -0
- package/dist/styles/image.css +9 -0
- package/dist/styles/image.layer.css +11 -0
- package/dist/styles/inAppMessaging.css +179 -0
- package/dist/styles/inAppMessaging.layer.css +181 -0
- package/dist/styles/input.css +83 -0
- package/dist/styles/input.layer.css +85 -0
- package/dist/styles/link.css +26 -0
- package/dist/styles/link.layer.css +28 -0
- package/dist/styles/liveness.css +374 -0
- package/dist/styles/liveness.layer.css +376 -0
- package/dist/styles/loader.css +108 -0
- package/dist/styles/loader.layer.css +110 -0
- package/dist/styles/menu.css +54 -0
- package/dist/styles/menu.layer.css +56 -0
- package/dist/styles/message.css +111 -0
- package/dist/styles/message.layer.css +113 -0
- package/dist/styles/pagination.css +41 -0
- package/dist/styles/pagination.layer.css +43 -0
- package/dist/styles/passwordField.css +49 -0
- package/dist/styles/passwordField.layer.css +51 -0
- package/dist/styles/phoneNumberField.css +30 -0
- package/dist/styles/phoneNumberField.layer.css +32 -0
- package/dist/styles/placeholder.css +31 -0
- package/dist/styles/placeholder.layer.css +33 -0
- package/dist/styles/radio.css +82 -0
- package/dist/styles/radio.layer.css +84 -0
- package/dist/styles/radioGroupField.css +25 -0
- package/dist/styles/radioGroupField.layer.css +27 -0
- package/dist/styles/radiogroup.css +5 -0
- package/dist/styles/radiogroup.layer.css +7 -0
- package/dist/styles/rating.css +33 -0
- package/dist/styles/rating.layer.css +35 -0
- package/dist/styles/reset.css +76 -0
- package/dist/styles/reset.layer.css +78 -0
- package/dist/styles/scrollView.css +4 -0
- package/dist/styles/scrollView.layer.css +6 -0
- package/dist/styles/searchField.css +29 -0
- package/dist/styles/searchField.layer.css +31 -0
- package/dist/styles/select.css +128 -0
- package/dist/styles/select.layer.css +130 -0
- package/dist/styles/selectField.css +18 -0
- package/dist/styles/selectField.layer.css +20 -0
- package/dist/styles/sliderField.css +143 -0
- package/dist/styles/sliderField.layer.css +145 -0
- package/dist/styles/stepperField.css +77 -0
- package/dist/styles/stepperField.layer.css +79 -0
- package/dist/styles/switchField.css +76 -0
- package/dist/styles/switchField.layer.css +78 -0
- package/dist/styles/table.css +146 -0
- package/dist/styles/table.layer.css +148 -0
- package/dist/styles/tabs.css +87 -0
- package/dist/styles/tabs.layer.css +89 -0
- package/dist/styles/text.css +40 -0
- package/dist/styles/text.layer.css +42 -0
- package/dist/styles/textArea.css +71 -0
- package/dist/styles/textArea.layer.css +73 -0
- package/dist/styles/textAreaField.css +12 -0
- package/dist/styles/textAreaField.layer.css +14 -0
- package/dist/styles/textField.css +14 -0
- package/dist/styles/textField.layer.css +16 -0
- package/dist/styles/toggleButton.css +280 -0
- package/dist/styles/toggleButton.layer.css +282 -0
- package/dist/styles/toggleButtonGroup.css +31 -0
- package/dist/styles/toggleButtonGroup.layer.css +33 -0
- package/dist/styles/visuallyHidden.css +12 -0
- package/dist/styles/visuallyHidden.layer.css +14 -0
- package/dist/styles.css +423 -869
- package/dist/styles.layer.css +6115 -0
- package/dist/theme.css +103 -157
- package/dist/types/helpers/accountSettings/utils.d.ts +1 -3
- package/dist/types/helpers/authenticator/actor.d.ts +1 -1
- package/dist/types/helpers/authenticator/constants.d.ts +5 -0
- package/dist/types/helpers/authenticator/defaultAuthHubHandler.d.ts +15 -0
- package/dist/types/helpers/authenticator/facade.d.ts +35 -6
- package/dist/types/helpers/authenticator/formFields/defaults.d.ts +3 -1
- package/dist/types/helpers/authenticator/formFields/formFields.d.ts +2 -1
- package/dist/types/helpers/authenticator/formFields/index.d.ts +1 -1
- package/dist/types/helpers/authenticator/formFields/{util.d.ts → utils.d.ts} +2 -0
- package/dist/types/helpers/authenticator/getRoute.d.ts +2 -0
- package/dist/types/helpers/authenticator/index.d.ts +2 -1
- package/dist/types/helpers/authenticator/textUtil.d.ts +8 -7
- package/dist/types/{types/authenticator/stateMachine/authMachine.d.ts → helpers/authenticator/types.d.ts} +5 -5
- package/dist/types/helpers/authenticator/utils.d.ts +0 -25
- package/dist/types/helpers/index.d.ts +0 -1
- package/dist/types/helpers/utils.d.ts +2 -2
- package/dist/types/i18n/translations.d.ts +2 -3
- package/dist/types/machines/authenticator/actions.d.ts +4 -62
- package/dist/types/machines/authenticator/actors/{resetPassword.d.ts → forgotPassword.d.ts} +3 -3
- package/dist/types/machines/authenticator/actors/index.d.ts +3 -1
- package/dist/types/machines/authenticator/actors/signIn.d.ts +3 -3
- package/dist/types/machines/authenticator/actors/signOut.d.ts +2 -2
- package/dist/types/machines/authenticator/{signUp.d.ts → actors/signUp.d.ts} +3 -3
- package/dist/types/machines/authenticator/actors/verifyUserAttributes.d.ts +5 -0
- package/dist/types/machines/authenticator/defaultServices.d.ts +208 -28
- package/dist/types/machines/authenticator/getAuthenticatorConfig.d.ts +14 -0
- package/dist/types/machines/authenticator/guards.d.ts +4 -0
- package/dist/types/machines/authenticator/index.d.ts +4 -2
- package/dist/types/machines/authenticator/types.d.ts +125 -0
- package/dist/types/machines/authenticator/utils.d.ts +7 -0
- package/dist/types/machines/index.d.ts +1 -0
- package/dist/types/theme/tokens/borderWidths.d.ts +2 -2
- package/dist/types/theme/tokens/colors.d.ts +7 -9
- package/dist/types/theme/tokens/components/accordion.d.ts +12 -0
- package/dist/types/theme/tokens/components/index.d.ts +2 -4
- package/dist/types/theme/tokens/components/radioGroup.d.ts +1 -1
- package/dist/types/theme/tokens/components/select.d.ts +6 -2
- package/dist/types/theme/tokens/components/storagemanager.d.ts +18 -3
- package/dist/types/theme/tokens/components/tabs.d.ts +4 -3
- package/dist/types/theme/tokens/fontSizes.d.ts +2 -2
- package/dist/types/theme/tokens/fontWeights.d.ts +2 -2
- package/dist/types/theme/tokens/fonts.d.ts +2 -2
- package/dist/types/theme/tokens/lineHeights.d.ts +2 -2
- package/dist/types/theme/tokens/opacities.d.ts +2 -2
- package/dist/types/theme/tokens/outlineOffsets.d.ts +2 -2
- package/dist/types/theme/tokens/outlineWidths.d.ts +2 -2
- package/dist/types/theme/tokens/radii.d.ts +2 -2
- package/dist/types/theme/tokens/shadows.d.ts +2 -2
- package/dist/types/theme/tokens/space.d.ts +2 -2
- package/dist/types/theme/tokens/time.d.ts +2 -2
- package/dist/types/theme/tokens/types/designToken.d.ts +12 -6
- package/dist/types/theme/types.d.ts +5 -1
- package/dist/types/types/authenticator/attributes.d.ts +10 -4
- package/dist/types/types/authenticator/form.d.ts +7 -6
- package/dist/types/types/authenticator/index.d.ts +0 -1
- package/dist/types/types/authenticator/user.d.ts +3 -29
- package/dist/types/types/authenticator/validator.d.ts +2 -2
- package/dist/types/types/displayText.d.ts +84 -0
- package/dist/types/types/index.d.ts +1 -0
- package/dist/types/types/primitives/componentClassName.d.ts +162 -180
- package/dist/types/types/util.d.ts +0 -5
- package/dist/types/utils/classNames.d.ts +4 -0
- package/dist/types/utils/index.d.ts +3 -135
- package/dist/types/utils/setUserAgent/constants.d.ts +7 -0
- package/dist/types/utils/setUserAgent/index.d.ts +1 -0
- package/dist/types/utils/setUserAgent/setUserAgent.d.ts +19 -0
- package/dist/types/utils/utils.d.ts +147 -0
- package/dist/types/validators/index.d.ts +2 -2
- package/package.json +5 -19
- package/dist/esm/helpers/authenticator/context.mjs +0 -1
- package/dist/esm/helpers/authenticator/formFields/util.mjs +0 -1
- package/dist/esm/helpers/storage/fileUploader/utils/uploader.mjs +0 -1
- package/dist/esm/machines/authenticator/actors/resetPassword.mjs +0 -1
- package/dist/esm/machines/authenticator/signUp.mjs +0 -1
- package/dist/esm/theme/tokens/components/expander.mjs +0 -1
- package/dist/esm/theme/tokens/components/fileUploader.mjs +0 -1
- package/dist/esm/utils/index.mjs +0 -1
- package/dist/types/helpers/authenticator/context.d.ts +0 -13
- package/dist/types/helpers/storage/fileUploader/index.d.ts +0 -1
- package/dist/types/helpers/storage/fileUploader/utils/index.d.ts +0 -1
- package/dist/types/helpers/storage/fileUploader/utils/uploader.d.ts +0 -28
- package/dist/types/helpers/storage/index.d.ts +0 -1
- package/dist/types/theme/tokens/components/expander.d.ts +0 -22
- package/dist/types/theme/tokens/components/fileUploader.d.ts +0 -23
- package/dist/types/types/authenticator/stateMachine/context.d.ts +0 -109
- package/dist/types/types/authenticator/stateMachine/event.d.ts +0 -17
- package/dist/types/types/authenticator/stateMachine/index.d.ts +0 -4
- package/dist/types/types/authenticator/stateMachine/state.d.ts +0 -10
|
@@ -1 +1,685 @@
|
|
|
1
|
-
const o={fontWeight:{value:"{fontWeights.bold.value}"},transitionDuration:{value:"{components.fieldcontrol.transitionDuration.value}"},fontSize:{value:"{components.fieldcontrol.fontSize.value}"},lineHeight:{value:"{components.fieldcontrol.lineHeight.value}"},paddingBlockStart:{value:"{components.fieldcontrol.paddingBlockStart.value}"},paddingBlockEnd:{value:"{components.fieldcontrol.paddingBlockEnd.value}"},paddingInlineStart:{value:"{components.fieldcontrol.paddingInlineStart.value}"},paddingInlineEnd:{value:"{components.fieldcontrol.paddingInlineEnd.value}"},backgroundColor:{value:"transparent"},borderColor:{value:"{components.fieldcontrol.borderColor.value}"},borderWidth:{value:"{components.fieldcontrol.borderWidth.value}"},borderStyle:{value:"{components.fieldcontrol.borderStyle.value}"},borderRadius:{value:"{components.fieldcontrol.borderRadius.value}"},color:{value:"{colors.font.primary.value}"},_hover:{color:{value:"{colors.font.focus.value}"},backgroundColor:{value:"{colors.brand.primary.10.value}"},borderColor:{value:"{colors.brand.primary.60.value}"}},_focus:{color:{value:"{colors.font.focus.value}"},backgroundColor:{value:"{colors.brand.primary.10.value}"},borderColor:{value:"{colors.border.focus.value}"},boxShadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"}},_active:{color:{value:"{colors.font.active.value}"},backgroundColor:{value:"{colors.brand.primary.20.value}"},borderColor:{value:"{colors.brand.primary.100.value}"}},_loading:{color:{value:"{colors.font.disabled.value}"},backgroundColor:{value:"transparent"},borderColor:{value:"{colors.border.tertiary.value}"}},_disabled:{color:{value:"{colors.font.disabled.value}"},backgroundColor:{value:"transparent"},borderColor:{value:"{colors.border.tertiary.value}"}},outlined:{info:{borderColor:{value:"{colors.blue.60.value}"},backgroundColor:{value:"transparent"},color:{value:"{colors.blue.100}"},_hover:{borderColor:{value:"{colors.blue.60.value}"},backgroundColor:{value:"{colors.blue.10.value}"},color:{value:"{colors.blue.100.value}"}},_focus:{borderColor:{value:"{colors.blue.100.value}"},backgroundColor:{value:"{colors.blue.10.value}"},color:{value:"{colors.blue.100.value}"},boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"1px",color:"{colors.blue.100.value}"}}},_active:{borderColor:{value:"{colors.blue.100.value}"},backgroundColor:{value:"{colors.blue.20.value}"},color:{value:"{colors.blue.100.value}"}}},warning:{borderColor:{value:"{colors.orange.60.value}"},backgroundColor:{value:"transparent"},color:{value:"{colors.orange.100}"},_hover:{borderColor:{value:"{colors.orange.60.value}"},backgroundColor:{value:"{colors.orange.10.value}"},color:{value:"{colors.orange.100.value}"}},_focus:{borderColor:{value:"{colors.orange.100.value}"},backgroundColor:{value:"{colors.orange.10.value}"},color:{value:"{colors.orange.100.value}"},boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"1px",color:"{colors.orange.100.value}"}}},_active:{borderColor:{value:"{colors.orange.100.value}"},backgroundColor:{value:"{colors.orange.20.value}"},color:{value:"{colors.orange.100.value}"}}},success:{borderColor:{value:"{colors.green.60.value}"},backgroundColor:{value:"transparent"},color:{value:"{colors.green.100}"},_hover:{borderColor:{value:"{colors.green.60.value}"},backgroundColor:{value:"{colors.green.10.value}"},color:{value:"{colors.green.100.value}"}},_focus:{borderColor:{value:"{colors.green.100.value}"},backgroundColor:{value:"{colors.green.10.value}"},color:{value:"{colors.green.100.value}"},boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"1px",color:"{colors.green.100.value}"}}},_active:{borderColor:{value:"{colors.green.100.value}"},backgroundColor:{value:"{colors.green.20.value}"},color:{value:"{colors.green.100.value}"}}},error:{borderColor:{value:"{colors.red.60.value}"},backgroundColor:{value:"transparent"},color:{value:"{colors.red.100}"},_hover:{borderColor:{value:"{colors.red.60.value}"},backgroundColor:{value:"{colors.red.10.value}"},color:{value:"{colors.red.100.value}"}},_focus:{borderColor:{value:"{colors.red.100.value}"},backgroundColor:{value:"{colors.red.10.value}"},color:{value:"{colors.red.100.value}"},boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"1px",color:"{colors.red.100.value}"}}},_active:{borderColor:{value:"{colors.red.100.value}"},backgroundColor:{value:"{colors.red.20.value}"},color:{value:"{colors.red.100.value}"}}},overlay:{borderColor:{value:"{colors.overlay.60.value}"},backgroundColor:{value:"transparent"},color:{value:"{colors.font.primary.value}"},_hover:{borderColor:{value:"{colors.overlay.60.value}"},backgroundColor:{value:"{colors.overlay.5.value}"},color:{value:"{colors.neutral.90.value}"}},_focus:{borderColor:{value:"{colors.overlay.90.value}"},backgroundColor:{value:"{colors.overlay.5.value}"},color:{value:"{colors.neutral.90.value}"},boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"1px",color:"{colors.overlay.90.value}"}}},_active:{borderColor:{value:"{colors.overlay.90.value}"},backgroundColor:{value:"{colors.overlay.10.value}"},color:{value:"{colors.neutral.100.value}"}}}},primary:{borderColor:{value:"transparent"},borderWidth:{value:"{borderWidths.small.value}"},borderStyle:{value:"solid"},backgroundColor:{value:"{colors.brand.primary.80.value}"},color:{value:"{colors.font.inverse.value}"},_disabled:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.background.disabled.value}"},color:{value:"{colors.font.disabled.value}"}},_loading:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.background.disabled.value}"},color:{value:"{colors.font.disabled.value}"}},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.brand.primary.90.value}"},color:{value:"{colors.font.inverse.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.brand.primary.90.value}"},color:{value:"{colors.font.inverse.value}"},boxShadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.brand.primary.100.value}"},color:{value:"{colors.font.inverse.value}"}},info:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.blue.80}"},color:{value:"{colors.font.inverse.value}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.blue.90.value}"},color:{value:"{colors.font.inverse.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.blue.90.value}"},color:{value:"{colors.font.inverse.value}"},boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"1px",color:"{colors.blue.100.value}"}}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.blue.100.value}"},color:{value:"{colors.font.inverse.value}"}}},warning:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.orange.80}"},color:{value:"{colors.font.inverse.value}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.orange.90.value}"},color:{value:"{colors.font.inverse.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.orange.90.value}"},color:{value:"{colors.font.inverse.value}"},boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"1px",color:"{colors.orange.100.value}"}}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.orange.100.value}"},color:{value:"{colors.font.inverse.value}"}}},error:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.80}"},color:{value:"{colors.font.inverse.value}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.90.value}"},color:{value:"{colors.font.inverse.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.90.value}"},color:{value:"{colors.font.inverse.value}"},boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"1px",color:"{colors.red.100.value}"}}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.100.value}"},color:{value:"{colors.font.inverse.value}"}}},success:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.green.80}"},color:{value:"{colors.font.inverse.value}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.green.90.value}"},color:{value:"{colors.font.inverse.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.green.90.value}"},color:{value:"{colors.font.inverse.value}"},boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"1px",color:"{colors.green.100.value}"}}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.green.100.value}"},color:{value:"{colors.font.inverse.value}"}}},overlay:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.overlay.70}"},color:{value:"{colors.font.inverse.value}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.overlay.90.value}"},color:{value:"{colors.font.inverse.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.overlay.90.value}"},color:{value:"{colors.font.inverse.value}"},boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"1px",color:"{colors.overlay.90.value}"}}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.overlay.90.value}"},color:{value:"{colors.font.inverse.value}"}}}},menu:{borderWidth:{value:"{space.zero.value}"},backgroundColor:{value:"transparent"},justifyContent:{value:"start"},_hover:{color:{value:"{colors.font.inverse.value}"},backgroundColor:{value:"{colors.brand.primary.80.value}"}},_focus:{color:{value:"{colors.font.inverse.value}"},backgroundColor:{value:"{colors.brand.primary.80.value}"}},_active:{color:{value:"{colors.font.inverse.value}"},backgroundColor:{value:"{colors.brand.primary.90.value}"}},_disabled:{color:{value:"{colors.font.disabled.value}"}}},link:{backgroundColor:{value:"transparent"},borderColor:{value:"transparent"},borderWidth:{value:"{borderWidths.small.value}"},color:{value:"{colors.font.interactive.value}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.brand.primary.10.value}"},color:{value:"{colors.font.hover.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.brand.primary.10.value}"},color:{value:"{colors.font.focus.value}"},boxShadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.brand.primary.20.value}"},color:{value:"{colors.font.active.value}"}},_disabled:{borderColor:{value:"transparent"},backgroundColor:{value:"transparent"},color:{value:"{colors.font.disabled.value}"}},_loading:{borderColor:{value:"transparent"},backgroundColor:{value:"transparent"},color:{value:"{colors.font.disabled.value}"}},info:{borderColor:{value:"transparent"},backgroundColor:{value:"transparent"},color:{value:"{colors.blue.100}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.blue.10.value}"},color:{value:"{colors.blue.90.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.blue.10.value}"},color:{value:"{colors.blue.100.value}"},boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"1px",color:"{colors.blue.100.value}"}}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.blue.20.value}"},color:{value:"{colors.blue.100.value}"}}},warning:{borderColor:{value:"transparent"},backgroundColor:{value:"transparent"},color:{value:"{colors.orange.100}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.orange.10.value}"},color:{value:"{colors.orange.90.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.orange.10.value}"},color:{value:"{colors.orange.100.value}"},boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"1px",color:"{colors.orange.100.value}"}}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.orange.20.value}"},color:{value:"{colors.orange.100.value}"}}},success:{borderColor:{value:"transparent"},backgroundColor:{value:"transparent"},color:{value:"{colors.green.100}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.green.10.value}"},color:{value:"{colors.green.90.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.green.10.value}"},color:{value:"{colors.green.100.value}"},boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"1px",color:"{colors.green.100.value}"}}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.green.20.value}"},color:{value:"{colors.green.100.value}"}}},error:{borderColor:{value:"transparent"},backgroundColor:{value:"transparent"},color:{value:"{colors.red.100}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.10.value}"},color:{value:"{colors.red.90.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.10.value}"},color:{value:"{colors.red.100.value}"},boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"1px",color:"{colors.red.100.value}"}}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.20.value}"},color:{value:"{colors.red.100.value}"}}},overlay:{borderColor:{value:"transparent"},backgroundColor:{value:"transparent"},color:{value:"{colors.neutral.100}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.overlay.5.value}"},color:{value:"{colors.overlay.80.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.overlay.5.value}"},color:{value:"{colors.overlay.90.value}"},boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"1px",color:"{colors.overlay.90.value}"}}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.overlay.10.value}"},color:{value:"{colors.overlay.90.value}"}}}},warning:{backgroundColor:{value:"transparent"},borderColor:{value:"{colors.red.60}"},borderWidth:{value:"{borderWidths.small}"},color:{value:"{colors.red.60}"},_hover:{borderColor:{value:"{colors.red.80}"},backgroundColor:{value:"{colors.red.10}"},color:{value:"{colors.font.error}"}},_focus:{borderColor:{value:"{colors.red.80}"},backgroundColor:{value:"{colors.red.10}"},color:{value:"{colors.red.80}"},boxShadow:{value:"{components.fieldcontrol._error._focus.boxShadow}"}},_active:{borderColor:{value:"{colors.red.100}"},backgroundColor:{value:"{colors.red.20}"},color:{value:"{colors.red.100}"}},_disabled:{borderColor:{value:"{colors.border.tertiary}"},backgroundColor:{value:"transparent"},color:{value:"{colors.font.disabled}"}},_loading:{borderColor:{value:"{colors.border.tertiary}"},backgroundColor:{value:"transparent"},color:{value:"{colors.font.disabled}"}}},destructive:{borderColor:{value:"transparent"},borderWidth:{value:"{borderWidths.small}"},borderStyle:{value:"solid"},backgroundColor:{value:"{colors.red.60}"},color:{value:"{colors.font.inverse}"},_disabled:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.background.disabled}"},color:{value:"{colors.font.disabled}"}},_loading:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.background.disabled}"},color:{value:"{colors.font.disabled}"}},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.80}"},color:{value:"{colors.font.inverse}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.80}"},color:{value:"{colors.font.inverse}"},boxShadow:{value:"{components.fieldcontrol._error._focus.boxShadow}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.100}"},color:{value:"{colors.font.inverse}"}}},small:{fontSize:{value:"{components.fieldcontrol.small.fontSize.value}"},paddingBlockStart:{value:"{components.fieldcontrol.small.paddingBlockStart.value}"},paddingBlockEnd:{value:"{components.fieldcontrol.small.paddingBlockEnd.value}"},paddingInlineStart:{value:"{components.fieldcontrol.small.paddingInlineStart.value}"},paddingInlineEnd:{value:"{components.fieldcontrol.small.paddingInlineEnd.value}"}},large:{fontSize:{value:"{components.fieldcontrol.large.fontSize.value}"},paddingBlockStart:{value:"{components.fieldcontrol.large.paddingBlockStart.value}"},paddingBlockEnd:{value:"{components.fieldcontrol.large.paddingBlockEnd.value}"},paddingInlineStart:{value:"{components.fieldcontrol.large.paddingInlineStart.value}"},paddingInlineEnd:{value:"{components.fieldcontrol.large.paddingInlineEnd.value}"}},loaderWrapper:{alignItems:{value:"center"},gap:{value:"{space.xs.value}"}}};export{o as button};
|
|
1
|
+
const button = {
|
|
2
|
+
// shared styles
|
|
3
|
+
fontWeight: { value: '{fontWeights.bold.value}' },
|
|
4
|
+
transitionDuration: {
|
|
5
|
+
value: '{components.fieldcontrol.transitionDuration.value}',
|
|
6
|
+
},
|
|
7
|
+
fontSize: { value: '{components.fieldcontrol.fontSize.value}' },
|
|
8
|
+
lineHeight: { value: '{components.fieldcontrol.lineHeight.value}' },
|
|
9
|
+
paddingBlockStart: {
|
|
10
|
+
value: '{components.fieldcontrol.paddingBlockStart.value}',
|
|
11
|
+
},
|
|
12
|
+
paddingBlockEnd: {
|
|
13
|
+
value: '{components.fieldcontrol.paddingBlockEnd.value}',
|
|
14
|
+
},
|
|
15
|
+
paddingInlineStart: {
|
|
16
|
+
value: '{components.fieldcontrol.paddingInlineStart.value}',
|
|
17
|
+
},
|
|
18
|
+
paddingInlineEnd: {
|
|
19
|
+
value: '{components.fieldcontrol.paddingInlineEnd.value}',
|
|
20
|
+
},
|
|
21
|
+
backgroundColor: { value: 'transparent' },
|
|
22
|
+
borderColor: { value: '{components.fieldcontrol.borderColor.value}' },
|
|
23
|
+
borderWidth: { value: '{components.fieldcontrol.borderWidth.value}' },
|
|
24
|
+
borderStyle: { value: '{components.fieldcontrol.borderStyle.value}' },
|
|
25
|
+
borderRadius: { value: '{components.fieldcontrol.borderRadius.value}' },
|
|
26
|
+
color: { value: '{colors.font.primary.value}' },
|
|
27
|
+
_hover: {
|
|
28
|
+
color: { value: '{colors.font.focus.value}' },
|
|
29
|
+
backgroundColor: { value: '{colors.primary.10.value}' },
|
|
30
|
+
borderColor: { value: '{colors.primary.60.value}' },
|
|
31
|
+
},
|
|
32
|
+
_focus: {
|
|
33
|
+
color: { value: '{colors.font.focus.value}' },
|
|
34
|
+
backgroundColor: { value: '{colors.primary.10.value}' },
|
|
35
|
+
borderColor: { value: '{colors.border.focus.value}' },
|
|
36
|
+
boxShadow: { value: '{components.fieldcontrol._focus.boxShadow.value}' },
|
|
37
|
+
},
|
|
38
|
+
_active: {
|
|
39
|
+
color: { value: '{colors.font.active.value}' },
|
|
40
|
+
backgroundColor: { value: '{colors.primary.20.value}' },
|
|
41
|
+
borderColor: { value: '{colors.primary.100.value}' },
|
|
42
|
+
},
|
|
43
|
+
_loading: {
|
|
44
|
+
color: { value: '{colors.font.disabled.value}' },
|
|
45
|
+
backgroundColor: { value: 'transparent' },
|
|
46
|
+
borderColor: { value: '{colors.border.tertiary.value}' },
|
|
47
|
+
},
|
|
48
|
+
_disabled: {
|
|
49
|
+
color: { value: '{colors.font.disabled.value}' },
|
|
50
|
+
backgroundColor: { value: 'transparent' },
|
|
51
|
+
borderColor: { value: '{colors.border.tertiary.value}' },
|
|
52
|
+
},
|
|
53
|
+
// variations
|
|
54
|
+
outlined: {
|
|
55
|
+
info: {
|
|
56
|
+
borderColor: { value: '{colors.blue.60.value}' },
|
|
57
|
+
backgroundColor: { value: 'transparent' },
|
|
58
|
+
color: { value: '{colors.blue.100}' },
|
|
59
|
+
_hover: {
|
|
60
|
+
borderColor: { value: '{colors.blue.60.value}' },
|
|
61
|
+
backgroundColor: { value: '{colors.blue.10.value}' },
|
|
62
|
+
color: { value: '{colors.blue.100.value}' },
|
|
63
|
+
},
|
|
64
|
+
_focus: {
|
|
65
|
+
borderColor: { value: '{colors.blue.100.value}' },
|
|
66
|
+
backgroundColor: { value: '{colors.blue.10.value}' },
|
|
67
|
+
color: { value: '{colors.blue.100.value}' },
|
|
68
|
+
boxShadow: {
|
|
69
|
+
value: {
|
|
70
|
+
offsetX: '0px',
|
|
71
|
+
offsetY: '0px',
|
|
72
|
+
blurRadius: '0px',
|
|
73
|
+
spreadRadius: '1px',
|
|
74
|
+
color: '{colors.blue.100.value}',
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
_active: {
|
|
79
|
+
borderColor: { value: '{colors.blue.100.value}' },
|
|
80
|
+
backgroundColor: { value: '{colors.blue.20.value}' },
|
|
81
|
+
color: { value: '{colors.blue.100.value}' },
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
warning: {
|
|
85
|
+
borderColor: { value: '{colors.orange.60.value}' },
|
|
86
|
+
backgroundColor: { value: 'transparent' },
|
|
87
|
+
color: { value: '{colors.orange.100}' },
|
|
88
|
+
_hover: {
|
|
89
|
+
borderColor: { value: '{colors.orange.60.value}' },
|
|
90
|
+
backgroundColor: { value: '{colors.orange.10.value}' },
|
|
91
|
+
color: { value: '{colors.orange.100.value}' },
|
|
92
|
+
},
|
|
93
|
+
_focus: {
|
|
94
|
+
borderColor: { value: '{colors.orange.100.value}' },
|
|
95
|
+
backgroundColor: { value: '{colors.orange.10.value}' },
|
|
96
|
+
color: { value: '{colors.orange.100.value}' },
|
|
97
|
+
boxShadow: {
|
|
98
|
+
value: {
|
|
99
|
+
offsetX: '0px',
|
|
100
|
+
offsetY: '0px',
|
|
101
|
+
blurRadius: '0px',
|
|
102
|
+
spreadRadius: '1px',
|
|
103
|
+
color: '{colors.orange.100.value}',
|
|
104
|
+
},
|
|
105
|
+
},
|
|
106
|
+
},
|
|
107
|
+
_active: {
|
|
108
|
+
borderColor: { value: '{colors.orange.100.value}' },
|
|
109
|
+
backgroundColor: { value: '{colors.orange.20.value}' },
|
|
110
|
+
color: { value: '{colors.orange.100.value}' },
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
success: {
|
|
114
|
+
borderColor: { value: '{colors.green.60.value}' },
|
|
115
|
+
backgroundColor: { value: 'transparent' },
|
|
116
|
+
color: { value: '{colors.green.100}' },
|
|
117
|
+
_hover: {
|
|
118
|
+
borderColor: { value: '{colors.green.60.value}' },
|
|
119
|
+
backgroundColor: { value: '{colors.green.10.value}' },
|
|
120
|
+
color: { value: '{colors.green.100.value}' },
|
|
121
|
+
},
|
|
122
|
+
_focus: {
|
|
123
|
+
borderColor: { value: '{colors.green.100.value}' },
|
|
124
|
+
backgroundColor: { value: '{colors.green.10.value}' },
|
|
125
|
+
color: { value: '{colors.green.100.value}' },
|
|
126
|
+
boxShadow: {
|
|
127
|
+
value: {
|
|
128
|
+
offsetX: '0px',
|
|
129
|
+
offsetY: '0px',
|
|
130
|
+
blurRadius: '0px',
|
|
131
|
+
spreadRadius: '1px',
|
|
132
|
+
color: '{colors.green.100.value}',
|
|
133
|
+
},
|
|
134
|
+
},
|
|
135
|
+
},
|
|
136
|
+
_active: {
|
|
137
|
+
borderColor: { value: '{colors.green.100.value}' },
|
|
138
|
+
backgroundColor: { value: '{colors.green.20.value}' },
|
|
139
|
+
color: { value: '{colors.green.100.value}' },
|
|
140
|
+
},
|
|
141
|
+
},
|
|
142
|
+
error: {
|
|
143
|
+
borderColor: { value: '{colors.red.60.value}' },
|
|
144
|
+
backgroundColor: { value: 'transparent' },
|
|
145
|
+
color: { value: '{colors.red.100}' },
|
|
146
|
+
_hover: {
|
|
147
|
+
borderColor: { value: '{colors.red.60.value}' },
|
|
148
|
+
backgroundColor: { value: '{colors.red.10.value}' },
|
|
149
|
+
color: { value: '{colors.red.100.value}' },
|
|
150
|
+
},
|
|
151
|
+
_focus: {
|
|
152
|
+
borderColor: { value: '{colors.red.100.value}' },
|
|
153
|
+
backgroundColor: { value: '{colors.red.10.value}' },
|
|
154
|
+
color: { value: '{colors.red.100.value}' },
|
|
155
|
+
boxShadow: {
|
|
156
|
+
value: {
|
|
157
|
+
offsetX: '0px',
|
|
158
|
+
offsetY: '0px',
|
|
159
|
+
blurRadius: '0px',
|
|
160
|
+
spreadRadius: '1px',
|
|
161
|
+
color: '{colors.red.100.value}',
|
|
162
|
+
},
|
|
163
|
+
},
|
|
164
|
+
},
|
|
165
|
+
_active: {
|
|
166
|
+
borderColor: { value: '{colors.red.100.value}' },
|
|
167
|
+
backgroundColor: { value: '{colors.red.20.value}' },
|
|
168
|
+
color: { value: '{colors.red.100.value}' },
|
|
169
|
+
},
|
|
170
|
+
},
|
|
171
|
+
overlay: {
|
|
172
|
+
borderColor: { value: '{colors.overlay.60.value}' },
|
|
173
|
+
backgroundColor: { value: 'transparent' },
|
|
174
|
+
color: { value: '{colors.font.primary.value}' },
|
|
175
|
+
_hover: {
|
|
176
|
+
borderColor: { value: '{colors.overlay.60.value}' },
|
|
177
|
+
backgroundColor: { value: '{colors.overlay.5.value}' },
|
|
178
|
+
color: { value: '{colors.neutral.90.value}' },
|
|
179
|
+
},
|
|
180
|
+
_focus: {
|
|
181
|
+
borderColor: { value: '{colors.overlay.90.value}' },
|
|
182
|
+
backgroundColor: { value: '{colors.overlay.5.value}' },
|
|
183
|
+
color: { value: '{colors.neutral.90.value}' },
|
|
184
|
+
boxShadow: {
|
|
185
|
+
value: {
|
|
186
|
+
offsetX: '0px',
|
|
187
|
+
offsetY: '0px',
|
|
188
|
+
blurRadius: '0px',
|
|
189
|
+
spreadRadius: '1px',
|
|
190
|
+
color: '{colors.overlay.90.value}',
|
|
191
|
+
},
|
|
192
|
+
},
|
|
193
|
+
},
|
|
194
|
+
_active: {
|
|
195
|
+
borderColor: { value: '{colors.overlay.90.value}' },
|
|
196
|
+
backgroundColor: { value: '{colors.overlay.10.value}' },
|
|
197
|
+
color: { value: '{colors.neutral.100.value}' },
|
|
198
|
+
},
|
|
199
|
+
},
|
|
200
|
+
},
|
|
201
|
+
primary: {
|
|
202
|
+
borderColor: { value: 'transparent' },
|
|
203
|
+
borderWidth: { value: '{borderWidths.small.value}' },
|
|
204
|
+
borderStyle: { value: 'solid' },
|
|
205
|
+
backgroundColor: { value: '{colors.primary.80.value}' },
|
|
206
|
+
color: { value: '{colors.font.inverse.value}' },
|
|
207
|
+
_disabled: {
|
|
208
|
+
borderColor: { value: 'transparent' },
|
|
209
|
+
backgroundColor: { value: '{colors.background.disabled.value}' },
|
|
210
|
+
color: { value: '{colors.font.disabled.value}' },
|
|
211
|
+
},
|
|
212
|
+
_loading: {
|
|
213
|
+
borderColor: { value: 'transparent' },
|
|
214
|
+
backgroundColor: { value: '{colors.background.disabled.value}' },
|
|
215
|
+
color: { value: '{colors.font.disabled.value}' },
|
|
216
|
+
},
|
|
217
|
+
_hover: {
|
|
218
|
+
borderColor: { value: 'transparent' },
|
|
219
|
+
backgroundColor: { value: '{colors.primary.90.value}' },
|
|
220
|
+
color: { value: '{colors.font.inverse.value}' },
|
|
221
|
+
},
|
|
222
|
+
_focus: {
|
|
223
|
+
borderColor: { value: 'transparent' },
|
|
224
|
+
backgroundColor: { value: '{colors.primary.90.value}' },
|
|
225
|
+
color: { value: '{colors.font.inverse.value}' },
|
|
226
|
+
boxShadow: { value: '{components.fieldcontrol._focus.boxShadow.value}' },
|
|
227
|
+
},
|
|
228
|
+
_active: {
|
|
229
|
+
borderColor: { value: 'transparent' },
|
|
230
|
+
backgroundColor: { value: '{colors.primary.100.value}' },
|
|
231
|
+
color: { value: '{colors.font.inverse.value}' },
|
|
232
|
+
},
|
|
233
|
+
info: {
|
|
234
|
+
borderColor: { value: 'transparent' },
|
|
235
|
+
backgroundColor: { value: '{colors.blue.80}' },
|
|
236
|
+
color: { value: '{colors.font.inverse.value}' },
|
|
237
|
+
_hover: {
|
|
238
|
+
borderColor: { value: 'transparent' },
|
|
239
|
+
backgroundColor: { value: '{colors.blue.90.value}' },
|
|
240
|
+
color: { value: '{colors.font.inverse.value}' },
|
|
241
|
+
},
|
|
242
|
+
_focus: {
|
|
243
|
+
borderColor: { value: 'transparent' },
|
|
244
|
+
backgroundColor: { value: '{colors.blue.90.value}' },
|
|
245
|
+
color: { value: '{colors.font.inverse.value}' },
|
|
246
|
+
boxShadow: {
|
|
247
|
+
value: {
|
|
248
|
+
offsetX: '0px',
|
|
249
|
+
offsetY: '0px',
|
|
250
|
+
blurRadius: '0px',
|
|
251
|
+
spreadRadius: '1px',
|
|
252
|
+
color: '{colors.blue.100.value}',
|
|
253
|
+
},
|
|
254
|
+
},
|
|
255
|
+
},
|
|
256
|
+
_active: {
|
|
257
|
+
borderColor: { value: 'transparent' },
|
|
258
|
+
backgroundColor: { value: '{colors.blue.100.value}' },
|
|
259
|
+
color: { value: '{colors.font.inverse.value}' },
|
|
260
|
+
},
|
|
261
|
+
},
|
|
262
|
+
warning: {
|
|
263
|
+
borderColor: { value: 'transparent' },
|
|
264
|
+
backgroundColor: { value: '{colors.orange.80}' },
|
|
265
|
+
color: { value: '{colors.font.inverse.value}' },
|
|
266
|
+
_hover: {
|
|
267
|
+
borderColor: { value: 'transparent' },
|
|
268
|
+
backgroundColor: { value: '{colors.orange.90.value}' },
|
|
269
|
+
color: { value: '{colors.font.inverse.value}' },
|
|
270
|
+
},
|
|
271
|
+
_focus: {
|
|
272
|
+
borderColor: { value: 'transparent' },
|
|
273
|
+
backgroundColor: { value: '{colors.orange.90.value}' },
|
|
274
|
+
color: { value: '{colors.font.inverse.value}' },
|
|
275
|
+
boxShadow: {
|
|
276
|
+
value: {
|
|
277
|
+
offsetX: '0px',
|
|
278
|
+
offsetY: '0px',
|
|
279
|
+
blurRadius: '0px',
|
|
280
|
+
spreadRadius: '1px',
|
|
281
|
+
color: '{colors.orange.100.value}',
|
|
282
|
+
},
|
|
283
|
+
},
|
|
284
|
+
},
|
|
285
|
+
_active: {
|
|
286
|
+
borderColor: { value: 'transparent' },
|
|
287
|
+
backgroundColor: { value: '{colors.orange.100.value}' },
|
|
288
|
+
color: { value: '{colors.font.inverse.value}' },
|
|
289
|
+
},
|
|
290
|
+
},
|
|
291
|
+
error: {
|
|
292
|
+
borderColor: { value: 'transparent' },
|
|
293
|
+
backgroundColor: { value: '{colors.red.80}' },
|
|
294
|
+
color: { value: '{colors.font.inverse.value}' },
|
|
295
|
+
_hover: {
|
|
296
|
+
borderColor: { value: 'transparent' },
|
|
297
|
+
backgroundColor: { value: '{colors.red.90.value}' },
|
|
298
|
+
color: { value: '{colors.font.inverse.value}' },
|
|
299
|
+
},
|
|
300
|
+
_focus: {
|
|
301
|
+
borderColor: { value: 'transparent' },
|
|
302
|
+
backgroundColor: { value: '{colors.red.90.value}' },
|
|
303
|
+
color: { value: '{colors.font.inverse.value}' },
|
|
304
|
+
boxShadow: {
|
|
305
|
+
value: {
|
|
306
|
+
offsetX: '0px',
|
|
307
|
+
offsetY: '0px',
|
|
308
|
+
blurRadius: '0px',
|
|
309
|
+
spreadRadius: '1px',
|
|
310
|
+
color: '{colors.red.100.value}',
|
|
311
|
+
},
|
|
312
|
+
},
|
|
313
|
+
},
|
|
314
|
+
_active: {
|
|
315
|
+
borderColor: { value: 'transparent' },
|
|
316
|
+
backgroundColor: { value: '{colors.red.100.value}' },
|
|
317
|
+
color: { value: '{colors.font.inverse.value}' },
|
|
318
|
+
},
|
|
319
|
+
},
|
|
320
|
+
success: {
|
|
321
|
+
borderColor: { value: 'transparent' },
|
|
322
|
+
backgroundColor: { value: '{colors.green.80}' },
|
|
323
|
+
color: { value: '{colors.font.inverse.value}' },
|
|
324
|
+
_hover: {
|
|
325
|
+
borderColor: { value: 'transparent' },
|
|
326
|
+
backgroundColor: { value: '{colors.green.90.value}' },
|
|
327
|
+
color: { value: '{colors.font.inverse.value}' },
|
|
328
|
+
},
|
|
329
|
+
_focus: {
|
|
330
|
+
borderColor: { value: 'transparent' },
|
|
331
|
+
backgroundColor: { value: '{colors.green.90.value}' },
|
|
332
|
+
color: { value: '{colors.font.inverse.value}' },
|
|
333
|
+
boxShadow: {
|
|
334
|
+
value: {
|
|
335
|
+
offsetX: '0px',
|
|
336
|
+
offsetY: '0px',
|
|
337
|
+
blurRadius: '0px',
|
|
338
|
+
spreadRadius: '1px',
|
|
339
|
+
color: '{colors.green.100.value}',
|
|
340
|
+
},
|
|
341
|
+
},
|
|
342
|
+
},
|
|
343
|
+
_active: {
|
|
344
|
+
borderColor: { value: 'transparent' },
|
|
345
|
+
backgroundColor: { value: '{colors.green.100.value}' },
|
|
346
|
+
color: { value: '{colors.font.inverse.value}' },
|
|
347
|
+
},
|
|
348
|
+
},
|
|
349
|
+
overlay: {
|
|
350
|
+
borderColor: { value: 'transparent' },
|
|
351
|
+
backgroundColor: { value: '{colors.overlay.70}' },
|
|
352
|
+
color: { value: '{colors.font.inverse.value}' },
|
|
353
|
+
_hover: {
|
|
354
|
+
borderColor: { value: 'transparent' },
|
|
355
|
+
backgroundColor: { value: '{colors.overlay.90.value}' },
|
|
356
|
+
color: { value: '{colors.font.inverse.value}' },
|
|
357
|
+
},
|
|
358
|
+
_focus: {
|
|
359
|
+
borderColor: { value: 'transparent' },
|
|
360
|
+
backgroundColor: { value: '{colors.overlay.90.value}' },
|
|
361
|
+
color: { value: '{colors.font.inverse.value}' },
|
|
362
|
+
boxShadow: {
|
|
363
|
+
value: {
|
|
364
|
+
offsetX: '0px',
|
|
365
|
+
offsetY: '0px',
|
|
366
|
+
blurRadius: '0px',
|
|
367
|
+
spreadRadius: '1px',
|
|
368
|
+
color: '{colors.overlay.90.value}',
|
|
369
|
+
},
|
|
370
|
+
},
|
|
371
|
+
},
|
|
372
|
+
_active: {
|
|
373
|
+
borderColor: { value: 'transparent' },
|
|
374
|
+
backgroundColor: { value: '{colors.overlay.90.value}' },
|
|
375
|
+
color: { value: '{colors.font.inverse.value}' },
|
|
376
|
+
},
|
|
377
|
+
},
|
|
378
|
+
},
|
|
379
|
+
menu: {
|
|
380
|
+
borderWidth: { value: '{space.zero.value}' },
|
|
381
|
+
backgroundColor: { value: 'transparent' },
|
|
382
|
+
justifyContent: { value: 'start' },
|
|
383
|
+
// Focus and hover styles are identical for menu variation
|
|
384
|
+
// because for Menu primitive, menu items are forced to be focused even
|
|
385
|
+
// for mouse interactions, making it impossible to distinguish the two interactions
|
|
386
|
+
_hover: {
|
|
387
|
+
color: { value: '{colors.font.inverse.value}' },
|
|
388
|
+
backgroundColor: { value: '{colors.primary.80.value}' },
|
|
389
|
+
},
|
|
390
|
+
_focus: {
|
|
391
|
+
color: { value: '{colors.font.inverse.value}' },
|
|
392
|
+
backgroundColor: { value: '{colors.primary.80.value}' },
|
|
393
|
+
},
|
|
394
|
+
_active: {
|
|
395
|
+
color: { value: '{colors.font.inverse.value}' },
|
|
396
|
+
backgroundColor: { value: '{colors.primary.90.value}' },
|
|
397
|
+
},
|
|
398
|
+
_disabled: {
|
|
399
|
+
color: { value: '{colors.font.disabled.value}' },
|
|
400
|
+
},
|
|
401
|
+
},
|
|
402
|
+
link: {
|
|
403
|
+
backgroundColor: { value: 'transparent' },
|
|
404
|
+
borderColor: { value: 'transparent' },
|
|
405
|
+
borderWidth: { value: '{borderWidths.small.value}' },
|
|
406
|
+
color: { value: '{colors.font.interactive.value}' },
|
|
407
|
+
_hover: {
|
|
408
|
+
borderColor: { value: 'transparent' },
|
|
409
|
+
backgroundColor: { value: '{colors.primary.10.value}' },
|
|
410
|
+
color: { value: '{colors.font.hover.value}' },
|
|
411
|
+
},
|
|
412
|
+
_focus: {
|
|
413
|
+
borderColor: { value: 'transparent' },
|
|
414
|
+
backgroundColor: { value: '{colors.primary.10.value}' },
|
|
415
|
+
color: { value: '{colors.font.focus.value}' },
|
|
416
|
+
boxShadow: { value: '{components.fieldcontrol._focus.boxShadow.value}' },
|
|
417
|
+
},
|
|
418
|
+
_active: {
|
|
419
|
+
borderColor: { value: 'transparent' },
|
|
420
|
+
backgroundColor: { value: '{colors.primary.20.value}' },
|
|
421
|
+
color: { value: '{colors.font.active.value}' },
|
|
422
|
+
},
|
|
423
|
+
_disabled: {
|
|
424
|
+
borderColor: { value: 'transparent' },
|
|
425
|
+
backgroundColor: { value: 'transparent' },
|
|
426
|
+
color: { value: '{colors.font.disabled.value}' },
|
|
427
|
+
},
|
|
428
|
+
_loading: {
|
|
429
|
+
borderColor: { value: 'transparent' },
|
|
430
|
+
backgroundColor: { value: 'transparent' },
|
|
431
|
+
color: { value: '{colors.font.disabled.value}' },
|
|
432
|
+
},
|
|
433
|
+
info: {
|
|
434
|
+
borderColor: { value: 'transparent' },
|
|
435
|
+
backgroundColor: { value: 'transparent' },
|
|
436
|
+
color: { value: '{colors.blue.100}' },
|
|
437
|
+
_hover: {
|
|
438
|
+
borderColor: { value: 'transparent' },
|
|
439
|
+
backgroundColor: { value: '{colors.blue.10.value}' },
|
|
440
|
+
color: { value: '{colors.blue.90.value}' },
|
|
441
|
+
},
|
|
442
|
+
_focus: {
|
|
443
|
+
borderColor: { value: 'transparent' },
|
|
444
|
+
backgroundColor: { value: '{colors.blue.10.value}' },
|
|
445
|
+
color: { value: '{colors.blue.100.value}' },
|
|
446
|
+
boxShadow: {
|
|
447
|
+
value: {
|
|
448
|
+
offsetX: '0px',
|
|
449
|
+
offsetY: '0px',
|
|
450
|
+
blurRadius: '0px',
|
|
451
|
+
spreadRadius: '1px',
|
|
452
|
+
color: '{colors.blue.100.value}',
|
|
453
|
+
},
|
|
454
|
+
},
|
|
455
|
+
},
|
|
456
|
+
_active: {
|
|
457
|
+
borderColor: { value: 'transparent' },
|
|
458
|
+
backgroundColor: { value: '{colors.blue.20.value}' },
|
|
459
|
+
color: { value: '{colors.blue.100.value}' },
|
|
460
|
+
},
|
|
461
|
+
},
|
|
462
|
+
warning: {
|
|
463
|
+
borderColor: { value: 'transparent' },
|
|
464
|
+
backgroundColor: { value: 'transparent' },
|
|
465
|
+
color: { value: '{colors.orange.100}' },
|
|
466
|
+
_hover: {
|
|
467
|
+
borderColor: { value: 'transparent' },
|
|
468
|
+
backgroundColor: { value: '{colors.orange.10.value}' },
|
|
469
|
+
color: { value: '{colors.orange.90.value}' },
|
|
470
|
+
},
|
|
471
|
+
_focus: {
|
|
472
|
+
borderColor: { value: 'transparent' },
|
|
473
|
+
backgroundColor: { value: '{colors.orange.10.value}' },
|
|
474
|
+
color: { value: '{colors.orange.100.value}' },
|
|
475
|
+
boxShadow: {
|
|
476
|
+
value: {
|
|
477
|
+
offsetX: '0px',
|
|
478
|
+
offsetY: '0px',
|
|
479
|
+
blurRadius: '0px',
|
|
480
|
+
spreadRadius: '1px',
|
|
481
|
+
color: '{colors.orange.100.value}',
|
|
482
|
+
},
|
|
483
|
+
},
|
|
484
|
+
},
|
|
485
|
+
_active: {
|
|
486
|
+
borderColor: { value: 'transparent' },
|
|
487
|
+
backgroundColor: { value: '{colors.orange.20.value}' },
|
|
488
|
+
color: { value: '{colors.orange.100.value}' },
|
|
489
|
+
},
|
|
490
|
+
},
|
|
491
|
+
success: {
|
|
492
|
+
borderColor: { value: 'transparent' },
|
|
493
|
+
backgroundColor: { value: 'transparent' },
|
|
494
|
+
color: { value: '{colors.green.100}' },
|
|
495
|
+
_hover: {
|
|
496
|
+
borderColor: { value: 'transparent' },
|
|
497
|
+
backgroundColor: { value: '{colors.green.10.value}' },
|
|
498
|
+
color: { value: '{colors.green.90.value}' },
|
|
499
|
+
},
|
|
500
|
+
_focus: {
|
|
501
|
+
borderColor: { value: 'transparent' },
|
|
502
|
+
backgroundColor: { value: '{colors.green.10.value}' },
|
|
503
|
+
color: { value: '{colors.green.100.value}' },
|
|
504
|
+
boxShadow: {
|
|
505
|
+
value: {
|
|
506
|
+
offsetX: '0px',
|
|
507
|
+
offsetY: '0px',
|
|
508
|
+
blurRadius: '0px',
|
|
509
|
+
spreadRadius: '1px',
|
|
510
|
+
color: '{colors.green.100.value}',
|
|
511
|
+
},
|
|
512
|
+
},
|
|
513
|
+
},
|
|
514
|
+
_active: {
|
|
515
|
+
borderColor: { value: 'transparent' },
|
|
516
|
+
backgroundColor: { value: '{colors.green.20.value}' },
|
|
517
|
+
color: { value: '{colors.green.100.value}' },
|
|
518
|
+
},
|
|
519
|
+
},
|
|
520
|
+
error: {
|
|
521
|
+
borderColor: { value: 'transparent' },
|
|
522
|
+
backgroundColor: { value: 'transparent' },
|
|
523
|
+
color: { value: '{colors.red.100}' },
|
|
524
|
+
_hover: {
|
|
525
|
+
borderColor: { value: 'transparent' },
|
|
526
|
+
backgroundColor: { value: '{colors.red.10.value}' },
|
|
527
|
+
color: { value: '{colors.red.90.value}' },
|
|
528
|
+
},
|
|
529
|
+
_focus: {
|
|
530
|
+
borderColor: { value: 'transparent' },
|
|
531
|
+
backgroundColor: { value: '{colors.red.10.value}' },
|
|
532
|
+
color: { value: '{colors.red.100.value}' },
|
|
533
|
+
boxShadow: {
|
|
534
|
+
value: {
|
|
535
|
+
offsetX: '0px',
|
|
536
|
+
offsetY: '0px',
|
|
537
|
+
blurRadius: '0px',
|
|
538
|
+
spreadRadius: '1px',
|
|
539
|
+
color: '{colors.red.100.value}',
|
|
540
|
+
},
|
|
541
|
+
},
|
|
542
|
+
},
|
|
543
|
+
_active: {
|
|
544
|
+
borderColor: { value: 'transparent' },
|
|
545
|
+
backgroundColor: { value: '{colors.red.20.value}' },
|
|
546
|
+
color: { value: '{colors.red.100.value}' },
|
|
547
|
+
},
|
|
548
|
+
},
|
|
549
|
+
overlay: {
|
|
550
|
+
borderColor: { value: 'transparent' },
|
|
551
|
+
backgroundColor: { value: 'transparent' },
|
|
552
|
+
color: { value: '{colors.neutral.100}' },
|
|
553
|
+
_hover: {
|
|
554
|
+
borderColor: { value: 'transparent' },
|
|
555
|
+
backgroundColor: { value: '{colors.overlay.5.value}' },
|
|
556
|
+
color: { value: '{colors.overlay.80.value}' },
|
|
557
|
+
},
|
|
558
|
+
_focus: {
|
|
559
|
+
borderColor: { value: 'transparent' },
|
|
560
|
+
backgroundColor: { value: '{colors.overlay.5.value}' },
|
|
561
|
+
color: { value: '{colors.overlay.90.value}' },
|
|
562
|
+
boxShadow: {
|
|
563
|
+
value: {
|
|
564
|
+
offsetX: '0px',
|
|
565
|
+
offsetY: '0px',
|
|
566
|
+
blurRadius: '0px',
|
|
567
|
+
spreadRadius: '1px',
|
|
568
|
+
color: '{colors.overlay.90.value}',
|
|
569
|
+
},
|
|
570
|
+
},
|
|
571
|
+
},
|
|
572
|
+
_active: {
|
|
573
|
+
borderColor: { value: 'transparent' },
|
|
574
|
+
backgroundColor: { value: '{colors.overlay.10.value}' },
|
|
575
|
+
color: { value: '{colors.overlay.90.value}' },
|
|
576
|
+
},
|
|
577
|
+
},
|
|
578
|
+
},
|
|
579
|
+
warning: {
|
|
580
|
+
backgroundColor: { value: 'transparent' },
|
|
581
|
+
borderColor: { value: '{colors.red.60}' },
|
|
582
|
+
borderWidth: { value: '{borderWidths.small}' },
|
|
583
|
+
color: { value: '{colors.red.60}' },
|
|
584
|
+
_hover: {
|
|
585
|
+
borderColor: { value: '{colors.red.80}' },
|
|
586
|
+
backgroundColor: { value: '{colors.red.10}' },
|
|
587
|
+
color: { value: '{colors.font.error}' },
|
|
588
|
+
},
|
|
589
|
+
_focus: {
|
|
590
|
+
borderColor: { value: '{colors.red.80}' },
|
|
591
|
+
backgroundColor: { value: '{colors.red.10}' },
|
|
592
|
+
color: { value: '{colors.red.80}' },
|
|
593
|
+
boxShadow: { value: '{components.fieldcontrol._error._focus.boxShadow}' },
|
|
594
|
+
},
|
|
595
|
+
_active: {
|
|
596
|
+
borderColor: { value: '{colors.red.100}' },
|
|
597
|
+
backgroundColor: { value: '{colors.red.20}' },
|
|
598
|
+
color: { value: '{colors.red.100}' },
|
|
599
|
+
},
|
|
600
|
+
_disabled: {
|
|
601
|
+
borderColor: { value: '{colors.border.tertiary}' },
|
|
602
|
+
backgroundColor: { value: 'transparent' },
|
|
603
|
+
color: { value: '{colors.font.disabled}' },
|
|
604
|
+
},
|
|
605
|
+
_loading: {
|
|
606
|
+
borderColor: { value: '{colors.border.tertiary}' },
|
|
607
|
+
backgroundColor: { value: 'transparent' },
|
|
608
|
+
color: { value: '{colors.font.disabled}' },
|
|
609
|
+
},
|
|
610
|
+
},
|
|
611
|
+
destructive: {
|
|
612
|
+
borderColor: { value: 'transparent' },
|
|
613
|
+
borderWidth: { value: '{borderWidths.small}' },
|
|
614
|
+
borderStyle: { value: 'solid' },
|
|
615
|
+
backgroundColor: { value: '{colors.red.60}' },
|
|
616
|
+
color: { value: '{colors.font.inverse}' },
|
|
617
|
+
_disabled: {
|
|
618
|
+
borderColor: { value: 'transparent' },
|
|
619
|
+
backgroundColor: { value: '{colors.background.disabled}' },
|
|
620
|
+
color: { value: '{colors.font.disabled}' },
|
|
621
|
+
},
|
|
622
|
+
_loading: {
|
|
623
|
+
borderColor: { value: 'transparent' },
|
|
624
|
+
backgroundColor: { value: '{colors.background.disabled}' },
|
|
625
|
+
color: { value: '{colors.font.disabled}' },
|
|
626
|
+
},
|
|
627
|
+
_hover: {
|
|
628
|
+
borderColor: { value: 'transparent' },
|
|
629
|
+
backgroundColor: { value: '{colors.red.80}' },
|
|
630
|
+
color: { value: '{colors.font.inverse}' },
|
|
631
|
+
},
|
|
632
|
+
_focus: {
|
|
633
|
+
borderColor: { value: 'transparent' },
|
|
634
|
+
backgroundColor: { value: '{colors.red.80}' },
|
|
635
|
+
color: { value: '{colors.font.inverse}' },
|
|
636
|
+
boxShadow: { value: '{components.fieldcontrol._error._focus.boxShadow}' },
|
|
637
|
+
},
|
|
638
|
+
_active: {
|
|
639
|
+
borderColor: { value: 'transparent' },
|
|
640
|
+
backgroundColor: { value: '{colors.red.100}' },
|
|
641
|
+
color: { value: '{colors.font.inverse}' },
|
|
642
|
+
},
|
|
643
|
+
},
|
|
644
|
+
// sizes
|
|
645
|
+
small: {
|
|
646
|
+
fontSize: { value: '{components.fieldcontrol.small.fontSize.value}' },
|
|
647
|
+
paddingBlockStart: {
|
|
648
|
+
value: '{components.fieldcontrol.small.paddingBlockStart.value}',
|
|
649
|
+
},
|
|
650
|
+
paddingBlockEnd: {
|
|
651
|
+
value: '{components.fieldcontrol.small.paddingBlockEnd.value}',
|
|
652
|
+
},
|
|
653
|
+
paddingInlineStart: {
|
|
654
|
+
value: '{components.fieldcontrol.small.paddingInlineStart.value}',
|
|
655
|
+
},
|
|
656
|
+
paddingInlineEnd: {
|
|
657
|
+
value: '{components.fieldcontrol.small.paddingInlineEnd.value}',
|
|
658
|
+
},
|
|
659
|
+
},
|
|
660
|
+
large: {
|
|
661
|
+
fontSize: { value: '{components.fieldcontrol.large.fontSize.value}' },
|
|
662
|
+
paddingBlockStart: {
|
|
663
|
+
value: '{components.fieldcontrol.large.paddingBlockStart.value}',
|
|
664
|
+
},
|
|
665
|
+
paddingBlockEnd: {
|
|
666
|
+
value: '{components.fieldcontrol.large.paddingBlockEnd.value}',
|
|
667
|
+
},
|
|
668
|
+
paddingInlineStart: {
|
|
669
|
+
value: '{components.fieldcontrol.large.paddingInlineStart.value}',
|
|
670
|
+
},
|
|
671
|
+
paddingInlineEnd: {
|
|
672
|
+
value: '{components.fieldcontrol.large.paddingInlineEnd.value}',
|
|
673
|
+
},
|
|
674
|
+
},
|
|
675
|
+
loaderWrapper: {
|
|
676
|
+
alignItems: {
|
|
677
|
+
value: 'center',
|
|
678
|
+
},
|
|
679
|
+
gap: {
|
|
680
|
+
value: '{space.xs.value}',
|
|
681
|
+
},
|
|
682
|
+
},
|
|
683
|
+
};
|
|
684
|
+
|
|
685
|
+
export { button };
|