@telefonica/mistica 16.59.0-beta.1 → 16.59.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/css/mistica.css +1 -1
- package/dist/accordion.css-mistica.js +16 -16
- package/dist/align.css-mistica.js +2 -2
- package/dist/autocomplete.css-mistica.js +6 -6
- package/dist/avatar.css-mistica.js +3 -3
- package/dist/badge.css-mistica.js +7 -7
- package/dist/box.css-mistica.js +15 -15
- package/dist/boxed.css-mistica.js +31 -31
- package/dist/button-group.css-mistica.js +10 -10
- package/dist/button-layout.css-mistica.js +21 -21
- package/dist/button.css-mistica.js +51 -51
- package/dist/callout.css-mistica.js +16 -16
- package/dist/card-internal.css-mistica.js +38 -38
- package/dist/carousel.css-mistica.js +18 -18
- package/dist/checkbox.css-mistica.js +21 -21
- package/dist/chip.css-mistica.js +30 -30
- package/dist/circle.css-mistica.js +2 -2
- package/dist/community/advanced-data-card.css-mistica.js +26 -26
- package/dist/community/blocks.css-mistica.js +3 -3
- package/dist/community/example-component.css-mistica.js +2 -2
- package/dist/counter.css-mistica.js +12 -12
- package/dist/cover-hero.css-mistica.js +16 -16
- package/dist/credit-card-number-field.css-mistica.js +6 -6
- package/dist/date-field.css-mistica.js +1 -1
- package/dist/date-time-picker.css-mistica.js +2 -2
- package/dist/dialog.css-mistica.js +15 -15
- package/dist/divider.css-mistica.js +5 -5
- package/dist/double-field.css-mistica.js +4 -4
- package/dist/drawer.css-mistica.js +15 -15
- package/dist/empty-state-card.css-mistica.js +4 -4
- package/dist/empty-state.css-mistica.js +14 -14
- package/dist/fade-in.css-mistica.js +1 -1
- package/dist/feedback.css-mistica.js +14 -14
- package/dist/file-upload.css-mistica.js +14 -14
- package/dist/fixed-footer-layout.css-mistica.js +12 -12
- package/dist/form.css-mistica.js +2 -2
- package/dist/grid-layout.css-mistica.js +9 -9
- package/dist/grid.css-mistica.js +147 -147
- package/dist/header.css-mistica.js +5 -5
- package/dist/hero.css-mistica.js +11 -11
- package/dist/horizontal-scroll.css-mistica.js +3 -3
- package/dist/icon-button.css-mistica.js +66 -66
- package/dist/icons/icon-chevron.css-mistica.js +6 -6
- package/dist/icons/icon-error.css-mistica.js +3 -3
- package/dist/image.css-mistica.js +11 -11
- package/dist/inline.css-mistica.js +16 -16
- package/dist/list.css-mistica.js +15 -15
- package/dist/loading-bar.css-mistica.js +5 -5
- package/dist/loading-screen.css-mistica.js +15 -15
- package/dist/logo.css-mistica.js +9 -9
- package/dist/menu.css-mistica.js +24 -24
- package/dist/mosaic.css-mistica.js +3 -3
- package/dist/navigation-bar.css-mistica.js +45 -45
- package/dist/navigation-breadcrumbs.css-mistica.js +5 -5
- package/dist/package-version.js +2 -2
- package/dist/pin-field.css-mistica.js +10 -10
- package/dist/popover.css-mistica.js +2 -2
- package/dist/progress-bar.css-mistica.js +12 -12
- package/dist/radio-button.css-mistica.js +33 -33
- package/dist/rating.css-mistica.js +12 -12
- package/dist/responsive-layout.css-mistica.js +20 -20
- package/dist/screen-reader-only.css-mistica.js +2 -2
- package/dist/select.css-mistica.js +29 -29
- package/dist/sheet-action-row.css-mistica.js +2 -2
- package/dist/sheet-common.css-mistica.js +16 -16
- package/dist/sheet-info.css-mistica.js +4 -4
- package/dist/skeletons.css-mistica.js +12 -12
- package/dist/skins/skin-contract.css-mistica.js +686 -686
- package/dist/skip-link.css-mistica.js +3 -3
- package/dist/slider.css-mistica.js +28 -28
- package/dist/snackbar.css-mistica.js +16 -16
- package/dist/spinner.css-mistica.js +5 -5
- package/dist/square.css-mistica.js +2 -2
- package/dist/stack.css-mistica.js +9 -9
- package/dist/stacking-group.css-mistica.js +2 -2
- package/dist/stepper.css-mistica.js +16 -16
- package/dist/switch-component.css-mistica.js +53 -53
- package/dist/table.css-mistica.js +24 -24
- package/dist/tabs.css-mistica.js +30 -30
- package/dist/tag.css-mistica.js +5 -5
- package/dist/text-field-base.css-mistica.js +30 -30
- package/dist/text-field-components.css-mistica.js +23 -20
- package/dist/text-field-components.css.d.ts +1 -0
- package/dist/text-field-components.js +31 -25
- package/dist/text-link.css-mistica.js +10 -10
- package/dist/text.css-mistica.js +13 -13
- package/dist/theme-context.css-mistica.js +2 -2
- package/dist/timeline.css-mistica.js +18 -18
- package/dist/timer.css-mistica.js +13 -13
- package/dist/tooltip.css-mistica.js +12 -12
- package/dist/touchable.css-mistica.js +5 -5
- package/dist/utils/aspect-ratio-support.css-mistica.js +7 -7
- package/dist/video.css-mistica.js +2 -2
- package/dist/vivinho-loading-animation/vivinho-loading-animation.css-mistica.js +3 -3
- package/dist-es/accordion.css-mistica.js +7 -7
- package/dist-es/align.css-mistica.js +2 -2
- package/dist-es/autocomplete.css-mistica.js +2 -2
- package/dist-es/avatar.css-mistica.js +2 -2
- package/dist-es/badge.css-mistica.js +2 -2
- package/dist-es/box.css-mistica.js +15 -15
- package/dist-es/boxed.css-mistica.js +25 -25
- package/dist-es/button-group.css-mistica.js +2 -2
- package/dist-es/button-layout.css-mistica.js +16 -16
- package/dist-es/button.css-mistica.js +38 -38
- package/dist-es/callout.css-mistica.js +12 -12
- package/dist-es/card-internal.css-mistica.js +20 -20
- package/dist-es/carousel.css-mistica.js +10 -10
- package/dist-es/checkbox.css-mistica.js +14 -14
- package/dist-es/chip.css-mistica.js +17 -17
- package/dist-es/circle.css-mistica.js +2 -2
- package/dist-es/community/advanced-data-card.css-mistica.js +7 -7
- package/dist-es/community/blocks.css-mistica.js +2 -2
- package/dist-es/community/example-component.css-mistica.js +2 -2
- package/dist-es/counter.css-mistica.js +2 -2
- package/dist-es/cover-hero.css-mistica.js +4 -4
- package/dist-es/credit-card-number-field.css-mistica.js +4 -4
- package/dist-es/date-field.css-mistica.js +1 -1
- package/dist-es/date-time-picker.css-mistica.js +2 -2
- package/dist-es/dialog.css-mistica.js +5 -5
- package/dist-es/divider.css-mistica.js +5 -5
- package/dist-es/double-field.css-mistica.js +4 -4
- package/dist-es/drawer.css-mistica.js +2 -2
- package/dist-es/empty-state-card.css-mistica.js +2 -2
- package/dist-es/empty-state.css-mistica.js +7 -7
- package/dist-es/fade-in.css-mistica.js +1 -1
- package/dist-es/feedback.css-mistica.js +2 -2
- package/dist-es/file-upload.css-mistica.js +8 -8
- package/dist-es/fixed-footer-layout.css-mistica.js +4 -4
- package/dist-es/form.css-mistica.js +2 -2
- package/dist-es/grid-layout.css-mistica.js +4 -4
- package/dist-es/grid.css-mistica.js +127 -127
- package/dist-es/header.css-mistica.js +2 -2
- package/dist-es/hero.css-mistica.js +4 -4
- package/dist-es/horizontal-scroll.css-mistica.js +2 -2
- package/dist-es/icon-button.css-mistica.js +56 -56
- package/dist-es/icons/icon-chevron.css-mistica.js +4 -4
- package/dist-es/icons/icon-error.css-mistica.js +2 -2
- package/dist-es/image.css-mistica.js +4 -4
- package/dist-es/inline.css-mistica.js +10 -10
- package/dist-es/list.css-mistica.js +2 -2
- package/dist-es/loading-bar.css-mistica.js +2 -2
- package/dist-es/loading-screen.css-mistica.js +5 -5
- package/dist-es/logo.css-mistica.js +7 -7
- package/dist-es/menu.css-mistica.js +15 -15
- package/dist-es/mosaic.css-mistica.js +2 -2
- package/dist-es/navigation-bar.css-mistica.js +20 -20
- package/dist-es/navigation-breadcrumbs.css-mistica.js +2 -2
- package/dist-es/package-version.js +2 -2
- package/dist-es/pin-field.css-mistica.js +2 -2
- package/dist-es/popover.css-mistica.js +2 -2
- package/dist-es/progress-bar.css-mistica.js +8 -8
- package/dist-es/radio-button.css-mistica.js +25 -25
- package/dist-es/rating.css-mistica.js +4 -4
- package/dist-es/responsive-layout.css-mistica.js +7 -7
- package/dist-es/screen-reader-only.css-mistica.js +2 -2
- package/dist-es/select.css-mistica.js +20 -20
- package/dist-es/sheet-action-row.css-mistica.js +2 -2
- package/dist-es/sheet-common.css-mistica.js +2 -2
- package/dist-es/sheet-info.css-mistica.js +2 -2
- package/dist-es/skeletons.css-mistica.js +8 -8
- package/dist-es/skins/skin-contract.css-mistica.js +686 -686
- package/dist-es/skip-link.css-mistica.js +2 -2
- package/dist-es/slider.css-mistica.js +20 -20
- package/dist-es/snackbar.css-mistica.js +5 -5
- package/dist-es/spinner.css-mistica.js +2 -2
- package/dist-es/square.css-mistica.js +2 -2
- package/dist-es/stack.css-mistica.js +7 -7
- package/dist-es/stacking-group.css-mistica.js +2 -2
- package/dist-es/stepper.css-mistica.js +4 -4
- package/dist-es/style.css +1 -1
- package/dist-es/switch-component.css-mistica.js +41 -41
- package/dist-es/table.css-mistica.js +11 -11
- package/dist-es/tabs.css-mistica.js +21 -21
- package/dist-es/tag.css-mistica.js +2 -2
- package/dist-es/text-field-base.css-mistica.js +17 -17
- package/dist-es/text-field-components.css-mistica.js +4 -4
- package/dist-es/text-field-components.js +52 -46
- package/dist-es/text-link.css-mistica.js +9 -9
- package/dist-es/text.css-mistica.js +8 -8
- package/dist-es/theme-context.css-mistica.js +2 -2
- package/dist-es/timeline.css-mistica.js +11 -11
- package/dist-es/timer.css-mistica.js +7 -7
- package/dist-es/tooltip.css-mistica.js +3 -3
- package/dist-es/touchable.css-mistica.js +2 -2
- package/dist-es/utils/aspect-ratio-support.css-mistica.js +4 -4
- package/dist-es/video.css-mistica.js +2 -2
- package/dist-es/vivinho-loading-animation/vivinho-loading-animation.css-mistica.js +2 -2
- package/doc/llms.md +0 -24
- package/package.json +1 -13
- package/src/accordion.css.ts +0 -121
- package/src/accordion.tsx +0 -366
- package/src/align.css.ts +0 -7
- package/src/align.tsx +0 -32
- package/src/autocomplete.css.ts +0 -62
- package/src/autocomplete.tsx +0 -239
- package/src/avatar.css.ts +0 -14
- package/src/avatar.tsx +0 -120
- package/src/badge.css.ts +0 -51
- package/src/badge.tsx +0 -79
- package/src/box.css.ts +0 -51
- package/src/box.tsx +0 -114
- package/src/boxed.css.ts +0 -132
- package/src/boxed.tsx +0 -153
- package/src/button-fixed-footer-layout.tsx +0 -62
- package/src/button-group.css.ts +0 -75
- package/src/button-group.tsx +0 -91
- package/src/button-layout.css.ts +0 -162
- package/src/button-layout.tsx +0 -91
- package/src/button.css.ts +0 -758
- package/src/button.tsx +0 -632
- package/src/callout.css.ts +0 -50
- package/src/callout.tsx +0 -147
- package/src/card-cover.tsx +0 -242
- package/src/card-data.tsx +0 -152
- package/src/card-internal.css.ts +0 -271
- package/src/card-internal.tsx +0 -1724
- package/src/card-media.tsx +0 -157
- package/src/card-naked.tsx +0 -63
- package/src/carousel.css.ts +0 -522
- package/src/carousel.tsx +0 -1300
- package/src/checkbox.css.ts +0 -94
- package/src/checkbox.tsx +0 -192
- package/src/chip.css.ts +0 -204
- package/src/chip.tsx +0 -191
- package/src/circle.css.ts +0 -14
- package/src/circle.tsx +0 -52
- package/src/community/__screenshot_tests__/__image_snapshots__/advanced-data-card-screenshot-test-tsx-advanced-data-card-actions-button-and-link-footer-image-false-1-snap.png +0 -0
- package/src/community/__screenshot_tests__/__image_snapshots__/advanced-data-card-screenshot-test-tsx-advanced-data-card-actions-button-and-link-footer-image-true-1-snap.png +0 -0
- package/src/community/__screenshot_tests__/__image_snapshots__/advanced-data-card-screenshot-test-tsx-advanced-data-card-actions-button-footer-image-false-1-snap.png +0 -0
- package/src/community/__screenshot_tests__/__image_snapshots__/advanced-data-card-screenshot-test-tsx-advanced-data-card-actions-button-footer-image-true-1-snap.png +0 -0
- package/src/community/__screenshot_tests__/__image_snapshots__/advanced-data-card-screenshot-test-tsx-advanced-data-card-actions-link-footer-image-false-1-snap.png +0 -0
- package/src/community/__screenshot_tests__/__image_snapshots__/advanced-data-card-screenshot-test-tsx-advanced-data-card-actions-link-footer-image-true-1-snap.png +0 -0
- package/src/community/__screenshot_tests__/__image_snapshots__/advanced-data-card-screenshot-test-tsx-advanced-data-card-actions-none-footer-image-false-1-snap.png +0 -0
- package/src/community/__screenshot_tests__/__image_snapshots__/advanced-data-card-screenshot-test-tsx-advanced-data-card-actions-none-footer-image-true-1-snap.png +0 -0
- package/src/community/__screenshot_tests__/__image_snapshots__/advanced-data-card-screenshot-test-tsx-advanced-data-card-extras-0-1-snap.png +0 -0
- package/src/community/__screenshot_tests__/__image_snapshots__/advanced-data-card-screenshot-test-tsx-advanced-data-card-extras-1-1-snap.png +0 -0
- package/src/community/__screenshot_tests__/__image_snapshots__/advanced-data-card-screenshot-test-tsx-advanced-data-card-extras-3-1-snap.png +0 -0
- package/src/community/__screenshot_tests__/__image_snapshots__/advanced-data-card-screenshot-test-tsx-advanced-data-card-extras-3-no-divider-1-snap.png +0 -0
- package/src/community/__screenshot_tests__/__image_snapshots__/advanced-data-card-screenshot-test-tsx-advanced-data-card-inside-carousel-1-snap.png +0 -0
- package/src/community/__screenshot_tests__/__image_snapshots__/advanced-data-card-screenshot-test-tsx-advanced-data-card-without-stacking-group-with-top-actions-and-too-long-title-1-snap.png +0 -0
- package/src/community/__screenshot_tests__/__image_snapshots__/blocks-screenshot-test-tsx-blocks-highlighted-value-block-1-snap.png +0 -0
- package/src/community/__screenshot_tests__/__image_snapshots__/blocks-screenshot-test-tsx-blocks-information-block-1-snap.png +0 -0
- package/src/community/__screenshot_tests__/__image_snapshots__/blocks-screenshot-test-tsx-blocks-progress-block-1-snap.png +0 -0
- package/src/community/__screenshot_tests__/__image_snapshots__/blocks-screenshot-test-tsx-blocks-progress-block-2-snap.png +0 -0
- package/src/community/__screenshot_tests__/__image_snapshots__/blocks-screenshot-test-tsx-blocks-row-block-1-snap.png +0 -0
- package/src/community/__screenshot_tests__/__image_snapshots__/blocks-screenshot-test-tsx-blocks-simple-block-1-snap.png +0 -0
- package/src/community/__screenshot_tests__/__image_snapshots__/blocks-screenshot-test-tsx-blocks-value-block-1-snap.png +0 -0
- package/src/community/__screenshot_tests__/advanced-data-card-screenshot-test.tsx +0 -84
- package/src/community/__screenshot_tests__/blocks-screenshot-test.tsx +0 -72
- package/src/community/__stories__/advanced-data-card-carousel-story.tsx +0 -66
- package/src/community/__stories__/advanced-data-card-story.tsx +0 -158
- package/src/community/__stories__/blocks-story.tsx +0 -272
- package/src/community/__stories__/example-component-story.tsx +0 -15
- package/src/community/__stories__/index-story.tsx +0 -154
- package/src/community/__type_tests__/advanced-data-card-type-test.tsx +0 -40
- package/src/community/advanced-data-card.css.ts +0 -271
- package/src/community/advanced-data-card.tsx +0 -431
- package/src/community/blocks.css.ts +0 -12
- package/src/community/blocks.tsx +0 -290
- package/src/community/example-component.css.ts +0 -7
- package/src/community/example-component.tsx +0 -17
- package/src/community/index.tsx +0 -10
- package/src/counter.css.ts +0 -150
- package/src/counter.tsx +0 -215
- package/src/cover-hero-media.tsx +0 -39
- package/src/cover-hero.css.ts +0 -133
- package/src/cover-hero.tsx +0 -262
- package/src/credit-card-expiration-field.tsx +0 -187
- package/src/credit-card-fields.tsx +0 -56
- package/src/credit-card-number-field.css.ts +0 -47
- package/src/credit-card-number-field.tsx +0 -245
- package/src/cvv-field.tsx +0 -169
- package/src/date-field.css.ts +0 -14
- package/src/date-field.tsx +0 -130
- package/src/date-time-field.tsx +0 -141
- package/src/date-time-picker.css.ts +0 -126
- package/src/date-time-picker.tsx +0 -188
- package/src/decimal-field.tsx +0 -160
- package/src/desktop-container-type-context.tsx +0 -15
- package/src/dialog-context.tsx +0 -81
- package/src/dialog.css.ts +0 -155
- package/src/dialog.tsx +0 -423
- package/src/divider.css.ts +0 -10
- package/src/divider.tsx +0 -11
- package/src/double-field.css.ts +0 -33
- package/src/double-field.tsx +0 -71
- package/src/drawer.css.ts +0 -123
- package/src/drawer.tsx +0 -304
- package/src/email-field.tsx +0 -76
- package/src/empty-state-card.css.ts +0 -40
- package/src/empty-state-card.tsx +0 -92
- package/src/empty-state.css.ts +0 -119
- package/src/empty-state.tsx +0 -141
- package/src/fade-in.css.ts +0 -12
- package/src/fade-in.tsx +0 -40
- package/src/feedback.css.ts +0 -119
- package/src/feedback.tsx +0 -432
- package/src/file-upload.css.ts +0 -156
- package/src/file-upload.tsx +0 -612
- package/src/fixed-footer-layout.css.ts +0 -96
- package/src/fixed-footer-layout.tsx +0 -215
- package/src/fixed-to-top.tsx +0 -21
- package/src/focus-trap.tsx +0 -17
- package/src/form-context.tsx +0 -198
- package/src/form.css.ts +0 -5
- package/src/form.tsx +0 -287
- package/src/grid-layout.css.ts +0 -68
- package/src/grid-layout.tsx +0 -201
- package/src/grid.css.ts +0 -203
- package/src/grid.tsx +0 -241
- package/src/header.css.ts +0 -30
- package/src/header.tsx +0 -319
- package/src/hero.css.ts +0 -71
- package/src/hero.tsx +0 -318
- package/src/hooks.tsx +0 -313
- package/src/horizontal-scroll.css.ts +0 -43
- package/src/horizontal-scroll.tsx +0 -18
- package/src/iban-field.tsx +0 -218
- package/src/icon-button.css.ts +0 -561
- package/src/icon-button.tsx +0 -221
- package/src/icons/__stories__/mistica-icons-story.tsx +0 -192
- package/src/icons/icon-amex.tsx +0 -40
- package/src/icons/icon-chevron.css.ts +0 -23
- package/src/icons/icon-chevron.tsx +0 -150
- package/src/icons/icon-cvv-amex.tsx +0 -31
- package/src/icons/icon-cvv-visa-mc.tsx +0 -31
- package/src/icons/icon-error.css.ts +0 -27
- package/src/icons/icon-error.tsx +0 -207
- package/src/icons/icon-info.tsx +0 -86
- package/src/icons/icon-mastercard.tsx +0 -36
- package/src/icons/icon-success-vivo-new.tsx +0 -51
- package/src/icons/icon-success-vivo.tsx +0 -36
- package/src/icons/icon-success.tsx +0 -211
- package/src/icons/icon-visa.tsx +0 -32
- package/src/image.css.ts +0 -48
- package/src/image.tsx +0 -345
- package/src/index.tsx +0 -2466
- package/src/inline.css.ts +0 -131
- package/src/inline.tsx +0 -135
- package/src/integer-field.tsx +0 -93
- package/src/list.css.ts +0 -281
- package/src/list.tsx +0 -963
- package/src/loading-bar.css.ts +0 -69
- package/src/loading-bar.tsx +0 -25
- package/src/loading-screen.css.ts +0 -114
- package/src/loading-screen.tsx +0 -376
- package/src/logo-blau-shell.tsx +0 -30
- package/src/logo-blau.tsx +0 -60
- package/src/logo-common.tsx +0 -29
- package/src/logo-esimflag-shell.tsx +0 -30
- package/src/logo-esimflag.tsx +0 -56
- package/src/logo-movistar-new-shell.tsx +0 -30
- package/src/logo-movistar-new.tsx +0 -85
- package/src/logo-movistar-shell.tsx +0 -30
- package/src/logo-movistar.tsx +0 -63
- package/src/logo-o2-new-shell.tsx +0 -26
- package/src/logo-o2-new.tsx +0 -27
- package/src/logo-o2-shell.tsx +0 -26
- package/src/logo-o2.tsx +0 -27
- package/src/logo-telefonica-shell.tsx +0 -30
- package/src/logo-telefonica.tsx +0 -95
- package/src/logo-tu-shell.tsx +0 -26
- package/src/logo-tu.tsx +0 -28
- package/src/logo-vivo-shell.tsx +0 -30
- package/src/logo-vivo.tsx +0 -53
- package/src/logo.css.ts +0 -33
- package/src/logo.tsx +0 -313
- package/src/master-detail-layout.tsx +0 -28
- package/src/maybe-dismissable.css.ts +0 -37
- package/src/maybe-dismissable.tsx +0 -58
- package/src/media-queries.css.ts +0 -67
- package/src/menu.css.ts +0 -132
- package/src/menu.tsx +0 -468
- package/src/meter.tsx +0 -516
- package/src/modal-context-provider.tsx +0 -45
- package/src/month-field.tsx +0 -124
- package/src/mosaic.css.ts +0 -73
- package/src/mosaic.tsx +0 -205
- package/src/navigation-bar.css.ts +0 -558
- package/src/navigation-bar.tsx +0 -1637
- package/src/navigation-breadcrumbs.css.ts +0 -22
- package/src/navigation-breadcrumbs.tsx +0 -69
- package/src/negative-box.tsx +0 -15
- package/src/nestable-context.tsx +0 -139
- package/src/overlay.tsx +0 -86
- package/src/overscroll-color-context.tsx +0 -141
- package/src/package-version.tsx +0 -2
- package/src/password-field.tsx +0 -126
- package/src/phone-number-field-lite.tsx +0 -265
- package/src/phone-number-field.tsx +0 -171
- package/src/pin-field.css.ts +0 -90
- package/src/pin-field.tsx +0 -346
- package/src/placeholder.tsx +0 -41
- package/src/popover.css.ts +0 -8
- package/src/popover.tsx +0 -85
- package/src/portal.tsx +0 -43
- package/src/progress-bar.css.ts +0 -61
- package/src/progress-bar.tsx +0 -174
- package/src/radio-button.css.ts +0 -174
- package/src/radio-button.tsx +0 -322
- package/src/rating.css.ts +0 -128
- package/src/rating.tsx +0 -351
- package/src/responsive-layout.css.ts +0 -162
- package/src/responsive-layout.tsx +0 -106
- package/src/screen-reader-only.css.ts +0 -27
- package/src/screen-reader-only.tsx +0 -33
- package/src/screen-size-context-provider.tsx +0 -96
- package/src/screen-size-context.tsx +0 -23
- package/src/search-field.tsx +0 -126
- package/src/select.css.ts +0 -226
- package/src/select.tsx +0 -513
- package/src/sheet-action-row.css.ts +0 -33
- package/src/sheet-actions-list.tsx +0 -113
- package/src/sheet-actions.tsx +0 -95
- package/src/sheet-common.css.ts +0 -254
- package/src/sheet-common.tsx +0 -402
- package/src/sheet-info.css.ts +0 -19
- package/src/sheet-info.tsx +0 -127
- package/src/sheet-native.tsx +0 -189
- package/src/sheet-radio-list.tsx +0 -118
- package/src/sheet-root.tsx +0 -127
- package/src/sheet-types.tsx +0 -94
- package/src/sheet-web.tsx +0 -140
- package/src/skeleton-base.tsx +0 -38
- package/src/skeletons.css.ts +0 -56
- package/src/skeletons.tsx +0 -133
- package/src/skins/blau.tsx +0 -724
- package/src/skins/constants.tsx +0 -10
- package/src/skins/defaults.tsx +0 -104
- package/src/skins/esimflag.tsx +0 -728
- package/src/skins/movistar-new.tsx +0 -735
- package/src/skins/movistar.tsx +0 -740
- package/src/skins/o2-new.tsx +0 -731
- package/src/skins/o2.tsx +0 -727
- package/src/skins/skin-contract.css.ts +0 -380
- package/src/skins/telefonica.tsx +0 -768
- package/src/skins/tu.tsx +0 -741
- package/src/skins/types/colors.tsx +0 -286
- package/src/skins/types/index.tsx +0 -153
- package/src/skins/utils.tsx +0 -66
- package/src/skins/vivo-new.tsx +0 -745
- package/src/skins/vivo.tsx +0 -720
- package/src/skip-link.css.ts +0 -34
- package/src/skip-link.tsx +0 -52
- package/src/slider.css.ts +0 -181
- package/src/slider.tsx +0 -384
- package/src/snackbar-context.tsx +0 -98
- package/src/snackbar-native.ts +0 -37
- package/src/snackbar.css.ts +0 -176
- package/src/snackbar.tsx +0 -258
- package/src/spinner.css.ts +0 -66
- package/src/spinner.tsx +0 -136
- package/src/sprinkles.css.ts +0 -83
- package/src/square.css.ts +0 -15
- package/src/square.tsx +0 -55
- package/src/stack.css.ts +0 -44
- package/src/stack.tsx +0 -79
- package/src/stacking-group.css.ts +0 -15
- package/src/stacking-group.tsx +0 -82
- package/src/stepper.css.ts +0 -233
- package/src/stepper.tsx +0 -156
- package/src/switch-component.css.ts +0 -181
- package/src/switch-component.tsx +0 -187
- package/src/tab-focus.tsx +0 -68
- package/src/table-actions-header.tsx +0 -21
- package/src/table-cell-text.tsx +0 -35
- package/src/table.css.ts +0 -297
- package/src/table.tsx +0 -398
- package/src/tabs.css.ts +0 -212
- package/src/tabs.tsx +0 -263
- package/src/tag.css.ts +0 -42
- package/src/tag.tsx +0 -161
- package/src/test-utils/environment/setup-ssr.tsx +0 -10
- package/src/test-utils/fail-test-on-console-error.tsx +0 -22
- package/src/test-utils/index.tsx +0 -341
- package/src/test-utils/setup-ssr-test-env.tsx +0 -13
- package/src/test-utils/ssr.tsx +0 -197
- package/src/text-field-base.css.ts +0 -416
- package/src/text-field-base.tsx +0 -628
- package/src/text-field-components.css.ts +0 -159
- package/src/text-field-components.tsx +0 -225
- package/src/text-field.tsx +0 -118
- package/src/text-link.css.ts +0 -83
- package/src/text-link.tsx +0 -85
- package/src/text-tokens.tsx +0 -708
- package/src/text.css.ts +0 -60
- package/src/text.tsx +0 -516
- package/src/theme-context-provider.tsx +0 -370
- package/src/theme-context.css.ts +0 -3
- package/src/theme-context.tsx +0 -8
- package/src/theme-variant-context.tsx +0 -51
- package/src/theme.tsx +0 -184
- package/src/time-field.tsx +0 -99
- package/src/timeline.css.ts +0 -135
- package/src/timeline.tsx +0 -250
- package/src/timer.css.ts +0 -99
- package/src/timer.tsx +0 -420
- package/src/title.tsx +0 -119
- package/src/tooltip-context-provider.tsx +0 -57
- package/src/tooltip.css.ts +0 -106
- package/src/tooltip.tsx +0 -649
- package/src/touchable.css.ts +0 -56
- package/src/touchable.tsx +0 -355
- package/src/types/font-face.d.ts +0 -47
- package/src/types/libs.d.ts +0 -3
- package/src/utils/__tests__/analytics-test.tsx +0 -35
- package/src/utils/__tests__/browser-test.tsx +0 -28
- package/src/utils/__tests__/dom-test.tsx +0 -23
- package/src/utils/__tests__/helpers-test.tsx +0 -166
- package/src/utils/analytics.tsx +0 -28
- package/src/utils/animation.tsx +0 -201
- package/src/utils/aspect-ratio-support.css.ts +0 -28
- package/src/utils/aspect-ratio-support.tsx +0 -141
- package/src/utils/browser.tsx +0 -9
- package/src/utils/color.tsx +0 -46
- package/src/utils/common.tsx +0 -27
- package/src/utils/credit-card.tsx +0 -46
- package/src/utils/css.tsx +0 -25
- package/src/utils/document-visibility.tsx +0 -52
- package/src/utils/dom.tsx +0 -155
- package/src/utils/environment.tsx +0 -6
- package/src/utils/headings.tsx +0 -18
- package/src/utils/helpers.tsx +0 -182
- package/src/utils/keys.tsx +0 -8
- package/src/utils/locale.tsx +0 -27
- package/src/utils/platform.tsx +0 -94
- package/src/utils/region-code.tsx +0 -1
- package/src/utils/renders-element.tsx +0 -6
- package/src/utils/time.tsx +0 -22
- package/src/utils/types.tsx +0 -19
- package/src/utils/utility-types.tsx +0 -8
- package/src/video.css.ts +0 -11
- package/src/video.tsx +0 -355
- package/src/vivinho-loading-animation/in-lottie.json +0 -402
- package/src/vivinho-loading-animation/index.tsx +0 -90
- package/src/vivinho-loading-animation/out-lottie.json +0 -575
- package/src/vivinho-loading-animation/pulse-lottie.json +0 -551
- package/src/vivinho-loading-animation/vivinho-loading-animation.css.ts +0 -15
- package/src/vivinho-loading-animation/wave-lottie.json +0 -2829
package/src/button.css.ts
DELETED
|
@@ -1,758 +0,0 @@
|
|
|
1
|
-
import {style, globalStyle, styleVariants, createVar} from '@vanilla-extract/css';
|
|
2
|
-
import {sprinkles} from './sprinkles.css';
|
|
3
|
-
import {vars} from './skins/skin-contract.css';
|
|
4
|
-
import * as mq from './media-queries.css';
|
|
5
|
-
import {pxToRem} from './utils/css';
|
|
6
|
-
|
|
7
|
-
import type {ComplexStyleRule} from '@vanilla-extract/css';
|
|
8
|
-
|
|
9
|
-
const minWidth = createVar();
|
|
10
|
-
export const buttonVars = {minWidth};
|
|
11
|
-
|
|
12
|
-
const colorTransitionTiming = '0.1s ease-in-out';
|
|
13
|
-
const contentTransitionTiming = '0.3s cubic-bezier(0.77, 0, 0.175, 1)';
|
|
14
|
-
|
|
15
|
-
export const buttonMinWidth = {
|
|
16
|
-
default: '104px',
|
|
17
|
-
small: '80px',
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
export const linkMinWidth = {
|
|
21
|
-
default: '24px',
|
|
22
|
-
small: '24px',
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
export const borderSize = '1.5px';
|
|
26
|
-
export const iconMargin = '8px';
|
|
27
|
-
export const chevronMarginLeft = '2px';
|
|
28
|
-
|
|
29
|
-
export const iconSize = {
|
|
30
|
-
default: pxToRem(24),
|
|
31
|
-
small: pxToRem(20),
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
export const spinnerSize = {
|
|
35
|
-
default: pxToRem(20),
|
|
36
|
-
small: pxToRem(16),
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
export const buttonPaddingLeft = {
|
|
40
|
-
default: `calc(${vars.spacing.buttonDefaultPadding.left} - ${borderSize})`,
|
|
41
|
-
small: `calc(${vars.spacing.buttonSmallPadding.left} - ${borderSize})`,
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
export const buttonPaddingRight = {
|
|
45
|
-
default: `calc(${vars.spacing.buttonDefaultPadding.right} - ${borderSize})`,
|
|
46
|
-
small: `calc(${vars.spacing.buttonSmallPadding.right} - ${borderSize})`,
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
export const buttonPaddingY = {
|
|
50
|
-
default: `calc(12px - ${borderSize})`,
|
|
51
|
-
small: `calc(6px - ${borderSize})`,
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
const disabledStyle = {opacity: 0.5};
|
|
55
|
-
|
|
56
|
-
export const isLoading = style({});
|
|
57
|
-
|
|
58
|
-
const button = style([
|
|
59
|
-
sprinkles({
|
|
60
|
-
display: 'inline-block',
|
|
61
|
-
position: 'relative',
|
|
62
|
-
width: 'auto',
|
|
63
|
-
borderRadius: vars.borderRadii.button,
|
|
64
|
-
overflow: 'hidden',
|
|
65
|
-
padding: 0,
|
|
66
|
-
}),
|
|
67
|
-
{
|
|
68
|
-
minWidth: buttonVars.minWidth,
|
|
69
|
-
border: `${borderSize} solid transparent`,
|
|
70
|
-
transition: `background-color ${colorTransitionTiming}, color ${colorTransitionTiming}, border-color ${colorTransitionTiming}`,
|
|
71
|
-
|
|
72
|
-
selectors: {
|
|
73
|
-
[`&[disabled]:not(${isLoading})`]: disabledStyle,
|
|
74
|
-
},
|
|
75
|
-
'@media': {
|
|
76
|
-
[mq.touchableOnly]: {
|
|
77
|
-
transition: 'none',
|
|
78
|
-
},
|
|
79
|
-
},
|
|
80
|
-
},
|
|
81
|
-
]);
|
|
82
|
-
|
|
83
|
-
export const small = style({});
|
|
84
|
-
export const smallLink = style({});
|
|
85
|
-
|
|
86
|
-
export const loadingFiller = style([
|
|
87
|
-
sprinkles({
|
|
88
|
-
display: 'block',
|
|
89
|
-
height: 0,
|
|
90
|
-
overflow: 'hidden',
|
|
91
|
-
}),
|
|
92
|
-
{
|
|
93
|
-
opacity: 0,
|
|
94
|
-
},
|
|
95
|
-
]);
|
|
96
|
-
|
|
97
|
-
export const loadingContent = style([
|
|
98
|
-
sprinkles({
|
|
99
|
-
display: 'inline-flex',
|
|
100
|
-
position: 'absolute',
|
|
101
|
-
top: 0,
|
|
102
|
-
bottom: 0,
|
|
103
|
-
justifyContent: 'center',
|
|
104
|
-
alignItems: 'center',
|
|
105
|
-
}),
|
|
106
|
-
{
|
|
107
|
-
left: buttonPaddingLeft.default,
|
|
108
|
-
right: buttonPaddingRight.default,
|
|
109
|
-
opacity: 0,
|
|
110
|
-
transform: 'translateY(2rem)',
|
|
111
|
-
transition: `opacity ${contentTransitionTiming}, transform ${contentTransitionTiming}`,
|
|
112
|
-
|
|
113
|
-
selectors: {
|
|
114
|
-
[`${small} &`]: {
|
|
115
|
-
left: buttonPaddingLeft.small,
|
|
116
|
-
right: buttonPaddingRight.small,
|
|
117
|
-
},
|
|
118
|
-
[`${isLoading} &`]: {
|
|
119
|
-
transform: 'translateY(0)',
|
|
120
|
-
opacity: 1,
|
|
121
|
-
},
|
|
122
|
-
},
|
|
123
|
-
},
|
|
124
|
-
]);
|
|
125
|
-
|
|
126
|
-
export const textContent = style([
|
|
127
|
-
sprinkles({
|
|
128
|
-
display: 'flex',
|
|
129
|
-
alignItems: 'center',
|
|
130
|
-
justifyContent: 'center',
|
|
131
|
-
}),
|
|
132
|
-
{
|
|
133
|
-
padding: `${buttonPaddingY.default} ${buttonPaddingRight.default} ${buttonPaddingY.default} ${buttonPaddingLeft.default}`, // height 48
|
|
134
|
-
opacity: 1,
|
|
135
|
-
transition: `opacity ${contentTransitionTiming}, transform ${contentTransitionTiming}`,
|
|
136
|
-
|
|
137
|
-
selectors: {
|
|
138
|
-
[`${small} &`]: {
|
|
139
|
-
padding: `${buttonPaddingY.small} ${buttonPaddingRight.small} ${buttonPaddingY.small} ${buttonPaddingLeft.small}`, // height 32
|
|
140
|
-
},
|
|
141
|
-
[`${isLoading} &`]: {
|
|
142
|
-
transform: 'translateY(-2rem)',
|
|
143
|
-
opacity: 0,
|
|
144
|
-
},
|
|
145
|
-
},
|
|
146
|
-
},
|
|
147
|
-
]);
|
|
148
|
-
|
|
149
|
-
globalStyle(`${textContent} svg`, {
|
|
150
|
-
display: 'block',
|
|
151
|
-
});
|
|
152
|
-
|
|
153
|
-
const lightPrimary: ComplexStyleRule = [
|
|
154
|
-
button,
|
|
155
|
-
sprinkles({
|
|
156
|
-
color: vars.colors.textButtonPrimary,
|
|
157
|
-
background: vars.colors.buttonPrimaryBackground,
|
|
158
|
-
}),
|
|
159
|
-
{
|
|
160
|
-
selectors: {
|
|
161
|
-
'&:not([disabled]):active': {
|
|
162
|
-
backgroundColor: vars.colors.buttonPrimaryBackgroundPressed,
|
|
163
|
-
},
|
|
164
|
-
},
|
|
165
|
-
|
|
166
|
-
'@media': {
|
|
167
|
-
[mq.supportsHover]: {
|
|
168
|
-
selectors: {
|
|
169
|
-
'&:hover:not([disabled])': {
|
|
170
|
-
backgroundColor: vars.colors.buttonPrimaryBackgroundHover,
|
|
171
|
-
},
|
|
172
|
-
'&:not([disabled]):active': {
|
|
173
|
-
backgroundColor: vars.colors.buttonPrimaryBackgroundPressed,
|
|
174
|
-
},
|
|
175
|
-
},
|
|
176
|
-
},
|
|
177
|
-
},
|
|
178
|
-
},
|
|
179
|
-
];
|
|
180
|
-
|
|
181
|
-
const lightPrimaryOverBrand: ComplexStyleRule = [
|
|
182
|
-
button,
|
|
183
|
-
sprinkles({
|
|
184
|
-
color: vars.colors.textButtonPrimaryBrand,
|
|
185
|
-
background: vars.colors.buttonPrimaryBackgroundBrand,
|
|
186
|
-
}),
|
|
187
|
-
{
|
|
188
|
-
selectors: {
|
|
189
|
-
'&:not([disabled]):active': {
|
|
190
|
-
backgroundColor: vars.colors.buttonPrimaryBackgroundBrandPressed,
|
|
191
|
-
color: vars.colors.textButtonPrimaryBrandPressed,
|
|
192
|
-
},
|
|
193
|
-
},
|
|
194
|
-
|
|
195
|
-
'@media': {
|
|
196
|
-
[mq.supportsHover]: {
|
|
197
|
-
selectors: {
|
|
198
|
-
'&:hover:not([disabled])': {
|
|
199
|
-
color: vars.colors.textButtonPrimaryBrandPressed,
|
|
200
|
-
backgroundColor: vars.colors.buttonPrimaryBackgroundBrandPressed,
|
|
201
|
-
},
|
|
202
|
-
'&:not([disabled]):active': {
|
|
203
|
-
backgroundColor: vars.colors.buttonPrimaryBackgroundBrandPressed,
|
|
204
|
-
color: vars.colors.textButtonPrimaryBrandPressed,
|
|
205
|
-
},
|
|
206
|
-
},
|
|
207
|
-
},
|
|
208
|
-
},
|
|
209
|
-
},
|
|
210
|
-
];
|
|
211
|
-
|
|
212
|
-
const lightPrimaryOverNegative: ComplexStyleRule = [
|
|
213
|
-
button,
|
|
214
|
-
sprinkles({
|
|
215
|
-
color: vars.colors.textButtonPrimaryNegative,
|
|
216
|
-
background: vars.colors.buttonPrimaryBackgroundNegative,
|
|
217
|
-
}),
|
|
218
|
-
{
|
|
219
|
-
selectors: {
|
|
220
|
-
'&:not([disabled]):active': {
|
|
221
|
-
backgroundColor: vars.colors.buttonPrimaryBackgroundNegativePressed,
|
|
222
|
-
color: vars.colors.textButtonPrimaryNegativePressed,
|
|
223
|
-
},
|
|
224
|
-
},
|
|
225
|
-
|
|
226
|
-
'@media': {
|
|
227
|
-
[mq.supportsHover]: {
|
|
228
|
-
selectors: {
|
|
229
|
-
'&:hover:not([disabled])': {
|
|
230
|
-
color: vars.colors.textButtonPrimaryNegativePressed,
|
|
231
|
-
backgroundColor: vars.colors.buttonPrimaryBackgroundNegativePressed,
|
|
232
|
-
},
|
|
233
|
-
'&:not([disabled]):active': {
|
|
234
|
-
backgroundColor: vars.colors.buttonPrimaryBackgroundNegativePressed,
|
|
235
|
-
color: vars.colors.textButtonPrimaryNegativePressed,
|
|
236
|
-
},
|
|
237
|
-
},
|
|
238
|
-
},
|
|
239
|
-
},
|
|
240
|
-
},
|
|
241
|
-
];
|
|
242
|
-
|
|
243
|
-
const lightPrimaryMedia: ComplexStyleRule = [
|
|
244
|
-
button,
|
|
245
|
-
sprinkles({
|
|
246
|
-
color: vars.colors.textButtonPrimaryMedia,
|
|
247
|
-
background: vars.colors.buttonPrimaryBackgroundMedia,
|
|
248
|
-
}),
|
|
249
|
-
{
|
|
250
|
-
selectors: {
|
|
251
|
-
'&:not([disabled]):active': {
|
|
252
|
-
backgroundColor: vars.colors.buttonPrimaryBackgroundMediaPressed,
|
|
253
|
-
color: vars.colors.textButtonPrimaryMediaPressed,
|
|
254
|
-
},
|
|
255
|
-
},
|
|
256
|
-
|
|
257
|
-
'@media': {
|
|
258
|
-
[mq.supportsHover]: {
|
|
259
|
-
selectors: {
|
|
260
|
-
'&:hover:not([disabled])': {
|
|
261
|
-
color: vars.colors.textButtonPrimaryMediaPressed,
|
|
262
|
-
backgroundColor: vars.colors.buttonPrimaryBackgroundMediaPressed,
|
|
263
|
-
},
|
|
264
|
-
'&:not([disabled]):active': {
|
|
265
|
-
backgroundColor: vars.colors.buttonPrimaryBackgroundMediaPressed,
|
|
266
|
-
color: vars.colors.textButtonPrimaryMediaPressed,
|
|
267
|
-
},
|
|
268
|
-
},
|
|
269
|
-
},
|
|
270
|
-
},
|
|
271
|
-
},
|
|
272
|
-
];
|
|
273
|
-
|
|
274
|
-
const lightSecondary: ComplexStyleRule = [
|
|
275
|
-
button,
|
|
276
|
-
sprinkles({
|
|
277
|
-
color: vars.colors.textButtonSecondary,
|
|
278
|
-
background: vars.colors.buttonSecondaryBackgroundBrand,
|
|
279
|
-
}),
|
|
280
|
-
{
|
|
281
|
-
borderColor: vars.colors.buttonSecondaryBorder,
|
|
282
|
-
|
|
283
|
-
selectors: {
|
|
284
|
-
'&:not([disabled]):active': {
|
|
285
|
-
color: vars.colors.textButtonSecondaryPressed,
|
|
286
|
-
borderColor: vars.colors.buttonSecondaryBorderPressed,
|
|
287
|
-
backgroundColor: vars.colors.buttonSecondaryBackgroundPressed,
|
|
288
|
-
},
|
|
289
|
-
},
|
|
290
|
-
|
|
291
|
-
'@media': {
|
|
292
|
-
[mq.supportsHover]: {
|
|
293
|
-
selectors: {
|
|
294
|
-
'&:hover:not([disabled])': {
|
|
295
|
-
color: vars.colors.textButtonSecondaryPressed,
|
|
296
|
-
borderColor: vars.colors.buttonSecondaryBorderPressed,
|
|
297
|
-
backgroundColor: vars.colors.buttonSecondaryBackgroundHover,
|
|
298
|
-
},
|
|
299
|
-
'&:not([disabled]):active': {
|
|
300
|
-
color: vars.colors.textButtonSecondaryPressed,
|
|
301
|
-
borderColor: vars.colors.buttonSecondaryBorderPressed,
|
|
302
|
-
backgroundColor: vars.colors.buttonSecondaryBackgroundPressed,
|
|
303
|
-
},
|
|
304
|
-
},
|
|
305
|
-
},
|
|
306
|
-
},
|
|
307
|
-
},
|
|
308
|
-
];
|
|
309
|
-
|
|
310
|
-
const lightSecondaryOverBrand: ComplexStyleRule = [
|
|
311
|
-
button,
|
|
312
|
-
sprinkles({
|
|
313
|
-
color: vars.colors.textButtonSecondaryBrand,
|
|
314
|
-
background: vars.colors.buttonSecondaryBackgroundBrand,
|
|
315
|
-
}),
|
|
316
|
-
{
|
|
317
|
-
borderColor: vars.colors.buttonSecondaryBorderBrand,
|
|
318
|
-
selectors: {
|
|
319
|
-
'&:not([disabled]):active': {
|
|
320
|
-
borderColor: vars.colors.buttonSecondaryBorderBrandPressed,
|
|
321
|
-
color: vars.colors.textButtonSecondaryBrandPressed,
|
|
322
|
-
backgroundColor: vars.colors.buttonSecondaryBackgroundBrandPressed,
|
|
323
|
-
},
|
|
324
|
-
},
|
|
325
|
-
|
|
326
|
-
'@media': {
|
|
327
|
-
[mq.supportsHover]: {
|
|
328
|
-
selectors: {
|
|
329
|
-
'&:hover:not([disabled])': {
|
|
330
|
-
borderColor: vars.colors.buttonSecondaryBorderBrandPressed,
|
|
331
|
-
color: vars.colors.textButtonSecondaryBrandPressed,
|
|
332
|
-
backgroundColor: vars.colors.buttonSecondaryBackgroundBrandHover,
|
|
333
|
-
},
|
|
334
|
-
'&:not([disabled]):active': {
|
|
335
|
-
borderColor: vars.colors.buttonSecondaryBorderBrandPressed,
|
|
336
|
-
color: vars.colors.textButtonSecondaryBrandPressed,
|
|
337
|
-
backgroundColor: vars.colors.buttonSecondaryBackgroundBrandPressed,
|
|
338
|
-
},
|
|
339
|
-
},
|
|
340
|
-
},
|
|
341
|
-
},
|
|
342
|
-
},
|
|
343
|
-
];
|
|
344
|
-
|
|
345
|
-
const lightSecondaryOverNegative: ComplexStyleRule = [
|
|
346
|
-
button,
|
|
347
|
-
sprinkles({
|
|
348
|
-
color: vars.colors.textButtonSecondaryNegative,
|
|
349
|
-
background: 'transparent',
|
|
350
|
-
}),
|
|
351
|
-
{
|
|
352
|
-
borderColor: vars.colors.buttonSecondaryBorderNegative,
|
|
353
|
-
selectors: {
|
|
354
|
-
'&:not([disabled]):active': {
|
|
355
|
-
borderColor: vars.colors.buttonSecondaryBorderNegativePressed,
|
|
356
|
-
color: vars.colors.textButtonSecondaryNegativePressed,
|
|
357
|
-
backgroundColor: vars.colors.buttonSecondaryBackgroundNegativePressed,
|
|
358
|
-
},
|
|
359
|
-
},
|
|
360
|
-
|
|
361
|
-
'@media': {
|
|
362
|
-
[mq.supportsHover]: {
|
|
363
|
-
selectors: {
|
|
364
|
-
'&:hover:not([disabled])': {
|
|
365
|
-
borderColor: vars.colors.buttonSecondaryBorderNegativePressed,
|
|
366
|
-
color: vars.colors.textButtonSecondaryNegativePressed,
|
|
367
|
-
backgroundColor: vars.colors.buttonSecondaryBackgroundNegativeHover,
|
|
368
|
-
},
|
|
369
|
-
'&:not([disabled]):active': {
|
|
370
|
-
borderColor: vars.colors.buttonSecondaryBorderNegativePressed,
|
|
371
|
-
color: vars.colors.textButtonSecondaryNegativePressed,
|
|
372
|
-
backgroundColor: vars.colors.buttonSecondaryBackgroundNegativePressed,
|
|
373
|
-
},
|
|
374
|
-
},
|
|
375
|
-
},
|
|
376
|
-
},
|
|
377
|
-
},
|
|
378
|
-
];
|
|
379
|
-
|
|
380
|
-
const lightSecondaryMedia: ComplexStyleRule = [
|
|
381
|
-
button,
|
|
382
|
-
sprinkles({
|
|
383
|
-
color: vars.colors.textButtonSecondaryMedia,
|
|
384
|
-
background: vars.colors.buttonSecondaryBackgroundBrand,
|
|
385
|
-
}),
|
|
386
|
-
{
|
|
387
|
-
borderColor: vars.colors.buttonSecondaryBorderMedia,
|
|
388
|
-
|
|
389
|
-
selectors: {
|
|
390
|
-
'&:not([disabled]):active': {
|
|
391
|
-
borderColor: vars.colors.buttonSecondaryBorderMediaPressed,
|
|
392
|
-
color: vars.colors.textButtonSecondaryMediaPressed,
|
|
393
|
-
backgroundColor: vars.colors.buttonSecondaryBackgroundMediaPressed,
|
|
394
|
-
},
|
|
395
|
-
},
|
|
396
|
-
|
|
397
|
-
'@media': {
|
|
398
|
-
[mq.supportsHover]: {
|
|
399
|
-
selectors: {
|
|
400
|
-
'&:hover:not([disabled])': {
|
|
401
|
-
borderColor: vars.colors.buttonSecondaryBorderMediaPressed,
|
|
402
|
-
color: vars.colors.textButtonSecondaryMediaPressed,
|
|
403
|
-
backgroundColor: vars.colors.buttonSecondaryBackgroundMediaHover,
|
|
404
|
-
},
|
|
405
|
-
'&:not([disabled]):active': {
|
|
406
|
-
borderColor: vars.colors.buttonSecondaryBorderMediaPressed,
|
|
407
|
-
color: vars.colors.textButtonSecondaryMediaPressed,
|
|
408
|
-
backgroundColor: vars.colors.buttonSecondaryBackgroundMediaPressed,
|
|
409
|
-
},
|
|
410
|
-
},
|
|
411
|
-
},
|
|
412
|
-
},
|
|
413
|
-
},
|
|
414
|
-
];
|
|
415
|
-
|
|
416
|
-
const danger: ComplexStyleRule = [
|
|
417
|
-
button,
|
|
418
|
-
sprinkles({
|
|
419
|
-
color: vars.colors.textButtonPrimary,
|
|
420
|
-
background: vars.colors.buttonDangerBackground,
|
|
421
|
-
}),
|
|
422
|
-
{
|
|
423
|
-
selectors: {
|
|
424
|
-
'&:not([disabled]):active': {
|
|
425
|
-
backgroundColor: vars.colors.buttonDangerBackgroundPressed,
|
|
426
|
-
},
|
|
427
|
-
},
|
|
428
|
-
|
|
429
|
-
'@media': {
|
|
430
|
-
[mq.supportsHover]: {
|
|
431
|
-
selectors: {
|
|
432
|
-
'&:hover:not([disabled])': {
|
|
433
|
-
backgroundColor: vars.colors.buttonDangerBackgroundHover,
|
|
434
|
-
},
|
|
435
|
-
'&:not([disabled]):active': {
|
|
436
|
-
backgroundColor: vars.colors.buttonDangerBackgroundPressed,
|
|
437
|
-
},
|
|
438
|
-
},
|
|
439
|
-
},
|
|
440
|
-
},
|
|
441
|
-
},
|
|
442
|
-
];
|
|
443
|
-
|
|
444
|
-
export const defaultLink: ComplexStyleRule = [
|
|
445
|
-
button,
|
|
446
|
-
sprinkles({
|
|
447
|
-
color: vars.colors.textLink,
|
|
448
|
-
background: 'transparent',
|
|
449
|
-
}),
|
|
450
|
-
{
|
|
451
|
-
selectors: {
|
|
452
|
-
'&:not([disabled]):active': {
|
|
453
|
-
backgroundColor: vars.colors.buttonLinkBackgroundPressed,
|
|
454
|
-
},
|
|
455
|
-
},
|
|
456
|
-
|
|
457
|
-
'@media': {
|
|
458
|
-
[mq.supportsHover]: {
|
|
459
|
-
selectors: {
|
|
460
|
-
'&:hover:not([disabled])': {
|
|
461
|
-
backgroundColor: vars.colors.buttonLinkBackgroundPressed,
|
|
462
|
-
},
|
|
463
|
-
'&:not([disabled]):active': {
|
|
464
|
-
backgroundColor: vars.colors.buttonLinkBackgroundPressed,
|
|
465
|
-
},
|
|
466
|
-
},
|
|
467
|
-
},
|
|
468
|
-
},
|
|
469
|
-
},
|
|
470
|
-
];
|
|
471
|
-
|
|
472
|
-
export const defaultLinkOverBrand: ComplexStyleRule = [
|
|
473
|
-
button,
|
|
474
|
-
sprinkles({
|
|
475
|
-
color: vars.colors.textLinkBrand,
|
|
476
|
-
background: 'transparent',
|
|
477
|
-
}),
|
|
478
|
-
{
|
|
479
|
-
selectors: {
|
|
480
|
-
'&:not([disabled]):active': {
|
|
481
|
-
backgroundColor: vars.colors.buttonLinkBackgroundBrandPressed,
|
|
482
|
-
},
|
|
483
|
-
},
|
|
484
|
-
|
|
485
|
-
'@media': {
|
|
486
|
-
[mq.supportsHover]: {
|
|
487
|
-
selectors: {
|
|
488
|
-
'&:hover:not([disabled])': {
|
|
489
|
-
backgroundColor: vars.colors.buttonLinkBackgroundBrandPressed,
|
|
490
|
-
},
|
|
491
|
-
'&:not([disabled]):active': {
|
|
492
|
-
backgroundColor: vars.colors.buttonLinkBackgroundBrandPressed,
|
|
493
|
-
},
|
|
494
|
-
},
|
|
495
|
-
},
|
|
496
|
-
},
|
|
497
|
-
},
|
|
498
|
-
];
|
|
499
|
-
|
|
500
|
-
export const defaultLinkOverNegative: ComplexStyleRule = [
|
|
501
|
-
button,
|
|
502
|
-
sprinkles({
|
|
503
|
-
color: vars.colors.textLinkNegative,
|
|
504
|
-
background: 'transparent',
|
|
505
|
-
}),
|
|
506
|
-
{
|
|
507
|
-
selectors: {
|
|
508
|
-
'&:not([disabled]):active': {
|
|
509
|
-
backgroundColor: vars.colors.buttonLinkBackgroundNegativePressed,
|
|
510
|
-
},
|
|
511
|
-
},
|
|
512
|
-
|
|
513
|
-
'@media': {
|
|
514
|
-
[mq.supportsHover]: {
|
|
515
|
-
selectors: {
|
|
516
|
-
'&:hover:not([disabled])': {
|
|
517
|
-
backgroundColor: vars.colors.buttonLinkBackgroundNegativePressed,
|
|
518
|
-
},
|
|
519
|
-
'&:not([disabled]):active': {
|
|
520
|
-
backgroundColor: vars.colors.buttonLinkBackgroundNegativePressed,
|
|
521
|
-
},
|
|
522
|
-
},
|
|
523
|
-
},
|
|
524
|
-
},
|
|
525
|
-
},
|
|
526
|
-
];
|
|
527
|
-
|
|
528
|
-
export const defaultLinkMedia: ComplexStyleRule = [
|
|
529
|
-
button,
|
|
530
|
-
sprinkles({
|
|
531
|
-
color: vars.colors.textLinkMedia,
|
|
532
|
-
background: 'transparent',
|
|
533
|
-
}),
|
|
534
|
-
{
|
|
535
|
-
selectors: {
|
|
536
|
-
'&:not([disabled]):active': {
|
|
537
|
-
backgroundColor: vars.colors.buttonLinkBackgroundMediaPressed,
|
|
538
|
-
},
|
|
539
|
-
},
|
|
540
|
-
|
|
541
|
-
'@media': {
|
|
542
|
-
[mq.supportsHover]: {
|
|
543
|
-
selectors: {
|
|
544
|
-
'&:hover:not([disabled])': {
|
|
545
|
-
backgroundColor: vars.colors.buttonLinkBackgroundMediaPressed,
|
|
546
|
-
},
|
|
547
|
-
'&:not([disabled]):active': {
|
|
548
|
-
backgroundColor: vars.colors.buttonLinkBackgroundMediaPressed,
|
|
549
|
-
},
|
|
550
|
-
},
|
|
551
|
-
},
|
|
552
|
-
},
|
|
553
|
-
},
|
|
554
|
-
];
|
|
555
|
-
|
|
556
|
-
const dangerLink: ComplexStyleRule = [
|
|
557
|
-
button,
|
|
558
|
-
sprinkles({
|
|
559
|
-
color: vars.colors.textLinkDanger,
|
|
560
|
-
background: 'transparent',
|
|
561
|
-
}),
|
|
562
|
-
{
|
|
563
|
-
selectors: {
|
|
564
|
-
'&:not([disabled]):active': {
|
|
565
|
-
backgroundColor: vars.colors.buttonLinkDangerBackgroundPressed,
|
|
566
|
-
},
|
|
567
|
-
},
|
|
568
|
-
|
|
569
|
-
'@media': {
|
|
570
|
-
[mq.supportsHover]: {
|
|
571
|
-
selectors: {
|
|
572
|
-
'&:hover:not([disabled])': {
|
|
573
|
-
backgroundColor: vars.colors.buttonLinkDangerBackgroundPressed,
|
|
574
|
-
},
|
|
575
|
-
'&:not([disabled]):active': {
|
|
576
|
-
backgroundColor: vars.colors.buttonLinkDangerBackgroundPressed,
|
|
577
|
-
},
|
|
578
|
-
},
|
|
579
|
-
},
|
|
580
|
-
},
|
|
581
|
-
},
|
|
582
|
-
];
|
|
583
|
-
|
|
584
|
-
const dangerLinkOverBrand: ComplexStyleRule = [
|
|
585
|
-
button,
|
|
586
|
-
sprinkles({
|
|
587
|
-
color: vars.colors.textLinkDanger,
|
|
588
|
-
background: vars.colors.buttonLinkDangerBackgroundBrand,
|
|
589
|
-
}),
|
|
590
|
-
{
|
|
591
|
-
selectors: {
|
|
592
|
-
'&:not([disabled]):active': {
|
|
593
|
-
backgroundColor: vars.colors.buttonLinkDangerBackgroundBrandPressed,
|
|
594
|
-
},
|
|
595
|
-
},
|
|
596
|
-
|
|
597
|
-
'@media': {
|
|
598
|
-
[mq.supportsHover]: {
|
|
599
|
-
selectors: {
|
|
600
|
-
'&:hover:not([disabled])': {
|
|
601
|
-
backgroundColor: vars.colors.buttonLinkDangerBackgroundBrandPressed,
|
|
602
|
-
},
|
|
603
|
-
'&:not([disabled]):active': {
|
|
604
|
-
backgroundColor: vars.colors.buttonLinkDangerBackgroundBrandPressed,
|
|
605
|
-
},
|
|
606
|
-
},
|
|
607
|
-
},
|
|
608
|
-
},
|
|
609
|
-
},
|
|
610
|
-
];
|
|
611
|
-
|
|
612
|
-
const dangerLinkOverNegative: ComplexStyleRule = [
|
|
613
|
-
button,
|
|
614
|
-
sprinkles({
|
|
615
|
-
color: vars.colors.textLinkDanger,
|
|
616
|
-
background: vars.colors.buttonLinkDangerBackgroundNegative,
|
|
617
|
-
}),
|
|
618
|
-
{
|
|
619
|
-
selectors: {
|
|
620
|
-
'&:not([disabled]):active': {
|
|
621
|
-
backgroundColor: vars.colors.buttonLinkDangerBackgroundNegativePressed,
|
|
622
|
-
},
|
|
623
|
-
},
|
|
624
|
-
|
|
625
|
-
'@media': {
|
|
626
|
-
[mq.supportsHover]: {
|
|
627
|
-
selectors: {
|
|
628
|
-
'&:hover:not([disabled])': {
|
|
629
|
-
backgroundColor: vars.colors.buttonLinkDangerBackgroundNegativePressed,
|
|
630
|
-
},
|
|
631
|
-
'&:not([disabled]):active': {
|
|
632
|
-
backgroundColor: vars.colors.buttonLinkDangerBackgroundNegativePressed,
|
|
633
|
-
},
|
|
634
|
-
},
|
|
635
|
-
},
|
|
636
|
-
},
|
|
637
|
-
},
|
|
638
|
-
];
|
|
639
|
-
|
|
640
|
-
const dangerLinkMedia: ComplexStyleRule = [
|
|
641
|
-
button,
|
|
642
|
-
sprinkles({
|
|
643
|
-
color: vars.colors.textLinkDangerMedia,
|
|
644
|
-
background: vars.colors.buttonLinkDangerBackgroundMedia,
|
|
645
|
-
}),
|
|
646
|
-
{
|
|
647
|
-
selectors: {
|
|
648
|
-
'&:not([disabled]):active': {
|
|
649
|
-
backgroundColor: vars.colors.buttonLinkDangerBackgroundMediaPressed,
|
|
650
|
-
},
|
|
651
|
-
},
|
|
652
|
-
|
|
653
|
-
'@media': {
|
|
654
|
-
[mq.supportsHover]: {
|
|
655
|
-
selectors: {
|
|
656
|
-
'&:hover:not([disabled])': {
|
|
657
|
-
backgroundColor: vars.colors.buttonLinkDangerBackgroundMediaPressed,
|
|
658
|
-
},
|
|
659
|
-
'&:not([disabled]):active': {
|
|
660
|
-
backgroundColor: vars.colors.buttonLinkDangerBackgroundMediaPressed,
|
|
661
|
-
},
|
|
662
|
-
},
|
|
663
|
-
},
|
|
664
|
-
},
|
|
665
|
-
},
|
|
666
|
-
];
|
|
667
|
-
|
|
668
|
-
const dangerLinkOverBrandDark: ComplexStyleRule = [
|
|
669
|
-
button,
|
|
670
|
-
sprinkles({
|
|
671
|
-
color: vars.colors.textLinkDanger,
|
|
672
|
-
background: 'transparent',
|
|
673
|
-
}),
|
|
674
|
-
{
|
|
675
|
-
selectors: {
|
|
676
|
-
'&:not([disabled]):active': {
|
|
677
|
-
backgroundColor: vars.colors.buttonLinkDangerBackgroundBrandPressed,
|
|
678
|
-
},
|
|
679
|
-
},
|
|
680
|
-
|
|
681
|
-
'@media': {
|
|
682
|
-
[mq.supportsHover]: {
|
|
683
|
-
selectors: {
|
|
684
|
-
'&:hover:not([disabled])': {
|
|
685
|
-
backgroundColor: vars.colors.buttonLinkDangerBackgroundBrandPressed,
|
|
686
|
-
},
|
|
687
|
-
'&:not([disabled]):active': {
|
|
688
|
-
backgroundColor: vars.colors.buttonLinkDangerBackgroundBrandPressed,
|
|
689
|
-
},
|
|
690
|
-
},
|
|
691
|
-
},
|
|
692
|
-
},
|
|
693
|
-
},
|
|
694
|
-
];
|
|
695
|
-
|
|
696
|
-
const dangerLinkOverNegativeDark: ComplexStyleRule = [
|
|
697
|
-
button,
|
|
698
|
-
sprinkles({
|
|
699
|
-
color: vars.colors.textLinkDanger,
|
|
700
|
-
background: 'transparent',
|
|
701
|
-
}),
|
|
702
|
-
{
|
|
703
|
-
selectors: {
|
|
704
|
-
'&:not([disabled]):active': {
|
|
705
|
-
backgroundColor: vars.colors.buttonLinkDangerBackgroundNegativePressed,
|
|
706
|
-
},
|
|
707
|
-
},
|
|
708
|
-
|
|
709
|
-
'@media': {
|
|
710
|
-
[mq.supportsHover]: {
|
|
711
|
-
selectors: {
|
|
712
|
-
'&:hover:not([disabled])': {
|
|
713
|
-
backgroundColor: vars.colors.buttonLinkDangerBackgroundNegativePressed,
|
|
714
|
-
},
|
|
715
|
-
'&:not([disabled]):active': {
|
|
716
|
-
backgroundColor: vars.colors.buttonLinkDangerBackgroundNegativePressed,
|
|
717
|
-
},
|
|
718
|
-
},
|
|
719
|
-
},
|
|
720
|
-
},
|
|
721
|
-
},
|
|
722
|
-
];
|
|
723
|
-
|
|
724
|
-
export const buttonVariants = styleVariants({
|
|
725
|
-
primary: lightPrimary,
|
|
726
|
-
secondary: lightSecondary,
|
|
727
|
-
danger,
|
|
728
|
-
link: defaultLink,
|
|
729
|
-
linkDanger: dangerLink,
|
|
730
|
-
linkDangerDark: dangerLink,
|
|
731
|
-
});
|
|
732
|
-
|
|
733
|
-
export const overBrandButtonVariants = styleVariants({
|
|
734
|
-
primary: lightPrimaryOverBrand,
|
|
735
|
-
secondary: lightSecondaryOverBrand,
|
|
736
|
-
danger,
|
|
737
|
-
link: defaultLinkOverBrand,
|
|
738
|
-
linkDanger: dangerLinkOverBrand,
|
|
739
|
-
linkDangerDark: dangerLinkOverBrandDark,
|
|
740
|
-
});
|
|
741
|
-
|
|
742
|
-
export const overNegativeButtonVariants = styleVariants({
|
|
743
|
-
primary: lightPrimaryOverNegative,
|
|
744
|
-
secondary: lightSecondaryOverNegative,
|
|
745
|
-
danger,
|
|
746
|
-
link: defaultLinkOverNegative,
|
|
747
|
-
linkDanger: dangerLinkOverNegative,
|
|
748
|
-
linkDangerDark: dangerLinkOverNegativeDark,
|
|
749
|
-
});
|
|
750
|
-
|
|
751
|
-
export const overMediaButtonVariants = styleVariants({
|
|
752
|
-
primary: lightPrimaryMedia,
|
|
753
|
-
secondary: lightSecondaryMedia,
|
|
754
|
-
danger,
|
|
755
|
-
link: defaultLinkMedia,
|
|
756
|
-
linkDanger: dangerLinkMedia,
|
|
757
|
-
linkDangerDark: dangerLinkMedia,
|
|
758
|
-
});
|