@westpac/ui 0.30.0 → 0.32.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 +16 -0
- package/assets/icons/filled/child-care-filled.svg +1 -0
- package/assets/icons/filled/child-filled.svg +1 -0
- package/assets/icons/filled/piggy-bank-filled.svg +3 -0
- package/assets/icons/filled/x-filled.svg +1 -0
- package/assets/icons/outlined/child-care-outlined.svg +1 -0
- package/assets/icons/outlined/child-outlined.svg +1 -0
- package/assets/icons/outlined/piggy-bank-outlined.svg +6 -0
- package/assets/icons/outlined/x-outlined.svg +1 -0
- package/dist/component-type.json +1 -1
- package/dist/components/accordion/components/accordion-item/accordion-item.styles.js +1 -1
- package/dist/components/checkbox-group/components/checkbox-group-checkbox/checkbox-group-checkbox.styles.js +4 -4
- package/dist/components/circle/circle.styles.d.ts +2 -2
- package/dist/components/circle/circle.styles.js +1 -1
- package/dist/components/flexi-cell/components/flexi-cell-circle/flexi-cell-circle.styles.js +1 -1
- package/dist/components/header/header.styles.js +1 -1
- package/dist/components/icon/components/child-care-icon.js +1 -1
- package/dist/components/icon/components/child-icon.js +1 -1
- package/dist/components/icon/components/piggy-bank-icon.d.ts +2 -0
- package/dist/components/icon/components/piggy-bank-icon.js +35 -0
- package/dist/components/icon/components/x-icon.js +1 -1
- package/dist/components/icon/icon.styles.js +5 -5
- package/dist/components/icon/index.d.ts +4 -0
- package/dist/components/icon/index.js +4 -0
- package/dist/components/list/components/list-item/list-item.styles.js +3 -3
- package/dist/components/pictogram/components/decorative/wbc-bank-card-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/accessibility-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/accounts-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/aeroplane-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/arrow-down-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/arrow-left-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/arrow-right-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/arrow-up-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/arrows-passing-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/atm-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/australia-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/bank-card-locked-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/bank-card-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/bank-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/birth-certificate-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/building-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/buoy-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/bus-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/business-person-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/calculator-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/calendar-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/car-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/cash-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/celebration-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/chat-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/clock-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/coffee-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/coins-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/compass-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/customer-profile-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/desktop-computer-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/document-and-pen-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/dollar-sign-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/drivers-licence-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/education-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/eftpos-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/envelope-email-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/envelope-printed-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/face-happy-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/face-unhappy-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/face-unsure-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/finger-motion-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/fingerprint-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/football-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/fork-knife-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/generic-document-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/gift-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/globe-australia-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/globe-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/graph-decreasing-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/graph-increasing-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/gym-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/headset-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/heart-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/house-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/light-bulb-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/loop-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/medicare-card-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/mobile-device-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/money-in-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/money-out-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/movie-tickets-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/nest-egg-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/noodles-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/number-1-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/number-2-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/number-3-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/number-4-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/number-5-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/padlock-locked-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/padlock-unlocked-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/passport-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/percent-sign-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/person-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/piggy-bank-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/pizza-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/plant-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/search-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/secure-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/shop-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/shopping-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/sparkle-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/star-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/stopwatch-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/target-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/tax-document-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/telephone-call-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/thumbs-up-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/tick-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/tools-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/tractor-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/truck-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/umbrella-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/unsecure-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/wallet-pictogram.js +1 -1
- package/dist/components/pictogram/components/informative/wearables-pictogram.js +1 -1
- package/dist/components/popover/components/panel/panel.component.d.ts +2 -1
- package/dist/components/popover/components/panel/panel.component.js +42 -40
- package/dist/components/popover/components/panel/panel.hook.d.ts +39 -0
- package/dist/components/popover/components/panel/panel.hook.js +83 -0
- package/dist/components/popover/components/panel/panel.styles.js +9 -6
- package/dist/components/popover/components/panel/panel.types.d.ts +4 -0
- package/dist/components/popover/popover.component.d.ts +1 -1
- package/dist/components/popover/popover.component.js +4 -3
- package/dist/components/popover/popover.types.d.ts +7 -0
- package/dist/components/progress-indicator/progress-indicator.styles.js +5 -5
- package/dist/components/progress-rope/components/progress-rope-group-step/progress-rope-group-step.styles.js +1 -1
- package/dist/components/progress-rope/components/progress-rope-step/progress-rope-step.styles.js +2 -2
- package/dist/components/radio-group/components/radio-group-radio/radio-group-radio.styles.js +4 -4
- package/dist/components/switch/switch.styles.js +4 -4
- package/dist/components/symbol/components/logos/red-avatar-circle-logo.js +1 -1
- package/dist/components/symbol/components/logos/red-avatar-circle-reversed-logo.js +1 -1
- package/dist/components/symbol/components/symbols/facebook-symbol.js +1 -1
- package/dist/components/symbol/components/symbols/google-plus-symbol.js +1 -1
- package/dist/components/symbol/components/symbols/instagram-symbol.js +1 -1
- package/dist/components/symbol/components/symbols/linked-in-symbol.js +1 -1
- package/dist/components/symbol/components/symbols/slack-symbol.js +1 -1
- package/dist/components/symbol/components/symbols/twitter-symbol.js +1 -1
- package/dist/components/symbol/components/symbols/x-mark-inverse-symbol.d.ts +2 -0
- package/dist/components/symbol/components/symbols/x-mark-inverse-symbol.js +27 -0
- package/dist/components/symbol/components/symbols/x-mark-symbol.d.ts +2 -0
- package/dist/components/symbol/components/symbols/x-mark-symbol.js +27 -0
- package/dist/components/symbol/components/symbols/x-symbol.d.ts +2 -0
- package/dist/components/symbol/components/symbols/x-symbol.js +38 -0
- package/dist/components/symbol/components/symbols/yammer-symbol.js +1 -1
- package/dist/components/symbol/components/symbols/youtube-symbol.js +1 -1
- package/dist/components/symbol/index.d.ts +3 -0
- package/dist/components/symbol/index.js +3 -0
- package/dist/components/textarea/textarea.styles.js +4 -4
- package/dist/css/westpac-ui.css +519 -515
- package/dist/css/westpac-ui.min.css +519 -515
- package/package.json +1 -1
- package/src/components/accordion/components/accordion-item/accordion-item.styles.ts +1 -1
- package/src/components/checkbox-group/components/checkbox-group-checkbox/checkbox-group-checkbox.styles.ts +4 -4
- package/src/components/circle/circle.styles.ts +1 -1
- package/src/components/flexi-cell/components/flexi-cell-circle/flexi-cell-circle.styles.ts +1 -1
- package/src/components/header/header.styles.ts +1 -1
- package/src/components/icon/components/child-care-icon.tsx +1 -1
- package/src/components/icon/components/child-icon.tsx +1 -1
- package/src/components/icon/components/piggy-bank-icon.tsx +35 -0
- package/src/components/icon/components/x-icon.tsx +1 -1
- package/src/components/icon/icon.styles.ts +5 -5
- package/src/components/icon/index.ts +4 -0
- package/src/components/list/components/list-item/list-item.styles.ts +3 -3
- package/src/components/pictogram/components/decorative/wbc-bank-card-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/accessibility-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/accounts-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/aeroplane-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/arrow-down-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/arrow-left-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/arrow-right-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/arrow-up-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/arrows-passing-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/atm-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/australia-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/bank-card-locked-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/bank-card-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/bank-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/birth-certificate-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/building-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/buoy-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/bus-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/business-person-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/calculator-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/calendar-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/car-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/cash-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/celebration-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/chat-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/clock-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/coffee-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/coins-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/compass-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/customer-profile-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/desktop-computer-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/document-and-pen-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/dollar-sign-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/drivers-licence-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/education-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/eftpos-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/envelope-email-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/envelope-printed-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/face-happy-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/face-unhappy-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/face-unsure-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/finger-motion-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/fingerprint-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/football-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/fork-knife-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/generic-document-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/gift-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/globe-australia-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/globe-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/graph-decreasing-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/graph-increasing-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/gym-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/headset-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/heart-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/house-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/light-bulb-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/loop-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/medicare-card-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/mobile-device-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/money-in-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/money-out-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/movie-tickets-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/nest-egg-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/noodles-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/number-1-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/number-2-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/number-3-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/number-4-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/number-5-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/padlock-locked-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/padlock-unlocked-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/passport-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/percent-sign-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/person-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/piggy-bank-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/pizza-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/plant-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/search-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/secure-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/shop-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/shopping-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/sparkle-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/star-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/stopwatch-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/target-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/tax-document-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/telephone-call-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/thumbs-up-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/tick-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/tools-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/tractor-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/truck-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/umbrella-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/unsecure-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/wallet-pictogram.tsx +1 -1
- package/src/components/pictogram/components/informative/wearables-pictogram.tsx +1 -1
- package/src/components/popover/components/panel/panel.component.tsx +34 -45
- package/src/components/popover/components/panel/panel.hook.tsx +113 -0
- package/src/components/popover/components/panel/panel.styles.ts +9 -7
- package/src/components/popover/components/panel/panel.types.ts +4 -0
- package/src/components/popover/popover.component.tsx +10 -4
- package/src/components/popover/popover.types.ts +8 -0
- package/src/components/progress-indicator/progress-indicator.styles.ts +5 -5
- package/src/components/progress-rope/components/progress-rope-group-step/progress-rope-group-step.styles.ts +1 -1
- package/src/components/progress-rope/components/progress-rope-step/progress-rope-step.styles.ts +2 -2
- package/src/components/radio-group/components/radio-group-radio/radio-group-radio.styles.ts +4 -4
- package/src/components/switch/switch.styles.ts +4 -4
- package/src/components/symbol/components/logos/red-avatar-circle-logo.tsx +1 -1
- package/src/components/symbol/components/logos/red-avatar-circle-reversed-logo.tsx +1 -1
- package/src/components/symbol/components/symbols/facebook-symbol.tsx +1 -1
- package/src/components/symbol/components/symbols/google-plus-symbol.tsx +1 -1
- package/src/components/symbol/components/symbols/instagram-symbol.tsx +1 -1
- package/src/components/symbol/components/symbols/linked-in-symbol.tsx +1 -1
- package/src/components/symbol/components/symbols/slack-symbol.tsx +1 -1
- package/src/components/symbol/components/symbols/twitter-symbol.tsx +1 -1
- package/src/components/symbol/components/symbols/x-mark-inverse-symbol.tsx +28 -0
- package/src/components/symbol/components/symbols/x-mark-symbol.tsx +28 -0
- package/src/components/symbol/components/symbols/x-symbol.tsx +39 -0
- package/src/components/symbol/components/symbols/yammer-symbol.tsx +1 -1
- package/src/components/symbol/components/symbols/youtube-symbol.tsx +1 -1
- package/src/components/symbol/index.ts +3 -0
- package/src/components/textarea/textarea.styles.ts +4 -4
- package/dist/components/popover/popover.utils.d.ts +0 -3
- package/dist/components/popover/popover.utils.js +0 -37
- package/src/components/popover/popover.utils.tsx +0 -59
|
@@ -19,7 +19,7 @@ import { Pictogram } from '../../pictogram.component.js';
|
|
|
19
19
|
import { fill } from '../../pictogram.styles.js';
|
|
20
20
|
export function UmbrellaPictogram({ mode ='duo' , viewBoxWidth =78 , viewBoxHeight =78 , 'aria-label': ariaLabel = 'Umbrella' , copyrightYear ='2021' , className , ...props }) {
|
|
21
21
|
return React.createElement(Pictogram, _extends({
|
|
22
|
-
className: clsx('
|
|
22
|
+
className: clsx('size-13', className),
|
|
23
23
|
viewBoxWidth: viewBoxWidth,
|
|
24
24
|
viewBoxHeight: viewBoxHeight,
|
|
25
25
|
"aria-label": ariaLabel,
|
|
@@ -19,7 +19,7 @@ import { Pictogram } from '../../pictogram.component.js';
|
|
|
19
19
|
import { fill } from '../../pictogram.styles.js';
|
|
20
20
|
export function UnsecurePictogram({ mode ='duo' , viewBoxWidth =78 , viewBoxHeight =78 , 'aria-label': ariaLabel = 'Unsecure' , copyrightYear ='2021' , className , ...props }) {
|
|
21
21
|
return React.createElement(Pictogram, _extends({
|
|
22
|
-
className: clsx('
|
|
22
|
+
className: clsx('size-13', className),
|
|
23
23
|
viewBoxWidth: viewBoxWidth,
|
|
24
24
|
viewBoxHeight: viewBoxHeight,
|
|
25
25
|
"aria-label": ariaLabel,
|
|
@@ -19,7 +19,7 @@ import { Pictogram } from '../../pictogram.component.js';
|
|
|
19
19
|
import { fill } from '../../pictogram.styles.js';
|
|
20
20
|
export function WalletPictogram({ mode ='duo' , viewBoxWidth =78 , viewBoxHeight =78 , 'aria-label': ariaLabel = 'Wallet' , copyrightYear ='2024' , className , ...props }) {
|
|
21
21
|
return React.createElement(Pictogram, _extends({
|
|
22
|
-
className: clsx('
|
|
22
|
+
className: clsx('size-13', className),
|
|
23
23
|
viewBoxWidth: viewBoxWidth,
|
|
24
24
|
viewBoxHeight: viewBoxHeight,
|
|
25
25
|
"aria-label": ariaLabel,
|
|
@@ -19,7 +19,7 @@ import { Pictogram } from '../../pictogram.component.js';
|
|
|
19
19
|
import { fill } from '../../pictogram.styles.js';
|
|
20
20
|
export function WearablesPictogram({ mode ='duo' , viewBoxWidth =78 , viewBoxHeight =78 , 'aria-label': ariaLabel = 'Wearables' , copyrightYear ='2021' , className , ...props }) {
|
|
21
21
|
return React.createElement(Pictogram, _extends({
|
|
22
|
-
className: clsx('
|
|
22
|
+
className: clsx('size-13', className),
|
|
23
23
|
viewBoxWidth: viewBoxWidth,
|
|
24
24
|
viewBoxHeight: viewBoxHeight,
|
|
25
25
|
"aria-label": ariaLabel,
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { type PanelProps } from './panel.types.js';
|
|
2
|
+
export declare function BasePanel({ state, heading, headingTag: Tag, content, placement, id, triggerRef, portal, }: PanelProps): import("react/jsx-runtime").JSX.Element;
|
|
2
3
|
/**
|
|
3
4
|
* @private
|
|
4
5
|
*/
|
|
5
|
-
export declare function Panel({
|
|
6
|
+
export declare function Panel({ portal, ...props }: PanelProps): import("react/jsx-runtime").JSX.Element;
|
|
6
7
|
export declare namespace Panel {
|
|
7
8
|
var displayName: string;
|
|
8
9
|
}
|
|
@@ -1,60 +1,50 @@
|
|
|
1
|
-
|
|
1
|
+
function _extends() {
|
|
2
|
+
_extends = Object.assign || function(target) {
|
|
3
|
+
for(var i = 1; i < arguments.length; i++){
|
|
4
|
+
var source = arguments[i];
|
|
5
|
+
for(var key in source){
|
|
6
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
7
|
+
target[key] = source[key];
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
return target;
|
|
12
|
+
};
|
|
13
|
+
return _extends.apply(this, arguments);
|
|
14
|
+
}
|
|
15
|
+
import { useRef } from 'react';
|
|
2
16
|
import { FocusScope } from 'react-aria';
|
|
17
|
+
import { createPortal } from 'react-dom';
|
|
3
18
|
import { Button } from '../../../button/index.js';
|
|
4
19
|
import { CloseIcon } from '../../../icon/index.js';
|
|
5
|
-
import {
|
|
20
|
+
import { usePanel } from './panel.hook.js';
|
|
6
21
|
import { styles as panelStyles } from './panel.styles.js';
|
|
7
|
-
export function
|
|
22
|
+
export function BasePanel({ state , heading , headingTag: Tag = 'h1' , content , placement ='bottom' , id , triggerRef , portal }) {
|
|
8
23
|
const popoverRef = useRef(null);
|
|
9
24
|
const arrowRef = useRef(null);
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
return parseInt(window.getComputedStyle(document.getElementsByTagName('html')[0]).fontSize);
|
|
13
|
-
}
|
|
14
|
-
return 1;
|
|
15
|
-
}, []);
|
|
16
|
-
const [position, setPosition] = useState({
|
|
17
|
-
placement: 'top',
|
|
18
|
-
offset: 'left',
|
|
19
|
-
panelPosition: triggerRef.current ? triggerRef.current.offsetWidth / 2 / remSize : 0,
|
|
20
|
-
arrowPosition: popoverRef.current ? popoverRef.current.getBoundingClientRect().width / 2 / remSize : 0
|
|
21
|
-
});
|
|
22
|
-
useLayoutEffect(()=>{
|
|
23
|
-
setPosition(getPopoverPosition(triggerRef, popoverRef, arrowRef, placement));
|
|
24
|
-
}, [
|
|
25
|
+
const { popoverPosition , arrowPosition } = usePanel({
|
|
26
|
+
state,
|
|
25
27
|
placement,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
]);
|
|
30
|
-
const getPopoverClass = useCallback(()=>{
|
|
31
|
-
return {
|
|
32
|
-
[position.offset]: position.offset === 'left' ? `${position.panelPosition}rem` : `-${position.panelPosition}rem`,
|
|
33
|
-
transform: position.offset === 'left' ? 'translateX(-50%)' : 'none'
|
|
34
|
-
};
|
|
35
|
-
}, [
|
|
36
|
-
position
|
|
37
|
-
]);
|
|
38
|
-
const getArrowClass = useCallback(()=>{
|
|
39
|
-
return {
|
|
40
|
-
[!position.offset || position.offset === 'left' ? 'left' : 'right']: `${position.arrowPosition}rem`
|
|
41
|
-
};
|
|
42
|
-
}, [
|
|
43
|
-
position
|
|
44
|
-
]);
|
|
28
|
+
triggerRef,
|
|
29
|
+
portal
|
|
30
|
+
});
|
|
45
31
|
const styles = panelStyles({
|
|
46
|
-
placement
|
|
32
|
+
placement
|
|
47
33
|
});
|
|
48
34
|
return React.createElement(FocusScope, {
|
|
35
|
+
contain: true,
|
|
36
|
+
autoFocus: true,
|
|
49
37
|
restoreFocus: true
|
|
50
38
|
}, React.createElement("div", {
|
|
39
|
+
style: popoverPosition,
|
|
51
40
|
className: styles.popover(),
|
|
52
|
-
|
|
41
|
+
"test-id": "popover",
|
|
53
42
|
id: id,
|
|
54
43
|
ref: popoverRef
|
|
55
44
|
}, React.createElement("div", {
|
|
56
45
|
className: styles.content()
|
|
57
46
|
}, React.createElement(Tag, {
|
|
47
|
+
tabIndex: 0,
|
|
58
48
|
className: styles.heading()
|
|
59
49
|
}, heading), React.createElement("div", {
|
|
60
50
|
className: styles.body()
|
|
@@ -71,8 +61,20 @@ export function Panel({ state , heading , headingTag: Tag = 'h1' , content , pla
|
|
|
71
61
|
})), React.createElement("div", {
|
|
72
62
|
"aria-hidden": true,
|
|
73
63
|
className: styles.arrow(),
|
|
74
|
-
style:
|
|
64
|
+
style: arrowPosition,
|
|
65
|
+
"test-id": "arrow",
|
|
75
66
|
ref: arrowRef
|
|
76
67
|
})));
|
|
77
68
|
}
|
|
69
|
+
export function Panel({ portal =false , ...props }) {
|
|
70
|
+
if (portal) {
|
|
71
|
+
const portalValue = typeof portal === 'boolean' ? document.body : portal;
|
|
72
|
+
return createPortal(React.createElement(BasePanel, _extends({}, props, {
|
|
73
|
+
portal: portalValue
|
|
74
|
+
})), portalValue);
|
|
75
|
+
}
|
|
76
|
+
return React.createElement(BasePanel, _extends({
|
|
77
|
+
portal: portal
|
|
78
|
+
}, props));
|
|
79
|
+
}
|
|
78
80
|
Panel.displayName = 'Popover.Panel';
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { PanelProps } from './panel.types.js';
|
|
2
|
+
export type PanelHookProps = {
|
|
3
|
+
placement: PanelProps['placement'];
|
|
4
|
+
portal: PanelProps['portal'];
|
|
5
|
+
state: PanelProps['state'];
|
|
6
|
+
triggerRef: PanelProps['triggerRef'];
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Custom hook to calculate the position of a popover panel relative to its trigger element.
|
|
10
|
+
* @returns {Object} An object containing the calculated positions for the popover and its arrow.
|
|
11
|
+
* @returns {Object} return.popoverPosition - The calculated position styles for the popover.
|
|
12
|
+
* @returns {Object} return.arrowPosition - The calculated position styles for the popover arrow.
|
|
13
|
+
*/
|
|
14
|
+
export declare function usePanel({ state, placement, triggerRef, portal }: PanelHookProps): {
|
|
15
|
+
popoverPosition: {
|
|
16
|
+
bottom: string;
|
|
17
|
+
left: number;
|
|
18
|
+
top?: undefined;
|
|
19
|
+
transform?: undefined;
|
|
20
|
+
} | {
|
|
21
|
+
top: string;
|
|
22
|
+
left: number;
|
|
23
|
+
bottom?: undefined;
|
|
24
|
+
transform?: undefined;
|
|
25
|
+
} | {
|
|
26
|
+
top: string;
|
|
27
|
+
left: string;
|
|
28
|
+
transform: string;
|
|
29
|
+
bottom?: undefined;
|
|
30
|
+
} | {
|
|
31
|
+
top: string;
|
|
32
|
+
left: string;
|
|
33
|
+
bottom?: undefined;
|
|
34
|
+
transform?: undefined;
|
|
35
|
+
};
|
|
36
|
+
arrowPosition: {
|
|
37
|
+
left: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { useMemo } from 'react';
|
|
2
|
+
const PANEL_WIDTH_SIZE = 282;
|
|
3
|
+
const getVerticalPositionPopover = (element)=>{
|
|
4
|
+
const triggerDOMRect = element.getBoundingClientRect();
|
|
5
|
+
const offsetLeftToCenter = (PANEL_WIDTH_SIZE - ((triggerDOMRect === null || triggerDOMRect === void 0 ? void 0 : triggerDOMRect.width) || 0) / 2) * -1;
|
|
6
|
+
if (triggerDOMRect.left + offsetLeftToCenter <= 0) {
|
|
7
|
+
return 'left';
|
|
8
|
+
}
|
|
9
|
+
if (triggerDOMRect.left + offsetLeftToCenter >= 0 && triggerDOMRect.right + offsetLeftToCenter * -1 <= window.innerWidth) {
|
|
10
|
+
return 'center';
|
|
11
|
+
}
|
|
12
|
+
if (PANEL_WIDTH_SIZE + ((triggerDOMRect === null || triggerDOMRect === void 0 ? void 0 : triggerDOMRect.left) || 0) >= window.innerWidth) {
|
|
13
|
+
return 'right';
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
const getLeftOffsetPerVerticalPosition = (element)=>{
|
|
17
|
+
const triggerDOMRect = element.getBoundingClientRect();
|
|
18
|
+
switch(getVerticalPositionPopover(element)){
|
|
19
|
+
case 'center':
|
|
20
|
+
return (PANEL_WIDTH_SIZE - ((triggerDOMRect === null || triggerDOMRect === void 0 ? void 0 : triggerDOMRect.width) || 0)) / 2 * -1;
|
|
21
|
+
case 'right':
|
|
22
|
+
return (PANEL_WIDTH_SIZE + ((triggerDOMRect === null || triggerDOMRect === void 0 ? void 0 : triggerDOMRect.left) || 0) - window.innerWidth + (window.innerWidth - ((triggerDOMRect === null || triggerDOMRect === void 0 ? void 0 : triggerDOMRect.right) || 0))) * -1;
|
|
23
|
+
default:
|
|
24
|
+
return 0;
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
export function usePanel({ state , placement ='bottom' , triggerRef , portal }) {
|
|
28
|
+
const popoverPosition = useMemo(()=>{
|
|
29
|
+
var _triggerRef_current;
|
|
30
|
+
const triggerDOMRect = (_triggerRef_current = triggerRef.current) === null || _triggerRef_current === void 0 ? void 0 : _triggerRef_current.getBoundingClientRect();
|
|
31
|
+
const leftOffset = triggerRef.current ? getLeftOffsetPerVerticalPosition(triggerRef.current) : 0;
|
|
32
|
+
if (!portal) {
|
|
33
|
+
switch(placement){
|
|
34
|
+
case 'top':
|
|
35
|
+
return {
|
|
36
|
+
bottom: '100%',
|
|
37
|
+
left: leftOffset
|
|
38
|
+
};
|
|
39
|
+
case 'bottom':
|
|
40
|
+
default:
|
|
41
|
+
return {
|
|
42
|
+
top: '100%',
|
|
43
|
+
left: leftOffset
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
const portalElement = portal;
|
|
48
|
+
switch(placement){
|
|
49
|
+
case 'top':
|
|
50
|
+
return {
|
|
51
|
+
top: `${((triggerDOMRect === null || triggerDOMRect === void 0 ? void 0 : triggerDOMRect.top) || 0) - portalElement.getBoundingClientRect().top}px`,
|
|
52
|
+
left: `${((triggerDOMRect === null || triggerDOMRect === void 0 ? void 0 : triggerDOMRect.left) || 0) + leftOffset}px`,
|
|
53
|
+
transform: 'translateY(-100%)'
|
|
54
|
+
};
|
|
55
|
+
case 'bottom':
|
|
56
|
+
default:
|
|
57
|
+
return {
|
|
58
|
+
top: `${((triggerDOMRect === null || triggerDOMRect === void 0 ? void 0 : triggerDOMRect.bottom) || 0) - portalElement.getBoundingClientRect().top}px`,
|
|
59
|
+
left: `${((triggerDOMRect === null || triggerDOMRect === void 0 ? void 0 : triggerDOMRect.left) || 0) + leftOffset}px`
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
}, [
|
|
63
|
+
placement,
|
|
64
|
+
portal,
|
|
65
|
+
triggerRef,
|
|
66
|
+
state.isOpen
|
|
67
|
+
]);
|
|
68
|
+
const arrowPosition = useMemo(()=>{
|
|
69
|
+
var _triggerRef_current;
|
|
70
|
+
const triggerDOMRect = (_triggerRef_current = triggerRef.current) === null || _triggerRef_current === void 0 ? void 0 : _triggerRef_current.getBoundingClientRect();
|
|
71
|
+
const leftOffset = triggerRef.current ? getLeftOffsetPerVerticalPosition(triggerRef.current) * -1 : 0;
|
|
72
|
+
return {
|
|
73
|
+
left: `${((triggerDOMRect === null || triggerDOMRect === void 0 ? void 0 : triggerDOMRect.width) || 0) / 2 + leftOffset}px`
|
|
74
|
+
};
|
|
75
|
+
}, [
|
|
76
|
+
triggerRef,
|
|
77
|
+
state.isOpen
|
|
78
|
+
]);
|
|
79
|
+
return {
|
|
80
|
+
popoverPosition,
|
|
81
|
+
arrowPosition
|
|
82
|
+
};
|
|
83
|
+
}
|
|
@@ -3,21 +3,24 @@ export const styles = tv({
|
|
|
3
3
|
slots: {
|
|
4
4
|
base: '',
|
|
5
5
|
popover: 'absolute z-[999] rounded border border-muted bg-white shadow-[0_5px_10px_rgba(0,0,0,0.2)]',
|
|
6
|
-
arrow:
|
|
6
|
+
arrow: `absolute -z-10 size-0
|
|
7
|
+
before:absolute before:left-0 before:top-0 before:size-0 before:border-x-[7px] before:border-t-[12px] before:border-x-[transparent] before:border-t-muted after:absolute
|
|
8
|
+
after:left-0 after:top-0 after:size-0 after:border-x-[7px] after:border-t-[11px] after:border-x-[transparent] after:border-t-white
|
|
9
|
+
`,
|
|
7
10
|
closeBtn: 'absolute right-1 top-1 m-1 p-0 hover:opacity-80',
|
|
8
|
-
content: 'w-[17.625rem] py-4 pl-3 pr-5',
|
|
11
|
+
content: 'w-[17.625rem] bg-white py-4 pl-3 pr-5',
|
|
9
12
|
heading: 'typography-body-9 mb-2 font-bold text-text',
|
|
10
13
|
body: 'typography-body-10 text-text'
|
|
11
14
|
},
|
|
12
15
|
variants: {
|
|
13
16
|
placement: {
|
|
14
17
|
top: {
|
|
15
|
-
popover: '
|
|
16
|
-
arrow: 'top-full
|
|
18
|
+
popover: '-mt-2.5 mb-2.5',
|
|
19
|
+
arrow: 'top-full translate-x-[-6px] translate-y-[-1px]'
|
|
17
20
|
},
|
|
18
21
|
bottom: {
|
|
19
|
-
popover: '
|
|
20
|
-
arrow: 'bottom-full rotate-180 after:bottom-[1px]
|
|
22
|
+
popover: 'mt-2.5',
|
|
23
|
+
arrow: 'bottom-full translate-x-[6px] rotate-180 after:bottom-[1px]'
|
|
21
24
|
}
|
|
22
25
|
}
|
|
23
26
|
}
|
|
@@ -17,6 +17,10 @@ export type PanelProps = {
|
|
|
17
17
|
* Placement of popover. If no placement provided it will default to top unless there is no space then will appear on bottom.
|
|
18
18
|
*/
|
|
19
19
|
placement?: 'top' | 'bottom';
|
|
20
|
+
/**
|
|
21
|
+
* Uses portal to render popover
|
|
22
|
+
*/
|
|
23
|
+
portal?: boolean | Element;
|
|
20
24
|
/**
|
|
21
25
|
* Overlay trigger state
|
|
22
26
|
*/
|
|
@@ -3,4 +3,4 @@ import { type PopoverProps } from './popover.types.js';
|
|
|
3
3
|
* TODO: Revisit this component when react-aria has updated usePopover, see: https://github.com/adobe/react-spectrum/discussions/5341
|
|
4
4
|
* This version does not currently use react-aria as it blocked so functionality that was needed to match GEL 3.0
|
|
5
5
|
*/
|
|
6
|
-
export declare function Popover({ children, className, headingTag, content, heading, onClick, placement, look, soft, open, linkStyling, size, icon, }: PopoverProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare function Popover({ children, className, headingTag, content, heading, onClick, placement, look, soft, open, linkStyling, size, icon, portal, }: PopoverProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -4,15 +4,15 @@ import { useOverlayTriggerState } from 'react-stately';
|
|
|
4
4
|
import { Button } from '../button/index.js';
|
|
5
5
|
import { Panel } from './components/panel/panel.component.js';
|
|
6
6
|
import { styles as popoverStyles } from './popover.styles.js';
|
|
7
|
-
export function Popover({ children , className , headingTag , content , heading , onClick =()=>undefined , placement , look , soft =false , open =false , linkStyling =false , size ='medium' , icon }) {
|
|
7
|
+
export function Popover({ children , className , headingTag , content , heading , onClick =()=>undefined , placement , look , soft =false , open =false , linkStyling =false , size ='medium' , icon , portal =false }) {
|
|
8
8
|
const state = useOverlayTriggerState({});
|
|
9
9
|
const panelId = useId();
|
|
10
10
|
const styles = popoverStyles({
|
|
11
11
|
linkStyling
|
|
12
12
|
});
|
|
13
13
|
const ref = useRef(null);
|
|
14
|
-
const handleClick = useCallback(()=>{
|
|
15
|
-
onClick();
|
|
14
|
+
const handleClick = useCallback((event)=>{
|
|
15
|
+
onClick(event);
|
|
16
16
|
state.toggle();
|
|
17
17
|
}, [
|
|
18
18
|
onClick,
|
|
@@ -53,6 +53,7 @@ export function Popover({ children , className , headingTag , content , heading
|
|
|
53
53
|
size: size,
|
|
54
54
|
className: styles.button()
|
|
55
55
|
}, children), state.isOpen && React.createElement(Panel, {
|
|
56
|
+
portal: portal,
|
|
56
57
|
placement: placement,
|
|
57
58
|
heading: heading ? heading : '',
|
|
58
59
|
headingTag: headingTag,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
import { ButtonProps } from '../button/index.js';
|
|
3
3
|
import { IconProps } from '../icon/icon.types.js';
|
|
4
|
+
import { PanelProps } from './components/panel/panel.types.js';
|
|
4
5
|
export type PopoverProps = {
|
|
5
6
|
/**
|
|
6
7
|
* Button text
|
|
@@ -40,4 +41,10 @@ export type PopoverProps = {
|
|
|
40
41
|
* @default top
|
|
41
42
|
*/
|
|
42
43
|
placement?: 'top' | 'bottom';
|
|
44
|
+
/**
|
|
45
|
+
* Renders the popover using a portal. You can either pass an HTML element to use as the portal container,
|
|
46
|
+
* or a boolean value to use the document.body as the portal container.
|
|
47
|
+
* @default false
|
|
48
|
+
*/
|
|
49
|
+
portal?: PanelProps['portal'];
|
|
43
50
|
} & HTMLAttributes<Element> & Pick<ButtonProps, 'look' | 'soft' | 'size'>;
|
|
@@ -9,19 +9,19 @@ export const styles = tv({
|
|
|
9
9
|
variants: {
|
|
10
10
|
size: {
|
|
11
11
|
xsmall: {
|
|
12
|
-
base: '
|
|
12
|
+
base: 'size-2'
|
|
13
13
|
},
|
|
14
14
|
small: {
|
|
15
|
-
base: '
|
|
15
|
+
base: 'size-3'
|
|
16
16
|
},
|
|
17
17
|
medium: {
|
|
18
|
-
base: '
|
|
18
|
+
base: 'size-4'
|
|
19
19
|
},
|
|
20
20
|
large: {
|
|
21
|
-
base: '
|
|
21
|
+
base: 'size-15'
|
|
22
22
|
},
|
|
23
23
|
xlarge: {
|
|
24
|
-
base: '
|
|
24
|
+
base: 'size-15'
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
27
|
color: {
|
|
@@ -2,7 +2,7 @@ import { tv } from 'tailwind-variants';
|
|
|
2
2
|
export const styles = tv({
|
|
3
3
|
slots: {
|
|
4
4
|
base: '',
|
|
5
|
-
circle: 'relative z-10
|
|
5
|
+
circle: 'relative z-10 size-[14px] border-2 bg-white transition-colors',
|
|
6
6
|
circleWrapper: 'typography-body-9 relative flex w-full cursor-pointer items-center gap-2 pb-[1.625rem] pt-1 leading-loose transition-colors ',
|
|
7
7
|
stepsWrapper: 'relative transition-all'
|
|
8
8
|
},
|
package/dist/components/progress-rope/components/progress-rope-step/progress-rope-step.styles.js
CHANGED
|
@@ -64,10 +64,10 @@ export const styles = tv({
|
|
|
64
64
|
},
|
|
65
65
|
size: {
|
|
66
66
|
medium: {
|
|
67
|
-
circle: '
|
|
67
|
+
circle: 'size-[0.875rem]'
|
|
68
68
|
},
|
|
69
69
|
small: {
|
|
70
|
-
circle: 'mr-[0.25rem]
|
|
70
|
+
circle: 'mr-[0.25rem] size-[0.625rem] translate-x-[0.125rem]',
|
|
71
71
|
base: 'gap-4'
|
|
72
72
|
}
|
|
73
73
|
},
|
package/dist/components/radio-group/components/radio-group-radio/radio-group-radio.styles.js
CHANGED
|
@@ -5,7 +5,7 @@ export const styles = tv({
|
|
|
5
5
|
textWrapper: 'flex flex-col justify-center',
|
|
6
6
|
labelText: 'typography-body-10 py-[2px] pl-1',
|
|
7
7
|
hintText: 'typography-body-10 pl-1 text-muted',
|
|
8
|
-
selector: 'flex
|
|
8
|
+
selector: 'flex size-4 shrink-0 items-center justify-center rounded-full border border-hero'
|
|
9
9
|
},
|
|
10
10
|
variants: {
|
|
11
11
|
isDisabled: {
|
|
@@ -19,7 +19,7 @@ export const styles = tv({
|
|
|
19
19
|
},
|
|
20
20
|
isSelected: {
|
|
21
21
|
true: {
|
|
22
|
-
selector: 'before:block before:
|
|
22
|
+
selector: 'before:block before:size-2 before:rounded-full before:bg-hero'
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
isFocusVisible: {
|
|
@@ -37,11 +37,11 @@ export const styles = tv({
|
|
|
37
37
|
},
|
|
38
38
|
size: {
|
|
39
39
|
large: {
|
|
40
|
-
selector: '
|
|
40
|
+
selector: 'size-5',
|
|
41
41
|
base: 'mb-2'
|
|
42
42
|
},
|
|
43
43
|
medium: {
|
|
44
|
-
selector: '
|
|
44
|
+
selector: 'size-4',
|
|
45
45
|
base: 'mb-1'
|
|
46
46
|
}
|
|
47
47
|
}
|
|
@@ -8,16 +8,16 @@ export const styles = tv({
|
|
|
8
8
|
variants: {
|
|
9
9
|
size: {
|
|
10
10
|
small: {
|
|
11
|
-
switchDiv: 'h-[1.75rem] w-8 rounded-[1.75rem] after:
|
|
11
|
+
switchDiv: 'h-[1.75rem] w-8 rounded-[1.75rem] after:size-[1.75rem]'
|
|
12
12
|
},
|
|
13
13
|
medium: {
|
|
14
|
-
switchDiv: 'h-[2.125rem] w-10 rounded-[2.125rem] after:
|
|
14
|
+
switchDiv: 'h-[2.125rem] w-10 rounded-[2.125rem] after:size-[2.125rem]'
|
|
15
15
|
},
|
|
16
16
|
large: {
|
|
17
|
-
switchDiv: 'h-[2.5rem] w-12 rounded-[2.5rem] after:
|
|
17
|
+
switchDiv: 'h-[2.5rem] w-12 rounded-[2.5rem] after:size-[2.5rem]'
|
|
18
18
|
},
|
|
19
19
|
xlarge: {
|
|
20
|
-
switchDiv: 'h-[2.875rem] w-14 rounded-[2.875rem] after:
|
|
20
|
+
switchDiv: 'h-[2.875rem] w-14 rounded-[2.875rem] after:size-[2.875rem]'
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
isFocusVisible: {
|
|
@@ -16,7 +16,7 @@ import { clsx } from 'clsx';
|
|
|
16
16
|
import React from 'react';
|
|
17
17
|
import { Symbol } from '../../symbol.component.js';
|
|
18
18
|
export const RedAvatarCircleLogo = ({ 'aria-label': ariaLabel = 'Red Avatar' , copyrightYear ='2024' , viewBoxWidth =64 , viewBoxHeight =64 , className , ...props })=>React.createElement(Symbol, _extends({
|
|
19
|
-
className: clsx('
|
|
19
|
+
className: clsx('size-[64px]', className),
|
|
20
20
|
"aria-label": ariaLabel,
|
|
21
21
|
copyrightYear: copyrightYear,
|
|
22
22
|
viewBoxWidth: viewBoxWidth,
|
|
@@ -16,7 +16,7 @@ import { clsx } from 'clsx';
|
|
|
16
16
|
import React from 'react';
|
|
17
17
|
import { Symbol } from '../../symbol.component.js';
|
|
18
18
|
export const RedAvatarCircleReversedLogo = ({ 'aria-label': ariaLabel = 'Red Avatar' , copyrightYear ='2024' , viewBoxWidth =64 , viewBoxHeight =64 , className , ...props })=>React.createElement(Symbol, _extends({
|
|
19
|
-
className: clsx('
|
|
19
|
+
className: clsx('size-[64px]', className),
|
|
20
20
|
"aria-label": ariaLabel,
|
|
21
21
|
copyrightYear: copyrightYear,
|
|
22
22
|
viewBoxWidth: viewBoxWidth,
|
|
@@ -16,7 +16,7 @@ import { clsx } from 'clsx';
|
|
|
16
16
|
import React from 'react';
|
|
17
17
|
import { Symbol } from '../../symbol.component.js';
|
|
18
18
|
export const FacebookSymbol = ({ 'aria-label': ariaLabel = 'Facebook' , copyrightYear ='' , viewBoxWidth =32 , viewBoxHeight =32 , className , ...props })=>React.createElement(Symbol, _extends({
|
|
19
|
-
className: clsx('
|
|
19
|
+
className: clsx('size-[32px]', className),
|
|
20
20
|
"aria-label": ariaLabel,
|
|
21
21
|
copyrightYear: copyrightYear,
|
|
22
22
|
viewBoxWidth: viewBoxWidth,
|
|
@@ -16,7 +16,7 @@ import { clsx } from 'clsx';
|
|
|
16
16
|
import React from 'react';
|
|
17
17
|
import { Symbol } from '../../symbol.component.js';
|
|
18
18
|
export const GooglePlusSymbol = ({ 'aria-label': ariaLabel = 'Google+' , copyrightYear ='' , viewBoxWidth =32 , viewBoxHeight =32 , className , ...props })=>React.createElement(Symbol, _extends({
|
|
19
|
-
className: clsx('
|
|
19
|
+
className: clsx('size-[32px]', className),
|
|
20
20
|
"aria-label": ariaLabel,
|
|
21
21
|
copyrightYear: copyrightYear,
|
|
22
22
|
viewBoxWidth: viewBoxWidth,
|
|
@@ -16,7 +16,7 @@ import { clsx } from 'clsx';
|
|
|
16
16
|
import React from 'react';
|
|
17
17
|
import { Symbol } from '../../symbol.component.js';
|
|
18
18
|
export const InstagramSymbol = ({ 'aria-label': ariaLabel = 'Instagram' , copyrightYear ='' , viewBoxWidth =32 , viewBoxHeight =32 , className , ...props })=>React.createElement(Symbol, _extends({
|
|
19
|
-
className: clsx('
|
|
19
|
+
className: clsx('size-[32px]', className),
|
|
20
20
|
"aria-label": ariaLabel,
|
|
21
21
|
copyrightYear: copyrightYear,
|
|
22
22
|
viewBoxWidth: viewBoxWidth,
|
|
@@ -16,7 +16,7 @@ import { clsx } from 'clsx';
|
|
|
16
16
|
import React from 'react';
|
|
17
17
|
import { Symbol } from '../../symbol.component.js';
|
|
18
18
|
export const LinkedInSymbol = ({ 'aria-label': ariaLabel = 'LinkedIn' , copyrightYear ='' , viewBoxWidth =32 , viewBoxHeight =32 , className , ...props })=>React.createElement(Symbol, _extends({
|
|
19
|
-
className: clsx('
|
|
19
|
+
className: clsx('size-[32px]', className),
|
|
20
20
|
"aria-label": ariaLabel,
|
|
21
21
|
copyrightYear: copyrightYear,
|
|
22
22
|
viewBoxWidth: viewBoxWidth,
|
|
@@ -16,7 +16,7 @@ import { clsx } from 'clsx';
|
|
|
16
16
|
import React from 'react';
|
|
17
17
|
import { Symbol } from '../../symbol.component.js';
|
|
18
18
|
export const SlackSymbol = ({ 'aria-label': ariaLabel = 'Slack' , copyrightYear ='' , viewBoxWidth =32 , viewBoxHeight =32 , className , ...props })=>React.createElement(Symbol, _extends({
|
|
19
|
-
className: clsx('
|
|
19
|
+
className: clsx('size-[32px]', className),
|
|
20
20
|
"aria-label": ariaLabel,
|
|
21
21
|
copyrightYear: copyrightYear,
|
|
22
22
|
viewBoxWidth: viewBoxWidth,
|
|
@@ -16,7 +16,7 @@ import { clsx } from 'clsx';
|
|
|
16
16
|
import React from 'react';
|
|
17
17
|
import { Symbol } from '../../symbol.component.js';
|
|
18
18
|
export const TwitterSymbol = ({ 'aria-label': ariaLabel = 'Twitter' , copyrightYear ='' , viewBoxWidth =32 , viewBoxHeight =32 , className , ...props })=>React.createElement(Symbol, _extends({
|
|
19
|
-
className: clsx('
|
|
19
|
+
className: clsx('size-[32px]', className),
|
|
20
20
|
"aria-label": ariaLabel,
|
|
21
21
|
copyrightYear: copyrightYear,
|
|
22
22
|
viewBoxWidth: viewBoxWidth,
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
function _extends() {
|
|
2
|
+
_extends = Object.assign || function(target) {
|
|
3
|
+
for(var i = 1; i < arguments.length; i++){
|
|
4
|
+
var source = arguments[i];
|
|
5
|
+
for(var key in source){
|
|
6
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
7
|
+
target[key] = source[key];
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
return target;
|
|
12
|
+
};
|
|
13
|
+
return _extends.apply(this, arguments);
|
|
14
|
+
}
|
|
15
|
+
import { clsx } from 'clsx';
|
|
16
|
+
import React from 'react';
|
|
17
|
+
import { Symbol } from '../../symbol.component.js';
|
|
18
|
+
export const XMarkInverseSymbol = ({ 'aria-label': ariaLabel = 'X' , copyrightYear ='' , viewBoxWidth =32 , viewBoxHeight =32 , className , ...props })=>React.createElement(Symbol, _extends({
|
|
19
|
+
className: clsx('size-[32px]', className),
|
|
20
|
+
"aria-label": ariaLabel,
|
|
21
|
+
copyrightYear: copyrightYear,
|
|
22
|
+
viewBoxWidth: viewBoxWidth,
|
|
23
|
+
viewBoxHeight: viewBoxHeight
|
|
24
|
+
}, props), React.createElement("path", {
|
|
25
|
+
fill: "#fff",
|
|
26
|
+
d: "M44.635 32.455 72.555 0H65.94L41.696 28.18 22.333 0H0l29.28 42.614L0 76.648h6.617l25.601-29.76 20.449 29.76H75L44.634 32.455h.001ZM35.573 42.99l-2.967-4.243L9.001 4.98h10.162l19.05 27.25 2.967 4.243 24.762 35.42H55.78L35.573 42.99v-.002Z"
|
|
27
|
+
}));
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
function _extends() {
|
|
2
|
+
_extends = Object.assign || function(target) {
|
|
3
|
+
for(var i = 1; i < arguments.length; i++){
|
|
4
|
+
var source = arguments[i];
|
|
5
|
+
for(var key in source){
|
|
6
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
7
|
+
target[key] = source[key];
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
return target;
|
|
12
|
+
};
|
|
13
|
+
return _extends.apply(this, arguments);
|
|
14
|
+
}
|
|
15
|
+
import { clsx } from 'clsx';
|
|
16
|
+
import React from 'react';
|
|
17
|
+
import { Symbol } from '../../symbol.component.js';
|
|
18
|
+
export const XMarkSymbol = ({ 'aria-label': ariaLabel = 'X' , copyrightYear ='' , viewBoxWidth =32 , viewBoxHeight =32 , className , ...props })=>React.createElement(Symbol, _extends({
|
|
19
|
+
className: clsx('size-[32px]', className),
|
|
20
|
+
"aria-label": ariaLabel,
|
|
21
|
+
copyrightYear: copyrightYear,
|
|
22
|
+
viewBoxWidth: viewBoxWidth,
|
|
23
|
+
viewBoxHeight: viewBoxHeight
|
|
24
|
+
}, props), React.createElement("path", {
|
|
25
|
+
fill: "#000",
|
|
26
|
+
d: "M44.635 32.455 72.555 0H65.94L41.696 28.18 22.333 0H0l29.28 42.614L0 76.648h6.617l25.601-29.76 20.449 29.76H75L44.634 32.455h.001ZM35.573 42.99l-2.967-4.243L9.001 4.98h10.162l19.05 27.25 2.967 4.243 24.762 35.42H55.78L35.573 42.99v-.002Z"
|
|
27
|
+
}));
|