@westpac/ui 0.7.1 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/assets/icons/filled/exit-filled.svg +3 -3
- package/assets/icons/outlined/exit-outlined.svg +3 -3
- package/dist/component-type.json +1 -1
- package/dist/components/accordion/components/accordion-item/accordion-item.styles.d.ts +2 -0
- package/dist/components/accordion/components/accordion-item/accordion-item.styles.js +2 -1
- package/dist/components/alert/alert.styles.js +4 -4
- package/dist/components/badge/badge.styles.js +1 -1
- package/dist/components/breadcrumb/components/breadcrumb-item/breadcrumb-item.component.js +1 -1
- package/dist/components/button/button.styles.js +3 -3
- package/dist/components/button-dropdown/components/panel/panel.styles.js +1 -1
- package/dist/components/compacta/compacta.styles.js +4 -4
- package/dist/components/error-message/error-message.styles.js +2 -2
- 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/form.component.d.ts +1 -1
- package/dist/components/form/form.component.js +1 -2
- package/dist/components/form/form.stories.d.ts +2 -2
- package/dist/components/form/form.types.d.ts +0 -4
- 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-label/form-label.styles.d.ts +1 -1
- package/dist/components/form-label/form-label.styles.js +1 -1
- package/dist/components/icon/components/exit-icon.js +2 -2
- package/dist/components/input-field/components/add-ons/components/icon-add-on/icon-add-on.styles.js +6 -6
- package/dist/components/input-field/components/add-ons/components/text-add-on/text-add-on.styles.js +5 -5
- package/dist/components/list/components/item/item.styles.js +4 -4
- package/dist/components/modal/components/dialog/dialog.styles.js +1 -1
- package/dist/components/pagination/components/pagination-item/pagination-item.styles.d.ts +1 -1
- package/dist/components/pagination/components/pagination-item/pagination-item.styles.js +1 -1
- package/dist/components/panel/panel.styles.js +1 -1
- 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/popover/components/panel/panel.component.d.ts +1 -1
- package/dist/components/popover/components/panel/panel.component.js +39 -5
- package/dist/components/popover/components/panel/panel.styles.js +5 -5
- package/dist/components/popover/components/panel/panel.types.d.ts +12 -2
- package/dist/components/popover/popover.component.d.ts +4 -0
- package/dist/components/popover/popover.component.js +12 -6
- package/dist/components/popover/popover.hooks.d.ts +3 -0
- package/dist/components/popover/popover.hooks.js +37 -0
- package/dist/components/popover/popover.stories.d.ts +9 -5
- package/dist/components/popover/popover.types.d.ts +1 -1
- package/dist/components/progress-bar/progress-bar.styles.js +2 -2
- package/dist/components/repeater/repeater.styles.d.ts +6 -0
- package/dist/components/repeater/repeater.styles.js +10 -7
- package/dist/components/switch/switch.styles.js +1 -1
- package/dist/components/table/components/row/row.styles.js +1 -1
- package/dist/components/tabs/components/tab/tab.styles.d.ts +1 -1
- package/dist/components/tabs/components/tab/tab.styles.js +4 -4
- package/dist/css/westpac-ui.css +551 -373
- package/dist/css/westpac-ui.min.css +551 -373
- package/dist/stories/foundation/spacing.stories.d.ts +15 -0
- package/dist/stories/foundation/typography.stories.d.ts +8 -0
- package/dist/tailwind/__mocks__/utils.constants.d.ts +73 -36
- package/dist/tailwind/__mocks__/utils.constants.js +73 -36
- package/dist/tailwind/constants/spacing.d.ts +2 -36
- package/dist/tailwind/constants/spacing.js +2 -1
- package/dist/tailwind/constants/typography.d.ts +4 -0
- package/dist/tailwind/constants/typography.js +4 -0
- package/dist/tailwind/tailwind-plugin.js +9 -1
- package/dist/tailwind/types/index.d.ts +0 -1
- package/dist/tailwind/types/index.js +0 -1
- package/dist/tailwind/utils/create-spacing.d.ts +2 -3
- package/dist/tailwind/utils/create-spacing.js +7 -7
- package/package.json +4 -2
- package/src/components/accordion/components/accordion-item/accordion-item.styles.ts +1 -0
- package/src/components/alert/alert.styles.ts +4 -4
- package/src/components/badge/badge.styles.ts +1 -1
- package/src/components/breadcrumb/components/breadcrumb-item/breadcrumb-item.component.tsx +1 -1
- package/src/components/button/button.styles.ts +3 -3
- package/src/components/button-dropdown/components/panel/panel.styles.ts +1 -2
- package/src/components/compacta/compacta.styles.ts +4 -4
- package/src/components/error-message/error-message.component.tsx +1 -7
- package/src/components/error-message/error-message.styles.ts +3 -2
- package/src/components/form/components/form-group/form-group.styles.ts +1 -1
- package/src/components/form/form.component.tsx +2 -2
- package/src/components/form/form.types.ts +0 -4
- package/src/components/form-hint/form-hint.styles.ts +1 -1
- package/src/components/form-label/form-label.styles.ts +1 -1
- package/src/components/icon/components/exit-icon.tsx +2 -2
- package/src/components/icon/index.ts +1 -0
- package/src/components/input-field/components/add-ons/components/icon-add-on/icon-add-on.styles.ts +16 -16
- package/src/components/input-field/components/add-ons/components/text-add-on/text-add-on.styles.ts +5 -5
- package/src/components/list/components/item/item.styles.ts +4 -4
- package/src/components/modal/components/dialog/dialog.styles.ts +1 -1
- package/src/components/pagination/components/pagination-item/pagination-item.styles.ts +1 -1
- package/src/components/panel/panel.styles.ts +1 -1
- 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/popover/components/panel/panel.component.tsx +36 -6
- package/src/components/popover/components/panel/panel.styles.ts +5 -5
- package/src/components/popover/components/panel/panel.types.ts +13 -2
- package/src/components/popover/popover.component.tsx +13 -2
- package/src/components/popover/popover.hooks.tsx +56 -0
- package/src/components/popover/popover.types.ts +1 -1
- package/src/components/progress-bar/progress-bar.styles.ts +2 -2
- package/src/components/repeater/repeater.styles.ts +10 -7
- package/src/components/switch/switch.styles.ts +1 -1
- package/src/components/table/components/row/row.styles.ts +1 -1
- package/src/components/tabs/components/tab/tab.styles.ts +4 -4
- package/src/css/global.css +4 -2
- package/src/tailwind/__mocks__/utils.constants.ts +73 -36
- package/src/tailwind/constants/spacing.ts +2 -1
- package/src/tailwind/constants/typography.ts +4 -0
- package/src/tailwind/tailwind-plugin.ts +9 -0
- package/src/tailwind/types/index.ts +0 -1
- package/src/tailwind/utils/create-spacing.ts +9 -13
- package/.storybook/global.css +0 -108
- package/.storybook/main.ts +0 -33
- package/.storybook/manager.ts +0 -6
- package/.storybook/preview.tsx +0 -91
- package/.storybook/theme.ts +0 -9
- package/dist/components/accordion/accordion.stories.js +0 -139
- 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/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 -113
- 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 -386
- package/dist/stories/foundation/theme.stories.js +0 -16
- package/dist/stories/foundation/typography.stories.js +0 -109
- package/dist/tailwind/types/theme.types.d.ts +0 -1
- package/dist/tailwind/types/theme.types.js +0 -1
- package/scaffold/component/scaffold.component.hbs +0 -12
- package/scaffold/component/scaffold.index.hbs +0 -2
- package/scaffold/component/scaffold.spec.hbs +0 -16
- package/scaffold/component/scaffold.stories.hbs +0 -23
- package/scaffold/component/scaffold.styles.hbs +0 -9
- package/scaffold/component/scaffold.types.hbs +0 -12
- package/src/components/accordion/accordion.stories.tsx +0 -144
- 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/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 -131
- package/src/components/table/table.stories.tsx +0 -244
- package/src/components/tabs/tabs.stories.tsx +0 -111
- 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 -380
- package/src/stories/foundation/theme.stories.tsx +0 -29
- package/src/stories/foundation/typography.stories.tsx +0 -93
- package/src/tailwind/types/theme.types.ts +0 -37
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type Meta } from '@storybook/react';
|
|
2
|
+
declare const meta: Meta;
|
|
3
|
+
export default meta;
|
|
4
|
+
/**
|
|
5
|
+
* Margin scale
|
|
6
|
+
*/
|
|
7
|
+
export declare const MarginScale: () => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
/**
|
|
9
|
+
* Padding scale
|
|
10
|
+
*/
|
|
11
|
+
export declare const PaddingScale: () => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
/**
|
|
13
|
+
* Gap scale
|
|
14
|
+
*/
|
|
15
|
+
export declare const GapScale: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -9,3 +9,11 @@ export declare const BrandFont: () => import("react/jsx-runtime").JSX.Element;
|
|
|
9
9
|
* Body fonts
|
|
10
10
|
*/
|
|
11
11
|
export declare const BodyFont: () => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
/**
|
|
13
|
+
* Line height
|
|
14
|
+
*/
|
|
15
|
+
export declare const LineHeight: () => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
/**
|
|
17
|
+
* Fonts weight
|
|
18
|
+
*/
|
|
19
|
+
export declare const FontWeight: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,44 +1,80 @@
|
|
|
1
1
|
export declare const EXPECTED_SPACING: {
|
|
2
|
-
0: string;
|
|
3
|
-
1: string;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
2
|
+
'0': string;
|
|
3
|
+
'1': string;
|
|
4
|
+
'2': string;
|
|
5
|
+
'3': string;
|
|
6
|
+
'4': string;
|
|
7
|
+
'5': string;
|
|
8
|
+
'6': string;
|
|
9
|
+
'7': string;
|
|
10
|
+
'8': string;
|
|
11
|
+
'9': string;
|
|
12
|
+
'10': string;
|
|
13
|
+
'11': string;
|
|
14
|
+
'12': string;
|
|
15
|
+
'13': string;
|
|
16
|
+
'14': string;
|
|
17
|
+
'15': string;
|
|
18
|
+
'16': string;
|
|
19
|
+
'17': string;
|
|
20
|
+
'18': string;
|
|
21
|
+
'19': string;
|
|
22
|
+
'20': string;
|
|
23
|
+
'21': string;
|
|
24
|
+
'22': string;
|
|
25
|
+
'23': string;
|
|
26
|
+
'24': string;
|
|
27
|
+
'25': string;
|
|
28
|
+
'26': string;
|
|
29
|
+
'27': string;
|
|
30
|
+
'28': string;
|
|
31
|
+
'29': string;
|
|
32
|
+
'30': string;
|
|
33
|
+
'31': string;
|
|
34
|
+
'32': string;
|
|
35
|
+
'33': string;
|
|
36
|
+
'34': string;
|
|
37
|
+
'35': string;
|
|
38
|
+
'0.5': string;
|
|
39
|
+
'1.5': string;
|
|
40
|
+
'2.5': string;
|
|
41
|
+
'3.5': string;
|
|
42
|
+
'4.5': string;
|
|
43
|
+
'5.5': string;
|
|
44
|
+
'6.5': string;
|
|
45
|
+
'7.5': string;
|
|
46
|
+
'8.5': string;
|
|
47
|
+
'9.5': string;
|
|
48
|
+
'10.5': string;
|
|
49
|
+
'11.5': string;
|
|
50
|
+
'12.5': string;
|
|
51
|
+
'13.5': string;
|
|
52
|
+
'14.5': string;
|
|
53
|
+
'15.5': string;
|
|
54
|
+
'16.5': string;
|
|
55
|
+
'17.5': string;
|
|
56
|
+
'18.5': string;
|
|
57
|
+
'19.5': string;
|
|
58
|
+
'20.5': string;
|
|
59
|
+
'21.5': string;
|
|
60
|
+
'22.5': string;
|
|
61
|
+
'23.5': string;
|
|
62
|
+
'24.5': string;
|
|
63
|
+
'25.5': string;
|
|
64
|
+
'26.5': string;
|
|
65
|
+
'27.5': string;
|
|
66
|
+
'28.5': string;
|
|
67
|
+
'29.5': string;
|
|
68
|
+
'30.5': string;
|
|
69
|
+
'31.5': string;
|
|
70
|
+
'32.5': string;
|
|
71
|
+
'33.5': string;
|
|
72
|
+
'34.5': string;
|
|
38
73
|
};
|
|
39
74
|
export declare const EXPECTED_FONT_SIZES_VARS: {
|
|
40
75
|
'body-1': string;
|
|
41
76
|
'body-10': string;
|
|
77
|
+
'body-11': string;
|
|
42
78
|
'body-2': string;
|
|
43
79
|
'body-3': string;
|
|
44
80
|
'body-4': string;
|
|
@@ -49,6 +85,7 @@ export declare const EXPECTED_FONT_SIZES_VARS: {
|
|
|
49
85
|
'body-9': string;
|
|
50
86
|
'brand-1': string;
|
|
51
87
|
'brand-10': string;
|
|
88
|
+
'brand-11': string;
|
|
52
89
|
'brand-2': string;
|
|
53
90
|
'brand-3': string;
|
|
54
91
|
'brand-4': string;
|
|
@@ -1,44 +1,80 @@
|
|
|
1
1
|
export const EXPECTED_SPACING = {
|
|
2
|
-
0: '
|
|
3
|
-
1: '0.375rem',
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
2
|
+
'0': '0rem',
|
|
3
|
+
'1': '0.375rem',
|
|
4
|
+
'2': '0.75rem',
|
|
5
|
+
'3': '1.125rem',
|
|
6
|
+
'4': '1.5rem',
|
|
7
|
+
'5': '1.875rem',
|
|
8
|
+
'6': '2.25rem',
|
|
9
|
+
'7': '2.625rem',
|
|
10
|
+
'8': '3rem',
|
|
11
|
+
'9': '3.375rem',
|
|
12
|
+
'10': '3.75rem',
|
|
13
|
+
'11': '4.125rem',
|
|
14
|
+
'12': '4.5rem',
|
|
15
|
+
'13': '4.875rem',
|
|
16
|
+
'14': '5.25rem',
|
|
17
|
+
'15': '5.625rem',
|
|
18
|
+
'16': '6rem',
|
|
19
|
+
'17': '6.375rem',
|
|
20
|
+
'18': '6.75rem',
|
|
21
|
+
'19': '7.125rem',
|
|
22
|
+
'20': '7.5rem',
|
|
23
|
+
'21': '7.875rem',
|
|
24
|
+
'22': '8.25rem',
|
|
25
|
+
'23': '8.625rem',
|
|
26
|
+
'24': '9rem',
|
|
27
|
+
'25': '9.375rem',
|
|
28
|
+
'26': '9.75rem',
|
|
29
|
+
'27': '10.125rem',
|
|
30
|
+
'28': '10.5rem',
|
|
31
|
+
'29': '10.875rem',
|
|
32
|
+
'30': '11.25rem',
|
|
33
|
+
'31': '11.625rem',
|
|
34
|
+
'32': '12rem',
|
|
35
|
+
'33': '12.375rem',
|
|
36
|
+
'34': '12.75rem',
|
|
37
|
+
'35': '13.125rem',
|
|
38
|
+
'0.5': '0.1875rem',
|
|
39
|
+
'1.5': '0.5625rem',
|
|
40
|
+
'2.5': '0.9375rem',
|
|
41
|
+
'3.5': '1.3125rem',
|
|
42
|
+
'4.5': '1.6875rem',
|
|
43
|
+
'5.5': '2.0625rem',
|
|
44
|
+
'6.5': '2.4375rem',
|
|
45
|
+
'7.5': '2.8125rem',
|
|
46
|
+
'8.5': '3.1875rem',
|
|
47
|
+
'9.5': '3.5625rem',
|
|
48
|
+
'10.5': '3.9375rem',
|
|
49
|
+
'11.5': '4.3125rem',
|
|
50
|
+
'12.5': '4.6875rem',
|
|
51
|
+
'13.5': '5.0625rem',
|
|
52
|
+
'14.5': '5.4375rem',
|
|
53
|
+
'15.5': '5.8125rem',
|
|
54
|
+
'16.5': '6.1875rem',
|
|
55
|
+
'17.5': '6.5625rem',
|
|
56
|
+
'18.5': '6.9375rem',
|
|
57
|
+
'19.5': '7.3125rem',
|
|
58
|
+
'20.5': '7.6875rem',
|
|
59
|
+
'21.5': '8.0625rem',
|
|
60
|
+
'22.5': '8.4375rem',
|
|
61
|
+
'23.5': '8.8125rem',
|
|
62
|
+
'24.5': '9.1875rem',
|
|
63
|
+
'25.5': '9.5625rem',
|
|
64
|
+
'26.5': '9.9375rem',
|
|
65
|
+
'27.5': '10.3125rem',
|
|
66
|
+
'28.5': '10.6875rem',
|
|
67
|
+
'29.5': '11.0625rem',
|
|
68
|
+
'30.5': '11.4375rem',
|
|
69
|
+
'31.5': '11.8125rem',
|
|
70
|
+
'32.5': '12.1875rem',
|
|
71
|
+
'33.5': '12.5625rem',
|
|
72
|
+
'34.5': '12.9375rem'
|
|
38
73
|
};
|
|
39
74
|
export const EXPECTED_FONT_SIZES_VARS = {
|
|
40
75
|
'body-1': '3.75rem',
|
|
41
76
|
'body-10': '0.875rem',
|
|
77
|
+
'body-11': '0.875rem',
|
|
42
78
|
'body-2': '3.375rem',
|
|
43
79
|
'body-3': '3rem',
|
|
44
80
|
'body-4': '2.625rem',
|
|
@@ -49,6 +85,7 @@ export const EXPECTED_FONT_SIZES_VARS = {
|
|
|
49
85
|
'body-9': '1rem',
|
|
50
86
|
'brand-1': '3.75rem',
|
|
51
87
|
'brand-10': '0.875rem',
|
|
88
|
+
'brand-11': '0.875rem',
|
|
52
89
|
'brand-2': '3.375rem',
|
|
53
90
|
'brand-3': '3rem',
|
|
54
91
|
'brand-4': '2.625rem',
|
|
@@ -1,41 +1,7 @@
|
|
|
1
1
|
export declare const SPACING_LENGTH = 35;
|
|
2
2
|
export declare const SPACING_UNIT = 6;
|
|
3
3
|
export declare const SPACING_SCALE = 16;
|
|
4
|
+
export declare const ADD_MINOR_SCALE = true;
|
|
4
5
|
export declare const SPACING: {
|
|
5
|
-
|
|
6
|
-
1: string;
|
|
7
|
-
2: string;
|
|
8
|
-
22: string;
|
|
9
|
-
3: string;
|
|
10
|
-
4: string;
|
|
11
|
-
5: string;
|
|
12
|
-
6: string;
|
|
13
|
-
7: string;
|
|
14
|
-
8: string;
|
|
15
|
-
9: string;
|
|
16
|
-
10: string;
|
|
17
|
-
11: string;
|
|
18
|
-
12: string;
|
|
19
|
-
13: string;
|
|
20
|
-
14: string;
|
|
21
|
-
15: string;
|
|
22
|
-
16: string;
|
|
23
|
-
17: string;
|
|
24
|
-
18: string;
|
|
25
|
-
19: string;
|
|
26
|
-
20: string;
|
|
27
|
-
31: string;
|
|
28
|
-
26: string;
|
|
29
|
-
32: string;
|
|
30
|
-
28: string;
|
|
31
|
-
25: string;
|
|
32
|
-
34: string;
|
|
33
|
-
35: string;
|
|
34
|
-
30: string;
|
|
35
|
-
21: string;
|
|
36
|
-
23: string;
|
|
37
|
-
24: string;
|
|
38
|
-
27: string;
|
|
39
|
-
29: string;
|
|
40
|
-
33: string;
|
|
6
|
+
[x: number]: string;
|
|
41
7
|
};
|
|
@@ -2,4 +2,5 @@ import { createSpacing } from '../utils/create-spacing.js';
|
|
|
2
2
|
export const SPACING_LENGTH = 35;
|
|
3
3
|
export const SPACING_UNIT = 6;
|
|
4
4
|
export const SPACING_SCALE = 16;
|
|
5
|
-
export const
|
|
5
|
+
export const ADD_MINOR_SCALE = true;
|
|
6
|
+
export const SPACING = createSpacing(SPACING_UNIT, SPACING_SCALE, ADD_MINOR_SCALE);
|
|
@@ -42,7 +42,11 @@ export const WestpacUIKitBasePlugin = plugin(({ addComponents , addUtilities , a
|
|
|
42
42
|
extend: {
|
|
43
43
|
lineHeight: {
|
|
44
44
|
tight: '1.2',
|
|
45
|
-
normal: '1.4'
|
|
45
|
+
normal: '1.4',
|
|
46
|
+
loose: '1.428571429'
|
|
47
|
+
},
|
|
48
|
+
borderRadius: {
|
|
49
|
+
DEFAULT: '0.1875rem'
|
|
46
50
|
},
|
|
47
51
|
borderWidth: {
|
|
48
52
|
5: '0.3125rem'
|
|
@@ -123,6 +127,10 @@ export const WestpacUIKitBasePlugin = plugin(({ addComponents , addUtilities , a
|
|
|
123
127
|
10: {
|
|
124
128
|
fontSize: '0.875rem',
|
|
125
129
|
lineHeight: 'normal'
|
|
130
|
+
},
|
|
131
|
+
11: {
|
|
132
|
+
fontSize: '0.875rem',
|
|
133
|
+
lineHeight: 'loose'
|
|
126
134
|
}
|
|
127
135
|
},
|
|
128
136
|
formControl: {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export declare const createSpacing: (spacingUnit: number, spacingScale: number) => SpacingRecord;
|
|
1
|
+
type SpacingRecord = Record<number, string>;
|
|
2
|
+
export declare const createSpacing: (spacingUnit: number, spacingScale: number, addMinorScale: boolean) => SpacingRecord;
|
|
4
3
|
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export const createSpacing = (spacingUnit, spacingScale)=>{
|
|
1
|
+
export const createSpacing = (spacingUnit, spacingScale, addMinorScale)=>{
|
|
2
2
|
return Array.from({
|
|
3
|
-
length:
|
|
3
|
+
length: 36
|
|
4
4
|
}).reduce((spacing, _, i)=>{
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
spacing[i] = `${i * spacingUnit / spacingScale}rem`;
|
|
6
|
+
if (addMinorScale && i < 35) {
|
|
7
|
+
spacing[i + 0.5] = `${(i + 0.5) * spacingUnit / spacingScale}rem`;
|
|
8
|
+
}
|
|
7
9
|
return spacing;
|
|
8
|
-
}, {
|
|
9
|
-
0: '0'
|
|
10
|
-
});
|
|
10
|
+
}, {});
|
|
11
11
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@westpac/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"type": "module",
|
|
@@ -40,11 +40,13 @@
|
|
|
40
40
|
},
|
|
41
41
|
"files": [
|
|
42
42
|
"*",
|
|
43
|
+
"!.storybook",
|
|
43
44
|
"!coverage",
|
|
45
|
+
"!scaffold",
|
|
44
46
|
"!stories",
|
|
45
47
|
"!vitest.setup.ts",
|
|
46
48
|
"!vitest.config.ts",
|
|
47
|
-
"!**/*.{test,spec}.{ts,tsx,js,jsx}"
|
|
49
|
+
"!**/*.{test,spec,stories}.{ts,tsx,js,jsx}"
|
|
48
50
|
],
|
|
49
51
|
"devDependencies": {
|
|
50
52
|
"@react-types/tabs": "~3.3.0",
|
|
@@ -3,11 +3,11 @@ import { tv } from 'tailwind-variants';
|
|
|
3
3
|
export const styles = tv(
|
|
4
4
|
{
|
|
5
5
|
slots: {
|
|
6
|
-
base: 'typography-body-10
|
|
7
|
-
icon: '
|
|
8
|
-
body: '
|
|
6
|
+
base: 'typography-body-10 relative mb-4 xsl:flex',
|
|
7
|
+
icon: 'float-left mr-1 flex-none xsl:mr-2',
|
|
8
|
+
body: 'relative flex-1 overflow-hidden xsl:top-[0.125rem] [&_a]:underline',
|
|
9
9
|
heading: 'typography-body-9 mb-2 font-bold',
|
|
10
|
-
close: 'absolute right-
|
|
10
|
+
close: 'absolute right-0.5 top-0.5 p-1 hover:opacity-80',
|
|
11
11
|
},
|
|
12
12
|
variants: {
|
|
13
13
|
look: {
|
|
@@ -24,7 +24,7 @@ export const styles = tv(
|
|
|
24
24
|
},
|
|
25
25
|
type: {
|
|
26
26
|
pill: 'typography-body-10 rounded-xl px-[0.4375rem] py-[0.25rem] font-bold leading-none',
|
|
27
|
-
default: 'rounded-sm px-1 py-
|
|
27
|
+
default: 'rounded-sm px-1 py-0.5 pb-[0.125rem] text-[0.75rem] leading-none',
|
|
28
28
|
},
|
|
29
29
|
},
|
|
30
30
|
},
|
|
@@ -39,7 +39,7 @@ export function BaseBreadcrumbItem(
|
|
|
39
39
|
{children}
|
|
40
40
|
</FinalTag>
|
|
41
41
|
{!isCurrent && (
|
|
42
|
-
<span aria-hidden="true" className="flex items-center px-
|
|
42
|
+
<span aria-hidden="true" className="flex items-center px-0.5">
|
|
43
43
|
<ArrowRightIcon size="small" className="inline-block" color="primary" />
|
|
44
44
|
</span>
|
|
45
45
|
)}
|
|
@@ -14,10 +14,10 @@ export const styles = tv(
|
|
|
14
14
|
},
|
|
15
15
|
variants: {
|
|
16
16
|
size: {
|
|
17
|
-
small: { base: 'typography-body-10 px-2 pb-[0.25rem] pt-
|
|
17
|
+
small: { base: 'typography-body-10 px-2 pb-[0.25rem] pt-0.5 active-theme-rams:before:h-[0.0625rem]' },
|
|
18
18
|
medium: { base: 'typography-body-9 px-2 py-[0.3125rem] active-theme-rams:before:h-[0.125rem]' },
|
|
19
|
-
large: { base: 'typography-body-9 px-
|
|
20
|
-
xlarge: { base: 'typography-body-8 px-3 pb-[0.625rem] pt-
|
|
19
|
+
large: { base: 'typography-body-9 px-2.5 py-[0.5rem] active-theme-rams:before:h-0.5' },
|
|
20
|
+
xlarge: { base: 'typography-body-8 px-3 pb-[0.625rem] pt-1.5 active-theme-rams:before:h-[0.25rem]' },
|
|
21
21
|
},
|
|
22
22
|
look: {
|
|
23
23
|
primary: {
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { tv } from 'tailwind-variants';
|
|
2
2
|
|
|
3
|
-
// eslint-disable-next-line tailwindcss/no-custom-classname
|
|
4
3
|
export const styles = tv(
|
|
5
4
|
{
|
|
6
5
|
slots: {
|
|
7
|
-
base: 'mt-
|
|
6
|
+
base: 'mt-0.5 rounded border border-border bg-white p-2 shadow-[0_0.375rem_0.75rem_rgba(0,0,0,0.175)]',
|
|
8
7
|
dialog: '',
|
|
9
8
|
},
|
|
10
9
|
variants: {
|
|
@@ -4,17 +4,17 @@ export const styles = tv(
|
|
|
4
4
|
{
|
|
5
5
|
slots: {
|
|
6
6
|
base: '',
|
|
7
|
-
item: '
|
|
8
|
-
header: '
|
|
7
|
+
item: 'mb-2 overflow-hidden rounded border border-borderDark',
|
|
8
|
+
header: 'bg-white px-3 py-2.5 text-text',
|
|
9
9
|
headerTitle: 'flex min-w-0 flex-1 items-center',
|
|
10
10
|
primaryHeading: 'flex w-full',
|
|
11
|
-
secondaryHeading: '
|
|
11
|
+
secondaryHeading: 'flex min-w-0 flex-1 items-center pl-4 text-muted',
|
|
12
12
|
itemIndex: 'typography-body-9 mr-1 w-3 flex-none font-bold',
|
|
13
13
|
removeBtn: 'mt-[0.875rem] h-auto p-0 no-underline hover:underline',
|
|
14
14
|
addBtn: 'h-auto p-0 no-underline hover:underline',
|
|
15
15
|
toggleBtn: 'p-0',
|
|
16
16
|
collapsible: '',
|
|
17
|
-
content: 'xsl:pl-
|
|
17
|
+
content: 'px-3 pb-5 pt-0 xsl:pl-9',
|
|
18
18
|
footer: '',
|
|
19
19
|
titlePrimary: 'typography-body-9 font-bold',
|
|
20
20
|
titleSecondary: 'mt-1 items-center',
|
|
@@ -13,13 +13,7 @@ export function ErrorMessage({ className, tag: Tag = 'div', icon: Icon, message,
|
|
|
13
13
|
<ul className={styles.list({})} {...props}>
|
|
14
14
|
{message.map(msg => (
|
|
15
15
|
<li className={styles.base({ className })}>
|
|
16
|
-
<FinalIcon
|
|
17
|
-
copyrightYear="2023"
|
|
18
|
-
className={styles.icon({})}
|
|
19
|
-
size="xsmall"
|
|
20
|
-
look="outlined"
|
|
21
|
-
// color="inherit"
|
|
22
|
-
/>
|
|
16
|
+
<FinalIcon copyrightYear="2023" className={styles.icon({})} size="xsmall" look="outlined" />
|
|
23
17
|
{msg}
|
|
24
18
|
</li>
|
|
25
19
|
))}
|
|
@@ -2,8 +2,9 @@ import { tv } from 'tailwind-variants';
|
|
|
2
2
|
|
|
3
3
|
export const styles = tv({
|
|
4
4
|
slots: {
|
|
5
|
-
base: 'typography-body-
|
|
5
|
+
base: 'typography-body-11 flex items-center text-danger',
|
|
6
6
|
list: 'mb-2 flex flex-col gap-1',
|
|
7
|
-
|
|
7
|
+
// below should be em rather than rem based on old GEL
|
|
8
|
+
icon: 'mr-[0.5em] align-top',
|
|
8
9
|
},
|
|
9
10
|
});
|
|
@@ -14,9 +14,9 @@ const FormContext = createContext<FormContextValue | null>(null);
|
|
|
14
14
|
|
|
15
15
|
export const useFormContext = () => useContext(FormContext) || {};
|
|
16
16
|
|
|
17
|
-
export function Form({ children,
|
|
17
|
+
export function Form({ children, spacing = 'medium', inline = false, ...props }: FormProps) {
|
|
18
18
|
return (
|
|
19
|
-
<FormContext.Provider value={{ inline,
|
|
19
|
+
<FormContext.Provider value={{ inline, spacing }}>
|
|
20
20
|
<form {...props}>{children}</form>
|
|
21
21
|
</FormContext.Provider>
|
|
22
22
|
);
|
|
@@ -7,11 +7,11 @@ export function ExitIcon({ 'aria-label': ariaLabel = 'Exit', copyrightYear = '20
|
|
|
7
7
|
return (
|
|
8
8
|
<Icon aria-label={ariaLabel} copyrightYear={copyrightYear} {...props}>
|
|
9
9
|
<path
|
|
10
|
-
d="M3.51677
|
|
10
|
+
d="M3.51677 3.50981C8.20277 -1.17618 15.8008 -1.17671 20.4873 3.50981L19.0731 4.92403C15.1679 1.01878 8.83623 1.01878 4.93098 4.92403C1.02573 8.82928 1.02573 15.1609 4.93098 19.0662C8.83624 22.9714 15.1679 22.9714 19.0731 19.0662L20.4873 20.4804C15.8013 25.1664 8.2033 25.1669 3.51677 20.4804C-1.16976 15.7938 -1.16922 8.19581 3.51677 3.50981Z"
|
|
11
11
|
fill="currentColor"
|
|
12
12
|
/>
|
|
13
13
|
<path
|
|
14
|
-
d="M16.9117
|
|
14
|
+
d="M16.9117 16.2479L20.1525 13.0071H12L12.0391 11.0071L20.1562 11.0071L16.9118 7.76266L18.326 6.34844L24 12L18.326 17.6621L16.9117 16.2479Z"
|
|
15
15
|
fill="currentColor"
|
|
16
16
|
/>
|
|
17
17
|
</Icon>
|