@westpac/ui 0.42.3 → 0.44.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/CHANGELOG.md +25 -0
- package/assets/icons/filled/arrow-thread-reply-filled.svg +3 -0
- package/assets/icons/filled/button-shape-filled.svg +1 -0
- package/assets/icons/filled/closed-caption-filled.svg +3 -0
- package/assets/icons/filled/color-filters-filled.svg +1 -0
- package/assets/icons/filled/format-color-filled.svg +5 -0
- package/assets/icons/filled/fullscreen-exit-filled.svg +3 -0
- package/assets/icons/filled/fullscreen-filled.svg +3 -0
- package/assets/icons/filled/pause-filled.svg +1 -1
- package/assets/icons/filled/play-filled.svg +1 -1
- package/assets/icons/filled/replay-filled.svg +3 -0
- package/assets/icons/filled/text-bold-filled.svg +1 -0
- package/assets/icons/filled/text-increase-filled.svg +4 -0
- package/assets/icons/filled/text-large-filled.svg +1 -0
- package/assets/icons/filled/voiceover-on-filled.svg +1 -0
- package/assets/icons/filled/volume-off-filled.svg +6 -0
- package/assets/icons/filled/volume-on-filled.svg +5 -0
- package/assets/icons/outlined/arrow-thread-reply-outlined.svg +3 -0
- package/assets/icons/outlined/button-shape-outlined.svg +1 -0
- package/assets/icons/outlined/closed-caption-outlined.svg +5 -0
- package/assets/icons/outlined/color-filters-outlined.svg +1 -0
- package/assets/icons/outlined/format-color-outlined.svg +5 -0
- package/assets/icons/outlined/fullscreen-exit-outlined.svg +3 -0
- package/assets/icons/outlined/fullscreen-outlined.svg +3 -0
- package/assets/icons/outlined/pause-outlined.svg +1 -1
- package/assets/icons/outlined/play-outlined.svg +1 -1
- package/assets/icons/outlined/replay-outlined.svg +3 -0
- package/assets/icons/outlined/text-bold-outlined.svg +1 -0
- package/assets/icons/outlined/text-increase-outlined.svg +4 -0
- package/assets/icons/outlined/text-large-outlined.svg +1 -0
- package/assets/icons/outlined/voiceover-on-outlined.svg +1 -0
- package/assets/icons/outlined/volume-off-outlined.svg +6 -0
- package/assets/icons/outlined/volume-on-outlined.svg +5 -0
- package/dist/component-type.json +1 -1
- package/dist/components/accordion/accordion.component.js +6 -18
- package/dist/components/accordion/components/accordion-item/accordion-item.component.js +12 -23
- package/dist/components/accordion/components/accordion-item/accordion-item.styles.d.ts +3 -0
- package/dist/components/accordion/components/accordion-item/accordion-item.styles.js +2 -1
- package/dist/components/alert/alert.component.js +5 -18
- package/dist/components/autocomplete/autocomplete.component.js +19 -29
- package/dist/components/autocomplete/components/autocomplete-list-box/autocomplete-list-box.component.js +6 -19
- package/dist/components/autocomplete/components/autocomplete-list-box/components/autocomplete-list-box-option/autocomplete-list-box-option.component.js +5 -18
- package/dist/components/autocomplete/components/autocomplete-list-box/components/autocomplete-list-box-option/autocomplete-list-box-option.styles.d.ts +2 -2
- package/dist/components/autocomplete/components/autocomplete-list-box/components/autocomplete-list-box-option/autocomplete-list-box-option.styles.js +2 -2
- package/dist/components/autocomplete/components/autocomplete-list-box/components/autocomplete-list-box-section/autocomplete-list-box-section.component.js +7 -19
- package/dist/components/autocomplete/components/autocomplete-popover/autocomplete-popover.component.js +8 -20
- package/dist/components/badge/badge.component.js +8 -20
- package/dist/components/bottom-sheet/bottom-sheet.component.js +5 -18
- package/dist/components/bottom-sheet/components/bottom-sheet-dialog/bottom-sheet-dialog.component.js +8 -20
- package/dist/components/bottom-sheet/components/bottom-sheet-modal/bottom-sheet-modal.component.js +10 -23
- package/dist/components/breadcrumb/breadcrumb.component.js +11 -22
- package/dist/components/breadcrumb/components/breadcrumb-item/breadcrumb-item.component.js +9 -22
- package/dist/components/button/button.component.js +6 -19
- package/dist/components/button-dropdown/button-dropdown.component.js +11 -23
- package/dist/components/button-dropdown/components/button-dropdown-heading/button-dropdown-heading.component.js +5 -18
- package/dist/components/button-dropdown/components/button-dropdown-panel/button-dropdown-panel.component.js +6 -19
- package/dist/components/button-group/button-group.component.js +12 -23
- package/dist/components/button-group/components/button-group-button/button-group-button.component.js +8 -20
- package/dist/components/checkbox-group/checkbox-group.component.js +17 -27
- package/dist/components/checkbox-group/components/checkbox-group-checkbox/checkbox-group-checkbox.component.js +16 -27
- package/dist/components/circle/circle.component.js +5 -18
- package/dist/components/collapsible/collapsible.component.js +9 -21
- package/dist/components/compacta/compacta.component.js +14 -25
- package/dist/components/date-picker/date-picker.component.js +7 -20
- package/dist/components/error-message/error-message.component.js +9 -21
- package/dist/components/field/field.component.js +11 -22
- package/dist/components/filter/components/filter-buttons/filter-buttons.component.js +5 -19
- package/dist/components/filter/components/filter-input/filter-input.component.js +4 -17
- package/dist/components/filter/filter.component.js +4 -17
- package/dist/components/flexi-cell/components/flexi-cell-adornment/flexi-cell-adornment.component.js +4 -17
- package/dist/components/flexi-cell/components/flexi-cell-body/flexi-cell-body.component.js +5 -18
- package/dist/components/flexi-cell/components/flexi-cell-button/flexi-cell-button.component.js +5 -18
- package/dist/components/flexi-cell/components/flexi-cell-circle/flexi-cell-circle.component.js +5 -18
- package/dist/components/flexi-cell/components/flexi-cell-footer/flexi-cell-footer.component.js +4 -17
- package/dist/components/flexi-cell/components/flexi-cell-hint/flexi-cell-hint.component.js +4 -17
- package/dist/components/flexi-cell/components/flexi-cell-label/flexi-cell-label.component.js +5 -18
- package/dist/components/flexi-cell/flexi-cell.component.js +9 -22
- package/dist/components/footer/footer.component.js +16 -28
- package/dist/components/form/components/form-chit-chat/form-chit-chat.component.js +5 -18
- package/dist/components/form/components/form-group/form-group.component.js +6 -19
- package/dist/components/form/components/form-hint/form-hint.component.js +5 -18
- package/dist/components/form/components/form-label/form-label.component.js +4 -17
- package/dist/components/form/components/form-section/form-section.component.js +5 -18
- package/dist/components/form/form.component.js +2 -16
- package/dist/components/grid/components/grid-container/grid-container.component.js +5 -18
- package/dist/components/grid/components/grid-item/grid-item.component.js +5 -18
- package/dist/components/grid/grid.component.js +5 -18
- package/dist/components/header/header.component.js +17 -30
- package/dist/components/heading/heading.component.js +5 -18
- package/dist/components/hint/hint.component.js +5 -18
- package/dist/components/icon/components/accessibility-icon.js +5 -18
- package/dist/components/icon/components/account-icon.js +5 -18
- package/dist/components/icon/components/add-circle-icon.js +5 -18
- package/dist/components/icon/components/add-icon.js +5 -18
- package/dist/components/icon/components/alert-icon.js +5 -18
- package/dist/components/icon/components/android-icon.js +5 -18
- package/dist/components/icon/components/apple-icon.js +5 -18
- package/dist/components/icon/components/archive-box-icon.js +5 -18
- package/dist/components/icon/components/arrow-back-circle-icon.js +5 -18
- package/dist/components/icon/components/arrow-down-circle-icon.js +5 -18
- package/dist/components/icon/components/arrow-fork-icon.js +5 -18
- package/dist/components/icon/components/arrow-forward-circle-icon.js +5 -18
- package/dist/components/icon/components/arrow-left-icon.js +5 -18
- package/dist/components/icon/components/arrow-right-icon.js +5 -18
- package/dist/components/icon/components/arrow-split-icon.js +5 -18
- package/dist/components/icon/components/arrow-thread-reply-icon.d.ts +2 -0
- package/dist/components/icon/components/arrow-thread-reply-icon.js +12 -0
- package/dist/components/icon/components/arrow-up-circle-icon.js +5 -18
- package/dist/components/icon/components/atm-icon.js +5 -18
- package/dist/components/icon/components/attache-case-icon.js +5 -18
- package/dist/components/icon/components/australia-icon.js +5 -18
- package/dist/components/icon/components/baby-buggy-icon.js +5 -18
- package/dist/components/icon/components/backspace-icon.js +5 -18
- package/dist/components/icon/components/bank-icon.js +5 -18
- package/dist/components/icon/components/bar-chart-down-icon.js +5 -18
- package/dist/components/icon/components/bar-chart-icon.js +5 -18
- package/dist/components/icon/components/barbell-icon.js +5 -18
- package/dist/components/icon/components/book-icon.js +5 -18
- package/dist/components/icon/components/bpay-icon.js +5 -18
- package/dist/components/icon/components/briefcase-icon.js +5 -18
- package/dist/components/icon/components/bug-report-icon.js +5 -18
- package/dist/components/icon/components/burger-icon.js +5 -18
- package/dist/components/icon/components/business-person-icon.js +5 -18
- package/dist/components/icon/components/button-shape-icon.d.ts +2 -0
- package/dist/components/icon/components/button-shape-icon.js +23 -0
- package/dist/components/icon/components/cafe-icon.js +5 -18
- package/dist/components/icon/components/cake-icon.js +5 -18
- package/dist/components/icon/components/calculate-icon.js +5 -18
- package/dist/components/icon/components/calculator-icon.js +5 -18
- package/dist/components/icon/components/calendar-icon.js +5 -18
- package/dist/components/icon/components/camera-icon.js +5 -18
- package/dist/components/icon/components/cancel-card-icon.js +5 -18
- package/dist/components/icon/components/car-icon.js +5 -18
- package/dist/components/icon/components/cardless-cash-icon.js +5 -18
- package/dist/components/icon/components/cart-icon.js +5 -18
- package/dist/components/icon/components/chat-icon.js +5 -18
- package/dist/components/icon/components/check-icon.js +5 -18
- package/dist/components/icon/components/child-care-icon.js +5 -18
- package/dist/components/icon/components/child-icon.js +5 -18
- package/dist/components/icon/components/circle-icon.js +5 -18
- package/dist/components/icon/components/clear-icon.js +5 -18
- package/dist/components/icon/components/clock-icon.js +5 -18
- package/dist/components/icon/components/close-icon.js +5 -18
- package/dist/components/icon/components/closed-caption-icon.d.ts +2 -0
- package/dist/components/icon/components/closed-caption-icon.js +25 -0
- package/dist/components/icon/components/cocktail-glass-icon.js +5 -18
- package/dist/components/icon/components/color-filters-icon.d.ts +2 -0
- package/dist/components/icon/components/color-filters-icon.js +15 -0
- package/dist/components/icon/components/compass-icon.js +5 -18
- package/dist/components/icon/components/contact-icon.js +5 -18
- package/dist/components/icon/components/content-copy-icon.js +5 -18
- package/dist/components/icon/components/credit-card-icon.js +5 -18
- package/dist/components/icon/components/credit-cards-icon.js +5 -18
- package/dist/components/icon/components/cube-icon.js +5 -18
- package/dist/components/icon/components/cursor-arrow-click-icon.js +5 -18
- package/dist/components/icon/components/cursor-arrow-doubleclick-icon.js +5 -18
- package/dist/components/icon/components/cursor-arrow-icon.js +5 -18
- package/dist/components/icon/components/cursor-arrow-rays-icon.js +5 -18
- package/dist/components/icon/components/delete-icon.js +5 -18
- package/dist/components/icon/components/delivery-truck-icon.js +5 -18
- package/dist/components/icon/components/desktop-icon.js +5 -18
- package/dist/components/icon/components/diamond-icon.js +5 -18
- package/dist/components/icon/components/dollar-icon.js +5 -18
- package/dist/components/icon/components/dollar-sign-icon.js +5 -18
- package/dist/components/icon/components/download-file-icon.js +5 -18
- package/dist/components/icon/components/download-icon.js +5 -18
- package/dist/components/icon/components/drag-icon.js +5 -18
- package/dist/components/icon/components/drop-down-icon.js +5 -18
- package/dist/components/icon/components/drop-left-icon.js +5 -18
- package/dist/components/icon/components/drop-right-icon.js +5 -18
- package/dist/components/icon/components/drop-up-icon.js +5 -18
- package/dist/components/icon/components/dropbox-icon.js +5 -18
- package/dist/components/icon/components/edit-icon.js +5 -18
- package/dist/components/icon/components/education-icon.js +5 -18
- package/dist/components/icon/components/eftpos-icon.js +5 -18
- package/dist/components/icon/components/email-icon.js +5 -18
- package/dist/components/icon/components/error-icon.js +5 -18
- package/dist/components/icon/components/excel-file-icon.js +5 -18
- package/dist/components/icon/components/exit-icon.js +5 -18
- package/dist/components/icon/components/expand-less-icon.js +5 -18
- package/dist/components/icon/components/expand-more-icon.js +5 -18
- package/dist/components/icon/components/face-happy-icon.js +5 -18
- package/dist/components/icon/components/facebook-icon.js +5 -18
- package/dist/components/icon/components/favorite-icon.js +5 -18
- package/dist/components/icon/components/filter-icon.js +5 -18
- package/dist/components/icon/components/fingerprint-icon.js +5 -18
- package/dist/components/icon/components/first-aid-case-icon.js +5 -18
- package/dist/components/icon/components/first-aid-icon.js +5 -18
- package/dist/components/icon/components/format-color-icon.d.ts +2 -0
- package/dist/components/icon/components/format-color-icon.js +20 -0
- package/dist/components/icon/components/fullscreen-exit-icon.d.ts +2 -0
- package/dist/components/icon/components/fullscreen-exit-icon.js +12 -0
- package/dist/components/icon/components/fullscreen-icon.d.ts +2 -0
- package/dist/components/icon/components/fullscreen-icon.js +12 -0
- package/dist/components/icon/components/future-clock-icon.js +5 -18
- package/dist/components/icon/components/gel-icon.js +5 -18
- package/dist/components/icon/components/generic-file-icon.js +5 -18
- package/dist/components/icon/components/geolocation-icon.js +5 -18
- package/dist/components/icon/components/gift-icon.js +5 -18
- package/dist/components/icon/components/github-icon.js +5 -18
- package/dist/components/icon/components/global-icon.js +5 -18
- package/dist/components/icon/components/google-plus-icon.js +5 -18
- package/dist/components/icon/components/grid-icon.js +5 -18
- package/dist/components/icon/components/growth-icon.js +5 -18
- package/dist/components/icon/components/hamburger-menu-icon.js +5 -18
- package/dist/components/icon/components/headset-icon.js +5 -18
- package/dist/components/icon/components/heart-add-icon.js +5 -18
- package/dist/components/icon/components/heart-tick-icon.js +5 -18
- package/dist/components/icon/components/help-icon.js +5 -18
- package/dist/components/icon/components/history-clock-icon.js +5 -18
- package/dist/components/icon/components/house-dollar-icon.js +5 -18
- package/dist/components/icon/components/house-icon.js +5 -18
- package/dist/components/icon/components/house-people-icon.js +5 -18
- package/dist/components/icon/components/house-person-icon.js +5 -18
- package/dist/components/icon/components/ice-cream-icon.js +5 -18
- package/dist/components/icon/components/id-card-icon.js +5 -18
- package/dist/components/icon/components/image-square-icon.js +5 -18
- package/dist/components/icon/components/info-icon.js +5 -18
- package/dist/components/icon/components/instagram-icon.js +5 -18
- package/dist/components/icon/components/inventory-icon.js +5 -18
- package/dist/components/icon/components/invest-icon.js +5 -18
- package/dist/components/icon/components/invoice-icon.js +5 -18
- package/dist/components/icon/components/key-icon.js +5 -18
- package/dist/components/icon/components/keyhole-icon.js +5 -18
- package/dist/components/icon/components/leaf-icon.js +5 -18
- package/dist/components/icon/components/light-bulb-icon.js +5 -18
- package/dist/components/icon/components/limit-icon.js +5 -18
- package/dist/components/icon/components/link-icon.js +5 -18
- package/dist/components/icon/components/linkedin-icon.js +5 -18
- package/dist/components/icon/components/list-icon.js +5 -18
- package/dist/components/icon/components/live-chat-icon.js +5 -18
- package/dist/components/icon/components/luggage-icon.js +5 -18
- package/dist/components/icon/components/map-icon.js +5 -18
- package/dist/components/icon/components/map-pin-icon.js +5 -18
- package/dist/components/icon/components/medical-icon.js +5 -18
- package/dist/components/icon/components/megaphone-icon.js +5 -18
- package/dist/components/icon/components/message-icon.js +5 -18
- package/dist/components/icon/components/mobile-pay-icon.js +5 -18
- package/dist/components/icon/components/money-bag-icon.js +5 -18
- package/dist/components/icon/components/money-in-icon.js +5 -18
- package/dist/components/icon/components/money-notes-icon.js +5 -18
- package/dist/components/icon/components/money-out-icon.js +5 -18
- package/dist/components/icon/components/more-horiz-icon.js +5 -18
- package/dist/components/icon/components/more-vert-icon.js +5 -18
- package/dist/components/icon/components/move-from-icon.js +5 -18
- package/dist/components/icon/components/move-to-icon.js +5 -18
- package/dist/components/icon/components/new-content-icon.js +5 -18
- package/dist/components/icon/components/new-window-icon.js +5 -18
- package/dist/components/icon/components/notification-active-icon.js +5 -18
- package/dist/components/icon/components/notification-icon.js +5 -18
- package/dist/components/icon/components/notification-off-icon.js +5 -18
- package/dist/components/icon/components/office-icon.js +5 -18
- package/dist/components/icon/components/open-browser-icon.js +5 -18
- package/dist/components/icon/components/package-delivery-icon.js +5 -18
- package/dist/components/icon/components/padlock-icon.js +5 -18
- package/dist/components/icon/components/padlock-open-icon.js +5 -18
- package/dist/components/icon/components/padlock-tick-icon.js +5 -18
- package/dist/components/icon/components/pause-circle-icon.js +5 -18
- package/dist/components/icon/components/pause-icon.js +6 -19
- package/dist/components/icon/components/paw-icon.js +5 -18
- package/dist/components/icon/components/pay-icon.js +5 -18
- package/dist/components/icon/components/pay-id-icon.js +5 -18
- package/dist/components/icon/components/pay-to-icon.js +5 -18
- package/dist/components/icon/components/pay-to-mobile-icon.js +5 -18
- package/dist/components/icon/components/paypass-icon.js +5 -18
- package/dist/components/icon/components/pdf-file-icon.js +5 -18
- package/dist/components/icon/components/pending-icon.js +5 -18
- package/dist/components/icon/components/people-icon.js +5 -18
- package/dist/components/icon/components/percent-icon.js +5 -18
- package/dist/components/icon/components/person-icon.js +5 -18
- package/dist/components/icon/components/phone-icon.js +5 -18
- package/dist/components/icon/components/pie-chart-icon.js +5 -18
- package/dist/components/icon/components/piggy-bank-icon.js +5 -18
- package/dist/components/icon/components/piggy-bank.js +5 -18
- package/dist/components/icon/components/pin-icon.js +5 -18
- package/dist/components/icon/components/pizza-icon.js +5 -18
- package/dist/components/icon/components/plane-icon.js +5 -18
- package/dist/components/icon/components/play-circle-icon.js +5 -18
- package/dist/components/icon/components/play-icon.js +6 -19
- package/dist/components/icon/components/pram-icon.js +5 -18
- package/dist/components/icon/components/presets-icon.js +5 -18
- package/dist/components/icon/components/print-icon.js +5 -18
- package/dist/components/icon/components/progress-icon.js +5 -18
- package/dist/components/icon/components/question-mark-icon.js +5 -18
- package/dist/components/icon/components/quick-balance-icon.js +5 -18
- package/dist/components/icon/components/receipt-icon.js +5 -18
- package/dist/components/icon/components/refresh-icon.js +5 -18
- package/dist/components/icon/components/remove-circle-icon.js +5 -18
- package/dist/components/icon/components/remove-icon.js +5 -18
- package/dist/components/icon/components/replay-icon.d.ts +2 -0
- package/dist/components/icon/components/replay-icon.js +12 -0
- package/dist/components/icon/components/restaurant-icon.js +5 -18
- package/dist/components/icon/components/rss-icon.js +5 -18
- package/dist/components/icon/components/scan-document-icon.js +5 -18
- package/dist/components/icon/components/sd-storage-icon.js +5 -18
- package/dist/components/icon/components/search-icon.js +5 -18
- package/dist/components/icon/components/security-icon.js +5 -18
- package/dist/components/icon/components/service-bell-icon.js +5 -18
- package/dist/components/icon/components/settings-icon.js +5 -18
- package/dist/components/icon/components/share-icon.js +5 -18
- package/dist/components/icon/components/share-ios-icon.js +5 -18
- package/dist/components/icon/components/shop-icon.js +5 -18
- package/dist/components/icon/components/shopping-bag-icon.js +5 -18
- package/dist/components/icon/components/shopping-basket-icon.js +5 -18
- package/dist/components/icon/components/sim-card-icon.js +5 -18
- package/dist/components/icon/components/slack-icon.js +5 -18
- package/dist/components/icon/components/sms-icon.js +5 -18
- package/dist/components/icon/components/spa-icon.js +5 -18
- package/dist/components/icon/components/star-half-icon.js +5 -18
- package/dist/components/icon/components/star-rate-icon.js +5 -18
- package/dist/components/icon/components/stars-icon.js +5 -18
- package/dist/components/icon/components/stopwatch-icon.js +5 -18
- package/dist/components/icon/components/stroller-icon.js +5 -18
- package/dist/components/icon/components/success-icon.js +5 -18
- package/dist/components/icon/components/super-icon.js +5 -18
- package/dist/components/icon/components/switch-icon.js +5 -18
- package/dist/components/icon/components/tablet-icon.js +5 -18
- package/dist/components/icon/components/tag-icon.js +5 -18
- package/dist/components/icon/components/takeout-coffee-icon.js +5 -18
- package/dist/components/icon/components/takeout-food-icon.js +5 -18
- package/dist/components/icon/components/target-icon.js +5 -18
- package/dist/components/icon/components/telephone-icon.js +5 -18
- package/dist/components/icon/components/text-bold-icon.d.ts +2 -0
- package/dist/components/icon/components/text-bold-icon.js +14 -0
- package/dist/components/icon/components/text-increase-icon.d.ts +2 -0
- package/dist/components/icon/components/text-increase-icon.js +17 -0
- package/dist/components/icon/components/text-large-icon.d.ts +2 -0
- package/dist/components/icon/components/text-large-icon.js +17 -0
- package/dist/components/icon/components/thumb-down-icon.js +5 -18
- package/dist/components/icon/components/thumb-up-icon.js +5 -18
- package/dist/components/icon/components/tick-circle-icon.js +5 -18
- package/dist/components/icon/components/tick-icon.js +5 -18
- package/dist/components/icon/components/tiles-icon.js +5 -18
- package/dist/components/icon/components/transfer-icon.js +5 -18
- package/dist/components/icon/components/transport-icon.js +5 -18
- package/dist/components/icon/components/travel-explore-icon.js +5 -18
- package/dist/components/icon/components/tune-icon.js +5 -18
- package/dist/components/icon/components/twitter-icon.js +5 -18
- package/dist/components/icon/components/umbrella-icon.js +5 -18
- package/dist/components/icon/components/unpin-icon.js +5 -18
- package/dist/components/icon/components/upload-icon.js +5 -18
- package/dist/components/icon/components/verified-icon.js +5 -18
- package/dist/components/icon/components/video-icon.js +5 -18
- package/dist/components/icon/components/visibility-icon.js +5 -18
- package/dist/components/icon/components/visibility-off-icon.js +5 -18
- package/dist/components/icon/components/voice-icon.js +5 -18
- package/dist/components/icon/components/voiceover-on-icon.d.ts +2 -0
- package/dist/components/icon/components/voiceover-on-icon.js +31 -0
- package/dist/components/icon/components/volume-off-icon.d.ts +2 -0
- package/dist/components/icon/components/volume-off-icon.js +35 -0
- package/dist/components/icon/components/volume-on-icon.d.ts +2 -0
- package/dist/components/icon/components/volume-on-icon.js +29 -0
- package/dist/components/icon/components/walk-icon.js +5 -18
- package/dist/components/icon/components/wallet-icon.js +5 -18
- package/dist/components/icon/components/warning-icon.js +5 -18
- package/dist/components/icon/components/watch-icon.js +5 -18
- package/dist/components/icon/components/wearable-icon.js +5 -18
- package/dist/components/icon/components/wheelchair-icon.js +5 -18
- package/dist/components/icon/components/windows-new-icon.js +5 -18
- package/dist/components/icon/components/wine-glass-icon.js +5 -18
- package/dist/components/icon/components/word-file-icon.js +5 -18
- package/dist/components/icon/components/write-icon.js +5 -18
- package/dist/components/icon/components/x-icon.js +5 -18
- package/dist/components/icon/components/yammer-icon.js +5 -18
- package/dist/components/icon/components/youtube-icon.js +5 -18
- package/dist/components/icon/components/zip-file-icon.js +5 -18
- package/dist/components/icon/icon.component.js +5 -18
- package/dist/components/icon/index.d.ts +14 -0
- package/dist/components/icon/index.js +14 -0
- package/dist/components/input/input.component.js +6 -19
- package/dist/components/input-group/components/input-group-add-ons/add-ons.types.js +2 -2
- package/dist/components/input-group/components/input-group-add-ons/components/input-group-add-on-default-add-on/input-group-add-on-default-add-on.component.js +5 -18
- package/dist/components/input-group/components/input-group-add-ons/components/input-group-add-on-icon-add-on/input-group-add-on-icon-add-on.component.js +5 -18
- package/dist/components/input-group/components/input-group-add-ons/components/input-group-add-on-text-add-on/input-group-add-on-text-add-on.component.js +5 -18
- package/dist/components/input-group/components/input-group-add-ons/input-group-add-ons.component.js +8 -20
- package/dist/components/input-group/components/input-group-add-ons/input-group-add-ons.types.js +2 -2
- package/dist/components/input-group/components/input-group-supporting-text/input-group-supporting-text.component.js +5 -18
- package/dist/components/input-group/input-group.component.js +12 -24
- package/dist/components/label/label.component.js +5 -18
- package/dist/components/link/link.component.js +6 -19
- package/dist/components/list/components/list-item/list-item.component.js +9 -22
- package/dist/components/list/list.component.js +5 -19
- package/dist/components/list/list.utils.js +2 -2
- package/dist/components/modal/components/modal-backdrop/modal-backdrop.component.js +9 -21
- package/dist/components/modal/components/modal-dialog/components/modal-dialog-body/modal-dialog-body.component.js +6 -19
- package/dist/components/modal/components/modal-dialog/components/modal-dialog-footer/modal-dialog-footer.component.js +6 -19
- package/dist/components/modal/components/modal-dialog/modal-dialog.component.js +13 -24
- package/dist/components/modal/modal.component.js +5 -18
- package/dist/components/pagination/components/pagination-item/pagination-item.component.js +10 -20
- package/dist/components/pagination/components/pagination-item/pagination-item.styles.d.ts +2 -2
- package/dist/components/pagination/components/pagination-item/pagination-item.styles.js +1 -1
- package/dist/components/pagination/components/pagination-pages/pagination-pages.component.d.ts +2 -0
- package/dist/components/pagination/components/pagination-pages/pagination-pages.component.js +185 -0
- package/dist/components/pagination/components/pagination-pages/pagination-pages.types.d.ts +36 -0
- package/dist/components/pagination/components/pagination-pages/pagination-pages.types.js +1 -0
- package/dist/components/pagination/components/pagination-presentational/pagination-presentational.component.d.ts +2 -0
- package/dist/components/pagination/components/pagination-presentational/pagination-presentational.component.js +44 -0
- package/dist/components/pagination/{pagination.styles.d.ts → components/pagination-presentational/pagination-presentational.styles.d.ts} +3 -0
- package/dist/components/pagination/{pagination.styles.js → components/pagination-presentational/pagination-presentational.styles.js} +2 -1
- package/dist/components/pagination/components/pagination-presentational/pagination-presentational.types.d.ts +41 -0
- package/dist/components/pagination/components/pagination-presentational/pagination-presentational.types.js +1 -0
- package/dist/components/pagination/components/pagination-total-pages/pagination-total-pages.component.d.ts +2 -0
- package/dist/components/pagination/components/pagination-total-pages/pagination-total-pages.component.js +188 -0
- package/dist/components/pagination/components/pagination-total-pages/pagination-total-pages.types.d.ts +40 -0
- package/dist/components/pagination/components/pagination-total-pages/pagination-total-pages.types.js +1 -0
- package/dist/components/pagination/pagination.component.d.ts +1 -1
- package/dist/components/pagination/pagination.component.js +27 -133
- package/dist/components/pagination/pagination.hooks.js +1 -1
- package/dist/components/pagination/pagination.types.d.ts +33 -29
- package/dist/components/pagination/pagination.utils.d.ts +2 -0
- package/dist/components/pagination/pagination.utils.js +12 -0
- package/dist/components/panel/components/panel-body/panel-body.component.js +5 -18
- package/dist/components/panel/components/panel-footer/panel-footer.component.js +5 -18
- package/dist/components/panel/panel.component.js +5 -18
- package/dist/components/panel/panel.types.d.ts +1 -1
- package/dist/components/pass-code/pass-code.component.js +6 -21
- package/dist/components/pass-code-view/pass-code-view.component.js +8 -21
- package/dist/components/pass-code-view/pass-code-view.loader.js +1 -1
- package/dist/components/pictogram/components/decorative/wbc-bank-card-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/accessibility-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/accounts-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/aeroplane-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/arrow-down-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/arrow-left-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/arrow-right-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/arrow-up-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/arrows-passing-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/atm-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/australia-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/bank-card-locked-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/bank-card-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/bank-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/birth-certificate-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/building-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/buoy-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/bus-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/business-person-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/calculator-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/calendar-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/car-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/cash-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/celebration-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/chat-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/clock-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/coffee-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/coins-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/compass-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/customer-profile-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/desktop-computer-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/document-and-pen-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/dollar-sign-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/drivers-licence-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/education-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/eftpos-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/envelope-email-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/envelope-printed-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/face-happy-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/face-unhappy-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/face-unsure-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/finger-motion-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/fingerprint-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/football-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/fork-knife-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/generic-document-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/gift-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/globe-australia-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/globe-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/graph-decreasing-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/graph-increasing-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/gym-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/headset-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/heart-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/house-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/light-bulb-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/loop-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/medicare-card-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/mobile-device-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/money-in-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/money-out-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/movie-tickets-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/nest-egg-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/noodles-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/number-1-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/number-2-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/number-3-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/number-4-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/number-5-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/padlock-locked-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/padlock-unlocked-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/passport-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/percent-sign-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/person-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/piggy-bank-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/pizza-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/plant-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/search-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/secure-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/shop-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/shopping-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/sparkle-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/star-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/stopwatch-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/target-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/tax-document-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/telephone-call-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/thumbs-up-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/tick-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/tools-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/tractor-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/truck-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/umbrella-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/unsecure-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/wallet-pictogram.js +5 -18
- package/dist/components/pictogram/components/informative/wearables-pictogram.js +5 -18
- package/dist/components/pictogram/pictogram.component.js +5 -18
- package/dist/components/popover/components/panel/panel.component.js +10 -22
- package/dist/components/popover/components/panel/panel.hook.js +1 -1
- package/dist/components/popover/popover.component.js +1 -1
- package/dist/components/progress-bar/progress-bar.component.js +11 -23
- package/dist/components/progress-indicator/progress-indicator.component.js +6 -19
- package/dist/components/progress-rope/components/progress-rope-group-step/progress-rope-group-step.component.js +6 -19
- package/dist/components/progress-rope/components/progress-rope-step/progress-rope-step.component.js +6 -19
- package/dist/components/progress-rope/progress-rope.component.js +5 -18
- package/dist/components/radio-group/components/radio-group-radio/radio-group-radio.component.js +11 -23
- package/dist/components/radio-group/radio-group.component.js +17 -27
- package/dist/components/repeater/repeater.component.js +12 -23
- package/dist/components/select/select.component.js +6 -19
- package/dist/components/selector/components/selector-button-group/components/selector-button-group-option/selector-button-group-option.component.js +5 -18
- package/dist/components/selector/components/selector-button-group/selector-button-group.component.js +8 -20
- package/dist/components/selector/components/selector-checkbox-group/components/selector-checkbox-group-option/selector-checkbox-group-option.component.js +6 -19
- package/dist/components/selector/components/selector-checkbox-group/selector-checkbox-group.component.js +7 -19
- package/dist/components/selector/components/selector-label/selector-label.component.js +4 -17
- package/dist/components/selector/components/selector-link-group/components/selector-link-group-option/selector-link-group-option.component.js +7 -20
- package/dist/components/selector/components/selector-link-group/selector-link-group.component.js +8 -20
- package/dist/components/selector/components/selector-radio-group/components/selector-radio-group-option/selector-radio-group-option.component.js +7 -20
- package/dist/components/selector/components/selector-radio-group/selector-radio-group.component.js +8 -20
- package/dist/components/selector/selector.component.js +4 -18
- package/dist/components/skip-link/skip-link.component.js +8 -20
- package/dist/components/switch/switch.component.js +11 -23
- package/dist/components/symbol/components/logos/bom-logo.js +5 -18
- package/dist/components/symbol/components/logos/bom-multibrand-large-logo.js +6 -19
- package/dist/components/symbol/components/logos/bom-multibrand-small-logo.js +6 -19
- package/dist/components/symbol/components/logos/bom-shield-logo.js +5 -18
- package/dist/components/symbol/components/logos/bsa-logo.js +4 -17
- package/dist/components/symbol/components/logos/bsa-multibrand-large-logo.js +5 -18
- package/dist/components/symbol/components/logos/bsa-multibrand-small-logo.js +5 -18
- package/dist/components/symbol/components/logos/bsa-stacked-logo.js +4 -17
- package/dist/components/symbol/components/logos/bt-logo.js +5 -18
- package/dist/components/symbol/components/logos/bt-multibrand-large-logo.js +6 -19
- package/dist/components/symbol/components/logos/bt-multibrand-small-logo.js +6 -19
- package/dist/components/symbol/components/logos/bt-panorama-logo.js +5 -18
- package/dist/components/symbol/components/logos/bt-panorama-multibrand-large-logo.js +6 -19
- package/dist/components/symbol/components/logos/bt-panorama-multibrand-small-logo.js +6 -19
- package/dist/components/symbol/components/logos/bt-panorama-reversed-logo.js +5 -18
- package/dist/components/symbol/components/logos/bt-reversed-logo.js +5 -18
- package/dist/components/symbol/components/logos/rams-logo.js +5 -18
- package/dist/components/symbol/components/logos/rams-multibrand-large-logo.js +5 -18
- package/dist/components/symbol/components/logos/rams-multibrand-small-logo.js +5 -18
- package/dist/components/symbol/components/logos/red-avatar-circle-logo.js +4 -17
- package/dist/components/symbol/components/logos/red-avatar-circle-reversed-logo.js +4 -17
- package/dist/components/symbol/components/logos/red-avatar-logo.js +4 -17
- package/dist/components/symbol/components/logos/stg-dragon-logo.js +4 -17
- package/dist/components/symbol/components/logos/stg-logo.js +4 -17
- package/dist/components/symbol/components/logos/stg-multibrand-large-logo.js +5 -18
- package/dist/components/symbol/components/logos/stg-multibrand-small-logo.js +5 -18
- package/dist/components/symbol/components/logos/wbc-logo.js +5 -18
- package/dist/components/symbol/components/logos/wbc-multibrand-large-logo.js +5 -18
- package/dist/components/symbol/components/logos/wbc-multibrand-small-logo.js +6 -19
- package/dist/components/symbol/components/logos/wbg-internal-logo.js +4 -17
- package/dist/components/symbol/components/logos/wbg-logo.js +4 -17
- package/dist/components/symbol/components/logos/wbg-multibrand-large-logo.js +5 -18
- package/dist/components/symbol/components/logos/wbg-multibrand-small-logo.js +5 -18
- package/dist/components/symbol/components/symbols/american-express-symbol.js +5 -18
- package/dist/components/symbol/components/symbols/apple-store-inverse-symbol.js +5 -18
- package/dist/components/symbol/components/symbols/apple-store-symbol.js +5 -18
- package/dist/components/symbol/components/symbols/bpay-land-symbol.js +5 -18
- package/dist/components/symbol/components/symbols/bpay-port-symbol.js +4 -17
- package/dist/components/symbol/components/symbols/facebook-symbol.js +4 -17
- package/dist/components/symbol/components/symbols/google-plus-symbol.js +4 -17
- package/dist/components/symbol/components/symbols/google-store-symbol.js +4 -17
- package/dist/components/symbol/components/symbols/instagram-symbol.js +4 -17
- package/dist/components/symbol/components/symbols/linked-in-symbol.js +4 -17
- package/dist/components/symbol/components/symbols/mastercard-accepted-symbol.js +4 -17
- package/dist/components/symbol/components/symbols/mastercard-horizontal-symbol.js +4 -17
- package/dist/components/symbol/components/symbols/mastercard-symbol.js +4 -17
- package/dist/components/symbol/components/symbols/microsoft-store-symbol.js +4 -17
- package/dist/components/symbol/components/symbols/pay-id-symbol.js +4 -17
- package/dist/components/symbol/components/symbols/pay-to-black-symbol.d.ts +2 -0
- package/dist/components/symbol/components/symbols/pay-to-black-symbol.js +16 -0
- package/dist/components/symbol/components/symbols/pay-to-dark-grey-symbol.d.ts +2 -0
- package/dist/components/symbol/components/symbols/pay-to-dark-grey-symbol.js +16 -0
- package/dist/components/symbol/components/symbols/pay-to-light-grey-symbol.d.ts +2 -0
- package/dist/components/symbol/components/symbols/pay-to-light-grey-symbol.js +16 -0
- package/dist/components/symbol/components/symbols/pay-to-white-symbol.d.ts +2 -0
- package/dist/components/symbol/components/symbols/pay-to-white-symbol.js +16 -0
- package/dist/components/symbol/components/symbols/pay-to-wordmark-black-symbol.d.ts +2 -0
- package/dist/components/symbol/components/symbols/pay-to-wordmark-black-symbol.js +25 -0
- package/dist/components/symbol/components/symbols/pay-to-wordmark-dark-grey-symbol.d.ts +2 -0
- package/dist/components/symbol/components/symbols/pay-to-wordmark-dark-grey-symbol.js +25 -0
- package/dist/components/symbol/components/symbols/pay-to-wordmark-light-grey-symbol.d.ts +2 -0
- package/dist/components/symbol/components/symbols/pay-to-wordmark-light-grey-symbol.js +25 -0
- package/dist/components/symbol/components/symbols/pay-to-wordmark-white-symbol.d.ts +2 -0
- package/dist/components/symbol/components/symbols/pay-to-wordmark-white-symbol.js +25 -0
- package/dist/components/symbol/components/symbols/slack-symbol.js +4 -17
- package/dist/components/symbol/components/symbols/twitter-symbol.js +4 -17
- package/dist/components/symbol/components/symbols/visa-blue-symbol.js +4 -17
- package/dist/components/symbol/components/symbols/visa-symbol.js +4 -17
- package/dist/components/symbol/components/symbols/visa-white-symbol.js +4 -17
- package/dist/components/symbol/components/symbols/x-mark-inverse-symbol.js +4 -17
- package/dist/components/symbol/components/symbols/x-mark-symbol.js +4 -17
- package/dist/components/symbol/components/symbols/x-symbol.js +4 -17
- package/dist/components/symbol/components/symbols/yammer-symbol.js +4 -17
- package/dist/components/symbol/components/symbols/youtube-symbol.js +4 -17
- package/dist/components/symbol/index.d.ts +8 -0
- package/dist/components/symbol/index.js +8 -0
- package/dist/components/symbol/symbol.component.js +5 -18
- package/dist/components/symbol/symbol.utils.js +1 -1
- package/dist/components/table/components/table-body/table-body.component.js +5 -18
- package/dist/components/table/components/table-caption/table-caption.component.js +5 -18
- package/dist/components/table/components/table-cell/table-cell.component.js +6 -19
- package/dist/components/table/components/table-footer/table-footer.component.js +3 -17
- package/dist/components/table/components/table-header/table-header.component.js +5 -18
- package/dist/components/table/components/table-header-cell/table-header-cell.component.js +6 -19
- package/dist/components/table/components/table-header-row/table-header-row.component.js +5 -18
- package/dist/components/table/components/table-row/table-row.component.js +6 -19
- package/dist/components/table/table.component.js +5 -18
- package/dist/components/tabs/components/tabs-tab/tabs-tab.component.js +6 -19
- package/dist/components/tabs/components/tabs-tab-panel/tabs-tab-panel.component.js +6 -19
- package/dist/components/tabs/tabs.component.js +6 -20
- package/dist/components/textarea/textarea.component.js +6 -19
- package/dist/components/visually-hidden/visually-hidden.component.js +5 -18
- package/dist/components/well/well.component.js +5 -18
- package/dist/css/westpac-ui.css +15 -0
- package/dist/css/westpac-ui.min.css +15 -0
- package/dist/hook/breakpoints.hook.d.ts +1 -0
- package/dist/hook/breakpoints.hook.js +21 -0
- package/dist/tailwind/tailwind-plugin.js +2 -2
- package/dist/tailwind/tailwind-transformer.js +1 -3
- package/dist/tailwind/utils/create-brand-fonts.js +2 -2
- package/package.json +11 -9
- package/src/components/accordion/components/accordion-item/accordion-item.component.tsx +1 -1
- package/src/components/accordion/components/accordion-item/accordion-item.styles.ts +2 -1
- package/src/components/autocomplete/components/autocomplete-list-box/autocomplete-list-box.component.tsx +1 -1
- package/src/components/autocomplete/components/autocomplete-list-box/components/autocomplete-list-box-option/autocomplete-list-box-option.styles.ts +2 -2
- package/src/components/autocomplete/components/autocomplete-popover/autocomplete-popover.component.tsx +1 -1
- package/src/components/icon/components/arrow-thread-reply-icon.tsx +19 -0
- package/src/components/icon/components/button-shape-icon.tsx +39 -0
- package/src/components/icon/components/closed-caption-icon.tsx +41 -0
- package/src/components/icon/components/color-filters-icon.tsx +23 -0
- package/src/components/icon/components/format-color-icon.tsx +26 -0
- package/src/components/icon/components/fullscreen-exit-icon.tsx +19 -0
- package/src/components/icon/components/fullscreen-icon.tsx +19 -0
- package/src/components/icon/components/pause-icon.tsx +1 -1
- package/src/components/icon/components/play-icon.tsx +1 -1
- package/src/components/icon/components/replay-icon.tsx +15 -0
- package/src/components/icon/components/text-bold-icon.tsx +17 -0
- package/src/components/icon/components/text-increase-icon.tsx +22 -0
- package/src/components/icon/components/text-large-icon.tsx +21 -0
- package/src/components/icon/components/voiceover-on-icon.tsx +51 -0
- package/src/components/icon/components/volume-off-icon.tsx +51 -0
- package/src/components/icon/components/volume-on-icon.tsx +46 -0
- package/src/components/icon/index.ts +14 -0
- package/src/components/pagination/components/pagination-item/pagination-item.component.tsx +2 -0
- package/src/components/pagination/components/pagination-item/pagination-item.styles.ts +1 -1
- package/src/components/pagination/components/pagination-pages/pagination-pages.component.tsx +212 -0
- package/src/components/pagination/components/pagination-pages/pagination-pages.types.ts +47 -0
- package/src/components/pagination/components/pagination-presentational/pagination-presentational.component.tsx +81 -0
- package/src/components/pagination/{pagination.styles.ts → components/pagination-presentational/pagination-presentational.styles.ts} +2 -0
- package/src/components/pagination/components/pagination-presentational/pagination-presentational.types.ts +48 -0
- package/src/components/pagination/components/pagination-total-pages/pagination-total-pages.component.tsx +234 -0
- package/src/components/pagination/components/pagination-total-pages/pagination-total-pages.types.ts +48 -0
- package/src/components/pagination/pagination.component.tsx +34 -142
- package/src/components/pagination/pagination.types.ts +34 -31
- package/src/components/pagination/pagination.utils.ts +11 -0
- package/src/components/panel/panel.types.ts +1 -1
- package/src/components/progress-indicator/progress-indicator.component.tsx +1 -1
- package/src/components/symbol/components/symbols/pay-to-black-symbol.tsx +30 -0
- package/src/components/symbol/components/symbols/pay-to-dark-grey-symbol.tsx +30 -0
- package/src/components/symbol/components/symbols/pay-to-light-grey-symbol.tsx +30 -0
- package/src/components/symbol/components/symbols/pay-to-white-symbol.tsx +30 -0
- package/src/components/symbol/components/symbols/pay-to-wordmark-black-symbol.tsx +42 -0
- package/src/components/symbol/components/symbols/pay-to-wordmark-dark-grey-symbol.tsx +42 -0
- package/src/components/symbol/components/symbols/pay-to-wordmark-light-grey-symbol.tsx +42 -0
- package/src/components/symbol/components/symbols/pay-to-wordmark-white-symbol.tsx +42 -0
- package/src/components/symbol/components/symbols/x-mark-inverse-symbol.tsx +2 -2
- package/src/components/symbol/components/symbols/x-mark-symbol.tsx +2 -2
- package/src/components/symbol/index.ts +8 -0
- package/src/hook/breakpoints.hook.ts +29 -0
- package/utils/build-icons/icon-template.ts +1 -1
- package/utils/build-svg-zip/index.ts +39 -0
package/dist/components/bottom-sheet/components/bottom-sheet-modal/bottom-sheet-modal.component.js
CHANGED
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
function _extends() {
|
|
2
|
-
_extends = Object.assign || function(target) {
|
|
3
|
-
for(var i = 1; i < arguments.length; i++){
|
|
4
|
-
var source = arguments[i];
|
|
5
|
-
for(var key in source){
|
|
6
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
7
|
-
target[key] = source[key];
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
return target;
|
|
12
|
-
};
|
|
13
|
-
return _extends.apply(this, arguments);
|
|
14
|
-
}
|
|
15
1
|
import { motion, useAnimation } from 'framer-motion';
|
|
16
2
|
import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
17
3
|
import { Overlay, useModalOverlay } from 'react-aria';
|
|
@@ -26,10 +12,10 @@ function checkIfItIsMobile(breakpoint) {
|
|
|
26
12
|
}
|
|
27
13
|
}
|
|
28
14
|
const MEDIUM_BREAKPOINT_AS_NUMBER = +BREAKPOINTS.md.replace('px', '');
|
|
29
|
-
export function BottomSheetModal({ state
|
|
15
|
+
export function BottomSheetModal({ state, height, width, children, portalContainer, ...props }) {
|
|
30
16
|
const styles = bottomSheetModalStyles({});
|
|
31
17
|
const ref = useRef(null);
|
|
32
|
-
const { modalProps
|
|
18
|
+
const { modalProps, underlayProps } = useModalOverlay(props, state, ref);
|
|
33
19
|
const controls = useAnimation();
|
|
34
20
|
const [isMobile, setIsMobile] = useState(checkIfItIsMobile(MEDIUM_BREAKPOINT_AS_NUMBER));
|
|
35
21
|
const brandContainer = useMemo(()=>{
|
|
@@ -72,9 +58,10 @@ export function BottomSheetModal({ state , height , width , children , portalCon
|
|
|
72
58
|
}
|
|
73
59
|
return React.createElement(Overlay, {
|
|
74
60
|
portalContainer: portalContainer || brandContainer
|
|
75
|
-
}, React.createElement("div",
|
|
76
|
-
className: styles.underlay()
|
|
77
|
-
|
|
61
|
+
}, React.createElement("div", {
|
|
62
|
+
className: styles.underlay(),
|
|
63
|
+
...underlayProps
|
|
64
|
+
}, React.createElement(motion.div, {
|
|
78
65
|
animate: controls,
|
|
79
66
|
dragElastic: 0,
|
|
80
67
|
initial: "hidden",
|
|
@@ -97,13 +84,13 @@ export function BottomSheetModal({ state , height , width , children , portalCon
|
|
|
97
84
|
}
|
|
98
85
|
},
|
|
99
86
|
className: styles.motionWrapper()
|
|
100
|
-
}, React.createElement("div",
|
|
101
|
-
className: styles.modal()
|
|
102
|
-
|
|
87
|
+
}, React.createElement("div", {
|
|
88
|
+
className: styles.modal(),
|
|
89
|
+
...modalProps,
|
|
103
90
|
ref: ref,
|
|
104
91
|
style: {
|
|
105
92
|
height,
|
|
106
93
|
width
|
|
107
94
|
}
|
|
108
|
-
}
|
|
95
|
+
}, children))));
|
|
109
96
|
}
|
|
@@ -1,30 +1,19 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
function _extends() {
|
|
3
|
-
_extends = Object.assign || function(target) {
|
|
4
|
-
for(var i = 1; i < arguments.length; i++){
|
|
5
|
-
var source = arguments[i];
|
|
6
|
-
for(var key in source){
|
|
7
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
8
|
-
target[key] = source[key];
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
return target;
|
|
13
|
-
};
|
|
14
|
-
return _extends.apply(this, arguments);
|
|
15
|
-
}
|
|
16
2
|
import React, { Children, cloneElement } from 'react';
|
|
17
3
|
import { useBreadcrumbs } from 'react-aria';
|
|
18
|
-
export function Breadcrumb({ className
|
|
19
|
-
const { navProps
|
|
4
|
+
export function Breadcrumb({ className, children, 'aria-label': ariaLabel = 'Breadcrumb', ...props }) {
|
|
5
|
+
const { navProps } = useBreadcrumbs(props);
|
|
20
6
|
const childCount = Children.count(children);
|
|
21
|
-
|
|
22
|
-
return React.createElement("nav", _extends({
|
|
7
|
+
return React.createElement("nav", {
|
|
23
8
|
className: className,
|
|
24
|
-
"aria-label": ariaLabel
|
|
25
|
-
|
|
9
|
+
"aria-label": ariaLabel,
|
|
10
|
+
...navProps
|
|
11
|
+
}, React.createElement("ol", {
|
|
26
12
|
className: "m-0 flex list-none p-0"
|
|
27
|
-
}, Children.map(children, (child, i)=>
|
|
13
|
+
}, Children.map(children, (child, i)=>{
|
|
14
|
+
var _cloneElement;
|
|
15
|
+
return (_cloneElement = cloneElement(child, {
|
|
28
16
|
isCurrent: i === childCount - 1
|
|
29
|
-
})) !== null && _cloneElement !== void 0 ? _cloneElement : React.createElement(React.Fragment, null)
|
|
17
|
+
})) !== null && _cloneElement !== void 0 ? _cloneElement : React.createElement(React.Fragment, null);
|
|
18
|
+
})));
|
|
30
19
|
}
|
|
@@ -1,26 +1,12 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
function _extends() {
|
|
3
|
-
_extends = Object.assign || function(target) {
|
|
4
|
-
for(var i = 1; i < arguments.length; i++){
|
|
5
|
-
var source = arguments[i];
|
|
6
|
-
for(var key in source){
|
|
7
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
8
|
-
target[key] = source[key];
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
return target;
|
|
13
|
-
};
|
|
14
|
-
return _extends.apply(this, arguments);
|
|
15
|
-
}
|
|
16
2
|
import React, { forwardRef, useRef } from 'react';
|
|
17
3
|
import { useBreadcrumbItem } from 'react-aria';
|
|
18
4
|
import { ArrowRightIcon } from '../../../icon/index.js';
|
|
19
5
|
import { styles } from './breadcrumb-item.styles.js';
|
|
20
|
-
export function BaseBreadcrumbItem({ className
|
|
6
|
+
export function BaseBreadcrumbItem({ className, isDisabled = false, isCurrent = false, href, children, tag: Tag = 'span', ...props }, propRef) {
|
|
21
7
|
const ref = useRef(propRef);
|
|
22
8
|
const FinalTag = Tag === 'a' && isDisabled || Tag === 'a' && isCurrent ? 'span' : Tag;
|
|
23
|
-
const { itemProps
|
|
9
|
+
const { itemProps } = useBreadcrumbItem({
|
|
24
10
|
...props,
|
|
25
11
|
children,
|
|
26
12
|
isDisabled,
|
|
@@ -29,17 +15,18 @@ export function BaseBreadcrumbItem({ className , isDisabled =false , isCurrent =
|
|
|
29
15
|
}, ref);
|
|
30
16
|
return React.createElement("li", {
|
|
31
17
|
className: "inline-flex items-center"
|
|
32
|
-
}, React.createElement(FinalTag,
|
|
33
|
-
...
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
18
|
+
}, React.createElement(FinalTag, {
|
|
19
|
+
...{
|
|
20
|
+
...itemProps,
|
|
21
|
+
ref: propRef,
|
|
22
|
+
href: FinalTag === 'a' ? href : undefined
|
|
23
|
+
},
|
|
37
24
|
className: styles({
|
|
38
25
|
className,
|
|
39
26
|
isDisabled,
|
|
40
27
|
isCurrent
|
|
41
28
|
})
|
|
42
|
-
}
|
|
29
|
+
}, children), !isCurrent && React.createElement("span", {
|
|
43
30
|
"aria-hidden": "true",
|
|
44
31
|
className: "flex items-center px-0.5"
|
|
45
32
|
}, React.createElement(ArrowRightIcon, {
|
|
@@ -1,24 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
function _extends() {
|
|
3
|
-
_extends = Object.assign || function(target) {
|
|
4
|
-
for(var i = 1; i < arguments.length; i++){
|
|
5
|
-
var source = arguments[i];
|
|
6
|
-
for(var key in source){
|
|
7
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
8
|
-
target[key] = source[key];
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
return target;
|
|
13
|
-
};
|
|
14
|
-
return _extends.apply(this, arguments);
|
|
15
|
-
}
|
|
16
2
|
import React, { forwardRef, useMemo } from 'react';
|
|
17
3
|
import { mergeProps, useFocusRing } from 'react-aria';
|
|
18
4
|
import { styles as buttonStyles } from './button.styles.js';
|
|
19
5
|
import { getIconSize } from './button.utils.js';
|
|
20
|
-
function BaseButton({ className
|
|
21
|
-
const { isFocusVisible
|
|
6
|
+
function BaseButton({ className, size = 'medium', look = 'hero', soft, block = false, justify, tag: Tag = 'button', iconBefore: IconBefore, iconAfter: IconAfter, iconLook, iconColor, iconSize, children, ...props }, ref) {
|
|
7
|
+
const { isFocusVisible, focusProps } = useFocusRing();
|
|
22
8
|
const btnIconSize = useMemo(()=>iconSize || getIconSize(size), [
|
|
23
9
|
iconSize,
|
|
24
10
|
size
|
|
@@ -32,12 +18,13 @@ function BaseButton({ className , size ='medium' , look ='hero' , soft , block =
|
|
|
32
18
|
isFocusVisible,
|
|
33
19
|
hasChildren: !!children
|
|
34
20
|
});
|
|
35
|
-
return React.createElement(Tag,
|
|
21
|
+
return React.createElement(Tag, {
|
|
36
22
|
ref: ref,
|
|
37
23
|
className: styles.base({
|
|
38
24
|
className
|
|
39
|
-
})
|
|
40
|
-
|
|
25
|
+
}),
|
|
26
|
+
...mergeProps(props, focusProps)
|
|
27
|
+
}, IconBefore && React.createElement(IconBefore, {
|
|
41
28
|
look: iconLook,
|
|
42
29
|
size: btnIconSize,
|
|
43
30
|
className: styles.iconBefore(),
|
|
@@ -1,18 +1,4 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
function _extends() {
|
|
3
|
-
_extends = Object.assign || function(target) {
|
|
4
|
-
for(var i = 1; i < arguments.length; i++){
|
|
5
|
-
var source = arguments[i];
|
|
6
|
-
for(var key in source){
|
|
7
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
8
|
-
target[key] = source[key];
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
return target;
|
|
13
|
-
};
|
|
14
|
-
return _extends.apply(this, arguments);
|
|
15
|
-
}
|
|
16
2
|
import React, { useCallback, useEffect, useId, useRef } from 'react';
|
|
17
3
|
import { useButton, useOverlayTrigger } from 'react-aria';
|
|
18
4
|
import { useOverlayTriggerState } from 'react-stately';
|
|
@@ -20,7 +6,7 @@ import { Button } from '../button/index.js';
|
|
|
20
6
|
import { DropDownIcon } from '../icon/index.js';
|
|
21
7
|
import { styles as buttonDropdownStyles } from './button-dropdown.styles.js';
|
|
22
8
|
import { ButtonDropdownPanel } from './components/button-dropdown-panel/button-dropdown-panel.component.js';
|
|
23
|
-
export function ButtonDropdown({ className
|
|
9
|
+
export function ButtonDropdown({ className, dropdownSize = 'medium', iconBefore: IconBefore, open = false, text, children, size, look = 'hero', soft = false, block = false }) {
|
|
24
10
|
const ref = useRef(null);
|
|
25
11
|
const panelId = useId();
|
|
26
12
|
const styles = buttonDropdownStyles({
|
|
@@ -30,10 +16,10 @@ export function ButtonDropdown({ className , dropdownSize ='medium' , iconBefore
|
|
|
30
16
|
const state = useOverlayTriggerState({
|
|
31
17
|
defaultOpen: open
|
|
32
18
|
});
|
|
33
|
-
const { triggerProps
|
|
19
|
+
const { triggerProps } = useOverlayTrigger({
|
|
34
20
|
type: 'menu'
|
|
35
21
|
}, state, ref);
|
|
36
|
-
const { buttonProps
|
|
22
|
+
const { buttonProps } = useButton(triggerProps, ref);
|
|
37
23
|
const keyHandler = useCallback((event)=>{
|
|
38
24
|
if (state.isOpen && event.key === 'Escape') state.close();
|
|
39
25
|
}, [
|
|
@@ -47,11 +33,12 @@ export function ButtonDropdown({ className , dropdownSize ='medium' , iconBefore
|
|
|
47
33
|
}, [
|
|
48
34
|
keyHandler
|
|
49
35
|
]);
|
|
50
|
-
return React.createElement(React.Fragment, null, React.createElement(Button,
|
|
36
|
+
return React.createElement(React.Fragment, null, React.createElement(Button, {
|
|
51
37
|
ref: ref,
|
|
52
|
-
iconAfter: (props)=>React.createElement(DropDownIcon,
|
|
53
|
-
"aria-hidden": true
|
|
54
|
-
|
|
38
|
+
iconAfter: (props)=>React.createElement(DropDownIcon, {
|
|
39
|
+
"aria-hidden": true,
|
|
40
|
+
...props
|
|
41
|
+
}),
|
|
55
42
|
iconBefore: IconBefore,
|
|
56
43
|
size: size,
|
|
57
44
|
look: look,
|
|
@@ -59,8 +46,9 @@ export function ButtonDropdown({ className , dropdownSize ='medium' , iconBefore
|
|
|
59
46
|
block: block,
|
|
60
47
|
"aria-expanded": state.isOpen,
|
|
61
48
|
"aria-controls": panelId,
|
|
62
|
-
className: styles.base()
|
|
63
|
-
|
|
49
|
+
className: styles.base(),
|
|
50
|
+
...buttonProps
|
|
51
|
+
}, text), state.isOpen && React.createElement(ButtonDropdownPanel, {
|
|
64
52
|
className: styles.panel({
|
|
65
53
|
className
|
|
66
54
|
}),
|
|
@@ -1,24 +1,11 @@
|
|
|
1
|
-
function _extends() {
|
|
2
|
-
_extends = Object.assign || function(target) {
|
|
3
|
-
for(var i = 1; i < arguments.length; i++){
|
|
4
|
-
var source = arguments[i];
|
|
5
|
-
for(var key in source){
|
|
6
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
7
|
-
target[key] = source[key];
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
return target;
|
|
12
|
-
};
|
|
13
|
-
return _extends.apply(this, arguments);
|
|
14
|
-
}
|
|
15
1
|
import React from 'react';
|
|
16
2
|
import { styles as headingStyles } from './button-dropdown-heading.styles.js';
|
|
17
|
-
export function ButtonDropdownHeading({ className
|
|
3
|
+
export function ButtonDropdownHeading({ className, tag: Tag = 'h1', children, ...props }) {
|
|
18
4
|
const styles = headingStyles({});
|
|
19
|
-
return React.createElement(Tag,
|
|
5
|
+
return React.createElement(Tag, {
|
|
20
6
|
className: styles.base({
|
|
21
7
|
className
|
|
22
|
-
})
|
|
23
|
-
|
|
8
|
+
}),
|
|
9
|
+
...props
|
|
10
|
+
}, children);
|
|
24
11
|
}
|
|
@@ -1,30 +1,16 @@
|
|
|
1
|
-
function _extends() {
|
|
2
|
-
_extends = Object.assign || function(target) {
|
|
3
|
-
for(var i = 1; i < arguments.length; i++){
|
|
4
|
-
var source = arguments[i];
|
|
5
|
-
for(var key in source){
|
|
6
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
7
|
-
target[key] = source[key];
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
return target;
|
|
12
|
-
};
|
|
13
|
-
return _extends.apply(this, arguments);
|
|
14
|
-
}
|
|
15
1
|
import React, { useCallback, useEffect, useRef } from 'react';
|
|
16
2
|
import { DismissButton, mergeProps, useFocusRing, usePopover } from 'react-aria';
|
|
17
3
|
import { styles as panelStyles } from './button-dropdown-panel.styles.js';
|
|
18
|
-
export function ButtonDropdownPanel({ className
|
|
4
|
+
export function ButtonDropdownPanel({ className, children, state, block, id, ...props }) {
|
|
19
5
|
var _props_triggerRef_current;
|
|
20
6
|
const popoverRef = useRef(null);
|
|
21
|
-
const { popoverProps
|
|
7
|
+
const { popoverProps } = usePopover({
|
|
22
8
|
popoverRef,
|
|
23
9
|
shouldFlip: false,
|
|
24
10
|
isNonModal: true,
|
|
25
11
|
...props
|
|
26
12
|
}, state);
|
|
27
|
-
const { isFocused
|
|
13
|
+
const { isFocused, focusProps } = useFocusRing();
|
|
28
14
|
const styles = panelStyles({
|
|
29
15
|
isFocused
|
|
30
16
|
});
|
|
@@ -52,7 +38,8 @@ export function ButtonDropdownPanel({ className , children , state , block , id
|
|
|
52
38
|
clickHandler,
|
|
53
39
|
focusHandler
|
|
54
40
|
]);
|
|
55
|
-
return React.createElement("div",
|
|
41
|
+
return React.createElement("div", {
|
|
42
|
+
...mergeProps(popoverProps, focusProps),
|
|
56
43
|
id: id,
|
|
57
44
|
style: {
|
|
58
45
|
...popoverProps.style,
|
|
@@ -62,7 +49,7 @@ export function ButtonDropdownPanel({ className , children , state , block , id
|
|
|
62
49
|
className: styles.base({
|
|
63
50
|
className
|
|
64
51
|
})
|
|
65
|
-
}
|
|
52
|
+
}, React.createElement(DismissButton, {
|
|
66
53
|
onDismiss: state.close
|
|
67
54
|
}), React.createElement("div", {
|
|
68
55
|
className: styles.dialog()
|
|
@@ -1,18 +1,4 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
function _extends() {
|
|
3
|
-
_extends = Object.assign || function(target) {
|
|
4
|
-
for(var i = 1; i < arguments.length; i++){
|
|
5
|
-
var source = arguments[i];
|
|
6
|
-
for(var key in source){
|
|
7
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
8
|
-
target[key] = source[key];
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
return target;
|
|
13
|
-
};
|
|
14
|
-
return _extends.apply(this, arguments);
|
|
15
|
-
}
|
|
16
2
|
import React, { createContext } from 'react';
|
|
17
3
|
import { useRadioGroup } from 'react-aria';
|
|
18
4
|
import { useRadioGroupState } from 'react-stately';
|
|
@@ -79,26 +65,28 @@ export const ButtonGroupContext = createContext({
|
|
|
79
65
|
}
|
|
80
66
|
}
|
|
81
67
|
});
|
|
82
|
-
export function ButtonGroup({ className
|
|
68
|
+
export function ButtonGroup({ className, buttons, label, look = 'hero', size = 'medium', block = false, errorMessage, hintMessage, ...props }) {
|
|
83
69
|
const state = useRadioGroupState({
|
|
84
70
|
...props,
|
|
85
71
|
label,
|
|
86
72
|
orientation: 'horizontal'
|
|
87
73
|
});
|
|
88
|
-
const { radioGroupProps
|
|
74
|
+
const { radioGroupProps, labelProps, errorMessageProps, descriptionProps } = useRadioGroup({
|
|
89
75
|
...props,
|
|
90
76
|
'aria-errormessage': Array.isArray(errorMessage) ? errorMessage.join(', ') : errorMessage,
|
|
91
77
|
label,
|
|
92
78
|
orientation: 'horizontal'
|
|
93
79
|
}, state);
|
|
94
80
|
const styles = buttonGroupStyles({});
|
|
95
|
-
return React.createElement("div",
|
|
81
|
+
return React.createElement("div", {
|
|
96
82
|
className: styles.base({
|
|
97
83
|
className
|
|
98
|
-
})
|
|
99
|
-
|
|
84
|
+
}),
|
|
85
|
+
...radioGroupProps
|
|
86
|
+
}, React.createElement(Label, labelProps, label), hintMessage && React.createElement(Hint, descriptionProps, hintMessage), errorMessage && state.isInvalid && React.createElement(ErrorMessage, {
|
|
87
|
+
...errorMessageProps,
|
|
100
88
|
message: errorMessage
|
|
101
|
-
})
|
|
89
|
+
}), React.createElement("div", {
|
|
102
90
|
className: styles.buttonWrapper()
|
|
103
91
|
}, React.createElement(ButtonGroupContext.Provider, {
|
|
104
92
|
value: {
|
|
@@ -107,8 +95,9 @@ export function ButtonGroup({ className , buttons , label , look ='hero' , size
|
|
|
107
95
|
look,
|
|
108
96
|
block
|
|
109
97
|
}
|
|
110
|
-
}, buttons.map((button, index)=>React.createElement(ButtonGroupButton,
|
|
98
|
+
}, buttons.map((button, index)=>React.createElement(ButtonGroupButton, {
|
|
111
99
|
key: index,
|
|
112
|
-
className: "group/buttons"
|
|
113
|
-
|
|
100
|
+
className: "group/buttons",
|
|
101
|
+
...button
|
|
102
|
+
})))));
|
|
114
103
|
}
|
package/dist/components/button-group/components/button-group-button/button-group-button.component.js
CHANGED
|
@@ -1,31 +1,17 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
function _extends() {
|
|
3
|
-
_extends = Object.assign || function(target) {
|
|
4
|
-
for(var i = 1; i < arguments.length; i++){
|
|
5
|
-
var source = arguments[i];
|
|
6
|
-
for(var key in source){
|
|
7
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
8
|
-
target[key] = source[key];
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
return target;
|
|
13
|
-
};
|
|
14
|
-
return _extends.apply(this, arguments);
|
|
15
|
-
}
|
|
16
2
|
import React, { useContext, useRef } from 'react';
|
|
17
3
|
import { VisuallyHidden, useFocusRing, useRadio } from 'react-aria';
|
|
18
4
|
import { Button as GELButton } from '../../../button/index.js';
|
|
19
5
|
import { ButtonGroupContext } from '../../button-group.component.js';
|
|
20
6
|
import { styles as buttonStyles } from './button-group-button.styles.js';
|
|
21
|
-
export function ButtonGroupButton({ className
|
|
22
|
-
const { state
|
|
7
|
+
export function ButtonGroupButton({ className, label, ...props }) {
|
|
8
|
+
const { state, size, look, block } = useContext(ButtonGroupContext);
|
|
23
9
|
const ref = useRef(null);
|
|
24
|
-
const { inputProps
|
|
10
|
+
const { inputProps, isSelected, isDisabled } = useRadio({
|
|
25
11
|
...props,
|
|
26
12
|
children: label
|
|
27
13
|
}, state, ref);
|
|
28
|
-
const { isFocusVisible
|
|
14
|
+
const { isFocusVisible, focusProps } = useFocusRing();
|
|
29
15
|
const styles = buttonStyles({
|
|
30
16
|
block,
|
|
31
17
|
isDisabled,
|
|
@@ -35,9 +21,11 @@ export function ButtonGroupButton({ className , label , ...props }) {
|
|
|
35
21
|
className: styles.base({
|
|
36
22
|
className
|
|
37
23
|
})
|
|
38
|
-
}, React.createElement(VisuallyHidden, null, React.createElement("input",
|
|
24
|
+
}, React.createElement(VisuallyHidden, null, React.createElement("input", {
|
|
25
|
+
...inputProps,
|
|
26
|
+
...focusProps,
|
|
39
27
|
ref: ref
|
|
40
|
-
}))
|
|
28
|
+
})), React.createElement(GELButton, {
|
|
41
29
|
tag: "div",
|
|
42
30
|
block: block,
|
|
43
31
|
soft: !isSelected,
|
|
@@ -1,18 +1,4 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
function _extends() {
|
|
3
|
-
_extends = Object.assign || function(target) {
|
|
4
|
-
for(var i = 1; i < arguments.length; i++){
|
|
5
|
-
var source = arguments[i];
|
|
6
|
-
for(var key in source){
|
|
7
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
8
|
-
target[key] = source[key];
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
return target;
|
|
13
|
-
};
|
|
14
|
-
return _extends.apply(this, arguments);
|
|
15
|
-
}
|
|
16
2
|
import React, { createContext, useEffect, useId, useMemo, useRef, useState } from 'react';
|
|
17
3
|
import { useCheckboxGroup, useFocusRing } from 'react-aria';
|
|
18
4
|
import { useCheckboxGroupState } from 'react-stately';
|
|
@@ -84,16 +70,16 @@ export const CheckboxGroupContext = createContext({
|
|
|
84
70
|
}
|
|
85
71
|
}
|
|
86
72
|
});
|
|
87
|
-
export function CheckboxGroup({ className
|
|
73
|
+
export function CheckboxGroup({ className, checkboxes, label, orientation = 'vertical', showAmount = 0, size = 'medium', errorMessage, hintMessage, ...props }) {
|
|
88
74
|
const state = useCheckboxGroupState({
|
|
89
75
|
...props,
|
|
90
76
|
label
|
|
91
77
|
});
|
|
92
|
-
const { groupProps
|
|
78
|
+
const { groupProps, labelProps, errorMessageProps, descriptionProps } = useCheckboxGroup({
|
|
93
79
|
...props,
|
|
94
80
|
label
|
|
95
81
|
}, state);
|
|
96
|
-
const { isFocusVisible
|
|
82
|
+
const { isFocusVisible, focusProps } = useFocusRing();
|
|
97
83
|
const [hiddenOptions, setHiddenOptions] = useState(showAmount > 0);
|
|
98
84
|
const firstNewCheckboxRef = useRef(null);
|
|
99
85
|
const revealAmount = checkboxes && checkboxes.length - showAmount;
|
|
@@ -103,10 +89,11 @@ export function CheckboxGroup({ className , checkboxes , label , orientation ='v
|
|
|
103
89
|
});
|
|
104
90
|
const panelId = useId();
|
|
105
91
|
const childrenToRender = useMemo(()=>{
|
|
106
|
-
const newChildren = checkboxes.map((checkbox, index)=>React.createElement(CheckboxGroupCheckbox,
|
|
92
|
+
const newChildren = checkboxes.map((checkbox, index)=>React.createElement(CheckboxGroupCheckbox, {
|
|
107
93
|
key: index,
|
|
108
|
-
ref: index === showAmount ? firstNewCheckboxRef : null
|
|
109
|
-
|
|
94
|
+
ref: index === showAmount ? firstNewCheckboxRef : null,
|
|
95
|
+
...checkbox
|
|
96
|
+
}));
|
|
110
97
|
return hiddenOptions ? newChildren.slice(0, showAmount) : newChildren;
|
|
111
98
|
}, [
|
|
112
99
|
checkboxes,
|
|
@@ -122,13 +109,15 @@ export function CheckboxGroup({ className , checkboxes , label , orientation ='v
|
|
|
122
109
|
hiddenOptions,
|
|
123
110
|
showAmount
|
|
124
111
|
]);
|
|
125
|
-
return React.createElement("div",
|
|
112
|
+
return React.createElement("div", {
|
|
126
113
|
className: styles.base({
|
|
127
114
|
className
|
|
128
|
-
})
|
|
129
|
-
|
|
115
|
+
}),
|
|
116
|
+
...groupProps
|
|
117
|
+
}, React.createElement(Label, labelProps, label), hintMessage && React.createElement(Hint, descriptionProps, hintMessage), errorMessage && state.isInvalid && React.createElement(ErrorMessage, {
|
|
118
|
+
...errorMessageProps,
|
|
130
119
|
message: errorMessage
|
|
131
|
-
})
|
|
120
|
+
}), React.createElement("div", {
|
|
132
121
|
className: styles.itemWrapper(),
|
|
133
122
|
id: panelId
|
|
134
123
|
}, React.createElement(CheckboxGroupContext.Provider, {
|
|
@@ -137,7 +126,7 @@ export function CheckboxGroup({ className , checkboxes , label , orientation ='v
|
|
|
137
126
|
orientation,
|
|
138
127
|
size
|
|
139
128
|
}
|
|
140
|
-
}, childrenToRender), hiddenOptions && React.createElement(Button,
|
|
129
|
+
}, childrenToRender), hiddenOptions && React.createElement(Button, {
|
|
141
130
|
onClick: ()=>setHiddenOptions(false),
|
|
142
131
|
className: styles.revealButton(),
|
|
143
132
|
look: "link",
|
|
@@ -146,8 +135,9 @@ export function CheckboxGroup({ className , checkboxes , label , orientation ='v
|
|
|
146
135
|
color: "link"
|
|
147
136
|
}),
|
|
148
137
|
"aria-controls": panelId,
|
|
149
|
-
"aria-expanded": !hiddenOptions
|
|
150
|
-
|
|
138
|
+
"aria-expanded": !hiddenOptions,
|
|
139
|
+
...focusProps
|
|
140
|
+
}, React.createElement("p", {
|
|
151
141
|
className: styles.buttonText()
|
|
152
142
|
}, `Show ${revealAmount} more ${revealAmount === 1 ? 'item' : 'items'}`))));
|
|
153
143
|
}
|
|
@@ -1,29 +1,16 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
function _extends() {
|
|
3
|
-
_extends = Object.assign || function(target) {
|
|
4
|
-
for(var i = 1; i < arguments.length; i++){
|
|
5
|
-
var source = arguments[i];
|
|
6
|
-
for(var key in source){
|
|
7
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
8
|
-
target[key] = source[key];
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
return target;
|
|
13
|
-
};
|
|
14
|
-
return _extends.apply(this, arguments);
|
|
15
|
-
}
|
|
16
2
|
import React, { forwardRef, useContext, useRef } from 'react';
|
|
17
3
|
import { VisuallyHidden, mergeProps, useCheckboxGroupItem, useFocusRing } from 'react-aria';
|
|
18
4
|
import { Icon } from '../../../icon/icon.component.js';
|
|
19
5
|
import { CheckboxGroupContext } from '../../checkbox-group.component.js';
|
|
20
6
|
import { styles as checkboxItemStyles } from './checkbox-group-checkbox.styles.js';
|
|
21
|
-
function CheckIcon({ copyrightYear ='2025'
|
|
7
|
+
function CheckIcon({ copyrightYear = '2025', size, ...props }) {
|
|
22
8
|
const viewBoxSize = size === 'large' ? '0 0 30 30' : '0 0 24 24';
|
|
23
|
-
return React.createElement(Icon,
|
|
9
|
+
return React.createElement(Icon, {
|
|
24
10
|
copyrightYear: copyrightYear,
|
|
25
|
-
viewBox: viewBoxSize
|
|
26
|
-
|
|
11
|
+
viewBox: viewBoxSize,
|
|
12
|
+
...props
|
|
13
|
+
}, size === 'large' ? React.createElement("path", {
|
|
27
14
|
d: "M12.9952 17.5891L20.2923 10.292L21.7023 11.712L12.9952 20.4191L8.28809 15.712L9.69809 14.302L12.9952 17.5891Z",
|
|
28
15
|
fill: "currentColor"
|
|
29
16
|
}) : React.createElement("path", {
|
|
@@ -31,31 +18,33 @@ function CheckIcon({ copyrightYear ='2025' , size , ...props }) {
|
|
|
31
18
|
fill: "currentColor"
|
|
32
19
|
}));
|
|
33
20
|
}
|
|
34
|
-
function BaseCheckbox({ className
|
|
35
|
-
const { state
|
|
21
|
+
function BaseCheckbox({ className, hint, label, value, ...props }, ref) {
|
|
22
|
+
const { state, size, orientation } = useContext(CheckboxGroupContext);
|
|
36
23
|
const localRef = useRef(null);
|
|
37
|
-
const { inputProps
|
|
24
|
+
const { inputProps, labelProps, isDisabled, isSelected } = useCheckboxGroupItem({
|
|
38
25
|
...props,
|
|
39
26
|
value,
|
|
40
27
|
children: label
|
|
41
28
|
}, state, localRef);
|
|
42
|
-
const { isFocusVisible
|
|
29
|
+
const { isFocusVisible, focusProps } = useFocusRing();
|
|
43
30
|
const styles = checkboxItemStyles({
|
|
44
31
|
isDisabled,
|
|
45
32
|
size,
|
|
46
33
|
orientation,
|
|
47
34
|
isFocusVisible
|
|
48
35
|
});
|
|
49
|
-
return React.createElement("label",
|
|
36
|
+
return React.createElement("label", {
|
|
50
37
|
className: styles.base({
|
|
51
38
|
className
|
|
52
39
|
}),
|
|
53
|
-
ref: ref
|
|
54
|
-
|
|
40
|
+
ref: ref,
|
|
41
|
+
...labelProps
|
|
42
|
+
}, React.createElement(VisuallyHidden, {
|
|
55
43
|
elementType: "span"
|
|
56
|
-
}, React.createElement("input",
|
|
44
|
+
}, React.createElement("input", {
|
|
45
|
+
...mergeProps(inputProps, focusProps),
|
|
57
46
|
ref: localRef
|
|
58
|
-
}))
|
|
47
|
+
})), React.createElement("span", {
|
|
59
48
|
className: styles.checkbox()
|
|
60
49
|
}, isSelected && React.createElement(CheckIcon, {
|
|
61
50
|
className: styles.checkIcon(),
|