@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
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { Radio } from './radio.component.js';
|
|
2
|
-
const meta = {
|
|
3
|
-
title: 'Components/RadioGroup/Radio',
|
|
4
|
-
component: Radio,
|
|
5
|
-
tags: [
|
|
6
|
-
'autodocs'
|
|
7
|
-
],
|
|
8
|
-
decorators: [
|
|
9
|
-
(Story)=>React.createElement(Story, null)
|
|
10
|
-
],
|
|
11
|
-
argTypes: {
|
|
12
|
-
isDisabled: {
|
|
13
|
-
description: 'Controls whether individual radio options are disabled or not',
|
|
14
|
-
type: {
|
|
15
|
-
name: 'boolean'
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
export default meta;
|
|
21
|
-
export const Default = {
|
|
22
|
-
args: {
|
|
23
|
-
children: 'Option 1',
|
|
24
|
-
value: 'Option 1'
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
export const Hint = {
|
|
28
|
-
args: {
|
|
29
|
-
children: 'Option 1',
|
|
30
|
-
value: 'Option 1',
|
|
31
|
-
hint: 'Test hint'
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
export const Disabled = {
|
|
35
|
-
args: {
|
|
36
|
-
children: 'Option 1',
|
|
37
|
-
value: 'Option 1',
|
|
38
|
-
isDisabled: true
|
|
39
|
-
}
|
|
40
|
-
};
|
|
@@ -1,215 +0,0 @@
|
|
|
1
|
-
import { RadioGroup } from './radio-group.component.js';
|
|
2
|
-
const meta = {
|
|
3
|
-
title: 'Components/RadioGroup',
|
|
4
|
-
component: RadioGroup,
|
|
5
|
-
tags: [
|
|
6
|
-
'autodocs'
|
|
7
|
-
],
|
|
8
|
-
decorators: [
|
|
9
|
-
(Story)=>React.createElement(Story, null)
|
|
10
|
-
],
|
|
11
|
-
args: {
|
|
12
|
-
label: React.createElement("h2", null, "Test")
|
|
13
|
-
},
|
|
14
|
-
argTypes: {
|
|
15
|
-
orientation: {
|
|
16
|
-
description: "Controls orientation of `Radio` components, can't be applied directly on `Radio` \n\n `'horizontal'` `'vertical'`",
|
|
17
|
-
type: {
|
|
18
|
-
name: 'enum',
|
|
19
|
-
value: [
|
|
20
|
-
'horizontal',
|
|
21
|
-
'vertical'
|
|
22
|
-
]
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
isDisabled: {
|
|
26
|
-
description: 'Controls whether all radio options are disabled or not',
|
|
27
|
-
type: {
|
|
28
|
-
name: 'boolean'
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
label: {
|
|
32
|
-
description: 'Not part of original GEL component but added for compatability with React Aria and accessibility. Styling can be done by passing tag with className as value.'
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
export default meta;
|
|
37
|
-
export const Default = {
|
|
38
|
-
args: {
|
|
39
|
-
children: [
|
|
40
|
-
React.createElement(RadioGroup.Radio, {
|
|
41
|
-
value: "Option 1"
|
|
42
|
-
}, "Option 1"),
|
|
43
|
-
React.createElement(RadioGroup.Radio, {
|
|
44
|
-
value: "Option 2"
|
|
45
|
-
}, "Option 2"),
|
|
46
|
-
React.createElement(RadioGroup.Radio, {
|
|
47
|
-
value: "Option 3"
|
|
48
|
-
}, "Option 3")
|
|
49
|
-
]
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
export const LongLines = {
|
|
53
|
-
args: {
|
|
54
|
-
children: [
|
|
55
|
-
React.createElement(RadioGroup.Radio, {
|
|
56
|
-
value: "Option 1"
|
|
57
|
-
}, "Option 1"),
|
|
58
|
-
React.createElement(RadioGroup.Radio, {
|
|
59
|
-
value: "Option 2"
|
|
60
|
-
}, "Option 2"),
|
|
61
|
-
React.createElement(RadioGroup.Radio, {
|
|
62
|
-
value: "Option 3"
|
|
63
|
-
}, "Lorem ipsum dolor sit amet, consectetur adipisicing elit. Et odit labore illo sint tempora magnam modi nesciunt consectetur vitae maiores itaque reiciendis sunt nisi ullam officiis, provident fugiat, esse iste adipisci repellat! Incidunt delectus, pariatur quaerat vitae aspernatur eveniet libero.")
|
|
64
|
-
]
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
export const DefaultValue = {
|
|
68
|
-
args: {
|
|
69
|
-
children: [
|
|
70
|
-
React.createElement(RadioGroup.Radio, {
|
|
71
|
-
value: "Option 1"
|
|
72
|
-
}, "Option 1"),
|
|
73
|
-
React.createElement(RadioGroup.Radio, {
|
|
74
|
-
value: "Option 2"
|
|
75
|
-
}, "Option 2"),
|
|
76
|
-
React.createElement(RadioGroup.Radio, {
|
|
77
|
-
value: "Option 3"
|
|
78
|
-
}, "Option 3")
|
|
79
|
-
],
|
|
80
|
-
defaultValue: 'Option 1'
|
|
81
|
-
}
|
|
82
|
-
};
|
|
83
|
-
export const Inline = {
|
|
84
|
-
args: {
|
|
85
|
-
children: [
|
|
86
|
-
React.createElement(RadioGroup.Radio, {
|
|
87
|
-
value: "Option 1"
|
|
88
|
-
}, "Option 1"),
|
|
89
|
-
React.createElement(RadioGroup.Radio, {
|
|
90
|
-
value: "Option 2"
|
|
91
|
-
}, "Option 2"),
|
|
92
|
-
React.createElement(RadioGroup.Radio, {
|
|
93
|
-
value: "Option 3"
|
|
94
|
-
}, "Option 3")
|
|
95
|
-
],
|
|
96
|
-
orientation: 'horizontal'
|
|
97
|
-
}
|
|
98
|
-
};
|
|
99
|
-
export const InlineLongLines = {
|
|
100
|
-
args: {
|
|
101
|
-
children: [
|
|
102
|
-
React.createElement(RadioGroup.Radio, {
|
|
103
|
-
value: "Option 1"
|
|
104
|
-
}, "Option 1"),
|
|
105
|
-
React.createElement(RadioGroup.Radio, {
|
|
106
|
-
value: "Option 2"
|
|
107
|
-
}, "Option 2"),
|
|
108
|
-
React.createElement(RadioGroup.Radio, {
|
|
109
|
-
value: "Option 3"
|
|
110
|
-
}, "Lorem ipsum dolor sit amet, consectetur adipisicing elit. Et odit labore illo sint tempora magnam modi nesciunt consectetur vitae maiores itaque reiciendis sunt nisi ullam officiis, provident fugiat, esse iste adipisci repellat! Incidunt delectus, pariatur quaerat vitae aspernatur eveniet libero.")
|
|
111
|
-
],
|
|
112
|
-
orientation: 'horizontal'
|
|
113
|
-
}
|
|
114
|
-
};
|
|
115
|
-
export const Disabled = {
|
|
116
|
-
args: {
|
|
117
|
-
children: [
|
|
118
|
-
React.createElement(RadioGroup.Radio, {
|
|
119
|
-
value: "Option 1"
|
|
120
|
-
}, "Option 1"),
|
|
121
|
-
React.createElement(RadioGroup.Radio, {
|
|
122
|
-
value: "Option 2"
|
|
123
|
-
}, "Option 2"),
|
|
124
|
-
React.createElement(RadioGroup.Radio, {
|
|
125
|
-
value: "Option 3"
|
|
126
|
-
}, "Option 3")
|
|
127
|
-
],
|
|
128
|
-
isDisabled: true
|
|
129
|
-
}
|
|
130
|
-
};
|
|
131
|
-
export const Large = {
|
|
132
|
-
args: {
|
|
133
|
-
children: [
|
|
134
|
-
React.createElement(RadioGroup.Radio, {
|
|
135
|
-
value: "Option 1"
|
|
136
|
-
}, "Option 1"),
|
|
137
|
-
React.createElement(RadioGroup.Radio, {
|
|
138
|
-
value: "Option 2"
|
|
139
|
-
}, "Option 2"),
|
|
140
|
-
React.createElement(RadioGroup.Radio, {
|
|
141
|
-
value: "Option 3"
|
|
142
|
-
}, "Option 3")
|
|
143
|
-
],
|
|
144
|
-
size: 'large'
|
|
145
|
-
}
|
|
146
|
-
};
|
|
147
|
-
export const HiddenOptions = {
|
|
148
|
-
args: {
|
|
149
|
-
children: [
|
|
150
|
-
React.createElement(RadioGroup.Radio, {
|
|
151
|
-
value: "Option 1"
|
|
152
|
-
}, "Option 1"),
|
|
153
|
-
React.createElement(RadioGroup.Radio, {
|
|
154
|
-
value: "Option 2"
|
|
155
|
-
}, "Option 2"),
|
|
156
|
-
React.createElement(RadioGroup.Radio, {
|
|
157
|
-
value: "Option 3"
|
|
158
|
-
}, "Option 3")
|
|
159
|
-
],
|
|
160
|
-
showAmount: 1
|
|
161
|
-
}
|
|
162
|
-
};
|
|
163
|
-
export const HintText = {
|
|
164
|
-
args: {
|
|
165
|
-
children: [
|
|
166
|
-
React.createElement(RadioGroup.Radio, {
|
|
167
|
-
value: "Option 1",
|
|
168
|
-
hint: "This is a hint"
|
|
169
|
-
}, "Option 1"),
|
|
170
|
-
React.createElement(RadioGroup.Radio, {
|
|
171
|
-
value: "Option 2",
|
|
172
|
-
hint: "This is a hint"
|
|
173
|
-
}, "Option 2"),
|
|
174
|
-
React.createElement(RadioGroup.Radio, {
|
|
175
|
-
value: "Option 3",
|
|
176
|
-
hint: "This is a hint"
|
|
177
|
-
}, "Option 3")
|
|
178
|
-
]
|
|
179
|
-
}
|
|
180
|
-
};
|
|
181
|
-
export const OnChange = {
|
|
182
|
-
args: {
|
|
183
|
-
children: [
|
|
184
|
-
React.createElement(RadioGroup.Radio, {
|
|
185
|
-
value: "Option 1"
|
|
186
|
-
}, "Option 1"),
|
|
187
|
-
React.createElement(RadioGroup.Radio, {
|
|
188
|
-
value: "Option 2"
|
|
189
|
-
}, "Option 2"),
|
|
190
|
-
React.createElement(RadioGroup.Radio, {
|
|
191
|
-
value: "Option 3"
|
|
192
|
-
}, "Option 3")
|
|
193
|
-
],
|
|
194
|
-
onChange: (e)=>console.log(e)
|
|
195
|
-
}
|
|
196
|
-
};
|
|
197
|
-
export const ErrorMessageAndLabel = {
|
|
198
|
-
args: {
|
|
199
|
-
label: 'Are you an existing customer?',
|
|
200
|
-
errorMessage: 'This is an inline error message',
|
|
201
|
-
validationState: 'invalid',
|
|
202
|
-
hintMessage: 'Hint: choose from one of the following options',
|
|
203
|
-
children: [
|
|
204
|
-
React.createElement(RadioGroup.Radio, {
|
|
205
|
-
value: "Option 1"
|
|
206
|
-
}, "Option 1"),
|
|
207
|
-
React.createElement(RadioGroup.Radio, {
|
|
208
|
-
value: "Option 2"
|
|
209
|
-
}, "Option 2"),
|
|
210
|
-
React.createElement(RadioGroup.Radio, {
|
|
211
|
-
value: "Option 3"
|
|
212
|
-
}, "Option 3")
|
|
213
|
-
]
|
|
214
|
-
}
|
|
215
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { Form, Input } from '../index.js';
|
|
2
|
-
import { Repeater } from './repeater.component.js';
|
|
3
|
-
const meta = {
|
|
4
|
-
title: 'Components/Repeater',
|
|
5
|
-
component: Repeater,
|
|
6
|
-
tags: [
|
|
7
|
-
'autodocs'
|
|
8
|
-
],
|
|
9
|
-
decorators: [
|
|
10
|
-
(Story)=>React.createElement(Story, null)
|
|
11
|
-
],
|
|
12
|
-
args: {
|
|
13
|
-
children: React.createElement(Form, null, React.createElement(Form.Group, null, React.createElement(Form.Label, {
|
|
14
|
-
htmlFor: `test`
|
|
15
|
-
}, "Primary"), React.createElement(Form.Hint, null, "Primary title text"), React.createElement(Input, {
|
|
16
|
-
name: "test",
|
|
17
|
-
onChange: (e)=>console.log(e)
|
|
18
|
-
})))
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
export default meta;
|
|
22
|
-
export const Default = {
|
|
23
|
-
args: {}
|
|
24
|
-
};
|
|
25
|
-
export const Separator = {
|
|
26
|
-
args: {
|
|
27
|
-
separator: true
|
|
28
|
-
}
|
|
29
|
-
};
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { Field } from '../field/index.js';
|
|
2
|
-
import { Select } from './select.component.js';
|
|
3
|
-
const meta = {
|
|
4
|
-
title: 'Components/Select',
|
|
5
|
-
component: Select,
|
|
6
|
-
tags: [
|
|
7
|
-
'autodocs'
|
|
8
|
-
],
|
|
9
|
-
decorators: [
|
|
10
|
-
(Story)=>React.createElement(Story, null)
|
|
11
|
-
]
|
|
12
|
-
};
|
|
13
|
-
export default meta;
|
|
14
|
-
export const Default = {
|
|
15
|
-
args: {
|
|
16
|
-
children: React.createElement(React.Fragment, null, React.createElement("option", {
|
|
17
|
-
value: "option-1"
|
|
18
|
-
}, "option 1"), React.createElement("option", {
|
|
19
|
-
value: "option-2"
|
|
20
|
-
}, "option 2"), React.createElement("option", {
|
|
21
|
-
value: "option-3"
|
|
22
|
-
}, "option 3"), React.createElement("option", {
|
|
23
|
-
value: "option-4"
|
|
24
|
-
}, "option 4"))
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
export const Invalid = {
|
|
28
|
-
args: {
|
|
29
|
-
invalid: true,
|
|
30
|
-
children: React.createElement(React.Fragment, null, React.createElement("option", {
|
|
31
|
-
value: "option-1"
|
|
32
|
-
}, "option 1"), React.createElement("option", {
|
|
33
|
-
value: "option-2"
|
|
34
|
-
}, "option 2"), React.createElement("option", {
|
|
35
|
-
value: "option-3"
|
|
36
|
-
}, "option 3"), React.createElement("option", {
|
|
37
|
-
value: "option-4"
|
|
38
|
-
}, "option 4"))
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
export const Disabled = {
|
|
42
|
-
args: {
|
|
43
|
-
disabled: true,
|
|
44
|
-
children: React.createElement(React.Fragment, null, React.createElement("option", {
|
|
45
|
-
value: "option-1"
|
|
46
|
-
}, "option 1"), React.createElement("option", {
|
|
47
|
-
value: "option-2"
|
|
48
|
-
}, "option 2"), React.createElement("option", {
|
|
49
|
-
value: "option-3"
|
|
50
|
-
}, "option 3"), React.createElement("option", {
|
|
51
|
-
value: "option-4"
|
|
52
|
-
}, "option 4"))
|
|
53
|
-
}
|
|
54
|
-
};
|
|
55
|
-
export const FormField = {
|
|
56
|
-
args: {},
|
|
57
|
-
render: ()=>{
|
|
58
|
-
return React.createElement(Field, {
|
|
59
|
-
label: "Are you an existing customer?",
|
|
60
|
-
hintMessage: "Hint: choose from one of the following options",
|
|
61
|
-
errorMessage: "This is an inline error message"
|
|
62
|
-
}, React.createElement(Select, {
|
|
63
|
-
invalid: true
|
|
64
|
-
}, React.createElement("option", {
|
|
65
|
-
value: "option-1"
|
|
66
|
-
}, "option 1"), React.createElement("option", {
|
|
67
|
-
value: "option-2"
|
|
68
|
-
}, "option 2"), React.createElement("option", {
|
|
69
|
-
value: "option-3"
|
|
70
|
-
}, "option 3"), React.createElement("option", {
|
|
71
|
-
value: "option-4"
|
|
72
|
-
}, "option 4")));
|
|
73
|
-
}
|
|
74
|
-
};
|