@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
|
@@ -1,30 +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 { clsx } from 'clsx';
|
|
17
3
|
import React from 'react';
|
|
18
4
|
import { Pictogram } from '../../pictogram.component.js';
|
|
19
5
|
import { fill } from '../../pictogram.styles.js';
|
|
20
|
-
export function ToolsPictogram({ mode ='duo'
|
|
21
|
-
return React.createElement(Pictogram,
|
|
6
|
+
export function ToolsPictogram({ mode = 'duo', viewBoxWidth = 78, viewBoxHeight = 78, 'aria-label': ariaLabel = 'Tools', copyrightYear = '2021', className, ...props }) {
|
|
7
|
+
return React.createElement(Pictogram, {
|
|
22
8
|
className: clsx('size-13', className),
|
|
23
9
|
viewBoxWidth: viewBoxWidth,
|
|
24
10
|
viewBoxHeight: viewBoxHeight,
|
|
25
11
|
"aria-label": ariaLabel,
|
|
26
|
-
copyrightYear: copyrightYear
|
|
27
|
-
|
|
12
|
+
copyrightYear: copyrightYear,
|
|
13
|
+
...props
|
|
14
|
+
}, React.createElement("g", {
|
|
28
15
|
fill: "none",
|
|
29
16
|
fillRule: "evenodd"
|
|
30
17
|
}, React.createElement("path", {
|
|
@@ -1,30 +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 { clsx } from 'clsx';
|
|
17
3
|
import React from 'react';
|
|
18
4
|
import { Pictogram } from '../../pictogram.component.js';
|
|
19
5
|
import { fill } from '../../pictogram.styles.js';
|
|
20
|
-
export function TractorPictogram({ mode ='duo'
|
|
21
|
-
return React.createElement(Pictogram,
|
|
6
|
+
export function TractorPictogram({ mode = 'duo', viewBoxWidth = 78, viewBoxHeight = 78, 'aria-label': ariaLabel = 'Tractor', copyrightYear = '2021', className, ...props }) {
|
|
7
|
+
return React.createElement(Pictogram, {
|
|
22
8
|
className: clsx('size-13', className),
|
|
23
9
|
viewBoxWidth: viewBoxWidth,
|
|
24
10
|
viewBoxHeight: viewBoxHeight,
|
|
25
11
|
"aria-label": ariaLabel,
|
|
26
|
-
copyrightYear: copyrightYear
|
|
27
|
-
|
|
12
|
+
copyrightYear: copyrightYear,
|
|
13
|
+
...props
|
|
14
|
+
}, React.createElement("g", {
|
|
28
15
|
fill: "none",
|
|
29
16
|
fillRule: "evenodd"
|
|
30
17
|
}, React.createElement("path", {
|
|
@@ -1,30 +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 { clsx } from 'clsx';
|
|
17
3
|
import React from 'react';
|
|
18
4
|
import { Pictogram } from '../../pictogram.component.js';
|
|
19
5
|
import { fill } from '../../pictogram.styles.js';
|
|
20
|
-
export function TruckPictogram({ mode ='duo'
|
|
21
|
-
return React.createElement(Pictogram,
|
|
6
|
+
export function TruckPictogram({ mode = 'duo', viewBoxWidth = 78, viewBoxHeight = 78, 'aria-label': ariaLabel = 'Truck', copyrightYear = '2025', className, ...props }) {
|
|
7
|
+
return React.createElement(Pictogram, {
|
|
22
8
|
className: clsx('size-13', className),
|
|
23
9
|
viewBoxWidth: viewBoxWidth,
|
|
24
10
|
viewBoxHeight: viewBoxHeight,
|
|
25
11
|
"aria-label": ariaLabel,
|
|
26
|
-
copyrightYear: copyrightYear
|
|
27
|
-
|
|
12
|
+
copyrightYear: copyrightYear,
|
|
13
|
+
...props
|
|
14
|
+
}, React.createElement("g", {
|
|
28
15
|
fill: "none",
|
|
29
16
|
fillRule: "evenodd"
|
|
30
17
|
}, React.createElement("polygon", {
|
|
@@ -1,30 +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 { clsx } from 'clsx';
|
|
17
3
|
import React from 'react';
|
|
18
4
|
import { Pictogram } from '../../pictogram.component.js';
|
|
19
5
|
import { fill } from '../../pictogram.styles.js';
|
|
20
|
-
export function UmbrellaPictogram({ mode ='duo'
|
|
21
|
-
return React.createElement(Pictogram,
|
|
6
|
+
export function UmbrellaPictogram({ mode = 'duo', viewBoxWidth = 78, viewBoxHeight = 78, 'aria-label': ariaLabel = 'Umbrella', copyrightYear = '2021', className, ...props }) {
|
|
7
|
+
return React.createElement(Pictogram, {
|
|
22
8
|
className: clsx('size-13', className),
|
|
23
9
|
viewBoxWidth: viewBoxWidth,
|
|
24
10
|
viewBoxHeight: viewBoxHeight,
|
|
25
11
|
"aria-label": ariaLabel,
|
|
26
|
-
copyrightYear: copyrightYear
|
|
27
|
-
|
|
12
|
+
copyrightYear: copyrightYear,
|
|
13
|
+
...props
|
|
14
|
+
}, React.createElement("g", {
|
|
28
15
|
fill: "none",
|
|
29
16
|
fillRule: "evenodd"
|
|
30
17
|
}, React.createElement("path", {
|
|
@@ -1,30 +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 { clsx } from 'clsx';
|
|
17
3
|
import React from 'react';
|
|
18
4
|
import { Pictogram } from '../../pictogram.component.js';
|
|
19
5
|
import { fill } from '../../pictogram.styles.js';
|
|
20
|
-
export function UnsecurePictogram({ mode ='duo'
|
|
21
|
-
return React.createElement(Pictogram,
|
|
6
|
+
export function UnsecurePictogram({ mode = 'duo', viewBoxWidth = 78, viewBoxHeight = 78, 'aria-label': ariaLabel = 'Unsecure', copyrightYear = '2021', className, ...props }) {
|
|
7
|
+
return React.createElement(Pictogram, {
|
|
22
8
|
className: clsx('size-13', className),
|
|
23
9
|
viewBoxWidth: viewBoxWidth,
|
|
24
10
|
viewBoxHeight: viewBoxHeight,
|
|
25
11
|
"aria-label": ariaLabel,
|
|
26
|
-
copyrightYear: copyrightYear
|
|
27
|
-
|
|
12
|
+
copyrightYear: copyrightYear,
|
|
13
|
+
...props
|
|
14
|
+
}, React.createElement("g", {
|
|
28
15
|
fill: "none",
|
|
29
16
|
fillRule: "evenodd"
|
|
30
17
|
}, React.createElement("polygon", {
|
|
@@ -1,30 +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 { clsx } from 'clsx';
|
|
17
3
|
import React from 'react';
|
|
18
4
|
import { Pictogram } from '../../pictogram.component.js';
|
|
19
5
|
import { fill } from '../../pictogram.styles.js';
|
|
20
|
-
export function WalletPictogram({ mode ='duo'
|
|
21
|
-
return React.createElement(Pictogram,
|
|
6
|
+
export function WalletPictogram({ mode = 'duo', viewBoxWidth = 78, viewBoxHeight = 78, 'aria-label': ariaLabel = 'Wallet', copyrightYear = '2025', className, ...props }) {
|
|
7
|
+
return React.createElement(Pictogram, {
|
|
22
8
|
className: clsx('size-13', className),
|
|
23
9
|
viewBoxWidth: viewBoxWidth,
|
|
24
10
|
viewBoxHeight: viewBoxHeight,
|
|
25
11
|
"aria-label": ariaLabel,
|
|
26
|
-
copyrightYear: copyrightYear
|
|
27
|
-
|
|
12
|
+
copyrightYear: copyrightYear,
|
|
13
|
+
...props
|
|
14
|
+
}, React.createElement("g", {
|
|
28
15
|
fill: "none",
|
|
29
16
|
fillRule: "evenodd"
|
|
30
17
|
}, React.createElement("path", {
|
|
@@ -1,30 +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 { clsx } from 'clsx';
|
|
17
3
|
import React from 'react';
|
|
18
4
|
import { Pictogram } from '../../pictogram.component.js';
|
|
19
5
|
import { fill } from '../../pictogram.styles.js';
|
|
20
|
-
export function WearablesPictogram({ mode ='duo'
|
|
21
|
-
return React.createElement(Pictogram,
|
|
6
|
+
export function WearablesPictogram({ mode = 'duo', viewBoxWidth = 78, viewBoxHeight = 78, 'aria-label': ariaLabel = 'Wearables', copyrightYear = '2021', className, ...props }) {
|
|
7
|
+
return React.createElement(Pictogram, {
|
|
22
8
|
className: clsx('size-13', className),
|
|
23
9
|
viewBoxWidth: viewBoxWidth,
|
|
24
10
|
viewBoxHeight: viewBoxHeight,
|
|
25
11
|
"aria-label": ariaLabel,
|
|
26
|
-
copyrightYear: copyrightYear
|
|
27
|
-
|
|
12
|
+
copyrightYear: copyrightYear,
|
|
13
|
+
...props
|
|
14
|
+
}, React.createElement("g", {
|
|
28
15
|
fill: "none",
|
|
29
16
|
fillRule: "evenodd"
|
|
30
17
|
}, React.createElement("path", {
|
|
@@ -1,28 +1,15 @@
|
|
|
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 from 'react';
|
|
17
3
|
import { styles } from './pictogram.styles.js';
|
|
18
|
-
export function Pictogram({ copyrightYear =''
|
|
19
|
-
return React.createElement("svg",
|
|
4
|
+
export function Pictogram({ copyrightYear = '', xmlns = 'http://www.w3.org/2000/svg', role = 'img', focusable = false, className, viewBoxWidth, viewBoxHeight, children, ...props }) {
|
|
5
|
+
return React.createElement("svg", {
|
|
20
6
|
xmlns: xmlns,
|
|
21
7
|
role: role,
|
|
22
8
|
viewBox: `0 0 ${viewBoxWidth} ${viewBoxHeight}`,
|
|
23
9
|
focusable: focusable,
|
|
24
10
|
className: styles({
|
|
25
11
|
className
|
|
26
|
-
})
|
|
27
|
-
|
|
12
|
+
}),
|
|
13
|
+
...props
|
|
14
|
+
}, copyrightYear && React.createElement("metadata", null, `Copyright © ${copyrightYear} by Westpac Banking Corporation. All rights reserved.`), children);
|
|
28
15
|
}
|
|
@@ -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 React, { useRef } from 'react';
|
|
16
2
|
import { FocusScope } from 'react-aria';
|
|
17
3
|
import { createPortal } from 'react-dom';
|
|
@@ -19,10 +5,10 @@ import { Button } from '../../../button/index.js';
|
|
|
19
5
|
import { CloseIcon } from '../../../icon/index.js';
|
|
20
6
|
import { usePanel } from './panel.hook.js';
|
|
21
7
|
import { styles as panelStyles } from './panel.styles.js';
|
|
22
|
-
export function BasePanel({ state
|
|
8
|
+
export function BasePanel({ state, heading, headingTag: Tag = 'h1', content, placement = 'bottom', id, triggerRef, portal }) {
|
|
23
9
|
const popoverRef = useRef(null);
|
|
24
10
|
const arrowRef = useRef(null);
|
|
25
|
-
const { popoverPosition
|
|
11
|
+
const { popoverPosition, arrowPosition } = usePanel({
|
|
26
12
|
state,
|
|
27
13
|
placement,
|
|
28
14
|
triggerRef,
|
|
@@ -66,15 +52,17 @@ export function BasePanel({ state , heading , headingTag: Tag = 'h1' , content ,
|
|
|
66
52
|
ref: arrowRef
|
|
67
53
|
})));
|
|
68
54
|
}
|
|
69
|
-
export function Panel({ portal =false
|
|
55
|
+
export function Panel({ portal = false, ...props }) {
|
|
70
56
|
if (portal) {
|
|
71
57
|
const portalValue = typeof portal === 'boolean' ? document.body : portal;
|
|
72
|
-
return createPortal(React.createElement(BasePanel,
|
|
58
|
+
return createPortal(React.createElement(BasePanel, {
|
|
59
|
+
...props,
|
|
73
60
|
portal: portalValue
|
|
74
|
-
})
|
|
61
|
+
}), portalValue);
|
|
75
62
|
}
|
|
76
|
-
return React.createElement(BasePanel,
|
|
77
|
-
portal: portal
|
|
78
|
-
|
|
63
|
+
return React.createElement(BasePanel, {
|
|
64
|
+
portal: portal,
|
|
65
|
+
...props
|
|
66
|
+
});
|
|
79
67
|
}
|
|
80
68
|
Panel.displayName = 'Popover.Panel';
|
|
@@ -24,7 +24,7 @@ const getLeftOffsetPerVerticalPosition = (element)=>{
|
|
|
24
24
|
return 0;
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
|
-
export function usePanel({ state
|
|
27
|
+
export function usePanel({ state, placement = 'bottom', triggerRef, portal }) {
|
|
28
28
|
const popoverPosition = useMemo(()=>{
|
|
29
29
|
var _triggerRef_current;
|
|
30
30
|
const triggerDOMRect = (_triggerRef_current = triggerRef.current) === null || _triggerRef_current === void 0 ? void 0 : _triggerRef_current.getBoundingClientRect();
|
|
@@ -4,7 +4,7 @@ import { useOverlayTriggerState } from 'react-stately';
|
|
|
4
4
|
import { Button } from '../button/index.js';
|
|
5
5
|
import { Panel } from './components/panel/panel.component.js';
|
|
6
6
|
import { styles as popoverStyles } from './popover.styles.js';
|
|
7
|
-
export function Popover({ children
|
|
7
|
+
export function Popover({ children, className, headingTag, content, heading, onClick = ()=>undefined, placement, look, soft = false, open = false, linkStyling = false, size = 'medium', icon, portal = false }) {
|
|
8
8
|
const state = useOverlayTriggerState({});
|
|
9
9
|
const panelId = useId();
|
|
10
10
|
const styles = popoverStyles({
|
|
@@ -1,25 +1,11 @@
|
|
|
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 from 'react';
|
|
17
3
|
import { mergeProps, useProgressBar } from 'react-aria';
|
|
18
4
|
import { styles as progressBarStyles } from './progress-bar.styles.js';
|
|
19
|
-
export function ProgressBar({ className
|
|
5
|
+
export function ProgressBar({ className, look = 'default', value = 0, noLabel = false, ...props }) {
|
|
20
6
|
const roundedValue = Math.round(value);
|
|
21
7
|
const barValue = `${roundedValue}%`;
|
|
22
|
-
const { progressBarProps
|
|
8
|
+
const { progressBarProps, labelProps } = useProgressBar({
|
|
23
9
|
value: roundedValue,
|
|
24
10
|
label: barValue,
|
|
25
11
|
...props
|
|
@@ -27,21 +13,23 @@ export function ProgressBar({ className , look ='default' , value =0 , noLabel =
|
|
|
27
13
|
const styles = progressBarStyles({
|
|
28
14
|
look
|
|
29
15
|
});
|
|
30
|
-
return React.createElement("div",
|
|
16
|
+
return React.createElement("div", {
|
|
31
17
|
"aria-live": "polite",
|
|
32
18
|
className: styles.base({
|
|
33
19
|
className
|
|
20
|
+
}),
|
|
21
|
+
...mergeProps(progressBarProps, {
|
|
22
|
+
'aria-valuetext': `${barValue} complete`
|
|
34
23
|
})
|
|
35
|
-
},
|
|
36
|
-
'aria-valuetext': `${barValue} complete`
|
|
37
|
-
})), React.createElement("div", {
|
|
24
|
+
}, React.createElement("div", {
|
|
38
25
|
style: {
|
|
39
26
|
width: barValue
|
|
40
27
|
},
|
|
41
28
|
className: styles.innerBar()
|
|
42
|
-
}, React.createElement("span",
|
|
29
|
+
}, React.createElement("span", {
|
|
43
30
|
className: styles.label({
|
|
44
31
|
class: `${noLabel || look === 'skinny' ? 'hidden' : ''}`
|
|
45
|
-
})
|
|
46
|
-
|
|
32
|
+
}),
|
|
33
|
+
...labelProps
|
|
34
|
+
}, barValue)));
|
|
47
35
|
}
|
|
@@ -1,22 +1,8 @@
|
|
|
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, { useId } from 'react';
|
|
16
2
|
import { Icon } from '../icon/icon.component.js';
|
|
17
3
|
import { Label } from '../label/label.component.js';
|
|
18
4
|
import { styles as ProgressIndicatorStyles } from './progress-indicator.styles.js';
|
|
19
|
-
export function ProgressIndicator({ color ='hero'
|
|
5
|
+
export function ProgressIndicator({ color = 'hero', label, size = 'medium', icon: EmbedIcon, className, 'aria-label': ariaLabel = 'Loading', ...props }) {
|
|
20
6
|
const styles = ProgressIndicatorStyles({
|
|
21
7
|
size,
|
|
22
8
|
color
|
|
@@ -44,15 +30,16 @@ export function ProgressIndicator({ color ='hero' , label , size ='medium' , ico
|
|
|
44
30
|
"aria-label": ariaLabel,
|
|
45
31
|
className: styles.container()
|
|
46
32
|
}, React.createElement("div", {
|
|
47
|
-
className: "relative"
|
|
48
|
-
}, React.createElement(Icon,
|
|
33
|
+
className: "relative flex items-center justify-center"
|
|
34
|
+
}, React.createElement(Icon, {
|
|
49
35
|
viewBox: "0 0 180 180",
|
|
50
36
|
fill: "none",
|
|
51
37
|
color: color,
|
|
52
38
|
className: styles.base({
|
|
53
39
|
className
|
|
54
|
-
})
|
|
55
|
-
|
|
40
|
+
}),
|
|
41
|
+
...props
|
|
42
|
+
}, React.createElement("defs", null, React.createElement("linearGradient", {
|
|
56
43
|
id: `${id}-1`
|
|
57
44
|
}, React.createElement("stop", {
|
|
58
45
|
offset: "0%",
|
|
@@ -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 { AnimatePresence, LazyMotion, m } from 'framer-motion';
|
|
16
2
|
import React, { useId, useMemo } from 'react';
|
|
17
3
|
import { useFocusRing } from 'react-aria';
|
|
@@ -19,7 +5,7 @@ import { Circle, VisuallyHidden } from '../../../index.js';
|
|
|
19
5
|
import { ProgressRopeStep } from '../index.js';
|
|
20
6
|
import { styles as progressRopeGroupStyles } from './progress-rope-group-step.styles.js';
|
|
21
7
|
const loadAnimations = ()=>import('./progress-rope-group-step.utils.js').then((res)=>res.default);
|
|
22
|
-
export function ProgressRopeGroupStep({ steps
|
|
8
|
+
export function ProgressRopeGroupStep({ steps, currentKey, furthestVisitedStep, children, firstItem, opened, onToggle, tag: Tag }) {
|
|
23
9
|
const id = useId();
|
|
24
10
|
const stepsContainerID = `progress-rope-group-steps-container-${id}`;
|
|
25
11
|
const current = useMemo(()=>{
|
|
@@ -48,7 +34,7 @@ export function ProgressRopeGroupStep({ steps , currentKey , furthestVisitedStep
|
|
|
48
34
|
current,
|
|
49
35
|
visited
|
|
50
36
|
]);
|
|
51
|
-
const { isFocusVisible
|
|
37
|
+
const { isFocusVisible, focusProps } = useFocusRing();
|
|
52
38
|
const state = useMemo(()=>{
|
|
53
39
|
if (current && visited) {
|
|
54
40
|
return 'current-visited';
|
|
@@ -69,12 +55,13 @@ export function ProgressRopeGroupStep({ steps , currentKey , furthestVisitedStep
|
|
|
69
55
|
state,
|
|
70
56
|
isFocusVisible
|
|
71
57
|
});
|
|
72
|
-
return React.createElement(Tag, null, React.createElement("button",
|
|
58
|
+
return React.createElement(Tag, null, React.createElement("button", {
|
|
73
59
|
"aria-expanded": opened,
|
|
74
60
|
className: styles.circleWrapper({}),
|
|
75
61
|
onClick: onToggle,
|
|
76
|
-
"aria-controls": stepsContainerID
|
|
77
|
-
|
|
62
|
+
"aria-controls": stepsContainerID,
|
|
63
|
+
...focusProps
|
|
64
|
+
}, React.createElement(Circle, {
|
|
78
65
|
className: styles.circle(),
|
|
79
66
|
"aria-hidden": "true"
|
|
80
67
|
}), children, React.createElement(VisuallyHidden, null, visuallyHiddenMessage)), React.createElement(LazyMotion, {
|
package/dist/components/progress-rope/components/progress-rope-step/progress-rope-step.component.js
CHANGED
|
@@ -1,22 +1,8 @@
|
|
|
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, { useMemo } from 'react';
|
|
16
2
|
import { mergeProps, useFocusRing } from 'react-aria';
|
|
17
3
|
import { Circle, VisuallyHidden } from '../../../index.js';
|
|
18
4
|
import { styles as progressRopeStyles } from './progress-rope-step.styles.js';
|
|
19
|
-
export function ProgressRopeStep({ className
|
|
5
|
+
export function ProgressRopeStep({ className, current, visited, tag: Tag = 'button', size = 'medium', children, firstItem, lastItemInGroup, lastItemInRope, furthest, previousStepGroup, ...props }) {
|
|
20
6
|
const state = useMemo(()=>{
|
|
21
7
|
if (lastItemInRope && visited && current) {
|
|
22
8
|
return 'last-current';
|
|
@@ -39,7 +25,7 @@ export function ProgressRopeStep({ className , current , visited , tag: Tag = 'b
|
|
|
39
25
|
lastItemInRope,
|
|
40
26
|
visited
|
|
41
27
|
]);
|
|
42
|
-
const { isFocusVisible
|
|
28
|
+
const { isFocusVisible, focusProps } = useFocusRing();
|
|
43
29
|
const styles = progressRopeStyles({
|
|
44
30
|
className,
|
|
45
31
|
state,
|
|
@@ -65,11 +51,12 @@ export function ProgressRopeStep({ className , current , visited , tag: Tag = 'b
|
|
|
65
51
|
furthest,
|
|
66
52
|
visited
|
|
67
53
|
]);
|
|
68
|
-
return React.createElement(Tag,
|
|
54
|
+
return React.createElement(Tag, {
|
|
69
55
|
className: styles.base({}),
|
|
70
56
|
"aria-current": current ? 'step' : false,
|
|
71
|
-
disabled: state === 'non-visited'
|
|
72
|
-
|
|
57
|
+
disabled: state === 'non-visited',
|
|
58
|
+
...mergeProps(props, focusProps)
|
|
59
|
+
}, React.createElement(Circle, {
|
|
73
60
|
className: styles.circle(),
|
|
74
61
|
"aria-hidden": "true"
|
|
75
62
|
}), children, React.createElement(VisuallyHidden, null, stateText));
|
|
@@ -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, { useEffect, useMemo, useState } from 'react';
|
|
17
3
|
import { ProgressRopeGroupStep, ProgressRopeStep } from './components/index.js';
|
|
18
4
|
import { styles } from './progress-rope.styles.js';
|
|
@@ -24,7 +10,7 @@ const verifyByCurrentIndexWhichGroupIsOpened = (currentIndex, mappedData)=>{
|
|
|
24
10
|
return acc;
|
|
25
11
|
}, null);
|
|
26
12
|
};
|
|
27
|
-
export function ProgressRope({ 'aria-label': ariaLabel = 'In this form'
|
|
13
|
+
export function ProgressRope({ 'aria-label': ariaLabel = 'In this form', role = 'navigation', className, tag: Tag = 'nav', current = 0, data, headingTag = 'h3', ...props }) {
|
|
28
14
|
const [furthestVisitedStep, setFurthestVisitedStep] = useState(current);
|
|
29
15
|
const mappedData = useMemo(()=>{
|
|
30
16
|
let autoIncrement = -1;
|
|
@@ -74,11 +60,12 @@ export function ProgressRope({ 'aria-label': ariaLabel = 'In this form' , role =
|
|
|
74
60
|
mappedData,
|
|
75
61
|
openedGroupStepIndex
|
|
76
62
|
]);
|
|
77
|
-
return React.createElement(Tag,
|
|
63
|
+
return React.createElement(Tag, {
|
|
78
64
|
className: className,
|
|
79
65
|
role: role,
|
|
80
|
-
"aria-label": ariaLabel
|
|
81
|
-
|
|
66
|
+
"aria-label": ariaLabel,
|
|
67
|
+
...props
|
|
68
|
+
}, React.createElement("ol", {
|
|
82
69
|
className: styles({})
|
|
83
70
|
}, mappedData === null || mappedData === void 0 ? void 0 : mappedData.map((item, index)=>{
|
|
84
71
|
var _mappedData_;
|