@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,27 @@
|
|
|
1
|
-
const
|
|
1
|
+
const card = {
|
|
2
|
+
backgroundColor: { value: '{colors.background.primary.value}' },
|
|
3
|
+
borderRadius: { value: '{radii.xs.value}' },
|
|
4
|
+
borderWidth: { value: '0' },
|
|
5
|
+
borderStyle: { value: 'solid' },
|
|
6
|
+
borderColor: { value: 'transparent' },
|
|
7
|
+
boxShadow: { value: 'none' },
|
|
8
|
+
padding: { value: '{space.medium.value}' },
|
|
9
|
+
outlined: {
|
|
10
|
+
backgroundColor: { value: '{components.card.backgroundColor.value}' },
|
|
11
|
+
borderRadius: { value: '{radii.xs.value}' },
|
|
12
|
+
borderWidth: { value: '{borderWidths.small.value}' },
|
|
13
|
+
borderStyle: { value: 'solid' },
|
|
14
|
+
borderColor: { value: '{colors.border.primary.value}' },
|
|
15
|
+
boxShadow: { value: '{components.card.boxShadow.value}' },
|
|
16
|
+
},
|
|
17
|
+
elevated: {
|
|
18
|
+
backgroundColor: { value: '{components.card.backgroundColor.value}' },
|
|
19
|
+
borderRadius: { value: '{radii.xs.value}' },
|
|
20
|
+
borderWidth: { value: '0' },
|
|
21
|
+
borderStyle: { value: 'solid' },
|
|
22
|
+
borderColor: { value: 'transparent' },
|
|
23
|
+
boxShadow: { value: '{shadows.medium.value}' },
|
|
24
|
+
},
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export { card };
|
|
@@ -1 +1,87 @@
|
|
|
1
|
-
const
|
|
1
|
+
const checkbox = {
|
|
2
|
+
cursor: { value: 'pointer' },
|
|
3
|
+
alignItems: { value: 'center' },
|
|
4
|
+
_disabled: {
|
|
5
|
+
cursor: {
|
|
6
|
+
value: 'not-allowed',
|
|
7
|
+
},
|
|
8
|
+
},
|
|
9
|
+
button: {
|
|
10
|
+
position: { value: 'relative' },
|
|
11
|
+
alignItems: { value: 'center' },
|
|
12
|
+
justifyContent: { value: 'center' },
|
|
13
|
+
color: { value: '{colors.font.inverse.value}' },
|
|
14
|
+
before: {
|
|
15
|
+
width: { value: '100%' },
|
|
16
|
+
height: { value: '100%' },
|
|
17
|
+
borderWidth: { value: '{borderWidths.medium.value}' },
|
|
18
|
+
borderRadius: { value: '20%' },
|
|
19
|
+
borderStyle: { value: 'solid' },
|
|
20
|
+
borderColor: { value: '{colors.border.primary.value}' },
|
|
21
|
+
},
|
|
22
|
+
_focus: {
|
|
23
|
+
outlineColor: { value: '{colors.transparent.value}' },
|
|
24
|
+
outlineStyle: { value: 'solid' },
|
|
25
|
+
outlineWidth: { value: '{outlineWidths.medium.value}' },
|
|
26
|
+
outlineOffset: { value: '{outlineOffsets.medium.value}' },
|
|
27
|
+
borderColor: { value: '{colors.transparent.value}' },
|
|
28
|
+
boxShadow: {
|
|
29
|
+
value: {
|
|
30
|
+
offsetX: '0px',
|
|
31
|
+
offsetY: '0px',
|
|
32
|
+
blurRadius: '0px',
|
|
33
|
+
spreadRadius: '2px',
|
|
34
|
+
color: '{colors.border.focus.value}',
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
_disabled: {
|
|
39
|
+
borderColor: { value: '{colors.border.disabled.value}' },
|
|
40
|
+
},
|
|
41
|
+
_error: {
|
|
42
|
+
borderColor: { value: '{colors.border.error.value}' },
|
|
43
|
+
_focus: {
|
|
44
|
+
borderColor: { value: '{colors.transparent.value}' },
|
|
45
|
+
boxShadow: {
|
|
46
|
+
value: {
|
|
47
|
+
offsetX: '0px',
|
|
48
|
+
offsetY: '0px',
|
|
49
|
+
blurRadius: '0px',
|
|
50
|
+
spreadRadius: '2px',
|
|
51
|
+
color: '{colors.border.error.value}',
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
icon: {
|
|
58
|
+
backgroundColor: { value: '{colors.primary.80.value}' },
|
|
59
|
+
borderRadius: { value: '20%' },
|
|
60
|
+
opacity: { value: '{opacities.0.value}' },
|
|
61
|
+
transform: { value: 'scale(0)' },
|
|
62
|
+
transitionProperty: { value: 'all' },
|
|
63
|
+
transitionDuration: { value: '{time.short.value}' },
|
|
64
|
+
transitionTimingFunction: { value: 'ease-in-out' },
|
|
65
|
+
_checked: {
|
|
66
|
+
opacity: { value: '{opacities.100.value}' },
|
|
67
|
+
transform: { value: 'scale(1)' },
|
|
68
|
+
_disabled: {
|
|
69
|
+
backgroundColor: { value: '{colors.background.disabled.value}' },
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
_indeterminate: {
|
|
73
|
+
opacity: { value: '{opacities.100.value}' },
|
|
74
|
+
transform: { value: 'scale(1)' },
|
|
75
|
+
_disabled: {
|
|
76
|
+
backgroundColor: { value: '{colors.background.disabled.value}' },
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
label: {
|
|
81
|
+
_disabled: {
|
|
82
|
+
color: { value: '{colors.font.disabled.value}' },
|
|
83
|
+
},
|
|
84
|
+
},
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
export { checkbox };
|
|
@@ -1 +1,8 @@
|
|
|
1
|
-
const
|
|
1
|
+
const checkboxfield = {
|
|
2
|
+
alignItems: { value: 'flex-start' },
|
|
3
|
+
alignContent: { value: 'center' },
|
|
4
|
+
flexDirection: { value: 'column' },
|
|
5
|
+
justifyContent: { value: 'center' },
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export { checkboxfield };
|
|
@@ -1 +1,72 @@
|
|
|
1
|
-
|
|
1
|
+
//we are reusing the types from the nested components but new tokens need to be created that reference the previous tokens so that they can inherit the needed values but can be overwritten and only effect the collection component.
|
|
2
|
+
//only a subset of the design tokens of the nested components are being exposed, this can be expanded later.
|
|
3
|
+
const collection = {
|
|
4
|
+
pagination: {
|
|
5
|
+
current: {
|
|
6
|
+
color: { value: '{components.pagination.current.color}' },
|
|
7
|
+
backgroundColor: {
|
|
8
|
+
value: '{components.pagination.current.backgroundColor}',
|
|
9
|
+
},
|
|
10
|
+
},
|
|
11
|
+
button: {
|
|
12
|
+
color: { value: '{components.pagination.button.color}' },
|
|
13
|
+
_hover: {
|
|
14
|
+
backgroundColor: {
|
|
15
|
+
value: '{components.pagination.button.hover.backgroundColor}',
|
|
16
|
+
},
|
|
17
|
+
color: { value: '{components.pagination.button.hover.color}' },
|
|
18
|
+
},
|
|
19
|
+
_disabled: {
|
|
20
|
+
color: { value: '{components.pagination.button.disabled.color}' },
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
search: {
|
|
25
|
+
input: {
|
|
26
|
+
color: { value: '{components.searchfield.color}' },
|
|
27
|
+
},
|
|
28
|
+
button: {
|
|
29
|
+
color: { value: '{components.searchfield.button.color}' },
|
|
30
|
+
_active: {
|
|
31
|
+
backgroundColor: {
|
|
32
|
+
value: '{components.searchfield.button._active.backgroundColor}',
|
|
33
|
+
},
|
|
34
|
+
borderColor: {
|
|
35
|
+
value: '{components.searchfield.button._active.borderColor}',
|
|
36
|
+
},
|
|
37
|
+
color: { value: '{components.searchfield.button._active.color}' },
|
|
38
|
+
},
|
|
39
|
+
_disabled: {
|
|
40
|
+
backgroundColor: {
|
|
41
|
+
value: '{components.searchfield.button._disabled.backgroundColor}',
|
|
42
|
+
},
|
|
43
|
+
borderColor: {
|
|
44
|
+
value: '{components.searchfield.button._disabled.borderColor}',
|
|
45
|
+
},
|
|
46
|
+
color: {
|
|
47
|
+
value: '{components.searchfield.button._disabled.color}',
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
_focus: {
|
|
51
|
+
backgroundColor: {
|
|
52
|
+
value: '{components.searchfield.button._focus.backgroundColor}',
|
|
53
|
+
},
|
|
54
|
+
borderColor: {
|
|
55
|
+
value: '{components.searchfield.button._focus.borderColor}',
|
|
56
|
+
},
|
|
57
|
+
color: { value: '{components.searchfield.button._focus.color}' },
|
|
58
|
+
},
|
|
59
|
+
_hover: {
|
|
60
|
+
backgroundColor: {
|
|
61
|
+
value: '{components.searchfield.button._hover.backgroundColor}',
|
|
62
|
+
},
|
|
63
|
+
borderColor: {
|
|
64
|
+
value: '{components.searchfield.button._hover.borderColor}',
|
|
65
|
+
},
|
|
66
|
+
color: { value: '{components.searchfield.button._hover.color}' },
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
export { collection };
|
|
@@ -1 +1,18 @@
|
|
|
1
|
-
const
|
|
1
|
+
const copy = {
|
|
2
|
+
fontSize: { value: '{fontSizes.xs}' },
|
|
3
|
+
gap: { value: '{space.relative.medium}' },
|
|
4
|
+
svg: {
|
|
5
|
+
path: {
|
|
6
|
+
fill: {
|
|
7
|
+
value: '{colors.font.primary}',
|
|
8
|
+
},
|
|
9
|
+
},
|
|
10
|
+
},
|
|
11
|
+
toolTip: {
|
|
12
|
+
bottom: { value: '{space.large}' },
|
|
13
|
+
color: { value: '{colors.teal.100}' },
|
|
14
|
+
fontSize: { value: '{fontSizes.xxs}' },
|
|
15
|
+
},
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export { copy };
|
|
@@ -1 +1,22 @@
|
|
|
1
|
-
const
|
|
1
|
+
const divider = {
|
|
2
|
+
borderStyle: { value: 'solid' },
|
|
3
|
+
borderColor: { value: '{colors.border.primary.value}' },
|
|
4
|
+
borderWidth: { value: '{borderWidths.medium.value}' },
|
|
5
|
+
label: {
|
|
6
|
+
color: { value: '{colors.font.tertiary.value}' },
|
|
7
|
+
paddingInline: { value: '{space.medium.value}' },
|
|
8
|
+
fontSize: { value: '{fontSizes.small.value}' },
|
|
9
|
+
backgroundColor: { value: '{colors.background.primary.value}' },
|
|
10
|
+
},
|
|
11
|
+
small: {
|
|
12
|
+
borderWidth: { value: '{borderWidths.small.value}' },
|
|
13
|
+
},
|
|
14
|
+
large: {
|
|
15
|
+
borderWidth: { value: '{borderWidths.large.value}' },
|
|
16
|
+
},
|
|
17
|
+
opacity: {
|
|
18
|
+
value: '{opacities.60.value}',
|
|
19
|
+
},
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export { divider };
|
|
@@ -1 +1,46 @@
|
|
|
1
|
-
const
|
|
1
|
+
const dropzone = {
|
|
2
|
+
backgroundColor: { value: '{colors.background.primary}' },
|
|
3
|
+
borderRadius: { value: '{radii.small}' },
|
|
4
|
+
borderColor: { value: '{colors.border.primary}' },
|
|
5
|
+
borderStyle: { value: 'dashed' },
|
|
6
|
+
borderWidth: { value: '{borderWidths.small}' },
|
|
7
|
+
color: { value: '{colors.font.primary}' },
|
|
8
|
+
gap: { value: '{space.small}' },
|
|
9
|
+
paddingBlock: { value: '{space.xl}' },
|
|
10
|
+
paddingInline: { value: '{space.large}' },
|
|
11
|
+
textAlign: { value: 'center' },
|
|
12
|
+
_active: {
|
|
13
|
+
backgroundColor: { value: '{colors.primary.10}' },
|
|
14
|
+
borderRadius: { value: '{components.dropzone.borderRadius}' },
|
|
15
|
+
borderColor: { value: '{colors.border.pressed}' },
|
|
16
|
+
borderStyle: { value: '{components.dropzone.borderStyle}' },
|
|
17
|
+
borderWidth: { value: '{components.dropzone.borderWidth}' },
|
|
18
|
+
color: { value: '{colors.font.primary}' },
|
|
19
|
+
},
|
|
20
|
+
_disabled: {
|
|
21
|
+
backgroundColor: { value: '{colors.background.disabled}' },
|
|
22
|
+
borderRadius: { value: '{components.dropzone.borderRadius}' },
|
|
23
|
+
borderColor: { value: '{colors.border.disabled}' },
|
|
24
|
+
borderStyle: { value: '{components.dropzone.borderStyle}' },
|
|
25
|
+
borderWidth: { value: '{components.dropzone.borderWidth}' },
|
|
26
|
+
color: { value: '{colors.font.disabled}' },
|
|
27
|
+
},
|
|
28
|
+
accepted: {
|
|
29
|
+
backgroundColor: { value: '{colors.background.success}' },
|
|
30
|
+
borderRadius: { value: '{components.dropzone.borderRadius}' },
|
|
31
|
+
borderColor: { value: '{colors.border.success}' },
|
|
32
|
+
borderStyle: { value: '{components.dropzone.borderStyle}' },
|
|
33
|
+
borderWidth: { value: '{components.dropzone.borderWidth}' },
|
|
34
|
+
color: { value: '{colors.font.success}' },
|
|
35
|
+
},
|
|
36
|
+
rejected: {
|
|
37
|
+
backgroundColor: { value: '{colors.background.error}' },
|
|
38
|
+
borderRadius: { value: '{components.dropzone.borderRadius}' },
|
|
39
|
+
borderColor: { value: '{colors.border.pressed}' },
|
|
40
|
+
borderStyle: { value: '{components.dropzone.borderStyle}' },
|
|
41
|
+
borderWidth: { value: '{components.dropzone.borderWidth}' },
|
|
42
|
+
color: { value: '{colors.font.error}' },
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
export { dropzone };
|
|
@@ -1 +1,20 @@
|
|
|
1
|
-
const
|
|
1
|
+
const field = {
|
|
2
|
+
// default styles
|
|
3
|
+
gap: { value: '{space.xs.value}' },
|
|
4
|
+
fontSize: { value: '{fontSizes.medium.value}' },
|
|
5
|
+
flexDirection: { value: 'column' },
|
|
6
|
+
// Adjust base fontSize and gap for small and large sizes
|
|
7
|
+
small: {
|
|
8
|
+
gap: { value: '{space.xxxs.value}' },
|
|
9
|
+
fontSize: { value: '{fontSizes.small.value}' },
|
|
10
|
+
},
|
|
11
|
+
large: {
|
|
12
|
+
gap: { value: '{space.small.value}' },
|
|
13
|
+
fontSize: { value: '{fontSizes.large.value}' },
|
|
14
|
+
},
|
|
15
|
+
label: {
|
|
16
|
+
color: { value: '{colors.font.secondary.value}' },
|
|
17
|
+
},
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export { field };
|
|
@@ -1 +1,131 @@
|
|
|
1
|
-
const
|
|
1
|
+
const fieldcontrol = {
|
|
2
|
+
borderStyle: { value: 'solid' },
|
|
3
|
+
borderColor: { value: '{colors.border.primary.value}' },
|
|
4
|
+
borderWidth: { value: '{borderWidths.small.value}' },
|
|
5
|
+
borderRadius: { value: '{radii.small.value}' },
|
|
6
|
+
color: { value: '{colors.font.primary.value}' },
|
|
7
|
+
paddingBlockStart: {
|
|
8
|
+
value: '{space.xs.value}',
|
|
9
|
+
},
|
|
10
|
+
paddingBlockEnd: {
|
|
11
|
+
value: '{space.xs.value}',
|
|
12
|
+
},
|
|
13
|
+
paddingInlineStart: {
|
|
14
|
+
value: '{space.medium.value}',
|
|
15
|
+
},
|
|
16
|
+
paddingInlineEnd: {
|
|
17
|
+
value: '{space.medium.value}',
|
|
18
|
+
},
|
|
19
|
+
fontSize: { value: '{components.field.fontSize.value}' },
|
|
20
|
+
lineHeight: { value: '{lineHeights.medium.value}' },
|
|
21
|
+
transitionDuration: { value: '{time.medium.value}' },
|
|
22
|
+
outlineColor: { value: '{colors.transparent.value}' },
|
|
23
|
+
outlineStyle: { value: 'solid' },
|
|
24
|
+
outlineWidth: { value: '{outlineWidths.medium.value}' },
|
|
25
|
+
outlineOffset: { value: '{outlineOffsets.medium.value}' },
|
|
26
|
+
small: {
|
|
27
|
+
fontSize: { value: '{components.field.small.fontSize.value}' },
|
|
28
|
+
paddingBlockStart: {
|
|
29
|
+
value: '{space.xxs.value}',
|
|
30
|
+
},
|
|
31
|
+
paddingBlockEnd: {
|
|
32
|
+
value: '{space.xxs.value}',
|
|
33
|
+
},
|
|
34
|
+
paddingInlineStart: {
|
|
35
|
+
value: '{space.small.value}',
|
|
36
|
+
},
|
|
37
|
+
paddingInlineEnd: {
|
|
38
|
+
value: '{space.small.value}',
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
large: {
|
|
42
|
+
fontSize: { value: '{components.field.large.fontSize.value}' },
|
|
43
|
+
paddingBlockStart: {
|
|
44
|
+
value: '{space.xs.value}',
|
|
45
|
+
},
|
|
46
|
+
paddingBlockEnd: {
|
|
47
|
+
value: '{space.xs.value}',
|
|
48
|
+
},
|
|
49
|
+
paddingInlineStart: {
|
|
50
|
+
value: '{space.medium.value}',
|
|
51
|
+
},
|
|
52
|
+
paddingInlineEnd: {
|
|
53
|
+
value: '{space.medium.value}',
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
quiet: {
|
|
57
|
+
borderStyle: { value: 'none' },
|
|
58
|
+
borderInlineStart: { value: 'none' },
|
|
59
|
+
borderInlineEnd: { value: 'none' },
|
|
60
|
+
borderBlockStart: { value: 'none' },
|
|
61
|
+
borderRadius: { value: '0' },
|
|
62
|
+
_focus: {
|
|
63
|
+
borderBlockEndColor: { value: '{colors.border.focus.value}' },
|
|
64
|
+
boxShadow: {
|
|
65
|
+
value: {
|
|
66
|
+
offsetX: '0px',
|
|
67
|
+
offsetY: '1px',
|
|
68
|
+
color: '{colors.border.focus.value}',
|
|
69
|
+
blurRadius: '0px',
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
_error: {
|
|
74
|
+
borderBlockEndColor: { value: '{colors.border.error.value}' },
|
|
75
|
+
_focus: {
|
|
76
|
+
boxShadow: {
|
|
77
|
+
value: {
|
|
78
|
+
offsetX: '0px',
|
|
79
|
+
offsetY: '1px',
|
|
80
|
+
color: '{colors.border.error.value}',
|
|
81
|
+
blurRadius: '0px',
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
_focus: {
|
|
88
|
+
// These focus styles have been calibrated to create
|
|
89
|
+
// a highly visible focus indicator per WCAG 2.1 guidliness:
|
|
90
|
+
// See: https://www.w3.org/WAI/WCAG21/Techniques/general/G195.html
|
|
91
|
+
//
|
|
92
|
+
// Key features:
|
|
93
|
+
// * Focus indicator area is at least the 1 CSS px border around the component.
|
|
94
|
+
// * Contrast between focused and unfocused states has a ratio of 3:1
|
|
95
|
+
//
|
|
96
|
+
// IMPORTANT: Must recalibrate if `colors.border.primary` or `colors.focus` are changed
|
|
97
|
+
borderColor: { value: '{colors.border.focus.value}' },
|
|
98
|
+
boxShadow: {
|
|
99
|
+
value: {
|
|
100
|
+
offsetX: '0px',
|
|
101
|
+
offsetY: '0px',
|
|
102
|
+
blurRadius: '0px',
|
|
103
|
+
spreadRadius: '1px',
|
|
104
|
+
color: '{colors.border.focus.value}',
|
|
105
|
+
},
|
|
106
|
+
},
|
|
107
|
+
},
|
|
108
|
+
_disabled: {
|
|
109
|
+
color: { value: '{colors.font.disabled.value}' },
|
|
110
|
+
cursor: { value: 'not-allowed' },
|
|
111
|
+
borderColor: { value: '{colors.transparent.value}' },
|
|
112
|
+
backgroundColor: { value: '{colors.background.disabled.value}' },
|
|
113
|
+
},
|
|
114
|
+
_error: {
|
|
115
|
+
borderColor: { value: '{colors.border.error.value}' },
|
|
116
|
+
color: { value: '{colors.font.error.value}' },
|
|
117
|
+
_focus: {
|
|
118
|
+
boxShadow: {
|
|
119
|
+
value: {
|
|
120
|
+
offsetX: '0px',
|
|
121
|
+
offsetY: '0px',
|
|
122
|
+
blurRadius: '0px',
|
|
123
|
+
spreadRadius: '1px',
|
|
124
|
+
color: '{colors.border.error.value}',
|
|
125
|
+
},
|
|
126
|
+
},
|
|
127
|
+
},
|
|
128
|
+
},
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
export { fieldcontrol };
|
|
@@ -1 +1,11 @@
|
|
|
1
|
-
const
|
|
1
|
+
const fieldgroup = {
|
|
2
|
+
gap: { value: '{space.zero.value}' },
|
|
3
|
+
vertical: {
|
|
4
|
+
alignItems: { value: 'center' },
|
|
5
|
+
},
|
|
6
|
+
outer: {
|
|
7
|
+
alignItems: { value: 'center' },
|
|
8
|
+
},
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export { fieldgroup };
|
|
@@ -1 +1,13 @@
|
|
|
1
|
-
const
|
|
1
|
+
const fieldmessages = {
|
|
2
|
+
error: {
|
|
3
|
+
color: { value: '{colors.font.error.value}' },
|
|
4
|
+
fontSize: { value: '{fontSizes.small.value}' },
|
|
5
|
+
},
|
|
6
|
+
description: {
|
|
7
|
+
color: { value: '{colors.font.secondary.value}' },
|
|
8
|
+
fontStyle: { value: 'italic' },
|
|
9
|
+
fontSize: { value: '{fontSizes.small.value}' },
|
|
10
|
+
},
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export { fieldmessages };
|
|
@@ -1 +1,40 @@
|
|
|
1
|
-
const
|
|
1
|
+
const fieldset = {
|
|
2
|
+
backgroundColor: { value: 'transparent' },
|
|
3
|
+
borderRadius: { value: '{radii.xs.value}' },
|
|
4
|
+
flexDirection: {
|
|
5
|
+
value: 'column',
|
|
6
|
+
},
|
|
7
|
+
gap: { value: '{components.field.gap.value}' },
|
|
8
|
+
legend: {
|
|
9
|
+
color: { value: '{colors.font.primary.value}' },
|
|
10
|
+
fontSize: { value: '{components.field.fontSize.value}' },
|
|
11
|
+
fontWeight: { value: '{fontWeights.bold.value}' },
|
|
12
|
+
lineHeight: { value: '{lineHeights.medium.value}' },
|
|
13
|
+
small: {
|
|
14
|
+
fontSize: '{components.field.small.fontSize.value}',
|
|
15
|
+
},
|
|
16
|
+
large: {
|
|
17
|
+
fontSize: '{components.field.large.fontSize.value}',
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
outlined: {
|
|
21
|
+
padding: '{space.medium.value}',
|
|
22
|
+
borderColor: '{colors.neutral.40.value}',
|
|
23
|
+
borderWidth: '{borderWidths.small.value}',
|
|
24
|
+
borderStyle: 'solid',
|
|
25
|
+
small: {
|
|
26
|
+
padding: '{space.small.value}',
|
|
27
|
+
},
|
|
28
|
+
large: {
|
|
29
|
+
padding: '{space.large.value}',
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
small: {
|
|
33
|
+
gap: '{components.field.small.gap.value}',
|
|
34
|
+
},
|
|
35
|
+
large: {
|
|
36
|
+
gap: '{components.field.large.gap.value}',
|
|
37
|
+
},
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export { fieldset };
|
|
@@ -1 +1,9 @@
|
|
|
1
|
-
const
|
|
1
|
+
const flex = {
|
|
2
|
+
gap: { value: '{space.medium.value}' },
|
|
3
|
+
justifyContent: { value: 'normal' },
|
|
4
|
+
alignItems: { value: 'stretch' },
|
|
5
|
+
alignContent: { value: 'normal' },
|
|
6
|
+
flexWrap: { value: 'nowrap' },
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export { flex };
|
|
@@ -1 +1,30 @@
|
|
|
1
|
-
const
|
|
1
|
+
const heading = {
|
|
2
|
+
color: { value: '{colors.font.primary.value}' },
|
|
3
|
+
lineHeight: { value: '{lineHeights.small.value}' },
|
|
4
|
+
1: {
|
|
5
|
+
fontSize: { value: '{fontSizes.xxxxl.value}' },
|
|
6
|
+
fontWeight: { value: '{fontWeights.light.value}' },
|
|
7
|
+
},
|
|
8
|
+
2: {
|
|
9
|
+
fontSize: { value: '{fontSizes.xxxl.value}' },
|
|
10
|
+
fontWeight: { value: '{fontWeights.normal.value}' },
|
|
11
|
+
},
|
|
12
|
+
3: {
|
|
13
|
+
fontSize: { value: '{fontSizes.xxl.value}' },
|
|
14
|
+
fontWeight: { value: '{fontWeights.medium.value}' },
|
|
15
|
+
},
|
|
16
|
+
4: {
|
|
17
|
+
fontSize: { value: '{fontSizes.xl.value}' },
|
|
18
|
+
fontWeight: { value: '{fontWeights.semibold.value}' },
|
|
19
|
+
},
|
|
20
|
+
5: {
|
|
21
|
+
fontSize: { value: '{fontSizes.large.value}' },
|
|
22
|
+
fontWeight: { value: '{fontWeights.bold.value}' },
|
|
23
|
+
},
|
|
24
|
+
6: {
|
|
25
|
+
fontSize: { value: '{fontSizes.medium.value}' },
|
|
26
|
+
fontWeight: { value: '{fontWeights.extrabold.value}' },
|
|
27
|
+
},
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export { heading };
|
|
@@ -1 +1,8 @@
|
|
|
1
|
-
const
|
|
1
|
+
const image = {
|
|
2
|
+
maxWidth: { value: '100%' },
|
|
3
|
+
height: { value: 'auto' },
|
|
4
|
+
objectFit: { value: 'initial' },
|
|
5
|
+
objectPosition: { value: 'initial' },
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export { image };
|
|
@@ -1 +1,23 @@
|
|
|
1
|
-
const
|
|
1
|
+
const inappmessaging = {
|
|
2
|
+
banner: {
|
|
3
|
+
height: { value: '150px ' },
|
|
4
|
+
width: { value: '400px ' },
|
|
5
|
+
},
|
|
6
|
+
button: {
|
|
7
|
+
backgroundColor: { value: '#e8e8e8' },
|
|
8
|
+
borderRadius: { value: '5px' },
|
|
9
|
+
color: { value: 'black' },
|
|
10
|
+
},
|
|
11
|
+
dialog: {
|
|
12
|
+
height: { value: '50vh' },
|
|
13
|
+
minHeight: { value: '400px' },
|
|
14
|
+
minWidth: { value: '400px' },
|
|
15
|
+
width: { value: '30vw' },
|
|
16
|
+
},
|
|
17
|
+
header: {
|
|
18
|
+
fontSize: { value: '{fontSizes.medium.value}' },
|
|
19
|
+
fontWeight: { value: '{fontWeights.extrabold.value}' },
|
|
20
|
+
},
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export { inappmessaging };
|