@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
package/dist/components/breadcrumb/components/breadcrumb-item/breadcrumb-item.component.d.ts
CHANGED
|
@@ -5,24 +5,4 @@ export declare const BreadcrumbItem: React.ForwardRefExoticComponent<{
|
|
|
5
5
|
isCurrent?: boolean | undefined;
|
|
6
6
|
isDisabled?: boolean | undefined;
|
|
7
7
|
tag?: keyof JSX.IntrinsicElements | undefined;
|
|
8
|
-
} &
|
|
9
|
-
isCurrent: {
|
|
10
|
-
true: string;
|
|
11
|
-
false: string;
|
|
12
|
-
};
|
|
13
|
-
isDisabled: {
|
|
14
|
-
true: string;
|
|
15
|
-
false: string;
|
|
16
|
-
};
|
|
17
|
-
}, undefined, "text-[0.8125rem]", {
|
|
18
|
-
responsiveVariants: string[];
|
|
19
|
-
}, {
|
|
20
|
-
isCurrent: {
|
|
21
|
-
true: string;
|
|
22
|
-
false: string;
|
|
23
|
-
};
|
|
24
|
-
isDisabled: {
|
|
25
|
-
true: string;
|
|
26
|
-
false: string;
|
|
27
|
-
};
|
|
28
|
-
}, undefined>> & React.AnchorHTMLAttributes<Element> & React.RefAttributes<any>>;
|
|
8
|
+
} & React.AnchorHTMLAttributes<Element> & React.RefAttributes<any>>;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { AnchorHTMLAttributes } from 'react';
|
|
2
|
-
import { type VariantProps } from 'tailwind-variants';
|
|
3
|
-
import { styles } from './breadcrumb-item.styles.js';
|
|
4
2
|
export type BreadcrumbItemProps = {
|
|
5
3
|
/**
|
|
6
4
|
* isCurrent flag
|
|
@@ -14,4 +12,4 @@ export type BreadcrumbItemProps = {
|
|
|
14
12
|
* Tag to render
|
|
15
13
|
*/
|
|
16
14
|
tag?: keyof JSX.IntrinsicElements;
|
|
17
|
-
} &
|
|
15
|
+
} & AnchorHTMLAttributes<Element>;
|
|
@@ -1,133 +1,24 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export declare const Button: React.ForwardRefExoticComponent<{
|
|
3
|
+
block?: boolean | {
|
|
4
|
+
[x: string]: boolean | undefined;
|
|
5
|
+
} | undefined;
|
|
3
6
|
iconAfter?: ((props: import("../icon/icon.types.js").IconProps) => JSX.Element) | undefined;
|
|
4
7
|
iconBefore?: ((props: import("../icon/icon.types.js").IconProps) => JSX.Element) | undefined;
|
|
5
8
|
iconColor?: "link" | "text" | "border" | "heading" | "primary" | "hero" | "success" | "info" | "warning" | "danger" | "system" | "white" | "black" | "background" | "borderDark" | "focus" | "light" | "muted" | "neutral" | "pop" | (string & {
|
|
6
9
|
[x: string]: "link" | "text" | "border" | "heading" | "primary" | "hero" | "success" | "info" | "warning" | "danger" | "system" | "white" | "black" | "background" | "borderDark" | "focus" | "light" | "muted" | "neutral" | "pop" | undefined;
|
|
7
10
|
}) | undefined;
|
|
11
|
+
justify?: boolean | {
|
|
12
|
+
[x: string]: boolean | undefined;
|
|
13
|
+
} | undefined;
|
|
14
|
+
look?: "link" | "primary" | "hero" | "faint" | {
|
|
15
|
+
[x: string]: "link" | "primary" | "hero" | "faint" | undefined;
|
|
16
|
+
} | undefined;
|
|
17
|
+
size?: "small" | "medium" | "large" | "xlarge" | {
|
|
18
|
+
[x: string]: "small" | "medium" | "large" | "xlarge" | undefined;
|
|
19
|
+
} | undefined;
|
|
20
|
+
soft?: boolean | {
|
|
21
|
+
[x: string]: boolean | undefined;
|
|
22
|
+
} | undefined;
|
|
8
23
|
tag?: "a" | "button" | "div" | "span" | undefined;
|
|
9
|
-
} & React.ButtonHTMLAttributes<Element> & React.AnchorHTMLAttributes<Element> &
|
|
10
|
-
size: {
|
|
11
|
-
small: {
|
|
12
|
-
base: string;
|
|
13
|
-
};
|
|
14
|
-
medium: {
|
|
15
|
-
base: string;
|
|
16
|
-
};
|
|
17
|
-
large: {
|
|
18
|
-
base: string;
|
|
19
|
-
};
|
|
20
|
-
xlarge: {
|
|
21
|
-
base: string;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
look: {
|
|
25
|
-
primary: {
|
|
26
|
-
base: string;
|
|
27
|
-
};
|
|
28
|
-
hero: {
|
|
29
|
-
base: string;
|
|
30
|
-
};
|
|
31
|
-
faint: {
|
|
32
|
-
base: string;
|
|
33
|
-
};
|
|
34
|
-
link: {
|
|
35
|
-
base: string;
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
soft: {
|
|
39
|
-
true: {
|
|
40
|
-
base: string;
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
block: {
|
|
44
|
-
true: {
|
|
45
|
-
base: string;
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
justify: {
|
|
49
|
-
true: {
|
|
50
|
-
base: string;
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
hasChildren: {
|
|
54
|
-
true: string;
|
|
55
|
-
};
|
|
56
|
-
isFocusVisible: {
|
|
57
|
-
true: {
|
|
58
|
-
base: string;
|
|
59
|
-
};
|
|
60
|
-
false: {
|
|
61
|
-
base: string;
|
|
62
|
-
};
|
|
63
|
-
};
|
|
64
|
-
}, {
|
|
65
|
-
base: string;
|
|
66
|
-
iconBefore: string;
|
|
67
|
-
iconAfter: string;
|
|
68
|
-
dropdown: string;
|
|
69
|
-
text: string;
|
|
70
|
-
}, undefined, {
|
|
71
|
-
responsiveVariants: string[];
|
|
72
|
-
}, {
|
|
73
|
-
size: {
|
|
74
|
-
small: {
|
|
75
|
-
base: string;
|
|
76
|
-
};
|
|
77
|
-
medium: {
|
|
78
|
-
base: string;
|
|
79
|
-
};
|
|
80
|
-
large: {
|
|
81
|
-
base: string;
|
|
82
|
-
};
|
|
83
|
-
xlarge: {
|
|
84
|
-
base: string;
|
|
85
|
-
};
|
|
86
|
-
};
|
|
87
|
-
look: {
|
|
88
|
-
primary: {
|
|
89
|
-
base: string;
|
|
90
|
-
};
|
|
91
|
-
hero: {
|
|
92
|
-
base: string;
|
|
93
|
-
};
|
|
94
|
-
faint: {
|
|
95
|
-
base: string;
|
|
96
|
-
};
|
|
97
|
-
link: {
|
|
98
|
-
base: string;
|
|
99
|
-
};
|
|
100
|
-
};
|
|
101
|
-
soft: {
|
|
102
|
-
true: {
|
|
103
|
-
base: string;
|
|
104
|
-
};
|
|
105
|
-
};
|
|
106
|
-
block: {
|
|
107
|
-
true: {
|
|
108
|
-
base: string;
|
|
109
|
-
};
|
|
110
|
-
};
|
|
111
|
-
justify: {
|
|
112
|
-
true: {
|
|
113
|
-
base: string;
|
|
114
|
-
};
|
|
115
|
-
};
|
|
116
|
-
hasChildren: {
|
|
117
|
-
true: string;
|
|
118
|
-
};
|
|
119
|
-
isFocusVisible: {
|
|
120
|
-
true: {
|
|
121
|
-
base: string;
|
|
122
|
-
};
|
|
123
|
-
false: {
|
|
124
|
-
base: string;
|
|
125
|
-
};
|
|
126
|
-
};
|
|
127
|
-
}, {
|
|
128
|
-
base: string;
|
|
129
|
-
iconBefore: string;
|
|
130
|
-
iconAfter: string;
|
|
131
|
-
dropdown: string;
|
|
132
|
-
text: string;
|
|
133
|
-
}>> & React.RefAttributes<unknown>>;
|
|
24
|
+
} & React.ButtonHTMLAttributes<Element> & React.AnchorHTMLAttributes<Element> & React.RefAttributes<unknown>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { tv } from 'tailwind-variants';
|
|
2
2
|
export const styles = tv({
|
|
3
3
|
slots: {
|
|
4
|
-
base: 'inline-flex items-center justify-center rounded leading-[1.5] transition-[background] disabled:pointer-events-none disabled:opacity-50 group-[.add-on-after]:rounded-l-none group-[.add-on-before]:rounded-r-none',
|
|
4
|
+
base: 'inline-flex items-center justify-center rounded-[0.1875rem] leading-[1.5] transition-[background] disabled:pointer-events-none disabled:opacity-50 group-[.add-on-after]:rounded-l-none group-[.add-on-before]:rounded-r-none',
|
|
5
5
|
iconBefore: '',
|
|
6
6
|
iconAfter: '',
|
|
7
7
|
dropdown: 'ml-[0.4em]',
|
|
@@ -10,21 +10,21 @@ export const styles = tv({
|
|
|
10
10
|
variants: {
|
|
11
11
|
size: {
|
|
12
12
|
small: {
|
|
13
|
-
base: '
|
|
13
|
+
base: 'typography-body-10 px-2 pb-[0.25rem] pt-[0.1875rem] active-theme-rams:before:h-[0.0625rem]'
|
|
14
14
|
},
|
|
15
15
|
medium: {
|
|
16
|
-
base: '
|
|
16
|
+
base: 'typography-body-9 px-2 py-[0.3125rem] active-theme-rams:before:h-[0.125rem]'
|
|
17
17
|
},
|
|
18
18
|
large: {
|
|
19
|
-
base: '
|
|
19
|
+
base: 'typography-body-9 px-[0.9375rem] py-[0.5rem] active-theme-rams:before:h-[0.1875rem]'
|
|
20
20
|
},
|
|
21
21
|
xlarge: {
|
|
22
|
-
base: '
|
|
22
|
+
base: 'typography-body-8 px-3 pb-[0.625rem] pt-[0.5625rem] active-theme-rams:before:h-[0.25rem]'
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
look: {
|
|
26
26
|
primary: {
|
|
27
|
-
base: 'active-theme-rams:border-b-pop active-theme-rams:before:absolute active-theme-rams:before:bottom-0 active-theme-rams:before:block active-theme-rams:before:w-full active-theme-rams:before:bg-pop
|
|
27
|
+
base: 'relative border border-primary bg-primary text-white hover:bg-primary-70 active:bg-primary-50 active-theme-rams:border-b-pop active-theme-rams:before:absolute active-theme-rams:before:bottom-0 active-theme-rams:before:block active-theme-rams:before:w-full active-theme-rams:before:bg-pop'
|
|
28
28
|
},
|
|
29
29
|
hero: {
|
|
30
30
|
base: 'border border-hero bg-hero text-white hover:bg-hero-70 active:bg-hero-50'
|
|
@@ -2,7 +2,12 @@ import { AnchorHTMLAttributes, ButtonHTMLAttributes } from 'react';
|
|
|
2
2
|
import { type VariantProps } from 'tailwind-variants';
|
|
3
3
|
import { IconProps } from '../icon/index.js';
|
|
4
4
|
import { styles } from './button.styles.js';
|
|
5
|
+
type Variants = VariantProps<typeof styles>;
|
|
5
6
|
export type ButtonProps = {
|
|
7
|
+
/**
|
|
8
|
+
* Fit button width to its parent width.
|
|
9
|
+
*/
|
|
10
|
+
block?: Variants['block'];
|
|
6
11
|
/**
|
|
7
12
|
* Places an icon within the button, after the button’s text
|
|
8
13
|
*/
|
|
@@ -17,8 +22,25 @@ export type ButtonProps = {
|
|
|
17
22
|
* Defaults to the current text color.
|
|
18
23
|
*/
|
|
19
24
|
iconColor?: IconProps['color'];
|
|
25
|
+
/**
|
|
26
|
+
* Justify align button children
|
|
27
|
+
*/
|
|
28
|
+
justify?: Variants['justify'];
|
|
29
|
+
/**
|
|
30
|
+
* Button look
|
|
31
|
+
*/
|
|
32
|
+
look?: Variants['look'];
|
|
33
|
+
/**
|
|
34
|
+
* Size of the button
|
|
35
|
+
*/
|
|
36
|
+
size?: Variants['size'];
|
|
37
|
+
/**
|
|
38
|
+
* Removes background colour and adjusts text colour.
|
|
39
|
+
*/
|
|
40
|
+
soft?: Variants['soft'];
|
|
20
41
|
/**
|
|
21
42
|
* Tag to render
|
|
22
43
|
*/
|
|
23
44
|
tag?: keyof Pick<JSX.IntrinsicElements, 'a' | 'span' | 'button' | 'div'>;
|
|
24
|
-
} & ButtonHTMLAttributes<Element> & AnchorHTMLAttributes<Element
|
|
45
|
+
} & ButtonHTMLAttributes<Element> & AnchorHTMLAttributes<Element>;
|
|
46
|
+
export {};
|
|
@@ -13,6 +13,7 @@ export declare const styles: import("tailwind-variants").TVReturnType<{
|
|
|
13
13
|
block: {
|
|
14
14
|
true: {
|
|
15
15
|
panel: string;
|
|
16
|
+
base: string;
|
|
16
17
|
};
|
|
17
18
|
};
|
|
18
19
|
}, {
|
|
@@ -35,6 +36,7 @@ export declare const styles: import("tailwind-variants").TVReturnType<{
|
|
|
35
36
|
block: {
|
|
36
37
|
true: {
|
|
37
38
|
panel: string;
|
|
39
|
+
base: string;
|
|
38
40
|
};
|
|
39
41
|
};
|
|
40
42
|
}, {
|
|
@@ -2,7 +2,12 @@ import { ButtonHTMLAttributes } from 'react';
|
|
|
2
2
|
import { type VariantProps } from 'tailwind-variants';
|
|
3
3
|
import { ButtonProps } from '../button/index.js';
|
|
4
4
|
import { styles } from './button-dropdown.styles.js';
|
|
5
|
+
type Variants = VariantProps<typeof styles>;
|
|
5
6
|
export type ButtonDropdownProps = {
|
|
7
|
+
/**
|
|
8
|
+
* Size of the the dropdown panel
|
|
9
|
+
*/
|
|
10
|
+
dropdownSize?: Variants['dropdownSize'];
|
|
6
11
|
/**
|
|
7
12
|
* Look for button
|
|
8
13
|
*/
|
|
@@ -19,4 +24,5 @@ export type ButtonDropdownProps = {
|
|
|
19
24
|
* Button text
|
|
20
25
|
*/
|
|
21
26
|
text: string;
|
|
22
|
-
} & ButtonHTMLAttributes<Element> & Pick<ButtonProps, 'size' | 'iconBefore' | 'block'
|
|
27
|
+
} & ButtonHTMLAttributes<Element> & Pick<ButtonProps, 'size' | 'iconBefore' | 'block'>;
|
|
28
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { tv } from 'tailwind-variants';
|
|
2
2
|
export const styles = tv({
|
|
3
3
|
slots: {
|
|
4
|
-
base: 'mt-[0.1875rem] rounded-[
|
|
4
|
+
base: 'mt-[0.1875rem] rounded-[0.1875rem] border border-border bg-white p-2 shadow-[0_0.375rem_0.75rem_rgba(0,0,0,0.175)]',
|
|
5
5
|
dialog: ''
|
|
6
6
|
},
|
|
7
7
|
variants: {
|
|
@@ -2,7 +2,7 @@ import { tv } from 'tailwind-variants';
|
|
|
2
2
|
export const styles = tv({
|
|
3
3
|
slots: {
|
|
4
4
|
base: '',
|
|
5
|
-
button: 'rounded-none hover:cursor-pointer group-first/buttons:rounded-l group-last/buttons:rounded-r group-[:not(:first-child)]/buttons:border-l-0 active-theme-rams:border-b-primary active-theme-rams:before:hidden'
|
|
5
|
+
button: 'rounded-none hover:cursor-pointer group-first/buttons:rounded-l-[0.1875rem] group-last/buttons:rounded-r-[0.1875rem] group-[:not(:first-child)]/buttons:border-l-0 active-theme-rams:border-b-primary active-theme-rams:before:hidden'
|
|
6
6
|
},
|
|
7
7
|
variants: {
|
|
8
8
|
isDisabled: {
|
|
@@ -17,11 +17,16 @@ import { VisuallyHidden, useCheckboxGroupItem, useFocusRing } from 'react-aria';
|
|
|
17
17
|
import { Icon } from '../../../icon/icon.component.js';
|
|
18
18
|
import { CheckboxGroupContext } from '../../checkbox-group.component.js';
|
|
19
19
|
import { styles as checkboxItemStyles } from './checkbox.styles.js';
|
|
20
|
-
function CheckIcon({ copyrightYear ='2023' , ...props }) {
|
|
20
|
+
function CheckIcon({ copyrightYear ='2023' , size , ...props }) {
|
|
21
|
+
const viewBoxSize = size === 'large' ? '0 0 30 30' : '0 0 24 24';
|
|
21
22
|
return React.createElement(Icon, _extends({
|
|
22
|
-
copyrightYear: copyrightYear
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
copyrightYear: copyrightYear,
|
|
24
|
+
viewBox: viewBoxSize
|
|
25
|
+
}, props), size === 'large' ? React.createElement("path", {
|
|
26
|
+
d: "M12.9952 17.5891L20.2923 10.292L21.7023 11.712L12.9952 20.4191L8.28809 15.712L9.69809 14.302L12.9952 17.5891Z",
|
|
27
|
+
fill: "currentColor"
|
|
28
|
+
}) : React.createElement("path", {
|
|
29
|
+
d: "M9.99519 14.5891L17.2923 7.29199L18.7023 8.71199L9.99519 17.4191L5.28809 12.712L6.69809 11.302L9.99519 14.5891Z",
|
|
25
30
|
fill: "currentColor"
|
|
26
31
|
}));
|
|
27
32
|
}
|
|
@@ -52,6 +57,7 @@ function BaseCheckbox({ className , hint , children , value , ...props }, ref) {
|
|
|
52
57
|
className: styles.checkbox()
|
|
53
58
|
}, isSelected && React.createElement(CheckIcon, {
|
|
54
59
|
className: styles.checkIcon(),
|
|
60
|
+
size: size,
|
|
55
61
|
color: isDisabled ? 'border' : 'hero'
|
|
56
62
|
})), React.createElement("div", {
|
|
57
63
|
className: styles.textWrapper()
|
|
@@ -62,3 +68,4 @@ function BaseCheckbox({ className , hint , children , value , ...props }, ref) {
|
|
|
62
68
|
}, hint)));
|
|
63
69
|
}
|
|
64
70
|
export const Checkbox = forwardRef(BaseCheckbox);
|
|
71
|
+
Checkbox.displayName = 'CheckboxGroup.Checkbox';
|
|
@@ -6,7 +6,7 @@ export const styles = tv({
|
|
|
6
6
|
textWrapper: 'flex flex-col justify-center',
|
|
7
7
|
labelText: 'typography-body-10 py-[2px] pl-1',
|
|
8
8
|
hintText: 'typography-body-10 pl-1 text-muted',
|
|
9
|
-
checkbox: 'flex shrink-0 items-center justify-center rounded border border-hero'
|
|
9
|
+
checkbox: 'flex shrink-0 items-center justify-center rounded-[0.1875rem] border border-hero'
|
|
10
10
|
},
|
|
11
11
|
variants: {
|
|
12
12
|
isDisabled: {
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
|
-
import { type VariantProps } from 'tailwind-variants';
|
|
3
|
-
import { styles } from './circle.styles.js';
|
|
4
2
|
export type CircleProps = {
|
|
5
3
|
/**
|
|
6
4
|
* Tag to render
|
|
7
5
|
*/
|
|
8
6
|
tag?: keyof JSX.IntrinsicElements;
|
|
9
|
-
} &
|
|
7
|
+
} & HTMLAttributes<Element>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
'use client';
|
|
1
2
|
function _extends() {
|
|
2
3
|
_extends = Object.assign || function(target) {
|
|
3
4
|
for(var i = 1; i < arguments.length; i++){
|
|
@@ -221,7 +222,7 @@ export function Compacta({ className , children , titleTag: Tag = 'h3' , addText
|
|
|
221
222
|
setPrimaryTitle: (title)=>setTitle(item.id, 'primary', title),
|
|
222
223
|
setSecondaryTitle: (title)=>setTitle(item.id, 'secondary', title),
|
|
223
224
|
setTertiaryTitle: (title)=>setTitle(item.id, 'tertiary', title)
|
|
224
|
-
}), React.createElement(Button, {
|
|
225
|
+
}), items.length > 1 && React.createElement(Button, {
|
|
225
226
|
className: styles.removeBtn(),
|
|
226
227
|
"aria-label": `remove item ${index + 1}`,
|
|
227
228
|
iconBefore: (props)=>React.createElement(RemoveCircleIcon, _extends({}, props, {
|
|
@@ -3,20 +3,20 @@ export const styles = tv({
|
|
|
3
3
|
slots: {
|
|
4
4
|
base: '',
|
|
5
5
|
item: 'border-borderDark mb-2 overflow-hidden rounded-[0.1875rem] border',
|
|
6
|
-
header: 'text-text bg-white
|
|
6
|
+
header: 'text-text bg-white px-3 py-[0.9375rem]',
|
|
7
7
|
headerTitle: 'flex min-w-0 flex-1 items-center',
|
|
8
|
-
primaryHeading: '
|
|
9
|
-
secondaryHeading: 'text-muted flex min-w-0 flex-1 items-center pl-
|
|
10
|
-
itemIndex: 'mr-
|
|
8
|
+
primaryHeading: 'flex w-full',
|
|
9
|
+
secondaryHeading: 'text-muted flex min-w-0 flex-1 items-center pl-4',
|
|
10
|
+
itemIndex: 'typography-body-9 mr-1 w-3 flex-none font-bold',
|
|
11
11
|
removeBtn: 'mt-[0.875rem] h-auto p-0 no-underline hover:underline',
|
|
12
12
|
addBtn: 'h-auto p-0 no-underline hover:underline',
|
|
13
|
-
toggleBtn: '
|
|
13
|
+
toggleBtn: 'p-0',
|
|
14
14
|
collapsible: '',
|
|
15
15
|
content: 'xsl:pl-[3.375rem] p-[0_1.125rem_1.875rem]',
|
|
16
|
-
footer: '
|
|
17
|
-
titlePrimary: 'font-bold',
|
|
18
|
-
titleSecondary: 'mt-
|
|
19
|
-
titleTertiary: 'mt-
|
|
16
|
+
footer: '',
|
|
17
|
+
titlePrimary: 'typography-body-9 font-bold',
|
|
18
|
+
titleSecondary: 'mt-1 items-center',
|
|
19
|
+
titleTertiary: 'mt-1 items-center'
|
|
20
20
|
},
|
|
21
21
|
variants: {},
|
|
22
22
|
compoundSlots: [
|
|
@@ -27,7 +27,7 @@ export const styles = tv({
|
|
|
27
27
|
'titleTertiary'
|
|
28
28
|
],
|
|
29
29
|
class: [
|
|
30
|
-
'mr-
|
|
30
|
+
'mr-1',
|
|
31
31
|
'truncate',
|
|
32
32
|
'flex-1'
|
|
33
33
|
]
|
|
@@ -11,6 +11,7 @@ export type DuetDatePickerElement = Element & {
|
|
|
11
11
|
name?: string;
|
|
12
12
|
value?: string;
|
|
13
13
|
};
|
|
14
|
+
type Variants = VariantProps<typeof styles>;
|
|
14
15
|
export type DatePickerProps = {
|
|
15
16
|
disableDates?: string[];
|
|
16
17
|
disableDaysOfWeek?: number[];
|
|
@@ -29,5 +30,10 @@ export type DatePickerProps = {
|
|
|
29
30
|
onClose?: (...args: any[]) => unknown;
|
|
30
31
|
onFocus?: (...args: any[]) => unknown;
|
|
31
32
|
onOpen?: (...args: any[]) => unknown;
|
|
33
|
+
/**
|
|
34
|
+
* Size of datepicker input
|
|
35
|
+
*/
|
|
36
|
+
size?: Variants['size'];
|
|
32
37
|
value?: string;
|
|
33
|
-
} &
|
|
38
|
+
} & HTMLAttributes<Element>;
|
|
39
|
+
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { tv } from 'tailwind-variants';
|
|
2
2
|
export const styles = tv({
|
|
3
3
|
slots: {
|
|
4
|
-
base: 'typography-body-
|
|
4
|
+
base: 'typography-body-11 flex items-center text-danger',
|
|
5
5
|
list: 'mb-2 flex flex-col gap-1',
|
|
6
|
-
icon: 'mr-[0.
|
|
6
|
+
icon: 'mr-[0.5em] align-top'
|
|
7
7
|
}
|
|
8
8
|
});
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
import { type VariantProps } from 'tailwind-variants';
|
|
3
|
-
import { styles } from './error-message.styles.js';
|
|
4
2
|
export type ErrorMessageProps = {
|
|
5
3
|
/**
|
|
6
4
|
* Icon
|
|
@@ -14,4 +12,4 @@ export type ErrorMessageProps = {
|
|
|
14
12
|
* Tag to render
|
|
15
13
|
*/
|
|
16
14
|
tag?: keyof JSX.IntrinsicElements;
|
|
17
|
-
} &
|
|
15
|
+
} & HTMLAttributes<Element>;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
import { AriaFieldProps } from 'react-aria';
|
|
3
|
-
import { type VariantProps } from 'tailwind-variants';
|
|
4
3
|
import { FormHintProps } from '../index.js';
|
|
5
|
-
import { styles } from './field.styles.js';
|
|
6
4
|
export type FieldProps = {
|
|
7
5
|
/**
|
|
8
6
|
* error message
|
|
@@ -16,4 +14,4 @@ export type FieldProps = {
|
|
|
16
14
|
* Tag to render
|
|
17
15
|
*/
|
|
18
16
|
tag?: keyof JSX.IntrinsicElements;
|
|
19
|
-
} & AriaFieldProps &
|
|
17
|
+
} & AriaFieldProps & HTMLAttributes<Element>;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
import { type FlexiCellAdornmentProps } from './flexi-cell-adornment.types.js';
|
|
2
2
|
/** Flexi Cell Adornment: Flexi Cell Adornment */
|
|
3
|
-
export declare const FlexiCellAdornment:
|
|
3
|
+
export declare const FlexiCellAdornment: {
|
|
4
|
+
({ children, tag: Tag, align, className, ...props }: FlexiCellAdornmentProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
package/dist/components/flexi-cell/components/flexi-cell-adornment/flexi-cell-adornment.types.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { type HTMLAttributes, type ReactNode } from 'react';
|
|
2
|
-
import { type VariantProps } from 'tailwind-variants';
|
|
3
|
-
import { styles } from './flexi-cell-adornment.styles.js';
|
|
4
2
|
export type FlexiCellAdornmentProps = {
|
|
5
3
|
/**
|
|
6
4
|
* Define the alignment of content
|
|
@@ -14,4 +12,4 @@ export type FlexiCellAdornmentProps = {
|
|
|
14
12
|
* Component's tag
|
|
15
13
|
*/
|
|
16
14
|
tag?: keyof JSX.IntrinsicElements;
|
|
17
|
-
} & HTMLAttributes<HTMLOrSVGElement
|
|
15
|
+
} & HTMLAttributes<HTMLOrSVGElement>;
|
package/dist/components/flexi-cell/components/flexi-cell-body/flexi-cell-body.component.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
import { type FlexiCellBodyProps } from './flexi-cell-body.types.js';
|
|
2
2
|
/** Flexi Cell Body: Flexi Cell Body */
|
|
3
|
-
export declare const FlexiCellBody:
|
|
3
|
+
export declare const FlexiCellBody: {
|
|
4
|
+
({ children, tag: Tag, className, ...props }: FlexiCellBodyProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { type HTMLAttributes, type ReactNode } from 'react';
|
|
2
|
-
import { type VariantProps } from 'tailwind-variants';
|
|
3
|
-
import { styles } from './flexi-cell-body.styles.js';
|
|
4
2
|
export type BaseFlexiCellBodyProps = {
|
|
5
3
|
/**
|
|
6
4
|
* Children attributes
|
|
@@ -30,5 +28,5 @@ type CircleAsAllOtherTagsProps<Tag> = {
|
|
|
30
28
|
tag?: Tag;
|
|
31
29
|
};
|
|
32
30
|
type ElementKeysWithoutA = keyof Omit<JSX.IntrinsicElements, 'a'>;
|
|
33
|
-
export type FlexiCellBodyProps<Tag extends ElementKeysWithoutA = ElementKeysWithoutA> = (FlexiCellBodyAsLinkProps | CircleAsAllOtherTagsProps<Tag>) & BaseFlexiCellBodyProps
|
|
31
|
+
export type FlexiCellBodyProps<Tag extends ElementKeysWithoutA = ElementKeysWithoutA> = (FlexiCellBodyAsLinkProps | CircleAsAllOtherTagsProps<Tag>) & BaseFlexiCellBodyProps;
|
|
34
32
|
export {};
|
package/dist/components/flexi-cell/components/flexi-cell-button/flexi-cell-button.component.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
import { type FlexiCellButtonProps } from './flexi-cell-button.types.js';
|
|
2
2
|
/** Flexi Cell Button: Flexi Cell Button */
|
|
3
|
-
export declare const FlexiCellButton:
|
|
3
|
+
export declare const FlexiCellButton: {
|
|
4
|
+
({ className, ...props }: FlexiCellButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|