@westpac/ui 0.7.0 → 0.8.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/.storybook/global.css +98 -97
- package/CHANGELOG.md +12 -0
- package/assets/icons/filled/credit-cards-filled.svg +4 -0
- package/assets/icons/filled/exit-filled.svg +3 -3
- package/assets/icons/filled/office-filled.svg +1 -4
- package/assets/icons/filled/pay-to-filled.svg +5 -0
- package/assets/icons/filled/tiles-filled.svg +6 -0
- package/assets/icons/outlined/credit-cards-outlined.svg +4 -0
- package/assets/icons/outlined/exit-outlined.svg +3 -3
- package/assets/icons/outlined/office-outlined.svg +4 -1
- package/assets/icons/outlined/pay-to-outlined.svg +5 -0
- package/assets/icons/outlined/tiles-outlined.svg +3 -0
- package/dist/component-type.json +1 -0
- package/dist/components/accordion/accordion.component.d.ts +8 -23
- package/dist/components/accordion/accordion.component.js +3 -4
- package/dist/components/accordion/accordion.stories.d.ts +9 -6
- package/dist/components/accordion/accordion.styles.d.ts +1 -9
- package/dist/components/accordion/accordion.styles.js +2 -6
- package/dist/components/accordion/accordion.types.d.ts +11 -5
- package/dist/components/accordion/components/accordion-item/accordion-item.component.d.ts +4 -1
- package/dist/components/accordion/components/accordion-item/accordion-item.component.js +18 -17
- package/dist/components/accordion/components/accordion-item/accordion-item.styles.d.ts +4 -24
- package/dist/components/accordion/components/accordion-item/accordion-item.styles.js +8 -42
- package/dist/components/accordion/components/accordion-item/accordion-item.types.d.ts +7 -1
- package/dist/components/alert/alert.component.js +1 -0
- package/dist/components/alert/alert.styles.js +3 -3
- package/dist/components/alert/alert.types.d.ts +1 -3
- package/dist/components/autocomplete/autocomplete.component.js +1 -0
- package/dist/components/autocomplete/autocomplete.types.d.ts +15 -1
- package/dist/components/autocomplete/components/list-box/components/list-box-option/list-box-option.component.d.ts +3 -0
- package/dist/components/autocomplete/components/list-box/components/list-box-section/list-box-section.component.d.ts +3 -0
- package/dist/components/autocomplete/components/list-box/list-box.component.d.ts +3 -0
- package/dist/components/autocomplete/components/popover/popover.component.d.ts +3 -0
- package/dist/components/badge/badge.component.d.ts +7 -49
- package/dist/components/badge/badge.component.js +1 -0
- package/dist/components/badge/badge.types.d.ts +11 -1
- package/dist/components/breadcrumb/breadcrumb.component.d.ts +1 -21
- package/dist/components/breadcrumb/breadcrumb.component.js +1 -0
- package/dist/components/breadcrumb/breadcrumb.types.d.ts +8 -2
- package/dist/components/breadcrumb/components/breadcrumb-item/breadcrumb-item.component.d.ts +1 -21
- package/dist/components/breadcrumb/components/breadcrumb-item/breadcrumb-item.component.js +1 -0
- package/dist/components/breadcrumb/components/breadcrumb-item/breadcrumb-item.types.d.ts +1 -3
- package/dist/components/button/button.component.d.ts +16 -125
- package/dist/components/button/button.component.js +1 -0
- package/dist/components/button/button.styles.js +6 -6
- package/dist/components/button/button.types.d.ts +23 -1
- package/dist/components/button-dropdown/button-dropdown.component.js +1 -0
- package/dist/components/button-dropdown/button-dropdown.styles.d.ts +2 -0
- package/dist/components/button-dropdown/button-dropdown.styles.js +2 -1
- package/dist/components/button-dropdown/button-dropdown.types.d.ts +7 -1
- package/dist/components/button-dropdown/components/panel/panel.component.d.ts +3 -0
- package/dist/components/button-dropdown/components/panel/panel.styles.js +1 -1
- package/dist/components/button-group/button-group.component.js +1 -0
- package/dist/components/button-group/components/button/button.styles.js +1 -1
- package/dist/components/checkbox-group/checkbox-group.component.js +1 -0
- package/dist/components/checkbox-group/components/checkbox/checkbox.component.js +11 -4
- package/dist/components/checkbox-group/components/checkbox/checkbox.styles.js +1 -1
- package/dist/components/circle/circle.types.d.ts +1 -3
- package/dist/components/collapsible/collapsible.component.js +1 -0
- package/dist/components/collapsible/collapsible.styles.js +1 -1
- package/dist/components/compacta/compacta.component.js +2 -1
- package/dist/components/compacta/compacta.styles.js +10 -10
- package/dist/components/date-picker/date-picker.component.js +1 -0
- package/dist/components/date-picker/date-picker.types.d.ts +7 -1
- package/dist/components/error-message/error-message.styles.js +2 -2
- package/dist/components/error-message/error-message.types.d.ts +1 -3
- package/dist/components/field/field.component.js +1 -0
- package/dist/components/field/field.types.d.ts +1 -3
- package/dist/components/flexi-cell/components/flexi-cell-adornment/flexi-cell-adornment.component.d.ts +4 -1
- package/dist/components/flexi-cell/components/flexi-cell-adornment/flexi-cell-adornment.component.js +1 -0
- package/dist/components/flexi-cell/components/flexi-cell-adornment/flexi-cell-adornment.types.d.ts +1 -3
- package/dist/components/flexi-cell/components/flexi-cell-body/flexi-cell-body.component.d.ts +4 -1
- package/dist/components/flexi-cell/components/flexi-cell-body/flexi-cell-body.component.js +1 -0
- package/dist/components/flexi-cell/components/flexi-cell-body/flexi-cell-body.types.d.ts +1 -3
- package/dist/components/flexi-cell/components/flexi-cell-button/flexi-cell-button.component.d.ts +4 -1
- package/dist/components/flexi-cell/components/flexi-cell-button/flexi-cell-button.component.js +1 -0
- package/dist/components/flexi-cell/components/flexi-cell-circle/flexi-cell-circle.component.d.ts +4 -1
- package/dist/components/flexi-cell/components/flexi-cell-circle/flexi-cell-circle.component.js +1 -0
- package/dist/components/flexi-cell/components/flexi-cell-footer/flexi-cell-footer.component.d.ts +4 -1
- package/dist/components/flexi-cell/components/flexi-cell-footer/flexi-cell-footer.component.js +1 -0
- package/dist/components/flexi-cell/components/flexi-cell-hint/flexi-cell-hint.component.d.ts +4 -1
- package/dist/components/flexi-cell/components/flexi-cell-hint/flexi-cell-hint.component.js +1 -0
- package/dist/components/flexi-cell/components/flexi-cell-hint/flexi-cell-hint.types.d.ts +1 -3
- package/dist/components/flexi-cell/components/flexi-cell-label/flexi-cell-label.component.d.ts +4 -1
- package/dist/components/flexi-cell/components/flexi-cell-label/flexi-cell-label.component.js +1 -0
- package/dist/components/flexi-cell/components/flexi-cell-label/flexi-cell-label.types.d.ts +1 -3
- package/dist/components/flexi-cell/flexi-cell.component.js +1 -0
- package/dist/components/flexi-cell/flexi-cell.styles.js +1 -1
- package/dist/components/flexi-cell/flexi-cell.types.d.ts +1 -3
- package/dist/components/form/components/form-chit-chat/form-chit-chat.types.d.ts +1 -3
- package/dist/components/form/components/form-group/form-group.styles.d.ts +1 -1
- package/dist/components/form/components/form-group/form-group.styles.js +1 -1
- package/dist/components/form/components/form-group/form-group.types.d.ts +1 -3
- package/dist/components/form/components/form-section/form-section.types.d.ts +7 -1
- package/dist/components/form/form.component.d.ts +1 -1
- package/dist/components/form/form.component.js +2 -2
- package/dist/components/form/form.stories.d.ts +2 -2
- package/dist/components/form/form.types.d.ts +6 -1
- package/dist/components/form-hint/form-hint.styles.d.ts +1 -1
- package/dist/components/form-hint/form-hint.styles.js +1 -1
- package/dist/components/form-hint/form-hint.types.d.ts +1 -3
- package/dist/components/form-label/form-label.styles.d.ts +1 -1
- package/dist/components/form-label/form-label.styles.js +1 -1
- package/dist/components/form-label/form-label.types.d.ts +8 -2
- package/dist/components/grid/components/container/container.types.d.ts +1 -3
- package/dist/components/grid/components/item/item.types.d.ts +11 -1
- package/dist/components/grid/grid.types.d.ts +1 -3
- package/dist/components/icon/components/credit-cards-icon.d.ts +2 -0
- package/dist/components/icon/components/credit-cards-icon.js +38 -0
- package/dist/components/icon/components/exit-icon.js +2 -2
- package/dist/components/icon/components/office-icon.d.ts +1 -1
- package/dist/components/icon/components/office-icon.js +19 -5
- package/dist/components/icon/components/pay-to-icon.d.ts +2 -0
- package/dist/components/icon/components/pay-to-icon.js +34 -0
- package/dist/components/icon/components/tiles-icon.d.ts +2 -0
- package/dist/components/icon/components/tiles-icon.js +39 -0
- package/dist/components/icon/icon.styles.d.ts +1 -1
- package/dist/components/icon/icon.styles.js +1 -1
- package/dist/components/icon/icon.types.d.ts +11 -1
- package/dist/components/icon/index.d.ts +3 -6
- package/dist/components/icon/index.js +3 -6
- package/dist/components/input/input.component.d.ts +4 -31
- package/dist/components/input/input.component.js +1 -0
- package/dist/components/input/input.styles.d.ts +1 -1
- package/dist/components/input/input.styles.js +1 -1
- package/dist/components/input/input.types.d.ts +10 -1
- package/dist/components/input-field/components/add-ons/add-ons.component.d.ts +3 -0
- package/dist/components/input-field/components/add-ons/components/default-add-on/default-add-on.component.d.ts +3 -0
- package/dist/components/input-field/components/add-ons/components/default-add-on/default-add-on.types.d.ts +1 -3
- package/dist/components/input-field/components/add-ons/components/icon-add-on/icon-add-on.component.d.ts +3 -0
- package/dist/components/input-field/components/add-ons/components/icon-add-on/icon-add-on.types.d.ts +1 -3
- package/dist/components/input-field/components/add-ons/components/text-add-on/text-add-on.component.d.ts +3 -0
- package/dist/components/input-field/components/add-ons/components/text-add-on/text-add-on.types.d.ts +1 -3
- package/dist/components/input-field/components/supporting-text/supporting-text.component.d.ts +3 -0
- package/dist/components/input-field/components/supporting-text/supporting-text.types.d.ts +1 -3
- package/dist/components/input-field/input-field.component.js +1 -0
- package/dist/components/input-field/input-field.types.d.ts +1 -3
- package/dist/components/link/link.component.js +1 -0
- package/dist/components/list/list.component.js +1 -0
- package/dist/components/modal/components/backdrop/backdrop.types.d.ts +1 -3
- package/dist/components/modal/components/dialog/components/dialog-body/dialog-body.types.d.ts +1 -3
- package/dist/components/modal/components/dialog/components/dialog-footer/dialog-footer.types.d.ts +1 -3
- package/dist/components/modal/components/dialog/dialog.types.d.ts +7 -1
- package/dist/components/modal/modal.component.js +1 -0
- package/dist/components/pagination/components/pagination-item/pagination-item.component.d.ts +1 -1
- package/dist/components/pagination/components/pagination-item/pagination-item.component.js +2 -1
- package/dist/components/pagination/components/pagination-item/pagination-item.styles.d.ts +9 -1
- package/dist/components/pagination/components/pagination-item/pagination-item.styles.js +7 -3
- package/dist/components/pagination/components/pagination-item/pagination-item.types.d.ts +20 -2
- package/dist/components/pagination/pagination.component.js +3 -1
- package/dist/components/pagination/pagination.styles.js +1 -1
- package/dist/components/pagination/pagination.types.d.ts +1 -3
- package/dist/components/pictogram/components/decorative/wbc-bank-card-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/accessibility-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/accounts-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/aeroplane-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/arrow-down-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/arrow-left-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/arrow-right-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/arrow-up-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/arrows-passing-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/atm-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/australia-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/bank-card-locked-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/bank-card-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/bank-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/birth-certificate-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/building-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/buoy-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/bus-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/business-person-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/calculator-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/calendar-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/car-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/cash-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/celebration-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/chat-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/clock-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/coffee-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/coins-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/compass-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/customer-profile-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/desktop-computer-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/document-and-pen-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/dollar-sign-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/drivers-licence-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/education-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/eftpos-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/envelope-email-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/envelope-printed-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/face-happy-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/face-unhappy-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/face-unsure-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/finger-motion-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/fingerprint-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/football-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/fork-knife-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/generic-document-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/gift-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/globe-australia-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/globe-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/graph-decreasing-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/graph-increasing-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/gym-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/headset-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/heart-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/house-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/light-bulb-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/loop-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/medicare-card-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/mobile-device-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/money-in-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/money-out-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/movie-tickets-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/nest-egg-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/noodles-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/number-1-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/number-2-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/number-3-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/number-4-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/number-5-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/padlock-locked-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/padlock-unlocked-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/passport-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/percent-sign-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/person-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/piggy-bank-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/pizza-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/plant-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/search-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/secure-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/shop-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/shopping-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/star-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/stopwatch-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/tax-document-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/telephone-call-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/thumbs-up-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/tick-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/tools-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/tractor-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/truck-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/umbrella-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/unsecure-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/wallet-pictogram.js +1 -0
- package/dist/components/pictogram/components/informative/wearables-pictogram.js +1 -0
- package/dist/components/pictogram/pictogram.component.js +1 -0
- package/dist/components/pictogram/pictogram.types.d.ts +1 -3
- package/dist/components/popover/components/panel/panel.styles.js +1 -1
- package/dist/components/popover/popover.component.js +1 -0
- package/dist/components/progress-bar/progress-bar.component.js +1 -0
- package/dist/components/progress-rope/components/progress-rope-group-step/progress-rope-group-step.types.d.ts +1 -3
- package/dist/components/progress-rope/components/progress-rope-step/progress-rope-step.types.d.ts +11 -1
- package/dist/components/progress-rope/progress-rope.component.js +1 -0
- package/dist/components/progress-rope/progress-rope.types.d.ts +1 -3
- package/dist/components/radio-group/components/radio/radio.component.js +1 -0
- package/dist/components/radio-group/components/radio/radio.styles.js +2 -2
- package/dist/components/radio-group/radio-group.component.js +1 -0
- package/dist/components/repeater/repeater.component.js +3 -1
- package/dist/components/repeater/repeater.styles.d.ts +6 -0
- package/dist/components/repeater/repeater.styles.js +7 -4
- package/dist/components/select/select.component.d.ts +8 -35
- package/dist/components/select/select.component.js +1 -0
- package/dist/components/select/select.styles.d.ts +1 -1
- package/dist/components/select/select.styles.js +1 -1
- package/dist/components/select/select.types.d.ts +12 -1
- package/dist/components/selector/components/selector-checkbox-group/components/selector-checkbox-group-option/selector-checkbox-group-option.types.d.ts +1 -3
- package/dist/components/selector/components/selector-checkbox-group/selector-checkbox-group.component.d.ts +28 -7
- package/dist/components/selector/components/selector-checkbox-group/selector-checkbox-group.types.d.ts +1 -3
- package/dist/components/selector/components/selector-radio-group/components/selector-radio-group-option/selector-radio-group-option.types.d.ts +1 -3
- package/dist/components/selector/components/selector-radio-group/selector-radio-group.component.d.ts +28 -7
- package/dist/components/selector/components/selector-radio-group/selector-radio-group.types.d.ts +7 -1
- package/dist/components/selector/selector.component.d.ts +81 -21
- package/dist/components/selector/selector.component.js +1 -0
- package/dist/components/skip-link/skip-link.component.js +1 -0
- package/dist/components/skip-link/skip-link.types.d.ts +1 -3
- package/dist/components/switch/switch.component.js +1 -0
- package/dist/components/switch/switch.types.d.ts +8 -2
- package/dist/components/symbol/index.d.ts +1 -0
- package/dist/components/symbol/index.js +1 -0
- package/dist/components/symbol/symbol.stories.d.ts +1 -0
- package/dist/components/symbol/symbol.types.d.ts +1 -3
- package/dist/components/table/table.component.js +1 -0
- package/dist/components/tabs/components/tab/tab.types.d.ts +15 -1
- package/dist/components/tabs/components/tab-panel/tab-panel.component.d.ts +3 -0
- package/dist/components/tabs/components/tab-panel/tab-panel.component.js +1 -0
- package/dist/components/tabs/components/tab-panel/tab-panel.types.d.ts +7 -1
- package/dist/components/tabs/tabs.component.js +1 -0
- package/dist/components/tabs/tabs.types.d.ts +15 -1
- package/dist/components/textarea/textarea.component.d.ts +8 -31
- package/dist/components/textarea/textarea.component.js +1 -0
- package/dist/components/textarea/textarea.styles.d.ts +1 -1
- package/dist/components/textarea/textarea.styles.js +1 -1
- package/dist/components/textarea/textarea.types.d.ts +12 -1
- package/dist/components/visually-hidden/visually-hidden.types.d.ts +1 -3
- package/dist/components/well/well.styles.d.ts +1 -1
- package/dist/components/well/well.styles.js +1 -1
- package/dist/components/well/well.types.d.ts +7 -1
- package/dist/css/westpac-ui.css +130 -430
- package/dist/css/westpac-ui.min.css +130 -430
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/stories/foundation/spacing.stories.d.ts +15 -0
- package/dist/stories/foundation/typography.stories.d.ts +4 -0
- package/dist/tailwind/__mocks__/utils.constants.d.ts +2 -0
- package/dist/tailwind/__mocks__/utils.constants.js +2 -0
- package/dist/tailwind/constants/typography.d.ts +4 -0
- package/dist/tailwind/constants/typography.js +4 -0
- package/dist/tailwind/tailwind-plugin.js +6 -1
- package/dist/types/component-props.types.d.ts +2 -0
- package/dist/types/component-props.types.js +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.js +1 -0
- package/generate-component-types.cjs +85 -0
- package/package.json +14 -9
- package/src/components/accordion/accordion.component.tsx +5 -8
- package/src/components/accordion/accordion.styles.ts +2 -6
- package/src/components/accordion/accordion.types.ts +15 -11
- package/src/components/accordion/components/accordion-item/accordion-item.component.tsx +11 -15
- package/src/components/accordion/components/accordion-item/accordion-item.styles.ts +7 -36
- package/src/components/accordion/components/accordion-item/accordion-item.types.ts +7 -2
- package/src/components/alert/alert.component.tsx +2 -0
- package/src/components/alert/alert.styles.ts +3 -3
- package/src/components/alert/alert.types.ts +1 -5
- package/src/components/autocomplete/autocomplete.component.tsx +2 -0
- package/src/components/autocomplete/autocomplete.types.ts +15 -2
- package/src/components/autocomplete/components/list-box/components/list-box-option/list-box-option.component.tsx +3 -0
- package/src/components/autocomplete/components/list-box/components/list-box-section/list-box-section.component.tsx +3 -0
- package/src/components/autocomplete/components/list-box/list-box.component.tsx +3 -0
- package/src/components/autocomplete/components/popover/popover.component.tsx +3 -1
- package/src/components/autocomplete/components/popover/popover.types.ts +1 -0
- package/src/components/badge/badge.component.tsx +2 -0
- package/src/components/badge/badge.types.ts +11 -2
- package/src/components/breadcrumb/breadcrumb.component.tsx +2 -0
- package/src/components/breadcrumb/breadcrumb.types.ts +9 -2
- package/src/components/breadcrumb/components/breadcrumb-item/breadcrumb-item.component.tsx +2 -0
- package/src/components/breadcrumb/components/breadcrumb-item/breadcrumb-item.types.ts +1 -5
- package/src/components/button/button.component.tsx +2 -0
- package/src/components/button/button.styles.ts +6 -6
- package/src/components/button/button.types.ts +23 -2
- package/src/components/button-dropdown/button-dropdown.component.tsx +2 -0
- package/src/components/button-dropdown/button-dropdown.styles.ts +1 -0
- package/src/components/button-dropdown/button-dropdown.types.ts +7 -2
- package/src/components/button-dropdown/components/panel/panel.component.tsx +3 -0
- package/src/components/button-dropdown/components/panel/panel.styles.ts +1 -1
- package/src/components/button-group/button-group.component.tsx +2 -0
- package/src/components/button-group/components/button/button.styles.ts +1 -1
- package/src/components/checkbox-group/checkbox-group.component.tsx +2 -0
- package/src/components/checkbox-group/components/checkbox/checkbox.component.tsx +17 -7
- package/src/components/checkbox-group/components/checkbox/checkbox.styles.ts +1 -1
- package/src/components/circle/circle.types.ts +1 -5
- package/src/components/collapsible/collapsible.component.tsx +2 -0
- package/src/components/collapsible/collapsible.styles.ts +1 -1
- package/src/components/compacta/compacta.component.tsx +17 -13
- package/src/components/compacta/compacta.styles.ts +10 -10
- package/src/components/date-picker/date-picker.component.tsx +2 -0
- package/src/components/date-picker/date-picker.types.ts +7 -2
- package/src/components/error-message/error-message.styles.ts +3 -2
- package/src/components/error-message/error-message.types.ts +1 -5
- package/src/components/field/field.component.tsx +2 -0
- package/src/components/field/field.types.ts +0 -4
- package/src/components/flexi-cell/components/flexi-cell-adornment/flexi-cell-adornment.component.tsx +1 -0
- package/src/components/flexi-cell/components/flexi-cell-adornment/flexi-cell-adornment.types.ts +1 -5
- package/src/components/flexi-cell/components/flexi-cell-body/flexi-cell-body.component.tsx +1 -0
- package/src/components/flexi-cell/components/flexi-cell-body/flexi-cell-body.types.ts +1 -5
- package/src/components/flexi-cell/components/flexi-cell-button/flexi-cell-button.component.tsx +1 -0
- package/src/components/flexi-cell/components/flexi-cell-circle/flexi-cell-circle.component.tsx +1 -0
- package/src/components/flexi-cell/components/flexi-cell-footer/flexi-cell-footer.component.tsx +1 -0
- package/src/components/flexi-cell/components/flexi-cell-hint/flexi-cell-hint.component.tsx +1 -0
- package/src/components/flexi-cell/components/flexi-cell-hint/flexi-cell-hint.types.ts +1 -5
- package/src/components/flexi-cell/components/flexi-cell-label/flexi-cell-label.component.tsx +1 -0
- package/src/components/flexi-cell/components/flexi-cell-label/flexi-cell-label.types.ts +1 -5
- package/src/components/flexi-cell/flexi-cell.component.tsx +2 -0
- package/src/components/flexi-cell/flexi-cell.styles.ts +1 -1
- package/src/components/flexi-cell/flexi-cell.types.ts +1 -7
- package/src/components/form/components/form-chit-chat/form-chit-chat.types.ts +1 -5
- package/src/components/form/components/form-group/form-group.styles.ts +1 -1
- package/src/components/form/components/form-group/form-group.types.ts +1 -5
- package/src/components/form/components/form-section/form-section.types.ts +7 -2
- package/src/components/form/form.component.tsx +4 -2
- package/src/components/form/form.types.ts +6 -1
- package/src/components/form-hint/form-hint.styles.ts +1 -1
- package/src/components/form-hint/form-hint.types.ts +1 -5
- package/src/components/form-label/form-label.styles.ts +1 -1
- package/src/components/form-label/form-label.types.ts +8 -3
- package/src/components/grid/components/container/container.types.ts +1 -5
- package/src/components/grid/components/item/item.types.ts +11 -2
- package/src/components/grid/grid.types.ts +1 -5
- package/src/components/icon/components/credit-cards-icon.tsx +43 -0
- package/src/components/icon/components/exit-icon.tsx +2 -2
- package/src/components/icon/components/office-icon.tsx +30 -11
- package/src/components/icon/components/pay-to-icon.tsx +33 -0
- package/src/components/icon/components/tiles-icon.tsx +43 -0
- package/src/components/icon/icon.styles.ts +1 -1
- package/src/components/icon/icon.types.ts +11 -1
- package/src/components/icon/index.ts +3 -6
- package/src/components/input/input.component.tsx +2 -0
- package/src/components/input/input.styles.ts +1 -1
- package/src/components/input/input.types.ts +12 -2
- package/src/components/input-field/components/add-ons/add-ons.component.tsx +3 -0
- package/src/components/input-field/components/add-ons/components/default-add-on/default-add-on.component.tsx +3 -0
- package/src/components/input-field/components/add-ons/components/default-add-on/default-add-on.types.ts +1 -4
- package/src/components/input-field/components/add-ons/components/icon-add-on/icon-add-on.component.tsx +3 -0
- package/src/components/input-field/components/add-ons/components/icon-add-on/icon-add-on.types.ts +1 -4
- package/src/components/input-field/components/add-ons/components/text-add-on/text-add-on.component.tsx +3 -0
- package/src/components/input-field/components/add-ons/components/text-add-on/text-add-on.types.ts +1 -4
- package/src/components/input-field/components/supporting-text/supporting-text.component.tsx +3 -0
- package/src/components/input-field/components/supporting-text/supporting-text.types.ts +1 -5
- package/src/components/input-field/input-field.component.tsx +2 -0
- package/src/components/input-field/input-field.types.ts +1 -4
- package/src/components/link/link.component.tsx +2 -0
- package/src/components/list/list.component.tsx +2 -0
- package/src/components/modal/components/backdrop/backdrop.types.ts +1 -5
- package/src/components/modal/components/dialog/components/dialog-body/dialog-body.types.ts +1 -4
- package/src/components/modal/components/dialog/components/dialog-footer/dialog-footer.types.ts +1 -4
- package/src/components/modal/components/dialog/dialog.types.ts +7 -2
- package/src/components/modal/modal.component.tsx +2 -0
- package/src/components/pagination/components/pagination-item/pagination-item.component.tsx +2 -1
- package/src/components/pagination/components/pagination-item/pagination-item.styles.ts +7 -3
- package/src/components/pagination/components/pagination-item/pagination-item.types.ts +20 -3
- package/src/components/pagination/pagination.component.tsx +3 -0
- package/src/components/pagination/pagination.styles.ts +1 -1
- package/src/components/pagination/pagination.types.ts +0 -3
- package/src/components/pictogram/components/decorative/wbc-bank-card-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/accessibility-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/accounts-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/aeroplane-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/arrow-down-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/arrow-left-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/arrow-right-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/arrow-up-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/arrows-passing-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/atm-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/australia-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/bank-card-locked-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/bank-card-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/bank-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/birth-certificate-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/building-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/buoy-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/bus-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/business-person-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/calculator-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/calendar-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/car-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/cash-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/celebration-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/chat-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/clock-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/coffee-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/coins-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/compass-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/customer-profile-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/desktop-computer-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/document-and-pen-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/dollar-sign-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/drivers-licence-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/education-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/eftpos-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/envelope-email-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/envelope-printed-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/face-happy-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/face-unhappy-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/face-unsure-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/finger-motion-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/fingerprint-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/football-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/fork-knife-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/generic-document-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/gift-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/globe-australia-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/globe-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/graph-decreasing-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/graph-increasing-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/gym-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/headset-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/heart-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/house-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/light-bulb-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/loop-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/medicare-card-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/mobile-device-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/money-in-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/money-out-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/movie-tickets-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/nest-egg-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/noodles-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/number-1-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/number-2-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/number-3-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/number-4-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/number-5-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/padlock-locked-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/padlock-unlocked-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/passport-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/percent-sign-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/person-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/piggy-bank-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/pizza-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/plant-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/search-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/secure-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/shop-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/shopping-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/star-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/stopwatch-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/tax-document-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/telephone-call-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/thumbs-up-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/tick-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/tools-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/tractor-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/truck-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/umbrella-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/unsecure-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/wallet-pictogram.tsx +2 -0
- package/src/components/pictogram/components/informative/wearables-pictogram.tsx +2 -0
- package/src/components/pictogram/pictogram.component.tsx +2 -0
- package/src/components/pictogram/pictogram.types.ts +1 -4
- package/src/components/popover/components/panel/panel.styles.ts +1 -1
- package/src/components/popover/popover.component.tsx +2 -0
- package/src/components/progress-bar/progress-bar.component.tsx +2 -0
- package/src/components/progress-rope/components/progress-rope-group-step/progress-rope-group-step.types.ts +2 -4
- package/src/components/progress-rope/components/progress-rope-step/progress-rope-step.types.ts +10 -1
- package/src/components/progress-rope/progress-rope.component.tsx +2 -0
- package/src/components/progress-rope/progress-rope.types.ts +1 -5
- package/src/components/radio-group/components/radio/radio.component.tsx +1 -0
- package/src/components/radio-group/components/radio/radio.styles.ts +2 -2
- package/src/components/radio-group/radio-group.component.tsx +2 -0
- package/src/components/repeater/repeater.component.tsx +6 -2
- package/src/components/repeater/repeater.styles.ts +7 -4
- package/src/components/select/select.component.tsx +2 -0
- package/src/components/select/select.styles.ts +1 -1
- package/src/components/select/select.types.ts +12 -1
- package/src/components/selector/components/selector-checkbox-group/components/selector-checkbox-group-option/selector-checkbox-group-option.types.ts +0 -4
- package/src/components/selector/components/selector-checkbox-group/selector-checkbox-group.types.ts +0 -4
- package/src/components/selector/components/selector-radio-group/components/selector-radio-group-option/selector-radio-group-option.types.ts +0 -4
- package/src/components/selector/components/selector-radio-group/selector-radio-group.types.ts +7 -2
- package/src/components/selector/selector.component.tsx +2 -0
- package/src/components/skip-link/skip-link.component.tsx +2 -0
- package/src/components/skip-link/skip-link.types.ts +0 -4
- package/src/components/switch/switch.component.tsx +2 -0
- package/src/components/switch/switch.types.ts +8 -3
- package/src/components/symbol/index.ts +1 -0
- package/src/components/symbol/symbol.types.ts +1 -4
- package/src/components/table/table.component.tsx +2 -0
- package/src/components/tabs/components/tab/tab.types.ts +15 -2
- package/src/components/tabs/components/tab-panel/tab-panel.component.tsx +1 -0
- package/src/components/tabs/components/tab-panel/tab-panel.types.ts +6 -1
- package/src/components/tabs/tabs.component.tsx +2 -0
- package/src/components/tabs/tabs.types.ts +37 -24
- package/src/components/textarea/textarea.component.tsx +2 -0
- package/src/components/textarea/textarea.styles.ts +1 -1
- package/src/components/textarea/textarea.types.ts +12 -1
- package/src/components/visually-hidden/visually-hidden.types.ts +1 -5
- package/src/components/well/well.styles.ts +1 -1
- package/src/components/well/well.types.tsx +7 -2
- package/src/css/global.css +4 -2
- package/src/index.ts +1 -0
- package/src/tailwind/__mocks__/utils.constants.ts +2 -0
- package/src/tailwind/constants/typography.ts +4 -0
- package/src/tailwind/tailwind-plugin.ts +6 -0
- package/src/types/component-props.types.ts +3 -0
- package/src/types/index.ts +1 -0
- package/utils/build-icons/index.ts +5 -2
- package/dist/components/accordion/accordion.stories.js +0 -131
- package/dist/components/alert/alert.stories.js +0 -144
- package/dist/components/autocomplete/autocomplete.stories.js +0 -219
- package/dist/components/badge/badge.stories.js +0 -118
- package/dist/components/breadcrumb/breadcrumb.stories.js +0 -30
- package/dist/components/breadcrumb/components/breadcrumb-item/breadcrumb-item.stories.js +0 -24
- package/dist/components/button/button.stories.js +0 -221
- package/dist/components/button-dropdown/button-dropdown.stories.js +0 -134
- package/dist/components/button-group/button-group.stories.js +0 -153
- package/dist/components/checkbox-group/checkbox-group.stories.js +0 -225
- package/dist/components/checkbox-group/components/checkbox/checkbox.stories.js +0 -42
- package/dist/components/circle/circle.stories.js +0 -17
- package/dist/components/collapsible/collapsible.stories.js +0 -43
- package/dist/components/compacta/compacta.stories.js +0 -52
- package/dist/components/date-picker/date-picker.stories.js +0 -112
- package/dist/components/field/field.stories.js +0 -37
- package/dist/components/flexi-cell/flexi-cell.stories.js +0 -759
- package/dist/components/form/form.stories.js +0 -103
- package/dist/components/grid/grid.stories.js +0 -82
- package/dist/components/icon/components/bom-logo-icon.d.ts +0 -2
- package/dist/components/icon/components/bom-logo-icon.js +0 -86
- package/dist/components/icon/components/bsa-logo-icon.d.ts +0 -2
- package/dist/components/icon/components/bsa-logo-icon.js +0 -32
- package/dist/components/icon/components/rams-logo-icon.d.ts +0 -2
- package/dist/components/icon/components/rams-logo-icon.js +0 -120
- package/dist/components/icon/components/stg-logo-icon.d.ts +0 -2
- package/dist/components/icon/components/stg-logo-icon.js +0 -44
- package/dist/components/icon/components/wbc-logo-icon.d.ts +0 -2
- package/dist/components/icon/components/wbc-logo-icon.js +0 -26
- package/dist/components/icon/components/wbg-logo-icon.d.ts +0 -2
- package/dist/components/icon/components/wbg-logo-icon.js +0 -29
- package/dist/components/icon/icon.stories.js +0 -147
- package/dist/components/input/input.stories.js +0 -56
- package/dist/components/input-field/input-field.scenarios.stories.js +0 -149
- package/dist/components/input-field/input-field.sizes.stories.js +0 -91
- package/dist/components/input-field/input-field.state.stories.js +0 -127
- package/dist/components/input-field/input-field.stories.js +0 -71
- package/dist/components/input-field/input-field.type.stories.js +0 -186
- package/dist/components/link/link.stories.js +0 -93
- package/dist/components/list/list.stories.js +0 -86
- package/dist/components/modal/modal.stories.js +0 -129
- package/dist/components/pagination/pagination.stories.js +0 -199
- package/dist/components/panel/panel.stories.js +0 -53
- package/dist/components/pictogram/pictogram.stories.js +0 -60
- package/dist/components/popover/popover.stories.js +0 -57
- package/dist/components/progress-bar/progress-bar.stories.js +0 -70
- package/dist/components/progress-rope/progress-rope.stories.js +0 -126
- package/dist/components/radio-group/components/radio/radio.stories.js +0 -40
- package/dist/components/radio-group/radio-group.stories.js +0 -215
- package/dist/components/repeater/repeater.stories.js +0 -29
- package/dist/components/select/select.stories.js +0 -74
- package/dist/components/selector/selector.stories.js +0 -512
- package/dist/components/skip-link/skip-link.stories.js +0 -29
- package/dist/components/switch/switch.stories.js +0 -67
- package/dist/components/symbol/symbol.stories.js +0 -54
- package/dist/components/table/table.stories.js +0 -66
- package/dist/components/tabs/tabs.stories.js +0 -95
- package/dist/components/textarea/textarea.stories.js +0 -44
- package/dist/components/visually-hidden/visually-hidden.stories.js +0 -17
- package/dist/components/well/well.stories.js +0 -44
- package/dist/stories/foundation/breakpoints.stories.js +0 -12
- package/dist/stories/foundation/colours.stories.js +0 -387
- package/dist/stories/foundation/theme.stories.js +0 -16
- package/dist/stories/foundation/typography.stories.js +0 -109
- package/src/components/accordion/accordion.stories.tsx +0 -135
- package/src/components/alert/alert.stories.tsx +0 -142
- package/src/components/autocomplete/autocomplete.stories.tsx +0 -184
- package/src/components/badge/badge.stories.tsx +0 -134
- package/src/components/breadcrumb/breadcrumb.stories.tsx +0 -32
- package/src/components/breadcrumb/components/breadcrumb-item/breadcrumb-item.stories.tsx +0 -33
- package/src/components/button/button.stories.tsx +0 -269
- package/src/components/button-dropdown/button-dropdown.stories.tsx +0 -220
- package/src/components/button-group/button-group.stories.tsx +0 -141
- package/src/components/checkbox-group/checkbox-group.stories.tsx +0 -212
- package/src/components/checkbox-group/components/checkbox/checkbox.stories.tsx +0 -46
- package/src/components/circle/circle.stories.tsx +0 -22
- package/src/components/collapsible/collapsible.stories.tsx +0 -94
- package/src/components/compacta/compacta.stories.tsx +0 -71
- package/src/components/date-picker/date-picker.stories.tsx +0 -139
- package/src/components/field/field.stories.tsx +0 -57
- package/src/components/flexi-cell/flexi-cell.stories.tsx +0 -792
- package/src/components/form/form.stories.tsx +0 -158
- package/src/components/grid/grid.stories.tsx +0 -106
- package/src/components/icon/components/bom-logo-icon.tsx +0 -40
- package/src/components/icon/components/bsa-logo-icon.tsx +0 -28
- package/src/components/icon/components/rams-logo-icon.tsx +0 -71
- package/src/components/icon/components/stg-logo-icon.tsx +0 -44
- package/src/components/icon/components/wbc-logo-icon.tsx +0 -20
- package/src/components/icon/components/wbg-logo-icon.tsx +0 -24
- package/src/components/icon/icon.stories.tsx +0 -142
- package/src/components/input/input.stories.tsx +0 -70
- package/src/components/input-field/input-field.scenarios.stories.tsx +0 -174
- package/src/components/input-field/input-field.sizes.stories.tsx +0 -102
- package/src/components/input-field/input-field.state.stories.tsx +0 -148
- package/src/components/input-field/input-field.stories.tsx +0 -104
- package/src/components/input-field/input-field.type.stories.tsx +0 -236
- package/src/components/link/link.stories.tsx +0 -113
- package/src/components/list/list.stories.tsx +0 -121
- package/src/components/modal/modal.stories.tsx +0 -140
- package/src/components/pagination/pagination.stories.tsx +0 -174
- package/src/components/panel/panel.stories.tsx +0 -147
- package/src/components/pictogram/pictogram.stories.tsx +0 -50
- package/src/components/popover/popover.stories.tsx +0 -81
- package/src/components/progress-bar/progress-bar.stories.tsx +0 -85
- package/src/components/progress-rope/progress-rope.stories.tsx +0 -109
- package/src/components/radio-group/components/radio/radio.stories.tsx +0 -40
- package/src/components/radio-group/radio-group.stories.tsx +0 -199
- package/src/components/repeater/repeater.stories.tsx +0 -40
- package/src/components/select/select.stories.tsx +0 -88
- package/src/components/selector/selector.stories.tsx +0 -618
- package/src/components/skip-link/skip-link.stories.tsx +0 -55
- package/src/components/switch/switch.stories.tsx +0 -90
- package/src/components/symbol/symbol.stories.tsx +0 -73
- package/src/components/table/table.stories.tsx +0 -244
- package/src/components/tabs/tabs.stories.tsx +0 -112
- package/src/components/textarea/textarea.stories.tsx +0 -70
- package/src/components/visually-hidden/visually-hidden.stories.tsx +0 -25
- package/src/components/well/well.stories.tsx +0 -71
- package/src/stories/foundation/breakpoints.stories.tsx +0 -55
- package/src/stories/foundation/colours.stories.tsx +0 -381
- package/src/stories/foundation/theme.stories.tsx +0 -29
- package/src/stories/foundation/typography.stories.tsx +0 -93
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { type SVGAttributes } from 'react';
|
|
2
|
-
import { type VariantProps } from 'tailwind-variants';
|
|
3
|
-
|
|
4
|
-
import { styles } from './symbol.styles.js';
|
|
5
2
|
|
|
6
3
|
export type Align = 'left' | 'center' | 'right';
|
|
7
4
|
|
|
@@ -30,4 +27,4 @@ export type SymbolProps = Omit<SVGAttributes<SVGElement>, 'offset'> & {
|
|
|
30
27
|
* SVG viewBox width
|
|
31
28
|
*/
|
|
32
29
|
viewBoxWidth?: number;
|
|
33
|
-
}
|
|
30
|
+
};
|
|
@@ -5,7 +5,13 @@ import { type VariantProps } from 'tailwind-variants';
|
|
|
5
5
|
|
|
6
6
|
import { styles } from './tab.styles.js';
|
|
7
7
|
|
|
8
|
+
type Variants = VariantProps<typeof styles>;
|
|
9
|
+
|
|
8
10
|
export type TabProps<T = any> = {
|
|
11
|
+
/**
|
|
12
|
+
* Color of tab
|
|
13
|
+
*/
|
|
14
|
+
color?: Variants['color'];
|
|
9
15
|
/**
|
|
10
16
|
* isDisabled flag
|
|
11
17
|
*/
|
|
@@ -14,6 +20,14 @@ export type TabProps<T = any> = {
|
|
|
14
20
|
* Item
|
|
15
21
|
*/
|
|
16
22
|
item: Node<T>;
|
|
23
|
+
/**
|
|
24
|
+
* Whether tab is justified
|
|
25
|
+
*/
|
|
26
|
+
justify?: Variants['justify'];
|
|
27
|
+
/**
|
|
28
|
+
* Look of tab
|
|
29
|
+
*/
|
|
30
|
+
look?: Variants['look'];
|
|
17
31
|
/**
|
|
18
32
|
* Orientation, vertical or horizontal for tab
|
|
19
33
|
*/
|
|
@@ -26,5 +40,4 @@ export type TabProps<T = any> = {
|
|
|
26
40
|
* Tag to render
|
|
27
41
|
*/
|
|
28
42
|
tag?: keyof JSX.IntrinsicElements;
|
|
29
|
-
} &
|
|
30
|
-
HTMLAttributes<Element>;
|
|
43
|
+
} & HTMLAttributes<Element>;
|
|
@@ -5,11 +5,16 @@ import { type VariantProps } from 'tailwind-variants';
|
|
|
5
5
|
|
|
6
6
|
import { styles } from './tab-panel.styles.js';
|
|
7
7
|
|
|
8
|
+
type Variants = VariantProps<typeof styles>;
|
|
9
|
+
|
|
8
10
|
export type TabPanelProps<T = any> = {
|
|
11
|
+
/**
|
|
12
|
+
* Look of tab panel
|
|
13
|
+
*/
|
|
14
|
+
look?: Variants['look'];
|
|
9
15
|
/**
|
|
10
16
|
* Tab list state
|
|
11
17
|
*/
|
|
12
18
|
state: TabListState<T>;
|
|
13
19
|
} & AriaTabPanelProps &
|
|
14
|
-
VariantProps<typeof styles> &
|
|
15
20
|
HTMLAttributes<Element>;
|
|
@@ -5,27 +5,40 @@ import { type VariantProps } from 'tailwind-variants';
|
|
|
5
5
|
import { TabProps } from './components/index.js';
|
|
6
6
|
import { styles } from './tabs.styles.js';
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
8
|
+
type Variants = VariantProps<typeof styles>;
|
|
9
|
+
|
|
10
|
+
export type TabsProps<T = any> = SpectrumTabsProps<T> & {
|
|
11
|
+
/**
|
|
12
|
+
* Children
|
|
13
|
+
*/
|
|
14
|
+
children: ReactElement | ReactElement[];
|
|
15
|
+
/**
|
|
16
|
+
* Colors
|
|
17
|
+
*/
|
|
18
|
+
color?: TabProps['color'];
|
|
19
|
+
/**
|
|
20
|
+
* Stretch the tab to fill the whole content
|
|
21
|
+
*/
|
|
22
|
+
justify?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Look of tabs
|
|
25
|
+
*/
|
|
26
|
+
look?: Variants['look'];
|
|
27
|
+
/**
|
|
28
|
+
* Orientation of tabs
|
|
29
|
+
*/
|
|
30
|
+
orientation?: Variants['orientation'];
|
|
31
|
+
/**
|
|
32
|
+
* Sticky
|
|
33
|
+
*/
|
|
34
|
+
sticky?: Variants['sticky'];
|
|
35
|
+
/**
|
|
36
|
+
* set the offset for the sticky tab
|
|
37
|
+
*/
|
|
38
|
+
stickyOffset?: {
|
|
39
|
+
bottom?: string;
|
|
40
|
+
left?: string;
|
|
41
|
+
right?: string;
|
|
42
|
+
top?: string;
|
|
43
|
+
};
|
|
44
|
+
} & HTMLAttributes<HTMLDivElement>;
|
|
@@ -2,7 +2,7 @@ import { tv } from 'tailwind-variants';
|
|
|
2
2
|
|
|
3
3
|
export const styles = tv(
|
|
4
4
|
{
|
|
5
|
-
base: 'form-control read-only:form-control-disabled disabled:form-control-disabled
|
|
5
|
+
base: 'form-control w-full read-only:form-control-disabled disabled:form-control-disabled',
|
|
6
6
|
variants: {
|
|
7
7
|
size: {
|
|
8
8
|
small: 'form-control-small min-h-[3.375rem]',
|
|
@@ -3,4 +3,15 @@ import { type VariantProps } from 'tailwind-variants';
|
|
|
3
3
|
|
|
4
4
|
import { styles } from './textarea.styles.js';
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
type Variants = VariantProps<typeof styles>;
|
|
7
|
+
|
|
8
|
+
export type TextareaProps = {
|
|
9
|
+
/**
|
|
10
|
+
* Whether text area is invalid
|
|
11
|
+
*/
|
|
12
|
+
invalid?: Variants['invalid'];
|
|
13
|
+
/**
|
|
14
|
+
* Size of text area
|
|
15
|
+
*/
|
|
16
|
+
size?: Variants['size'];
|
|
17
|
+
} & Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'size'>;
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
|
-
import { type VariantProps } from 'tailwind-variants';
|
|
3
|
-
|
|
4
|
-
import { styles } from './visually-hidden.styles.js';
|
|
5
2
|
|
|
6
3
|
export type VisuallyHiddenProps = {
|
|
7
4
|
/**
|
|
8
5
|
* Tag to render
|
|
9
6
|
*/
|
|
10
7
|
tag?: keyof JSX.IntrinsicElements;
|
|
11
|
-
} &
|
|
12
|
-
HTMLAttributes<Element>;
|
|
8
|
+
} & HTMLAttributes<Element>;
|
|
@@ -3,14 +3,19 @@ import { type VariantProps } from 'tailwind-variants';
|
|
|
3
3
|
|
|
4
4
|
import { styles } from './well.styles.js';
|
|
5
5
|
|
|
6
|
+
type Variants = VariantProps<typeof styles>;
|
|
7
|
+
|
|
6
8
|
export type WellProps = {
|
|
7
9
|
/**
|
|
8
10
|
* Well's content
|
|
9
11
|
*/
|
|
10
12
|
children: ReactNode;
|
|
13
|
+
/**
|
|
14
|
+
* Color of well
|
|
15
|
+
*/
|
|
16
|
+
color?: Variants['color'];
|
|
11
17
|
/**
|
|
12
18
|
* Tag to render
|
|
13
19
|
*/
|
|
14
20
|
tag?: keyof JSX.IntrinsicElements;
|
|
15
|
-
} & HTMLAttributes<Element
|
|
16
|
-
VariantProps<typeof styles>;
|
|
21
|
+
} & HTMLAttributes<Element>;
|
package/src/css/global.css
CHANGED
package/src/index.ts
CHANGED
|
@@ -40,6 +40,7 @@ export const EXPECTED_SPACING = {
|
|
|
40
40
|
export const EXPECTED_FONT_SIZES_VARS = {
|
|
41
41
|
'body-1': '3.75rem',
|
|
42
42
|
'body-10': '0.875rem',
|
|
43
|
+
'body-11': '0.875rem',
|
|
43
44
|
'body-2': '3.375rem',
|
|
44
45
|
'body-3': '3rem',
|
|
45
46
|
'body-4': '2.625rem',
|
|
@@ -50,6 +51,7 @@ export const EXPECTED_FONT_SIZES_VARS = {
|
|
|
50
51
|
'body-9': '1rem',
|
|
51
52
|
'brand-1': '3.75rem',
|
|
52
53
|
'brand-10': '0.875rem',
|
|
54
|
+
'brand-11': '0.875rem',
|
|
53
55
|
'brand-2': '3.375rem',
|
|
54
56
|
'brand-3': '3rem',
|
|
55
57
|
'brand-4': '2.625rem',
|
|
@@ -48,6 +48,8 @@ export const WestpacUIKitBasePlugin = plugin(
|
|
|
48
48
|
lineHeight: {
|
|
49
49
|
tight: '1.2',
|
|
50
50
|
normal: '1.4',
|
|
51
|
+
// See https://stackoverflow.com/questions/19982651/why-does-bootstrap-set-the-line-height-property-to-1-428571429 for below line height reasoning
|
|
52
|
+
loose: '1.428571429',
|
|
51
53
|
},
|
|
52
54
|
borderWidth: {
|
|
53
55
|
5: '0.3125rem',
|
|
@@ -125,6 +127,10 @@ export const WestpacUIKitBasePlugin = plugin(
|
|
|
125
127
|
fontSize: '0.875rem',
|
|
126
128
|
lineHeight: 'normal',
|
|
127
129
|
},
|
|
130
|
+
11: {
|
|
131
|
+
fontSize: '0.875rem',
|
|
132
|
+
lineHeight: 'loose',
|
|
133
|
+
},
|
|
128
134
|
},
|
|
129
135
|
formControl: {
|
|
130
136
|
base: 'no-inner-spin-button box-border w-fit appearance-none overflow-visible rounded border bg-white align-middle text-text transition placeholder:font-light placeholder:text-text-50 placeholder:opacity-100 focus:focus-outline disabled:form-control-disabled',
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './component-props.types.js';
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import path from 'path';
|
|
2
1
|
import fs from 'fs';
|
|
2
|
+
import path from 'path';
|
|
3
|
+
|
|
3
4
|
import { glob } from 'glob';
|
|
4
5
|
import prettier from 'prettier';
|
|
6
|
+
|
|
5
7
|
import { iconTemplate } from './icon-template.js';
|
|
6
8
|
|
|
7
9
|
const prettierConfig = prettier.resolveConfig.sync(path.join(process.cwd(), '../../.prettierrc'));
|
|
@@ -28,7 +30,7 @@ const formatIconName = (icon: string) => {
|
|
|
28
30
|
* @param {boolean} addFragment - extra condition to add fragment, used to filer cases where filled and outlined use the same svg
|
|
29
31
|
* @returns {string} - formatted svg path for use as react child
|
|
30
32
|
*/
|
|
31
|
-
const formatSVG = (svg: Buffer, pathCount: number, addFragment:
|
|
33
|
+
const formatSVG = (svg: Buffer, pathCount: number, addFragment: boolean) => {
|
|
32
34
|
const iconPaths = svg
|
|
33
35
|
.toString()
|
|
34
36
|
.replace(/<\/?svg[^>]*>/g, '')
|
|
@@ -99,6 +101,7 @@ const main = async () => {
|
|
|
99
101
|
}
|
|
100
102
|
|
|
101
103
|
iconNames.sort();
|
|
104
|
+
iconNames.push(`\nexport { Icon } from './icon.component.js';`);
|
|
102
105
|
iconNames.push(`\nexport { type IconProps } from './icon.types.js';\n`);
|
|
103
106
|
await fs.promises.writeFile(path.join(process.cwd(), 'src/components/icon/index.ts'), iconNames.join('\n'));
|
|
104
107
|
|
|
@@ -1,131 +0,0 @@
|
|
|
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
|
-
import { useState } from 'react';
|
|
16
|
-
import { Button } from '../index.js';
|
|
17
|
-
import { Accordion } from './accordion.component.js';
|
|
18
|
-
const meta = {
|
|
19
|
-
title: 'Components/Accordion',
|
|
20
|
-
component: Accordion,
|
|
21
|
-
tags: [
|
|
22
|
-
'autodocs'
|
|
23
|
-
],
|
|
24
|
-
decorators: [
|
|
25
|
-
(Story)=>{
|
|
26
|
-
Accordion.Item.displayName = 'Accordion.Item';
|
|
27
|
-
return React.createElement(Story, null);
|
|
28
|
-
}
|
|
29
|
-
]
|
|
30
|
-
};
|
|
31
|
-
export default meta;
|
|
32
|
-
export const Default = {
|
|
33
|
-
args: {
|
|
34
|
-
rounded: true,
|
|
35
|
-
color: undefined,
|
|
36
|
-
children: [
|
|
37
|
-
{
|
|
38
|
-
key: 'files',
|
|
39
|
-
title: 'My files'
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
key: 'shared',
|
|
43
|
-
title: 'Shared with us'
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
key: 'last',
|
|
47
|
-
title: 'Last item'
|
|
48
|
-
}
|
|
49
|
-
].map(({ key , title })=>React.createElement(Accordion.Item, {
|
|
50
|
-
key: key,
|
|
51
|
-
title: title
|
|
52
|
-
}, React.createElement("h3", null, title), React.createElement("p", null, "Lorem, ipsum dolor sit amet consectetur adipisicing elit. Quaerat in, nobis itaque iste sequi, pariatur, nam reiciendis quasi illum nulla aliquid mollitia corrupti nostrum incidunt? At minima error nobis ullam!"), React.createElement(Button, null, "Test")))
|
|
53
|
-
}
|
|
54
|
-
};
|
|
55
|
-
export const PrimaryColor = {
|
|
56
|
-
args: {
|
|
57
|
-
color: 'primary',
|
|
58
|
-
rounded: false
|
|
59
|
-
},
|
|
60
|
-
render: ({ ...props })=>React.createElement(Accordion, _extends({}, props), [
|
|
61
|
-
{
|
|
62
|
-
key: 'colors',
|
|
63
|
-
title: 'Your colors'
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
key: 'shared',
|
|
67
|
-
title: 'Shared color'
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
key: 'last',
|
|
71
|
-
title: 'Last item'
|
|
72
|
-
}
|
|
73
|
-
].map(({ key , title })=>React.createElement(Accordion.Item, {
|
|
74
|
-
key: key,
|
|
75
|
-
title: title
|
|
76
|
-
}, React.createElement("p", null, title), React.createElement(Button, null, "Test"))))
|
|
77
|
-
};
|
|
78
|
-
export const HeroColor = {
|
|
79
|
-
args: {
|
|
80
|
-
color: 'hero',
|
|
81
|
-
rounded: false
|
|
82
|
-
},
|
|
83
|
-
render: ({ ...props })=>React.createElement(Accordion, _extends({}, props), [
|
|
84
|
-
{
|
|
85
|
-
key: 'files',
|
|
86
|
-
title: 'My files'
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
key: 'shared',
|
|
90
|
-
title: 'my shared with you'
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
key: 'last',
|
|
94
|
-
title: 'Last item'
|
|
95
|
-
}
|
|
96
|
-
].map(({ key , title })=>React.createElement(Accordion.Item, {
|
|
97
|
-
key: key,
|
|
98
|
-
title: title
|
|
99
|
-
}, React.createElement("p", null, title), React.createElement(Button, null, "Test"))))
|
|
100
|
-
};
|
|
101
|
-
export const ControlledColor = {
|
|
102
|
-
args: {
|
|
103
|
-
color: 'hero',
|
|
104
|
-
rounded: false
|
|
105
|
-
},
|
|
106
|
-
render: ({ ...props })=>{
|
|
107
|
-
const [expandedKeys, setExpandedKeys] = useState();
|
|
108
|
-
return React.createElement(Accordion, _extends({}, props, {
|
|
109
|
-
expandedKeys: expandedKeys,
|
|
110
|
-
onExpandedChange: (keys)=>{
|
|
111
|
-
setExpandedKeys(keys);
|
|
112
|
-
}
|
|
113
|
-
}), [
|
|
114
|
-
{
|
|
115
|
-
key: 'files',
|
|
116
|
-
title: 'Your files'
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
key: 'shared',
|
|
120
|
-
title: 'Shared with you'
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
key: 'last',
|
|
124
|
-
title: 'Last item'
|
|
125
|
-
}
|
|
126
|
-
].map(({ key , title })=>React.createElement(Accordion.Item, {
|
|
127
|
-
key: key,
|
|
128
|
-
title: title
|
|
129
|
-
}, React.createElement("p", null, title), React.createElement(Button, null, "Test"))));
|
|
130
|
-
}
|
|
131
|
-
};
|
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
import { TelephoneIcon } from '../icon/index.js';
|
|
2
|
-
import { Alert } from './alert.component.js';
|
|
3
|
-
const meta = {
|
|
4
|
-
title: 'Components/Alert',
|
|
5
|
-
component: Alert,
|
|
6
|
-
tags: [
|
|
7
|
-
'autodocs'
|
|
8
|
-
],
|
|
9
|
-
decorators: [
|
|
10
|
-
(Story)=>React.createElement(Story, null)
|
|
11
|
-
]
|
|
12
|
-
};
|
|
13
|
-
export default meta;
|
|
14
|
-
export const Default = {
|
|
15
|
-
args: {
|
|
16
|
-
children: 'This is a default alert'
|
|
17
|
-
}
|
|
18
|
-
};
|
|
19
|
-
export const Looks = {
|
|
20
|
-
render: ()=>React.createElement(React.Fragment, null, React.createElement("h3", {
|
|
21
|
-
className: "typography-body-8 font-bold"
|
|
22
|
-
}, "Info"), React.createElement(Alert, {
|
|
23
|
-
look: "info"
|
|
24
|
-
}, React.createElement("strong", null, "Heads up!"), " This alert needs your attention, but it’s not super important. ", React.createElement("a", {
|
|
25
|
-
href: "#"
|
|
26
|
-
}, "Link")), React.createElement("h3", {
|
|
27
|
-
className: "typography-body-8 font-bold"
|
|
28
|
-
}, "Success"), React.createElement(Alert, {
|
|
29
|
-
look: "success"
|
|
30
|
-
}, React.createElement("strong", null, "Well done!"), " You successfully read this important alert message. ", React.createElement("a", {
|
|
31
|
-
href: "#"
|
|
32
|
-
}, "Link")), React.createElement("h3", {
|
|
33
|
-
className: "typography-body-8 font-bold"
|
|
34
|
-
}, "Warning"), React.createElement(Alert, {
|
|
35
|
-
look: "warning"
|
|
36
|
-
}, React.createElement("strong", null, "Warning!"), " Better check yourself, you’re not looking too good. ", React.createElement("a", {
|
|
37
|
-
href: "#"
|
|
38
|
-
}, "Link")), React.createElement("h3", {
|
|
39
|
-
className: "typography-body-8 font-bold"
|
|
40
|
-
}, "Danger"), React.createElement(Alert, {
|
|
41
|
-
look: "danger"
|
|
42
|
-
}, React.createElement("strong", null, "Oh snap!"), " Change a few things up and try submitting again. ", React.createElement("a", {
|
|
43
|
-
href: "#"
|
|
44
|
-
}, "Link")), React.createElement("h3", {
|
|
45
|
-
className: "typography-body-8 font-bold"
|
|
46
|
-
}, "System"), React.createElement(Alert, {
|
|
47
|
-
look: "system"
|
|
48
|
-
}, React.createElement("strong", null, "System Error 8942:"), " The server is no responding. Please try again later. Sorry for the inconvenience. ", React.createElement("a", {
|
|
49
|
-
href: "#"
|
|
50
|
-
}, "Link"))),
|
|
51
|
-
args: {}
|
|
52
|
-
};
|
|
53
|
-
export const TextMode = {
|
|
54
|
-
render: ()=>React.createElement(React.Fragment, null, React.createElement("h3", {
|
|
55
|
-
className: "typography-body-8 mb-2 font-bold"
|
|
56
|
-
}, "Info"), React.createElement(Alert, {
|
|
57
|
-
look: "info",
|
|
58
|
-
mode: "text"
|
|
59
|
-
}, React.createElement("strong", null, "Heads up!"), " This alert needs your attention, but it’s not super important. ", React.createElement("a", {
|
|
60
|
-
href: "#"
|
|
61
|
-
}, "Link")), React.createElement("h3", {
|
|
62
|
-
className: "typography-body-8 mb-2 font-bold"
|
|
63
|
-
}, "Success"), React.createElement(Alert, {
|
|
64
|
-
look: "success",
|
|
65
|
-
mode: "text"
|
|
66
|
-
}, React.createElement("strong", null, "Well done!"), " You successfully read this important alert message. ", React.createElement("a", {
|
|
67
|
-
href: "#"
|
|
68
|
-
}, "Link")), React.createElement("h3", {
|
|
69
|
-
className: "typography-body-8 mb-2 font-bold"
|
|
70
|
-
}, "Warning"), React.createElement(Alert, {
|
|
71
|
-
look: "warning",
|
|
72
|
-
mode: "text"
|
|
73
|
-
}, React.createElement("strong", null, "Warning!"), " Better check yourself, you’re not looking too good. ", React.createElement("a", {
|
|
74
|
-
href: "#"
|
|
75
|
-
}, "Link")), React.createElement("h3", {
|
|
76
|
-
className: "typography-body-8 mb-2 font-bold"
|
|
77
|
-
}, "Danger"), React.createElement(Alert, {
|
|
78
|
-
look: "danger",
|
|
79
|
-
mode: "text"
|
|
80
|
-
}, React.createElement("strong", null, "Oh snap!"), " Change a few things up and try submitting again. ", React.createElement("a", {
|
|
81
|
-
href: "#"
|
|
82
|
-
}, "Link")), React.createElement("h3", {
|
|
83
|
-
className: "typography-body-8 mb-2 font-bold"
|
|
84
|
-
}, "System"), React.createElement(Alert, {
|
|
85
|
-
look: "system",
|
|
86
|
-
mode: "text"
|
|
87
|
-
}, React.createElement("strong", null, "System Error 8942:"), " The server is no responding. Please try again later. Sorry for the inconvenience. ", React.createElement("a", {
|
|
88
|
-
href: "#"
|
|
89
|
-
}, "Link"))),
|
|
90
|
-
args: {}
|
|
91
|
-
};
|
|
92
|
-
export const Heading = {
|
|
93
|
-
args: {
|
|
94
|
-
heading: 'I am an alert heading',
|
|
95
|
-
children: 'This is a default alert'
|
|
96
|
-
}
|
|
97
|
-
};
|
|
98
|
-
export const Dismissible = {
|
|
99
|
-
args: {
|
|
100
|
-
dismissible: true,
|
|
101
|
-
children: 'I am an alert. This alert needs your attention, but it’s not super important. Hey neato, I can be closed.',
|
|
102
|
-
onClose: ()=>console.log('closed')
|
|
103
|
-
}
|
|
104
|
-
};
|
|
105
|
-
export const CustomIcon = {
|
|
106
|
-
render: ()=>React.createElement(React.Fragment, null, React.createElement("h3", {
|
|
107
|
-
className: "typography-body-8 mb-2 font-bold"
|
|
108
|
-
}, "Info"), React.createElement(Alert, {
|
|
109
|
-
look: "info",
|
|
110
|
-
icon: TelephoneIcon
|
|
111
|
-
}, React.createElement("strong", null, "Heads up!"), " This alert needs your attention, but it’s not super important. ", React.createElement("a", {
|
|
112
|
-
href: "#"
|
|
113
|
-
}, "Link")), React.createElement("h3", {
|
|
114
|
-
className: "typography-body-8 mb-2 font-bold"
|
|
115
|
-
}, "Note: the following should not render a custom icon"), React.createElement("h3", {
|
|
116
|
-
className: "typography-body-8 mb-2 font-bold"
|
|
117
|
-
}, "Success"), React.createElement(Alert, {
|
|
118
|
-
look: "success",
|
|
119
|
-
icon: TelephoneIcon
|
|
120
|
-
}, React.createElement("strong", null, "Well done!"), " You successfully read this important alert message. ", React.createElement("a", {
|
|
121
|
-
href: "#"
|
|
122
|
-
}, "Link")), React.createElement("h3", {
|
|
123
|
-
className: "typography-body-8 mb-2 font-bold"
|
|
124
|
-
}, "Warning"), React.createElement(Alert, {
|
|
125
|
-
look: "warning",
|
|
126
|
-
icon: TelephoneIcon
|
|
127
|
-
}, React.createElement("strong", null, "Warning!"), " Better check yourself, you’re not looking too good. ", React.createElement("a", {
|
|
128
|
-
href: "#"
|
|
129
|
-
}, "Link")), React.createElement("h3", {
|
|
130
|
-
className: "typography-body-8 mb-2 font-bold"
|
|
131
|
-
}, "Danger"), React.createElement(Alert, {
|
|
132
|
-
look: "danger",
|
|
133
|
-
icon: TelephoneIcon
|
|
134
|
-
}, React.createElement("strong", null, "Oh snap!"), " Change a few things up and try submitting again. ", React.createElement("a", {
|
|
135
|
-
href: "#"
|
|
136
|
-
}, "Link")), React.createElement("h3", {
|
|
137
|
-
className: "typography-body-8 mb-2 font-bold"
|
|
138
|
-
}, "System"), React.createElement(Alert, {
|
|
139
|
-
look: "system",
|
|
140
|
-
icon: TelephoneIcon
|
|
141
|
-
}, React.createElement("strong", null, "System Error 8942:"), " The server is no responding. Please try again later. Sorry for the inconvenience. ", React.createElement("a", {
|
|
142
|
-
href: "#"
|
|
143
|
-
}, "Link")))
|
|
144
|
-
};
|