@westpac/ui 0.7.0 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -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.stories.js +37 -29
- package/dist/components/accordion/accordion.styles.d.ts +1 -9
- package/dist/components/accordion/accordion.styles.js +1 -5
- 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 +5 -5
- 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-group/button-group.component.js +1 -0
- 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/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.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.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.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.js +1 -0
- package/dist/components/form/form.types.d.ts +9 -0
- package/dist/components/form-hint/form-hint.types.d.ts +1 -3
- 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.scenarios.stories.js +2 -2
- 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.stories.js +1 -1
- package/dist/components/pagination/pagination.styles.js +1 -1
- package/dist/components/pagination/pagination.types.d.ts +1 -3
- package/dist/components/pictogram/pictogram.types.d.ts +1 -3
- 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.js +2 -2
- 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.stories.js +62 -3
- 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.types.d.ts +7 -1
- package/dist/css/westpac-ui.css +67 -392
- package/dist/css/westpac-ui.min.css +67 -392
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/stories/foundation/colours.stories.js +0 -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 +13 -8
- package/src/components/accordion/accordion.component.tsx +5 -8
- package/src/components/accordion/accordion.stories.tsx +40 -31
- package/src/components/accordion/accordion.styles.ts +1 -5
- 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 +5 -5
- 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-group/button-group.component.tsx +2 -0
- 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/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.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.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.types.ts +1 -5
- package/src/components/form/components/form-section/form-section.types.ts +7 -2
- package/src/components/form/form.component.tsx +2 -0
- package/src/components/form/form.types.ts +9 -0
- package/src/components/form-hint/form-hint.types.ts +1 -5
- 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.scenarios.stories.tsx +2 -2
- 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.stories.tsx +1 -1
- package/src/components/pagination/pagination.styles.ts +1 -1
- package/src/components/pagination/pagination.types.ts +0 -3
- package/src/components/pictogram/pictogram.types.ts +1 -4
- 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 +2 -2
- 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.stories.tsx +66 -8
- 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.stories.tsx +0 -1
- 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.types.tsx +7 -2
- package/src/index.ts +1 -0
- package/src/stories/foundation/colours.stories.tsx +0 -1
- 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/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/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
|
@@ -3,34 +3,7 @@ import { type InputProps } from './input.types.js';
|
|
|
3
3
|
export declare function BaseInput({ className, size, invalid, ...props }: InputProps, ref: ForwardedRef<HTMLInputElement>): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export declare const Input: React.ForwardRefExoticComponent<{
|
|
5
5
|
invalid?: boolean | undefined;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
large: string;
|
|
11
|
-
xlarge: string;
|
|
12
|
-
};
|
|
13
|
-
invalid: {
|
|
14
|
-
true: string;
|
|
15
|
-
false: string;
|
|
16
|
-
};
|
|
17
|
-
isFocused: {
|
|
18
|
-
true: string;
|
|
19
|
-
};
|
|
20
|
-
}, undefined, "form-control read-only:form-control-disabled disabled:form-control-disabled flex-1 group-[.input-field-after]:rounded-r-none group-[.input-field-before]:rounded-l-none group-[.input-field-after]:border-r-0 group-[.input-field-before]:border-l-0", {
|
|
21
|
-
responsiveVariants: string[];
|
|
22
|
-
}, {
|
|
23
|
-
size: {
|
|
24
|
-
small: string;
|
|
25
|
-
medium: string;
|
|
26
|
-
large: string;
|
|
27
|
-
xlarge: string;
|
|
28
|
-
};
|
|
29
|
-
invalid: {
|
|
30
|
-
true: string;
|
|
31
|
-
false: string;
|
|
32
|
-
};
|
|
33
|
-
isFocused: {
|
|
34
|
-
true: string;
|
|
35
|
-
};
|
|
36
|
-
}, undefined>>, "invalid"> & Omit<React.InputHTMLAttributes<HTMLInputElement>, "size"> & React.RefAttributes<HTMLInputElement>>;
|
|
6
|
+
size?: "small" | "medium" | "large" | "xlarge" | {
|
|
7
|
+
[x: string]: "small" | "medium" | "large" | "xlarge" | undefined;
|
|
8
|
+
} | undefined;
|
|
9
|
+
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, "size"> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -12,7 +12,7 @@ export declare const styles: import("tailwind-variants").TVReturnType<{
|
|
|
12
12
|
isFocused: {
|
|
13
13
|
true: string;
|
|
14
14
|
};
|
|
15
|
-
}, undefined, "form-control read-only:form-control-disabled disabled:form-control-disabled
|
|
15
|
+
}, undefined, "form-control flex-1 read-only:form-control-disabled disabled:form-control-disabled group-[.input-field-after]:rounded-r-none group-[.input-field-before]:rounded-l-none group-[.input-field-after]:border-r-0 group-[.input-field-before]:border-l-0", {
|
|
16
16
|
responsiveVariants: string[];
|
|
17
17
|
}, {
|
|
18
18
|
size: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { tv } from 'tailwind-variants';
|
|
2
2
|
export const styles = tv({
|
|
3
|
-
base: 'form-control read-only:form-control-disabled disabled:form-control-disabled
|
|
3
|
+
base: 'form-control flex-1 read-only:form-control-disabled disabled:form-control-disabled group-[.input-field-after]:rounded-r-none group-[.input-field-before]:rounded-l-none group-[.input-field-after]:border-r-0 group-[.input-field-before]:border-l-0',
|
|
4
4
|
variants: {
|
|
5
5
|
size: {
|
|
6
6
|
small: 'form-control-small group-[.input-field-inset-after]:pr-6 group-[.input-field-inset-before]:pl-6',
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
import { InputHTMLAttributes } from 'react';
|
|
2
2
|
import { type VariantProps } from 'tailwind-variants';
|
|
3
3
|
import { styles } from './input.styles.js';
|
|
4
|
+
type Variants = VariantProps<typeof styles>;
|
|
4
5
|
export type InputProps = {
|
|
6
|
+
/**
|
|
7
|
+
* Whether the input is invalid
|
|
8
|
+
*/
|
|
5
9
|
invalid?: boolean;
|
|
6
|
-
|
|
10
|
+
/**
|
|
11
|
+
* Size of input
|
|
12
|
+
*/
|
|
13
|
+
size?: Variants['size'];
|
|
14
|
+
} & Omit<InputHTMLAttributes<HTMLInputElement>, 'size'>;
|
|
15
|
+
export {};
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
|
-
import { type VariantProps } from 'tailwind-variants';
|
|
3
2
|
import { AddOnProps } from '../../add-ons.types.js';
|
|
4
|
-
|
|
5
|
-
export type DefaultAddOnProps = AddOnProps & VariantProps<typeof styles> & HTMLAttributes<Element>;
|
|
3
|
+
export type DefaultAddOnProps = AddOnProps & HTMLAttributes<Element>;
|
package/dist/components/input-field/components/add-ons/components/icon-add-on/icon-add-on.types.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
|
-
import { type VariantProps } from 'tailwind-variants';
|
|
3
2
|
import { type AddOnProps } from '../../add-ons.types.js';
|
|
4
|
-
|
|
5
|
-
export type IconAddOnProps = AddOnProps & VariantProps<typeof styles> & HTMLAttributes<Element>;
|
|
3
|
+
export type IconAddOnProps = AddOnProps & HTMLAttributes<Element>;
|
package/dist/components/input-field/components/add-ons/components/text-add-on/text-add-on.types.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
|
-
import { type VariantProps } from 'tailwind-variants';
|
|
3
2
|
import { AddOnProps } from '../../add-ons.types.js';
|
|
4
|
-
|
|
5
|
-
export type TextAddOnProps = AddOnProps & VariantProps<typeof styles> & HTMLAttributes<Element>;
|
|
3
|
+
export type TextAddOnProps = AddOnProps & HTMLAttributes<Element>;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
|
-
import { type VariantProps } from 'tailwind-variants';
|
|
3
|
-
import { styles } from './supporting-text.styles.js';
|
|
4
2
|
export type SupportingTextProps = {
|
|
5
3
|
/**
|
|
6
4
|
* Tag to render
|
|
7
5
|
*/
|
|
8
6
|
tag?: keyof JSX.IntrinsicElements;
|
|
9
|
-
} &
|
|
7
|
+
} & HTMLAttributes<Element>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useCallback, useMemo, useState } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { ClearIcon, RefreshIcon, SearchIcon, VisibilityIcon, VisibilityOffIcon } from '../icon/index.js';
|
|
3
3
|
import { Button, Input, Select, Textarea } from '../index.js';
|
|
4
4
|
import { InputField } from './input-field.component.js';
|
|
5
5
|
const meta = {
|
|
@@ -68,7 +68,7 @@ export const SearchWithLeftIconAndClearButton = {
|
|
|
68
68
|
element: React.createElement(Button, {
|
|
69
69
|
onClick: clearInput,
|
|
70
70
|
look: "link",
|
|
71
|
-
iconAfter:
|
|
71
|
+
iconAfter: ClearIcon,
|
|
72
72
|
iconColor: "muted"
|
|
73
73
|
})
|
|
74
74
|
}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
|
-
import { type VariantProps } from 'tailwind-variants';
|
|
3
2
|
import { type IconProps } from '../icon/index.js';
|
|
4
|
-
import { styles } from './input-field.styles.js';
|
|
5
3
|
export type Composition = Record<'before' | 'after', string | null>;
|
|
6
4
|
export type Sizes = 'small' | 'medium' | 'large' | 'xlarge';
|
|
7
5
|
export type InputFieldContextType = {
|
|
@@ -62,4 +60,4 @@ export type InputFieldProps = {
|
|
|
62
60
|
* Tag to render
|
|
63
61
|
*/
|
|
64
62
|
tag?: keyof JSX.IntrinsicElements;
|
|
65
|
-
}
|
|
63
|
+
};
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" resolution-mode="require"/>
|
|
2
2
|
import { type AriaModalOverlayProps } from 'react-aria';
|
|
3
3
|
import { type OverlayTriggerState } from 'react-stately';
|
|
4
|
-
import { type VariantProps } from 'tailwind-variants';
|
|
5
|
-
import { styles } from './backdrop.styles.js';
|
|
6
4
|
export type BackdropProps = {
|
|
7
5
|
/**
|
|
8
6
|
* Inner part of backdrop
|
|
@@ -24,4 +22,4 @@ export type BackdropProps = {
|
|
|
24
22
|
* zIndex of content inside
|
|
25
23
|
*/
|
|
26
24
|
zIndex?: number;
|
|
27
|
-
} &
|
|
25
|
+
} & AriaModalOverlayProps;
|
package/dist/components/modal/components/dialog/components/dialog-body/dialog-body.types.d.ts
CHANGED
|
@@ -1,4 +1,2 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
|
-
|
|
3
|
-
import { styles } from './dialog-body.styles.js';
|
|
4
|
-
export type DialogBodyProps = VariantProps<typeof styles> & HTMLAttributes<HTMLElement>;
|
|
2
|
+
export type DialogBodyProps = HTMLAttributes<HTMLElement>;
|
package/dist/components/modal/components/dialog/components/dialog-footer/dialog-footer.types.d.ts
CHANGED
|
@@ -1,4 +1,2 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
|
-
|
|
3
|
-
import { styles } from './dialog-footer.styles.js';
|
|
4
|
-
export type DialogFooterProps = VariantProps<typeof styles> & HTMLAttributes<HTMLElement>;
|
|
2
|
+
export type DialogFooterProps = HTMLAttributes<HTMLElement>;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { type AriaDialogProps } from 'react-aria';
|
|
3
3
|
import { type VariantProps } from 'tailwind-variants';
|
|
4
4
|
import { styles } from './dialog.styles.js';
|
|
5
|
+
type Variants = VariantProps<typeof styles>;
|
|
5
6
|
export type DialogProps = {
|
|
6
7
|
/**
|
|
7
8
|
* Boolean to wrap all children into a Modal.Body
|
|
@@ -19,8 +20,13 @@ export type DialogProps = {
|
|
|
19
20
|
* onClose callback
|
|
20
21
|
*/
|
|
21
22
|
onClose?: () => unknown;
|
|
23
|
+
/**
|
|
24
|
+
* Size of dialog
|
|
25
|
+
*/
|
|
26
|
+
size?: Variants['size'];
|
|
22
27
|
/**
|
|
23
28
|
* Title for Modal
|
|
24
29
|
*/
|
|
25
30
|
title?: string;
|
|
26
|
-
} &
|
|
31
|
+
} & AriaDialogProps;
|
|
32
|
+
export {};
|
package/dist/components/pagination/components/pagination-item/pagination-item.component.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { type PaginationItemProps } from './pagination-item.types.js';
|
|
2
|
-
export declare function PaginationItem({ className, firstItem, tag: Tag, children, active, disabled, ...props }: PaginationItemProps): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare function PaginationItem({ className, firstItem, lastItem, tag: Tag, children, active, disabled, ...props }: PaginationItemProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -14,11 +14,12 @@ function _extends() {
|
|
|
14
14
|
}
|
|
15
15
|
import React from 'react';
|
|
16
16
|
import { styles } from './pagination-item.styles.js';
|
|
17
|
-
export function PaginationItem({ className , firstItem =false , tag: Tag = 'a' , children , active , disabled =false , ...props }) {
|
|
17
|
+
export function PaginationItem({ className , firstItem =false , lastItem =false , tag: Tag = 'a' , children , active , disabled =false , ...props }) {
|
|
18
18
|
return React.createElement(Tag, _extends({
|
|
19
19
|
className: styles({
|
|
20
20
|
className,
|
|
21
21
|
firstItem,
|
|
22
|
+
lastItem,
|
|
22
23
|
active,
|
|
23
24
|
disabled
|
|
24
25
|
})
|
|
@@ -3,6 +3,10 @@ export declare const styles: import("tailwind-variants").TVReturnType<{
|
|
|
3
3
|
true: string;
|
|
4
4
|
false: string;
|
|
5
5
|
};
|
|
6
|
+
lastItem: {
|
|
7
|
+
true: string;
|
|
8
|
+
false: string;
|
|
9
|
+
};
|
|
6
10
|
active: {
|
|
7
11
|
true: string;
|
|
8
12
|
false: string;
|
|
@@ -11,13 +15,17 @@ export declare const styles: import("tailwind-variants").TVReturnType<{
|
|
|
11
15
|
true: string;
|
|
12
16
|
false: string;
|
|
13
17
|
};
|
|
14
|
-
}, undefined, "typography-body-10 block border
|
|
18
|
+
}, undefined, "typography-body-10 relative block border border-border px-2 py-[0.5625rem] text-center text-text transition-colors", {
|
|
15
19
|
responsiveVariants: string[];
|
|
16
20
|
}, {
|
|
17
21
|
firstItem: {
|
|
18
22
|
true: string;
|
|
19
23
|
false: string;
|
|
20
24
|
};
|
|
25
|
+
lastItem: {
|
|
26
|
+
true: string;
|
|
27
|
+
false: string;
|
|
28
|
+
};
|
|
21
29
|
active: {
|
|
22
30
|
true: string;
|
|
23
31
|
false: string;
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
import { tv } from 'tailwind-variants';
|
|
2
2
|
export const styles = tv({
|
|
3
|
-
base: 'typography-body-10 block border
|
|
3
|
+
base: 'typography-body-10 relative block border border-border px-2 py-[0.5625rem] text-center text-text transition-colors',
|
|
4
4
|
variants: {
|
|
5
5
|
firstItem: {
|
|
6
|
-
true: '
|
|
6
|
+
true: 'rounded-l',
|
|
7
|
+
false: 'ml-[-1px]'
|
|
8
|
+
},
|
|
9
|
+
lastItem: {
|
|
10
|
+
true: 'rounded-r',
|
|
7
11
|
false: ''
|
|
8
12
|
},
|
|
9
13
|
active: {
|
|
10
|
-
true: 'bg-hero text-white',
|
|
14
|
+
true: 'z-10 border-hero bg-hero text-white',
|
|
11
15
|
false: 'hover:bg-light'
|
|
12
16
|
},
|
|
13
17
|
disabled: {
|
|
@@ -1,9 +1,27 @@
|
|
|
1
1
|
import { AnchorHTMLAttributes, ButtonHTMLAttributes, ReactElement } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { VariantProps } from 'tailwind-variants';
|
|
3
3
|
import { styles } from './pagination-item.styles.js';
|
|
4
|
+
type Variants = VariantProps<typeof styles>;
|
|
4
5
|
export type PaginationItemProps = {
|
|
6
|
+
/**
|
|
7
|
+
* Whether item is active
|
|
8
|
+
*/
|
|
9
|
+
active?: Variants['active'];
|
|
10
|
+
/**
|
|
11
|
+
* Whether item is disabled
|
|
12
|
+
*/
|
|
13
|
+
disabled?: Variants['disabled'];
|
|
14
|
+
/**
|
|
15
|
+
* Whether it is the first item
|
|
16
|
+
*/
|
|
17
|
+
firstItem?: Variants['firstItem'];
|
|
18
|
+
/**
|
|
19
|
+
* Whether it is the last item
|
|
20
|
+
*/
|
|
21
|
+
lastItem?: Variants['lastItem'];
|
|
5
22
|
/**
|
|
6
23
|
* Link component to render
|
|
7
24
|
*/
|
|
8
25
|
tag?: 'a' | 'button' | ((...args: any[]) => ReactElement | null);
|
|
9
|
-
} &
|
|
26
|
+
} & (AnchorHTMLAttributes<HTMLAnchorElement> | ButtonHTMLAttributes<HTMLButtonElement>);
|
|
27
|
+
export {};
|
|
@@ -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++){
|
|
@@ -73,7 +74,8 @@ export function Pagination({ className , pages , tag: Tag = 'nav' , role ='navig
|
|
|
73
74
|
const backwardsOnly = (current || 1) >= pages.length;
|
|
74
75
|
const defaultNextProps = {
|
|
75
76
|
disabled: !infinite && backwardsOnly,
|
|
76
|
-
tag: linkComponent
|
|
77
|
+
tag: linkComponent,
|
|
78
|
+
lastItem: true
|
|
77
79
|
};
|
|
78
80
|
if (defaultNextProps.disabled) {
|
|
79
81
|
return {
|
|
@@ -186,7 +186,7 @@ export const UsePaginationDifferentComponents = ()=>{
|
|
|
186
186
|
infinite: true
|
|
187
187
|
});
|
|
188
188
|
return React.createElement("div", {
|
|
189
|
-
className: "flex items-center"
|
|
189
|
+
className: "flex w-[15.625rem] items-center justify-between"
|
|
190
190
|
}, React.createElement(Button, {
|
|
191
191
|
look: "link",
|
|
192
192
|
iconAfter: ArrowLeftIcon,
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
import { type VariantProps } from 'tailwind-variants';
|
|
3
2
|
import { type PaginationItemProps } from './components/index.js';
|
|
4
|
-
import { styles } from './pagination.styles.js';
|
|
5
3
|
export type PageProps = {
|
|
6
4
|
href: string;
|
|
7
5
|
text: ReactNode;
|
|
@@ -58,4 +56,4 @@ export type PaginationProps = {
|
|
|
58
56
|
* Tag to render
|
|
59
57
|
*/
|
|
60
58
|
tag?: keyof JSX.IntrinsicElements;
|
|
61
|
-
} & (PaginationAsLinkProps | PaginationAsButtonProps) &
|
|
59
|
+
} & (PaginationAsLinkProps | PaginationAsButtonProps) & Omit<HTMLAttributes<Element>, 'onChange'>;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { type SVGAttributes } from 'react';
|
|
2
|
-
import { type VariantProps } from 'tailwind-variants';
|
|
3
|
-
import { styles } from './pictogram.styles.js';
|
|
4
2
|
export type PictogramProps = SVGAttributes<SVGElement> & {
|
|
5
3
|
/**
|
|
6
4
|
* SVG copyright year
|
|
@@ -22,4 +20,4 @@ export type PictogramProps = SVGAttributes<SVGElement> & {
|
|
|
22
20
|
* SVG viewBox width
|
|
23
21
|
*/
|
|
24
22
|
viewBoxWidth?: number;
|
|
25
|
-
}
|
|
23
|
+
};
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { type VariantProps } from 'tailwind-variants';
|
|
3
2
|
import { ProgressRopeStepItem } from '../../progress-rope.types.js';
|
|
4
|
-
import { styles } from './progress-rope-group-step.styles.js';
|
|
5
3
|
export type ProgressRopeGroupStepProps = {
|
|
6
4
|
/**
|
|
7
5
|
* Children
|
|
@@ -33,4 +31,4 @@ export type ProgressRopeGroupStepProps = {
|
|
|
33
31
|
steps: (ProgressRopeStepItem & {
|
|
34
32
|
index: number;
|
|
35
33
|
})[];
|
|
36
|
-
}
|
|
34
|
+
};
|
package/dist/components/progress-rope/components/progress-rope-step/progress-rope-step.types.d.ts
CHANGED
|
@@ -2,11 +2,20 @@ import { HTMLAttributes } from 'react';
|
|
|
2
2
|
import { type VariantProps } from 'tailwind-variants';
|
|
3
3
|
import { ProgressRopeStepItem } from '../../progress-rope.types.js';
|
|
4
4
|
import { styles } from './progress-rope-step.styles.js';
|
|
5
|
+
type Variants = VariantProps<typeof styles>;
|
|
5
6
|
export type ProgressRopeStepProps = {
|
|
6
7
|
/**
|
|
7
8
|
* Says it is current
|
|
8
9
|
*/
|
|
9
10
|
current?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Whether step is first item
|
|
13
|
+
*/
|
|
14
|
+
firstItem?: Variants['firstItem'];
|
|
15
|
+
/**
|
|
16
|
+
* Size of step
|
|
17
|
+
*/
|
|
18
|
+
size?: Variants['size'];
|
|
10
19
|
/**
|
|
11
20
|
* Tag to render
|
|
12
21
|
*/
|
|
@@ -15,4 +24,5 @@ export type ProgressRopeStepProps = {
|
|
|
15
24
|
* Says it is visited
|
|
16
25
|
*/
|
|
17
26
|
visited?: boolean;
|
|
18
|
-
} & Omit<ProgressRopeStepItem, 'text'> &
|
|
27
|
+
} & Omit<ProgressRopeStepItem, 'text'> & HTMLAttributes<Element>;
|
|
28
|
+
export {};
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { HTMLAttributes, MouseEventHandler, ReactNode } from 'react';
|
|
2
|
-
import { type VariantProps } from 'tailwind-variants';
|
|
3
|
-
import { styles } from './progress-rope.styles.js';
|
|
4
2
|
export type ProgressRopeStepItem = {
|
|
5
3
|
onClick?: MouseEventHandler<Element>;
|
|
6
4
|
text: ReactNode;
|
|
@@ -32,4 +30,4 @@ export type ProgressRopeProps = {
|
|
|
32
30
|
* Tag to render
|
|
33
31
|
*/
|
|
34
32
|
tag?: keyof JSX.IntrinsicElements;
|
|
35
|
-
} &
|
|
33
|
+
} & HTMLAttributes<Element>;
|
|
@@ -4,8 +4,8 @@ export const styles = tv({
|
|
|
4
4
|
base: 'flex',
|
|
5
5
|
textWrapper: 'flex flex-col justify-center',
|
|
6
6
|
labelText: 'typography-body-10 py-[2px] pl-1',
|
|
7
|
-
hintText: 'typography-body-10 text-muted
|
|
8
|
-
selector: '
|
|
7
|
+
hintText: 'typography-body-10 pl-1 text-muted',
|
|
8
|
+
selector: 'flex h-4 w-4 shrink-0 items-center justify-center rounded-full border border-hero'
|
|
9
9
|
},
|
|
10
10
|
variants: {
|
|
11
11
|
isDisabled: {
|
|
@@ -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++){
|
|
@@ -103,7 +104,7 @@ export function Repeater({ addText ='Add another item' , indexTag: ItemIndex = '
|
|
|
103
104
|
transition: {
|
|
104
105
|
duration: 0.15
|
|
105
106
|
},
|
|
106
|
-
key:
|
|
107
|
+
key: item.id
|
|
107
108
|
}, React.createElement("div", _extends({
|
|
108
109
|
ref: (el)=>{
|
|
109
110
|
refArr.current[index] = el;
|
|
@@ -119,6 +120,7 @@ export function Repeater({ addText ='Add another item' , indexTag: ItemIndex = '
|
|
|
119
120
|
"aria-label": `remove item ${index + 1}`,
|
|
120
121
|
iconBefore: (props)=>React.createElement(RemoveCircleIcon, _extends({}, props, {
|
|
121
122
|
"aria-hidden": true,
|
|
123
|
+
look: "outlined",
|
|
122
124
|
size: "xsmall"
|
|
123
125
|
})),
|
|
124
126
|
look: "link",
|
|
@@ -13,10 +13,10 @@ export const styles = tv({
|
|
|
13
13
|
variants: {
|
|
14
14
|
separator: {
|
|
15
15
|
true: {
|
|
16
|
-
item: 'border-
|
|
16
|
+
item: 'border-t-2 border-neutral pt-[0.625rem]',
|
|
17
17
|
content: 'p-[0_1.125rem_2.625rem]',
|
|
18
18
|
removeBtn: 'relative m-[0_0_1.875rem_1.125rem]',
|
|
19
|
-
footer: 'border-
|
|
19
|
+
footer: 'border-t-2 border-neutral pt-[0.875rem]'
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
22
|
isFocused: {
|
|
@@ -1,36 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export declare const Select: React.ForwardRefExoticComponent<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
true: string;
|
|
11
|
-
false: string;
|
|
12
|
-
};
|
|
13
|
-
isFocused: {
|
|
14
|
-
true: {
|
|
15
|
-
base: string;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
}, undefined, "form-control select-caret disabled:form-control-disabled bg-no-repeat group-[.add-on-after]:rounded-l-none group-[.add-on-before]:rounded-r-none", {
|
|
19
|
-
responsiveVariants: string[];
|
|
20
|
-
}, {
|
|
21
|
-
size: {
|
|
22
|
-
small: string;
|
|
23
|
-
medium: string;
|
|
24
|
-
large: string;
|
|
25
|
-
xlarge: string;
|
|
26
|
-
};
|
|
27
|
-
invalid: {
|
|
28
|
-
true: string;
|
|
29
|
-
false: string;
|
|
30
|
-
};
|
|
31
|
-
isFocused: {
|
|
32
|
-
true: {
|
|
33
|
-
base: string;
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
}, undefined>> & Omit<React.SelectHTMLAttributes<HTMLSelectElement>, "size"> & React.RefAttributes<HTMLSelectElement>>;
|
|
2
|
+
export declare const Select: React.ForwardRefExoticComponent<{
|
|
3
|
+
invalid?: boolean | {
|
|
4
|
+
[x: string]: boolean | undefined;
|
|
5
|
+
} | undefined;
|
|
6
|
+
size?: "small" | "medium" | "large" | "xlarge" | {
|
|
7
|
+
[x: string]: "small" | "medium" | "large" | "xlarge" | undefined;
|
|
8
|
+
} | undefined;
|
|
9
|
+
} & Omit<React.SelectHTMLAttributes<HTMLSelectElement>, "size"> & React.RefAttributes<HTMLSelectElement>>;
|
|
@@ -14,7 +14,7 @@ export declare const styles: import("tailwind-variants").TVReturnType<{
|
|
|
14
14
|
base: string;
|
|
15
15
|
};
|
|
16
16
|
};
|
|
17
|
-
}, undefined, "form-control select-caret disabled:form-control-disabled
|
|
17
|
+
}, undefined, "form-control bg-no-repeat select-caret disabled:form-control-disabled group-[.add-on-after]:rounded-l-none group-[.add-on-before]:rounded-r-none", {
|
|
18
18
|
responsiveVariants: string[];
|
|
19
19
|
}, {
|
|
20
20
|
size: {
|