@telus-uds/theme-allium 4.21.0 → 4.22.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/build/android/ActivityIndicator.json +30 -0
- package/build/android/Badge.json +314 -0
- package/build/android/BlockQuote.json +72 -0
- package/build/android/Box.json +644 -0
- package/build/android/Breadcrumbs.json +62 -0
- package/build/android/Button.json +527 -0
- package/build/android/ButtonDropdown.json +232 -0
- package/build/android/ButtonGroup.json +43 -0
- package/build/android/ButtonGroupItem.json +180 -0
- package/build/android/Callout.json +51 -0
- package/build/android/Card.json +277 -0
- package/build/android/Carousel.json +41 -0
- package/build/android/CarouselTabsPanelItem.json +173 -0
- package/build/android/CarouselThumbnail.json +61 -0
- package/build/android/Checkbox.json +131 -0
- package/build/android/CheckboxCard.json +259 -0
- package/build/android/CheckboxCardGroup.json +47 -0
- package/build/android/CheckboxGroup.json +15 -0
- package/build/android/ChevronLink.json +143 -0
- package/build/android/ColourToggle.json +85 -0
- package/build/android/Countdown.json +181 -0
- package/build/android/DatePicker.json +171 -0
- package/build/android/Disclaimer.json +16 -0
- package/build/android/Divider.json +62 -0
- package/build/android/ExpandCollapse.json +14 -0
- package/build/android/ExpandCollapseControl.json +83 -0
- package/build/android/ExpandCollapseMini.json +7 -0
- package/build/android/ExpandCollapseMiniControl.json +130 -0
- package/build/android/ExpandCollapsePanel.json +84 -0
- package/build/android/Feedback.json +136 -0
- package/build/android/Fieldset.json +41 -0
- package/build/android/Footnote.json +123 -0
- package/build/android/FootnoteLink.json +17 -0
- package/build/android/HorizontalScrollButton.json +78 -0
- package/build/android/Icon.json +174 -0
- package/build/android/IconButton.json +488 -0
- package/build/android/Image.json +7 -0
- package/build/android/InputLabel.json +27 -0
- package/build/android/InputSupports.json +7 -0
- package/build/android/Link.json +200 -0
- package/build/android/List.json +100 -0
- package/build/android/Listbox.json +242 -0
- package/build/android/Modal.json +194 -0
- package/build/android/MultiSelectFilter.json +70 -0
- package/build/android/NavigationBar.json +147 -0
- package/build/android/Notification.json +192 -0
- package/build/android/OrderedList.json +81 -0
- package/build/android/Pagination.json +49 -0
- package/build/android/PaginationPageButton.json +100 -0
- package/build/android/PaginationSideButton.json +154 -0
- package/build/android/PreviewCard.json +39 -0
- package/build/android/PriceLockup.json +141 -0
- package/build/android/Progress.json +35 -0
- package/build/android/ProgressBar.json +95 -0
- package/build/android/QuantitySelector.json +123 -0
- package/build/android/QuantitySelectorSideButton.json +197 -0
- package/build/android/QuickLinks.json +29 -0
- package/build/android/QuickLinksButton.json +84 -0
- package/build/android/QuickLinksCard.json +27 -0
- package/build/android/QuickLinksFeature.json +9 -0
- package/build/android/QuickLinksFeatureItem.json +64 -0
- package/build/android/QuickLinksList.json +94 -0
- package/build/android/Radio.json +150 -0
- package/build/android/RadioCard.json +259 -0
- package/build/android/RadioCardGroup.json +38 -0
- package/build/android/RadioGroup.json +15 -0
- package/build/android/Ribbon.json +140 -0
- package/build/android/Search.json +115 -0
- package/build/android/SearchButton.json +130 -0
- package/build/android/Select.json +178 -0
- package/build/android/SideNav.json +14 -0
- package/build/android/SideNavItem.json +167 -0
- package/build/android/SideNavItemsGroup.json +39 -0
- package/build/android/Skeleton.json +25 -0
- package/build/android/SkipLink.json +41 -0
- package/build/android/Spinner.json +29 -0
- package/build/android/SplashButton.json +25 -0
- package/build/android/SplashButtonWithDetails.json +52 -0
- package/build/android/StackView.json +11 -0
- package/build/android/StepTracker.json +214 -0
- package/build/android/StoryCard.json +59 -0
- package/build/android/Table.json +231 -0
- package/build/android/Tabs.json +43 -0
- package/build/android/TabsItem.json +301 -0
- package/build/android/Tags.json +27 -0
- package/build/android/TagsItem.json +214 -0
- package/build/android/TermsAndConditions.json +116 -0
- package/build/android/Testimonial.json +65 -0
- package/build/android/TextArea.json +8 -0
- package/build/android/TextInput.json +167 -0
- package/build/android/Timeline.json +67 -0
- package/build/android/Toast.json +74 -0
- package/build/android/ToggleSwitch.json +213 -0
- package/build/android/ToggleSwitchGroup.json +28 -0
- package/build/android/Tooltip.json +68 -0
- package/build/android/TooltipButton.json +82 -0
- package/build/android/Typography.json +700 -0
- package/build/android/Video.json +15 -0
- package/build/android/VideoButton.json +12 -0
- package/build/android/VideoControlBar.json +37 -0
- package/build/android/VideoMenu.json +40 -0
- package/build/android/VideoMiddleControlButton.json +20 -0
- package/build/android/VideoPicker.json +28 -0
- package/build/android/VideoPickerSlider.json +8 -0
- package/build/android/VideoPickerThumbnail.json +92 -0
- package/build/android/VideoProgressBar.json +34 -0
- package/build/android/VideoVolumeSlider.json +36 -0
- package/build/android/WaffleGrid.json +46 -0
- package/build/android/schema.json +983 -951
- package/build/android/spacingScale.json +185 -0
- package/build/android/theme.json +108 -25
- package/build/ios/ActivityIndicator.json +30 -0
- package/build/ios/Badge.json +314 -0
- package/build/ios/BlockQuote.json +72 -0
- package/build/ios/Box.json +644 -0
- package/build/ios/Breadcrumbs.json +62 -0
- package/build/ios/Button.json +527 -0
- package/build/ios/ButtonDropdown.json +232 -0
- package/build/ios/ButtonGroup.json +43 -0
- package/build/ios/ButtonGroupItem.json +180 -0
- package/build/ios/Callout.json +51 -0
- package/build/ios/Card.json +277 -0
- package/build/ios/Carousel.json +41 -0
- package/build/ios/CarouselTabsPanelItem.json +173 -0
- package/build/ios/CarouselThumbnail.json +61 -0
- package/build/ios/Checkbox.json +131 -0
- package/build/ios/CheckboxCard.json +259 -0
- package/build/ios/CheckboxCardGroup.json +47 -0
- package/build/ios/CheckboxGroup.json +15 -0
- package/build/ios/ChevronLink.json +143 -0
- package/build/ios/ColourToggle.json +85 -0
- package/build/ios/Countdown.json +181 -0
- package/build/ios/DatePicker.json +171 -0
- package/build/ios/Disclaimer.json +16 -0
- package/build/ios/Divider.json +62 -0
- package/build/ios/ExpandCollapse.json +14 -0
- package/build/ios/ExpandCollapseControl.json +83 -0
- package/build/ios/ExpandCollapseMini.json +7 -0
- package/build/ios/ExpandCollapseMiniControl.json +130 -0
- package/build/ios/ExpandCollapsePanel.json +84 -0
- package/build/ios/Feedback.json +136 -0
- package/build/ios/Fieldset.json +41 -0
- package/build/ios/Footnote.json +123 -0
- package/build/ios/FootnoteLink.json +17 -0
- package/build/ios/HorizontalScrollButton.json +78 -0
- package/build/ios/Icon.json +174 -0
- package/build/ios/IconButton.json +488 -0
- package/build/ios/Image.json +7 -0
- package/build/ios/InputLabel.json +27 -0
- package/build/ios/InputSupports.json +7 -0
- package/build/ios/Link.json +200 -0
- package/build/ios/List.json +100 -0
- package/build/ios/Listbox.json +242 -0
- package/build/ios/Modal.json +194 -0
- package/build/ios/MultiSelectFilter.json +70 -0
- package/build/ios/NavigationBar.json +147 -0
- package/build/ios/Notification.json +192 -0
- package/build/ios/OrderedList.json +81 -0
- package/build/ios/Pagination.json +49 -0
- package/build/ios/PaginationPageButton.json +100 -0
- package/build/ios/PaginationSideButton.json +154 -0
- package/build/ios/PreviewCard.json +39 -0
- package/build/ios/PriceLockup.json +141 -0
- package/build/ios/Progress.json +35 -0
- package/build/ios/ProgressBar.json +95 -0
- package/build/ios/QuantitySelector.json +123 -0
- package/build/ios/QuantitySelectorSideButton.json +197 -0
- package/build/ios/QuickLinks.json +29 -0
- package/build/ios/QuickLinksButton.json +84 -0
- package/build/ios/QuickLinksCard.json +27 -0
- package/build/ios/QuickLinksFeature.json +9 -0
- package/build/ios/QuickLinksFeatureItem.json +64 -0
- package/build/ios/QuickLinksList.json +94 -0
- package/build/ios/Radio.json +150 -0
- package/build/ios/RadioCard.json +259 -0
- package/build/ios/RadioCardGroup.json +38 -0
- package/build/ios/RadioGroup.json +15 -0
- package/build/ios/Ribbon.json +140 -0
- package/build/ios/Search.json +115 -0
- package/build/ios/SearchButton.json +130 -0
- package/build/ios/Select.json +178 -0
- package/build/ios/SideNav.json +14 -0
- package/build/ios/SideNavItem.json +167 -0
- package/build/ios/SideNavItemsGroup.json +39 -0
- package/build/ios/Skeleton.json +25 -0
- package/build/ios/SkipLink.json +41 -0
- package/build/ios/Spinner.json +29 -0
- package/build/ios/SplashButton.json +25 -0
- package/build/ios/SplashButtonWithDetails.json +52 -0
- package/build/ios/StackView.json +11 -0
- package/build/ios/StepTracker.json +214 -0
- package/build/ios/StoryCard.json +59 -0
- package/build/ios/Table.json +231 -0
- package/build/ios/Tabs.json +43 -0
- package/build/ios/TabsItem.json +301 -0
- package/build/ios/Tags.json +27 -0
- package/build/ios/TagsItem.json +214 -0
- package/build/ios/TermsAndConditions.json +116 -0
- package/build/ios/Testimonial.json +65 -0
- package/build/ios/TextArea.json +8 -0
- package/build/ios/TextInput.json +167 -0
- package/build/ios/Timeline.json +67 -0
- package/build/ios/Toast.json +74 -0
- package/build/ios/ToggleSwitch.json +213 -0
- package/build/ios/ToggleSwitchGroup.json +28 -0
- package/build/ios/Tooltip.json +68 -0
- package/build/ios/TooltipButton.json +82 -0
- package/build/ios/Typography.json +700 -0
- package/build/ios/Video.json +15 -0
- package/build/ios/VideoButton.json +12 -0
- package/build/ios/VideoControlBar.json +37 -0
- package/build/ios/VideoMenu.json +40 -0
- package/build/ios/VideoMiddleControlButton.json +20 -0
- package/build/ios/VideoPicker.json +28 -0
- package/build/ios/VideoPickerSlider.json +8 -0
- package/build/ios/VideoPickerThumbnail.json +92 -0
- package/build/ios/VideoProgressBar.json +34 -0
- package/build/ios/VideoVolumeSlider.json +36 -0
- package/build/ios/WaffleGrid.json +46 -0
- package/build/ios/schema.json +983 -951
- package/build/ios/spacingScale.json +185 -0
- package/build/ios/theme.json +108 -25
- package/build/rn/ActivityIndicator.js +20 -0
- package/build/rn/Badge.js +129 -0
- package/build/rn/BlockQuote.js +55 -0
- package/build/rn/Box.js +214 -0
- package/build/rn/Breadcrumbs.js +34 -0
- package/build/rn/Button.js +314 -0
- package/build/rn/ButtonDropdown.js +143 -0
- package/build/rn/ButtonGroup.js +39 -0
- package/build/rn/ButtonGroupItem.js +125 -0
- package/build/rn/Callout.js +32 -0
- package/build/rn/Card.js +181 -0
- package/build/rn/Carousel.js +36 -0
- package/build/rn/CarouselTabsPanelItem.js +151 -0
- package/build/rn/CarouselThumbnail.js +62 -0
- package/build/rn/Checkbox.js +92 -0
- package/build/rn/CheckboxCard.js +159 -0
- package/build/rn/CheckboxCardGroup.js +45 -0
- package/build/rn/CheckboxGroup.js +24 -0
- package/build/rn/ChevronLink.js +100 -0
- package/build/rn/ColourToggle.js +93 -0
- package/build/rn/Countdown.js +90 -0
- package/build/rn/DatePicker.js +61 -0
- package/build/rn/Disclaimer.js +20 -0
- package/build/rn/Divider.js +26 -0
- package/build/rn/ExpandCollapse.js +14 -0
- package/build/rn/ExpandCollapseControl.js +56 -0
- package/build/rn/ExpandCollapseMini.js +10 -0
- package/build/rn/ExpandCollapseMiniControl.js +71 -0
- package/build/rn/ExpandCollapsePanel.js +53 -0
- package/build/rn/Feedback.js +67 -0
- package/build/rn/Fieldset.js +26 -0
- package/build/rn/Footnote.js +96 -0
- package/build/rn/FootnoteLink.js +21 -0
- package/build/rn/HorizontalScrollButton.js +63 -0
- package/build/rn/Icon.js +48 -0
- package/build/rn/IconButton.js +295 -0
- package/build/rn/Image.js +10 -0
- package/build/rn/InputLabel.js +26 -0
- package/build/rn/InputSupports.js +10 -0
- package/build/rn/Link.js +173 -0
- package/build/rn/List.js +75 -0
- package/build/rn/Listbox.js +198 -0
- package/build/rn/Modal.js +143 -0
- package/build/rn/MultiSelectFilter.js +62 -0
- package/build/rn/NavigationBar.js +128 -0
- package/build/rn/Notification.js +118 -0
- package/build/rn/OrderedList.js +58 -0
- package/build/rn/Pagination.js +44 -0
- package/build/rn/PaginationPageButton.js +88 -0
- package/build/rn/PaginationSideButton.js +125 -0
- package/build/rn/PreviewCard.js +58 -0
- package/build/rn/PriceLockup.js +104 -0
- package/build/rn/Progress.js +20 -0
- package/build/rn/ProgressBar.js +48 -0
- package/build/rn/QuantitySelector.js +54 -0
- package/build/rn/QuantitySelectorSideButton.js +102 -0
- package/build/rn/QuickLinks.js +32 -0
- package/build/rn/QuickLinksButton.js +68 -0
- package/build/rn/QuickLinksCard.js +26 -0
- package/build/rn/QuickLinksFeature.js +14 -0
- package/build/rn/QuickLinksFeatureItem.js +76 -0
- package/build/rn/QuickLinksList.js +84 -0
- package/build/rn/Radio.js +93 -0
- package/build/rn/RadioCard.js +159 -0
- package/build/rn/RadioCardGroup.js +41 -0
- package/build/rn/RadioGroup.js +24 -0
- package/build/rn/Ribbon.js +74 -0
- package/build/rn/Search.js +72 -0
- package/build/rn/SearchButton.js +96 -0
- package/build/rn/Select.js +95 -0
- package/build/rn/SideNav.js +14 -0
- package/build/rn/SideNavItem.js +123 -0
- package/build/rn/SideNavItemsGroup.js +37 -0
- package/build/rn/Skeleton.js +24 -0
- package/build/rn/SkipLink.js +46 -0
- package/build/rn/Spinner.js +18 -0
- package/build/rn/SplashButton.js +31 -0
- package/build/rn/SplashButtonWithDetails.js +43 -0
- package/build/rn/StackView.js +20 -0
- package/build/rn/StepTracker.js +96 -0
- package/build/rn/StoryCard.js +62 -0
- package/build/rn/Table.js +145 -0
- package/build/rn/Tabs.js +36 -0
- package/build/rn/TabsItem.js +127 -0
- package/build/rn/Tags.js +27 -0
- package/build/rn/TagsItem.js +136 -0
- package/build/rn/TermsAndConditions.js +82 -0
- package/build/rn/Testimonial.js +58 -0
- package/build/rn/TextArea.js +10 -0
- package/build/rn/TextInput.js +114 -0
- package/build/rn/Timeline.js +58 -0
- package/build/rn/Toast.js +43 -0
- package/build/rn/ToggleSwitch.js +146 -0
- package/build/rn/ToggleSwitchGroup.js +28 -0
- package/build/rn/Tooltip.js +42 -0
- package/build/rn/TooltipButton.js +57 -0
- package/build/rn/Typography.js +338 -0
- package/build/rn/Video.js +21 -0
- package/build/rn/VideoButton.js +10 -0
- package/build/rn/VideoControlBar.js +47 -0
- package/build/rn/VideoMenu.js +24 -0
- package/build/rn/VideoMiddleControlButton.js +19 -0
- package/build/rn/VideoPicker.js +22 -0
- package/build/rn/VideoPickerSlider.js +18 -0
- package/build/rn/VideoPickerThumbnail.js +70 -0
- package/build/rn/VideoProgressBar.js +23 -0
- package/build/rn/VideoVolumeSlider.js +26 -0
- package/build/rn/WaffleGrid.js +29 -0
- package/build/rn/schema.json +983 -951
- package/build/rn/spacingScale.js +68 -0
- package/build/rn/theme.js +63 -22
- package/build/web/ActivityIndicator.js +20 -0
- package/build/web/Badge.js +129 -0
- package/build/web/BlockQuote.js +55 -0
- package/build/web/Box.js +214 -0
- package/build/web/Breadcrumbs.js +34 -0
- package/build/web/Button.js +221 -0
- package/build/web/ButtonDropdown.js +108 -0
- package/build/web/ButtonGroup.js +39 -0
- package/build/web/ButtonGroupItem.js +91 -0
- package/build/web/Callout.js +32 -0
- package/build/web/Card.js +158 -0
- package/build/web/Carousel.js +36 -0
- package/build/web/CarouselTabsPanelItem.js +95 -0
- package/build/web/CarouselThumbnail.js +45 -0
- package/build/web/Checkbox.js +63 -0
- package/build/web/CheckboxCard.js +125 -0
- package/build/web/CheckboxCardGroup.js +45 -0
- package/build/web/CheckboxGroup.js +24 -0
- package/build/web/ChevronLink.js +63 -0
- package/build/web/ColourToggle.js +65 -0
- package/build/web/Countdown.js +90 -0
- package/build/web/DatePicker.js +61 -0
- package/build/web/Disclaimer.js +20 -0
- package/build/web/Divider.js +26 -0
- package/build/web/ExpandCollapse.js +14 -0
- package/build/web/ExpandCollapseControl.js +56 -0
- package/build/web/ExpandCollapseMini.js +10 -0
- package/build/web/ExpandCollapseMiniControl.js +71 -0
- package/build/web/ExpandCollapsePanel.js +53 -0
- package/build/web/Feedback.js +67 -0
- package/build/web/Fieldset.js +26 -0
- package/build/web/Footnote.js +96 -0
- package/build/web/FootnoteLink.js +21 -0
- package/build/web/HorizontalScrollButton.js +47 -0
- package/build/web/Icon.js +48 -0
- package/build/web/IconButton.js +220 -0
- package/build/web/Image.js +10 -0
- package/build/web/InputLabel.js +26 -0
- package/build/web/InputSupports.js +10 -0
- package/build/web/Link.js +105 -0
- package/build/web/List.js +75 -0
- package/build/web/Listbox.js +138 -0
- package/build/web/Modal.js +143 -0
- package/build/web/MultiSelectFilter.js +62 -0
- package/build/web/NavigationBar.js +89 -0
- package/build/web/Notification.js +118 -0
- package/build/web/OrderedList.js +58 -0
- package/build/web/Pagination.js +44 -0
- package/build/web/PaginationPageButton.js +62 -0
- package/build/web/PaginationSideButton.js +100 -0
- package/build/web/PreviewCard.js +28 -0
- package/build/web/PriceLockup.js +104 -0
- package/build/web/Progress.js +20 -0
- package/build/web/ProgressBar.js +48 -0
- package/build/web/QuantitySelector.js +54 -0
- package/build/web/QuantitySelectorSideButton.js +102 -0
- package/build/web/QuickLinks.js +32 -0
- package/build/web/QuickLinksButton.js +53 -0
- package/build/web/QuickLinksCard.js +26 -0
- package/build/web/QuickLinksFeature.js +14 -0
- package/build/web/QuickLinksFeatureItem.js +48 -0
- package/build/web/QuickLinksList.js +56 -0
- package/build/web/Radio.js +76 -0
- package/build/web/RadioCard.js +125 -0
- package/build/web/RadioCardGroup.js +41 -0
- package/build/web/RadioGroup.js +24 -0
- package/build/web/Ribbon.js +74 -0
- package/build/web/Search.js +62 -0
- package/build/web/SearchButton.js +67 -0
- package/build/web/Select.js +88 -0
- package/build/web/SideNav.js +14 -0
- package/build/web/SideNavItem.js +94 -0
- package/build/web/SideNavItemsGroup.js +37 -0
- package/build/web/Skeleton.js +24 -0
- package/build/web/SkipLink.js +35 -0
- package/build/web/Spinner.js +18 -0
- package/build/web/SplashButton.js +19 -0
- package/build/web/SplashButtonWithDetails.js +31 -0
- package/build/web/StackView.js +20 -0
- package/build/web/StepTracker.js +96 -0
- package/build/web/StoryCard.js +39 -0
- package/build/web/Table.js +145 -0
- package/build/web/Tabs.js +36 -0
- package/build/web/TabsItem.js +127 -0
- package/build/web/Tags.js +27 -0
- package/build/web/TagsItem.js +102 -0
- package/build/web/TermsAndConditions.js +82 -0
- package/build/web/Testimonial.js +58 -0
- package/build/web/TextArea.js +10 -0
- package/build/web/TextInput.js +104 -0
- package/build/web/Timeline.js +58 -0
- package/build/web/Toast.js +43 -0
- package/build/web/ToggleSwitch.js +105 -0
- package/build/web/ToggleSwitchGroup.js +28 -0
- package/build/web/Tooltip.js +42 -0
- package/build/web/TooltipButton.js +39 -0
- package/build/web/Typography.js +338 -0
- package/build/web/Video.js +21 -0
- package/build/web/VideoButton.js +10 -0
- package/build/web/VideoControlBar.js +47 -0
- package/build/web/VideoMenu.js +24 -0
- package/build/web/VideoMiddleControlButton.js +19 -0
- package/build/web/VideoPicker.js +22 -0
- package/build/web/VideoPickerSlider.js +18 -0
- package/build/web/VideoPickerThumbnail.js +50 -0
- package/build/web/VideoProgressBar.js +23 -0
- package/build/web/VideoVolumeSlider.js +26 -0
- package/build/web/WaffleGrid.js +29 -0
- package/build/web/index.js +111 -0
- package/build/web/schema.json +20651 -0
- package/build/web/spacingScale.js +68 -0
- package/build/web/theme.js +6027 -0
- package/package.json +6 -5
- package/theme.json +64 -17
package/build/rn/Box.js
ADDED
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
/*
|
|
2
|
+
*
|
|
3
|
+
* Do not edit directly
|
|
4
|
+
* Generated on Mon, 08 Jan 2024 20:06:52 GMT
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
module.exports = {
|
|
11
|
+
appearances: {
|
|
12
|
+
background: {
|
|
13
|
+
description: 'Background colour of box. Transparent if not specified.',
|
|
14
|
+
type: 'variant',
|
|
15
|
+
values: [
|
|
16
|
+
'lightest', 'lighter',
|
|
17
|
+
'light', 'dark',
|
|
18
|
+
'darker', 'darkest',
|
|
19
|
+
'critical', 'danger',
|
|
20
|
+
'warning', 'positive',
|
|
21
|
+
'brand', 'white',
|
|
22
|
+
'black', 'purpleGradient',
|
|
23
|
+
'greenGradient', 'neutralGradient',
|
|
24
|
+
'brandGradient', 'featurePrimary',
|
|
25
|
+
'featureSecondary', 'featureNeutral',
|
|
26
|
+
'featureBrand'
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
rules: [
|
|
31
|
+
{
|
|
32
|
+
if: { background: 'lightest' },
|
|
33
|
+
tokens: { backgroundColor: '#ffffff', borderColor: '#ffffff' }
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
if: { background: 'lighter' },
|
|
37
|
+
tokens: { backgroundColor: '#ffffff', borderColor: '#ffffff' }
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
if: { background: 'light' },
|
|
41
|
+
tokens: { backgroundColor: '#f4f4f7', borderColor: '#f4f4f7' }
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
if: { background: 'dark' },
|
|
45
|
+
tokens: { backgroundColor: '#414547', borderColor: '#414547' }
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
if: { background: 'darker' },
|
|
49
|
+
tokens: { backgroundColor: '#2c2e30', borderColor: '#2c2e30' }
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
if: { background: 'darkest' },
|
|
53
|
+
tokens: { backgroundColor: '#000000', borderColor: '#000000' }
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
if: { background: 'critical' },
|
|
57
|
+
tokens: { backgroundColor: '#c12335', borderColor: '#c12335' }
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
if: { background: 'danger' },
|
|
61
|
+
tokens: { backgroundColor: '#fff6f8', borderColor: '#fff6f8' }
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
if: { background: 'warning' },
|
|
65
|
+
tokens: { backgroundColor: '#fff9ee', borderColor: '#fff9ee' }
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
if: { background: 'positive' },
|
|
69
|
+
tokens: { backgroundColor: '#f4f9f2', borderColor: '#f4f9f2' }
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
if: { background: 'brand' },
|
|
73
|
+
tokens: { backgroundColor: '#4b286d', borderColor: '#4b286d' }
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
if: { background: 'white' },
|
|
77
|
+
tokens: { backgroundColor: '#ffffff', borderColor: '#ffffff' }
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
if: { background: 'black' },
|
|
81
|
+
tokens: { backgroundColor: '#000000', borderColor: '#000000' }
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
if: { background: 'brandGradient' },
|
|
85
|
+
tokens: {
|
|
86
|
+
backgroundColor: null,
|
|
87
|
+
borderColor: null,
|
|
88
|
+
gradient: {
|
|
89
|
+
angle: 135,
|
|
90
|
+
stops: [
|
|
91
|
+
{ color: '#4b286d', stop: 0 },
|
|
92
|
+
{ color: '#613889', stop: 1 }
|
|
93
|
+
],
|
|
94
|
+
type: 'linear'
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
if: { background: 'greenGradient' },
|
|
100
|
+
tokens: {
|
|
101
|
+
backgroundColor: null,
|
|
102
|
+
borderColor: null,
|
|
103
|
+
gradient: {
|
|
104
|
+
angle: 135,
|
|
105
|
+
stops: [
|
|
106
|
+
{ color: '#00784a', stop: 0 },
|
|
107
|
+
{ color: '#66cc00', stop: 1 }
|
|
108
|
+
],
|
|
109
|
+
type: 'linear'
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
if: { background: 'neutralGradient' },
|
|
115
|
+
tokens: {
|
|
116
|
+
backgroundColor: null,
|
|
117
|
+
borderColor: null,
|
|
118
|
+
gradient: {
|
|
119
|
+
angle: 180,
|
|
120
|
+
stops: [
|
|
121
|
+
{ color: '#ffffff', stop: 0 },
|
|
122
|
+
{ color: '#f4f4f7', stop: 1 }
|
|
123
|
+
],
|
|
124
|
+
type: 'linear'
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
if: { background: 'purpleGradient' },
|
|
130
|
+
tokens: {
|
|
131
|
+
backgroundColor: null,
|
|
132
|
+
borderColor: null,
|
|
133
|
+
gradient: {
|
|
134
|
+
angle: 135,
|
|
135
|
+
stops: [
|
|
136
|
+
{ color: '#4b286d', stop: 0 },
|
|
137
|
+
{ color: '#e53293', stop: 1 }
|
|
138
|
+
],
|
|
139
|
+
type: 'linear'
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
if: { background: 'featurePrimary' },
|
|
145
|
+
tokens: {
|
|
146
|
+
backgroundColor: null,
|
|
147
|
+
borderColor: null,
|
|
148
|
+
gradient: {
|
|
149
|
+
angle: 135,
|
|
150
|
+
stops: [
|
|
151
|
+
{ color: '#4b286d', stop: 0 },
|
|
152
|
+
{ color: '#e53293', stop: 1 }
|
|
153
|
+
],
|
|
154
|
+
type: 'linear'
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
if: { background: 'featureSecondary' },
|
|
160
|
+
tokens: {
|
|
161
|
+
backgroundColor: null,
|
|
162
|
+
borderColor: null,
|
|
163
|
+
gradient: {
|
|
164
|
+
angle: 135,
|
|
165
|
+
stops: [
|
|
166
|
+
{ color: '#00784a', stop: 0 },
|
|
167
|
+
{ color: '#66cc00', stop: 1 }
|
|
168
|
+
],
|
|
169
|
+
type: 'linear'
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
if: { background: 'featureNeutral' },
|
|
175
|
+
tokens: {
|
|
176
|
+
backgroundColor: null,
|
|
177
|
+
borderColor: null,
|
|
178
|
+
gradient: {
|
|
179
|
+
angle: 180,
|
|
180
|
+
stops: [
|
|
181
|
+
{ color: '#ffffff', stop: 0 },
|
|
182
|
+
{ color: '#f4f4f7', stop: 1 }
|
|
183
|
+
],
|
|
184
|
+
type: 'linear'
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
if: { background: 'featureBrand' },
|
|
190
|
+
tokens: {
|
|
191
|
+
backgroundColor: null,
|
|
192
|
+
borderColor: null,
|
|
193
|
+
gradient: {
|
|
194
|
+
angle: 135,
|
|
195
|
+
stops: [
|
|
196
|
+
{ color: '#4b286d', stop: 0 },
|
|
197
|
+
{ color: '#613889', stop: 1 }
|
|
198
|
+
],
|
|
199
|
+
type: 'linear'
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
],
|
|
204
|
+
tokens: {
|
|
205
|
+
backgroundColor: null,
|
|
206
|
+
borderBottomLeftRadius: 0,
|
|
207
|
+
borderBottomRightRadius: 0,
|
|
208
|
+
borderColor: null,
|
|
209
|
+
borderTopLeftRadius: 0,
|
|
210
|
+
borderTopRightRadius: 0,
|
|
211
|
+
borderWidth: 0,
|
|
212
|
+
gradient: null
|
|
213
|
+
}
|
|
214
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/*
|
|
2
|
+
*
|
|
3
|
+
* Do not edit directly
|
|
4
|
+
* Generated on Mon, 08 Jan 2024 20:06:52 GMT
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
const PaletteIconChevronRight = require('@telus-uds/palette-allium/build/rn/icons/ChevronRight')
|
|
9
|
+
|
|
10
|
+
module.exports = {
|
|
11
|
+
appearances: { inverse: { type: 'variant', values: [ true ] } },
|
|
12
|
+
rules: [
|
|
13
|
+
{
|
|
14
|
+
if: { inverse: true },
|
|
15
|
+
tokens: {
|
|
16
|
+
color: '#ffffff',
|
|
17
|
+
currentColor: '#ffffff',
|
|
18
|
+
iconColor: '#b2b9bf'
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
tokens: {
|
|
23
|
+
color: '#676e73',
|
|
24
|
+
currentColor: '#414547',
|
|
25
|
+
fontName: 'HelveticaNow',
|
|
26
|
+
fontSize: 12,
|
|
27
|
+
fontWeight: '500',
|
|
28
|
+
icon: PaletteIconChevronRight,
|
|
29
|
+
iconColor: '#b2b9bf',
|
|
30
|
+
iconPadding: 4,
|
|
31
|
+
iconSize: 16,
|
|
32
|
+
listItemPadding: 0
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,314 @@
|
|
|
1
|
+
/*
|
|
2
|
+
*
|
|
3
|
+
* Do not edit directly
|
|
4
|
+
* Generated on Mon, 08 Jan 2024 20:06:52 GMT
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
module.exports = {
|
|
11
|
+
appearances: {
|
|
12
|
+
danger: {
|
|
13
|
+
description: 'Indicates a user action that is destructive and will result in loss of information or cause significant monetary charges. Limit the use of the danger button whenever possible.',
|
|
14
|
+
type: 'variant',
|
|
15
|
+
values: [ true ]
|
|
16
|
+
},
|
|
17
|
+
focus: {
|
|
18
|
+
description: "Currently only web has good support for this. Applies when an interactive component's focus handler is triggered, such as keyboard tabbing or selection.",
|
|
19
|
+
platforms: [ 'rn' ],
|
|
20
|
+
type: 'state',
|
|
21
|
+
values: [ true, false ]
|
|
22
|
+
},
|
|
23
|
+
hover: {
|
|
24
|
+
description: "Currently web only. Applies when an interactive component's hover handler is triggered, such as on mouseover.",
|
|
25
|
+
platforms: [ 'rn' ],
|
|
26
|
+
type: 'state',
|
|
27
|
+
values: [ true, false ]
|
|
28
|
+
},
|
|
29
|
+
inactive: {
|
|
30
|
+
description: 'Prevents an interactive component from being interacted with and applies accessibility attributes to indicate to the user that this component cannot be used.',
|
|
31
|
+
type: 'state',
|
|
32
|
+
values: [ true ]
|
|
33
|
+
},
|
|
34
|
+
inverse: {
|
|
35
|
+
description: 'Use inverse buttons on darker backgrounds. High and low priority buttons, and danger buttons, are available in inverse.',
|
|
36
|
+
type: 'variant',
|
|
37
|
+
values: [ true ]
|
|
38
|
+
},
|
|
39
|
+
pressed: {
|
|
40
|
+
description: 'Applies while an interactive component is being physically pressed. Most visible on touchscreen taps; in React Native Web, this is visible on web mouse clicks only if the pressable is held down.',
|
|
41
|
+
type: 'state',
|
|
42
|
+
values: [ true, false ]
|
|
43
|
+
},
|
|
44
|
+
priority: {
|
|
45
|
+
description: 'Indicates the importance of the call-to-action. Limit the amount of high priority buttons on a page to prioritize meaningful user flows. Low priority styles are applied by default.',
|
|
46
|
+
type: 'variant',
|
|
47
|
+
values: [ 'high', 'low' ]
|
|
48
|
+
},
|
|
49
|
+
size: { type: 'variant', values: [ 'small' ] },
|
|
50
|
+
text: {
|
|
51
|
+
description: 'Text variant visually deprioritize the button styles',
|
|
52
|
+
type: 'variant',
|
|
53
|
+
values: [ true ]
|
|
54
|
+
},
|
|
55
|
+
viewport: {
|
|
56
|
+
description: 'The size label for the current screen viewport based on the current screen width',
|
|
57
|
+
type: 'state',
|
|
58
|
+
values: [ 'xs', 'sm', 'md', 'lg', 'xl' ]
|
|
59
|
+
},
|
|
60
|
+
width: {
|
|
61
|
+
description: 'Available in default, full-width or responsive. Default-width expands based on content. Full-width expands to width of the container. Responsive automatically applies full-width when is displayed on the XS viewport.',
|
|
62
|
+
type: 'variant',
|
|
63
|
+
values: [ 'full', 'responsive' ]
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
rules: [
|
|
67
|
+
{
|
|
68
|
+
if: { hover: true },
|
|
69
|
+
tokens: {
|
|
70
|
+
borderBottomWidth: 3,
|
|
71
|
+
borderLeftWidth: 3,
|
|
72
|
+
borderRightWidth: 3,
|
|
73
|
+
borderTopWidth: 3
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
if: { priority: 'high' },
|
|
78
|
+
tokens: {
|
|
79
|
+
backgroundColor: '#2b8000',
|
|
80
|
+
borderColor: 'rgba(0, 0, 0, 0)',
|
|
81
|
+
borderWidth: 0,
|
|
82
|
+
color: '#ffffff'
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
if: { pressed: true },
|
|
87
|
+
tokens: {
|
|
88
|
+
backgroundColor: '#163e06',
|
|
89
|
+
borderColor: 'rgba(0, 0, 0, 0)',
|
|
90
|
+
color: '#ffffff'
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
{ if: { focus: true }, tokens: { outerBorderColor: '#2b8000' } },
|
|
94
|
+
{
|
|
95
|
+
if: { inverse: true },
|
|
96
|
+
tokens: {
|
|
97
|
+
backgroundColor: null,
|
|
98
|
+
borderColor: '#ffffff',
|
|
99
|
+
color: '#ffffff'
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
if: { hover: true, priority: 'high' },
|
|
104
|
+
tokens: { backgroundColor: '#1f5c09' }
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
if: { focus: true, pressed: true },
|
|
108
|
+
tokens: { outerBorderColor: '#163e06' }
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
if: { inverse: true, priority: 'high' },
|
|
112
|
+
tokens: { backgroundColor: '#ffffff', color: '#414547' }
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
if: { hover: true, inverse: true, priority: 'high' },
|
|
116
|
+
tokens: { backgroundColor: 'rgba(255, 255, 255, 0.8)' }
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
if: { inverse: true, pressed: true },
|
|
120
|
+
tokens: {
|
|
121
|
+
backgroundColor: 'rgba(255, 255, 255, 0.6)',
|
|
122
|
+
borderColor: 'rgba(0, 0, 0, 0)',
|
|
123
|
+
color: '#414547'
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
if: { focus: true, inverse: true },
|
|
128
|
+
tokens: { outerBorderColor: '#ffffff' }
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
if: { danger: true, priority: null },
|
|
132
|
+
tokens: { borderColor: '#e12339', color: '#e12339' }
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
if: { danger: true, inverse: true, priority: null },
|
|
136
|
+
tokens: { backgroundColor: '#ffffff' }
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
if: { danger: true, focus: true, priority: null },
|
|
140
|
+
tokens: { outerBorderColor: '#e12339' }
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
if: { danger: true, pressed: true, priority: null },
|
|
144
|
+
tokens: {
|
|
145
|
+
backgroundColor: '#c12335',
|
|
146
|
+
borderColor: 'rgba(0, 0, 0, 0)',
|
|
147
|
+
color: '#ffffff'
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
if: { danger: true, focus: true, pressed: true, priority: null },
|
|
152
|
+
tokens: { outerBorderColor: '#c12335' }
|
|
153
|
+
},
|
|
154
|
+
{ if: { width: 'full' }, tokens: { width: '100%' } },
|
|
155
|
+
{
|
|
156
|
+
if: { viewport: [ 'xs' ], width: 'responsive' },
|
|
157
|
+
tokens: { width: '100%' }
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
if: { size: 'small' },
|
|
161
|
+
tokens: { minWidth: 0, paddingBottom: 4, paddingTop: 4 }
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
description: 'Buttons should not be disabled or set as inactive. Use inline (on blur) error messaging to provide feedback when the form is invalid. In exceptional instances where disabled buttons are needed, it must be clear to the user why the button is disabled and what they need to do to enable it.',
|
|
165
|
+
if: { inactive: true },
|
|
166
|
+
tokens: {
|
|
167
|
+
backgroundColor: '#b2b9bf',
|
|
168
|
+
borderColor: 'rgba(0, 0, 0, 0)',
|
|
169
|
+
borderWidth: 0,
|
|
170
|
+
color: '#ffffff'
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
if: { inactive: true, inverse: true },
|
|
175
|
+
tokens: {
|
|
176
|
+
backgroundColor: 'rgba(255, 255, 255, 0.6)',
|
|
177
|
+
borderColor: 'rgba(0, 0, 0, 0)',
|
|
178
|
+
color: '#414547'
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
if: { text: true },
|
|
183
|
+
tokens: {
|
|
184
|
+
backgroundColor: 'rgba(0, 0, 0, 0)',
|
|
185
|
+
borderColor: 'rgba(0, 0, 0, 0)',
|
|
186
|
+
borderWidth: 0,
|
|
187
|
+
minWidth: 0,
|
|
188
|
+
outerBorderColor: 'rgba(0, 0, 0, 0)',
|
|
189
|
+
paddingLeft: 0,
|
|
190
|
+
paddingRight: 0,
|
|
191
|
+
textLine: 'underline'
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
{ if: { hover: true, text: true }, tokens: { textLine: 'none' } },
|
|
195
|
+
{
|
|
196
|
+
if: { priority: 'high', text: true },
|
|
197
|
+
tokens: { color: '#2b8000' }
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
if: { priority: 'low', text: true },
|
|
201
|
+
tokens: { color: '#414547' }
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
if: { focus: true, text: true },
|
|
205
|
+
tokens: {
|
|
206
|
+
borderColor: 'rgba(0, 0, 0, 0)',
|
|
207
|
+
borderRadius: 0,
|
|
208
|
+
color: '#2b8000',
|
|
209
|
+
outerBorderColor: '#2b8000'
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
if: { hover: true, priority: 'high', text: true },
|
|
214
|
+
tokens: { color: '#1f5c09' }
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
if: { hover: true, priority: null, text: true },
|
|
218
|
+
tokens: { color: '#1f5c09' }
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
if: { hover: true, priority: 'low', text: true },
|
|
222
|
+
tokens: { color: '#414547' }
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
if: { danger: true, hover: true, text: true },
|
|
226
|
+
tokens: { color: '#c12335' }
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
if: { pressed: true, text: true },
|
|
230
|
+
tokens: {
|
|
231
|
+
borderColor: 'rgba(0, 0, 0, 0)',
|
|
232
|
+
color: '#163e06',
|
|
233
|
+
outerBorderColor: 'rgba(0, 0, 0, 0)',
|
|
234
|
+
textLine: 'none'
|
|
235
|
+
}
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
if: { focus: true, pressed: true, text: true },
|
|
239
|
+
tokens: {
|
|
240
|
+
borderColor: 'rgba(0, 0, 0, 0)',
|
|
241
|
+
color: '#163e06',
|
|
242
|
+
outerBorderColor: '#163e06',
|
|
243
|
+
textLine: 'none'
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
if: { inactive: true, text: true },
|
|
248
|
+
tokens: {
|
|
249
|
+
borderColor: 'rgba(0, 0, 0, 0)',
|
|
250
|
+
color: '#b2b9bf',
|
|
251
|
+
outerBorderColor: 'rgba(0, 0, 0, 0)',
|
|
252
|
+
textLine: 'none'
|
|
253
|
+
}
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
if: { inverse: true, text: true },
|
|
257
|
+
tokens: { borderRadius: 0, color: '#ffffff' }
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
if: { focus: true, inverse: true, text: true },
|
|
261
|
+
tokens: { borderColor: 'rgba(0, 0, 0, 0)', outerBorderColor: '#ffffff' }
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
if: { focus: true, inverse: true, pressed: true, text: true },
|
|
265
|
+
tokens: {
|
|
266
|
+
borderColor: 'rgba(0, 0, 0, 0)',
|
|
267
|
+
color: '#b2b9bf',
|
|
268
|
+
outerBorderColor: '#b2b9bf'
|
|
269
|
+
}
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
if: { inactive: true, inverse: true, text: true },
|
|
273
|
+
tokens: {
|
|
274
|
+
borderColor: 'rgba(0, 0, 0, 0)',
|
|
275
|
+
color: '#b2b9bf',
|
|
276
|
+
outerBorderColor: 'rgba(0, 0, 0, 0)'
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
],
|
|
280
|
+
tokens: {
|
|
281
|
+
backgroundColor: '#ffffff',
|
|
282
|
+
borderBottomWidth: 1,
|
|
283
|
+
borderColor: '#2b8000',
|
|
284
|
+
borderLeftWidth: 1,
|
|
285
|
+
borderRadius: 32,
|
|
286
|
+
borderRightWidth: 1,
|
|
287
|
+
borderTopWidth: 1,
|
|
288
|
+
borderWidth: 1,
|
|
289
|
+
color: '#2b8000',
|
|
290
|
+
fontName: 'HelveticaNow',
|
|
291
|
+
fontSize: 16,
|
|
292
|
+
fontWeight: '700',
|
|
293
|
+
height: null,
|
|
294
|
+
icon: null,
|
|
295
|
+
iconSize: 24,
|
|
296
|
+
iconSpace: 1,
|
|
297
|
+
lineHeight: 1.5,
|
|
298
|
+
minWidth: 144,
|
|
299
|
+
opacity: 1,
|
|
300
|
+
outerBackgroundColor: 'rgba(0, 0, 0, 0)',
|
|
301
|
+
outerBorderColor: 'rgba(0, 0, 0, 0)',
|
|
302
|
+
outerBorderGap: 2,
|
|
303
|
+
outerBorderWidth: 2,
|
|
304
|
+
paddingBottom: 12,
|
|
305
|
+
paddingLeft: 32,
|
|
306
|
+
paddingRight: 32,
|
|
307
|
+
paddingTop: 12,
|
|
308
|
+
shadow: null,
|
|
309
|
+
textAlign: 'center',
|
|
310
|
+
textLine: 'none',
|
|
311
|
+
textLineStyle: 'solid',
|
|
312
|
+
width: null
|
|
313
|
+
}
|
|
314
|
+
}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
/*
|
|
2
|
+
*
|
|
3
|
+
* Do not edit directly
|
|
4
|
+
* Generated on Mon, 08 Jan 2024 20:06:52 GMT
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
const PaletteIconCaretDown = require('@telus-uds/palette-allium/build/rn/icons/CaretDown')
|
|
9
|
+
const PaletteIconCaretUp = require('@telus-uds/palette-allium/build/rn/icons/CaretUp')
|
|
10
|
+
|
|
11
|
+
module.exports = {
|
|
12
|
+
appearances: {
|
|
13
|
+
focus: {
|
|
14
|
+
description: "Currently only web has good support for this. Applies when an interactive component's focus handler is triggered, such as keyboard tabbing or selection.",
|
|
15
|
+
platforms: [ 'rn' ],
|
|
16
|
+
type: 'state',
|
|
17
|
+
values: [ true, false ]
|
|
18
|
+
},
|
|
19
|
+
hover: {
|
|
20
|
+
description: "Currently web only. Applies when an interactive component's hover handler is triggered, such as on mouseover.",
|
|
21
|
+
platforms: [ 'rn' ],
|
|
22
|
+
type: 'state',
|
|
23
|
+
values: [ true, false ]
|
|
24
|
+
},
|
|
25
|
+
inactive: {
|
|
26
|
+
description: 'Prevents an interactive component from being interacted with and applies accessibility attributes to indicate to the user that this component cannot be used.',
|
|
27
|
+
type: 'state',
|
|
28
|
+
values: [ true ]
|
|
29
|
+
},
|
|
30
|
+
open: {
|
|
31
|
+
description: 'Applies when a ButtonDropdown is open.',
|
|
32
|
+
type: 'state',
|
|
33
|
+
values: [ true ]
|
|
34
|
+
},
|
|
35
|
+
pressed: {
|
|
36
|
+
description: 'Applies while an interactive component is being physically pressed. Most visible on touchscreen taps; in React Native Web, this is visible on web mouse clicks only if the pressable is held down.',
|
|
37
|
+
type: 'state',
|
|
38
|
+
values: [ true, false ]
|
|
39
|
+
},
|
|
40
|
+
selected: {
|
|
41
|
+
description: 'Applies while an interactive component is the currently selected one in a set of states or components, for example a button in a `ButtonGroup`.',
|
|
42
|
+
type: 'state',
|
|
43
|
+
values: [ true ]
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
rules: [
|
|
47
|
+
{ if: { open: true }, tokens: { icon: PaletteIconCaretUp } },
|
|
48
|
+
{
|
|
49
|
+
if: { focus: true },
|
|
50
|
+
tokens: {
|
|
51
|
+
borderColor: '#676e73',
|
|
52
|
+
color: '#414547',
|
|
53
|
+
outerBorderColor: '#676e73',
|
|
54
|
+
outerBorderGap: 2,
|
|
55
|
+
outerBorderWidth: 2
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
if: { pressed: true },
|
|
60
|
+
tokens: {
|
|
61
|
+
backgroundColor: '#676e73',
|
|
62
|
+
color: '#ffffff',
|
|
63
|
+
iconBackground: '#414547',
|
|
64
|
+
iconColor: '#ffffff'
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
{ if: { hover: true }, tokens: { borderWidth: 3 } },
|
|
68
|
+
{
|
|
69
|
+
if: { inactive: true },
|
|
70
|
+
tokens: {
|
|
71
|
+
backgroundColor: '#ffffff',
|
|
72
|
+
borderWidth: 0,
|
|
73
|
+
color: '#b2b9bf',
|
|
74
|
+
iconBackground: '#f4f4f7',
|
|
75
|
+
iconColor: '#b2b9bf'
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
if: { selected: true },
|
|
80
|
+
tokens: {
|
|
81
|
+
backgroundColor: '#4b286d',
|
|
82
|
+
borderWidth: 0,
|
|
83
|
+
color: '#ffffff',
|
|
84
|
+
iconBackground: '#7c53a5',
|
|
85
|
+
iconColor: '#ffffff'
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
if: { hover: true, selected: true },
|
|
90
|
+
tokens: { backgroundColor: '#7c53a5', iconBackground: '#613889' }
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
if: { focus: true, selected: true },
|
|
94
|
+
tokens: { outerBorderColor: '#4b286d' }
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
if: { pressed: true, selected: true },
|
|
98
|
+
tokens: { backgroundColor: '#3f2a54', iconBackground: '#613889' }
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
if: { focus: true, pressed: true, selected: true },
|
|
102
|
+
tokens: { outerBorderGap: 2, outerBorderWidth: 2 }
|
|
103
|
+
}
|
|
104
|
+
],
|
|
105
|
+
tokens: {
|
|
106
|
+
alignSelf: 'flex-start',
|
|
107
|
+
backgroundColor: '#ffffff',
|
|
108
|
+
borderColor: '#b2b9bf',
|
|
109
|
+
borderRadius: 32,
|
|
110
|
+
borderWidth: 1,
|
|
111
|
+
color: '#676e73',
|
|
112
|
+
dividerColor: '#e3e6e8',
|
|
113
|
+
fontName: 'HelveticaNow',
|
|
114
|
+
fontSize: 14,
|
|
115
|
+
fontWeight: '700',
|
|
116
|
+
icon: PaletteIconCaretDown,
|
|
117
|
+
iconAlignSelf: 'center',
|
|
118
|
+
iconBackground: '#f4f4f7',
|
|
119
|
+
iconBorderRadius: 32,
|
|
120
|
+
iconColor: '#414547',
|
|
121
|
+
iconPadding: 2,
|
|
122
|
+
iconPosition: 'right',
|
|
123
|
+
iconSize: 16,
|
|
124
|
+
iconSpace: 1,
|
|
125
|
+
iconTranslateX: 0,
|
|
126
|
+
iconTranslateY: 0,
|
|
127
|
+
lineHeight: 1.42857142857,
|
|
128
|
+
minWidth: 0,
|
|
129
|
+
opacity: 1,
|
|
130
|
+
outerBackgroundColor: 'rgba(0, 0, 0, 0)',
|
|
131
|
+
outerBorderColor: 'rgba(0, 0, 0, 0)',
|
|
132
|
+
outerBorderGap: 2,
|
|
133
|
+
outerBorderWidth: 2,
|
|
134
|
+
paddingBottom: 8,
|
|
135
|
+
paddingLeft: 16,
|
|
136
|
+
paddingRight: 8,
|
|
137
|
+
paddingTop: 8,
|
|
138
|
+
shadow: null,
|
|
139
|
+
subtitleColor: '#676e73',
|
|
140
|
+
textAlign: 'center',
|
|
141
|
+
width: null
|
|
142
|
+
}
|
|
143
|
+
}
|