pixelize-native-library 1.0.7 → 1.2.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/lib/module/core/MODULE.md +129 -36
- package/lib/module/core/a11y/MODULE.md +127 -4
- package/lib/module/core/a11y/announce.js +30 -0
- package/lib/module/core/a11y/announce.web.js +134 -0
- package/lib/module/core/a11y/index.js +81 -15
- package/lib/module/core/a11y/keyboard.js +42 -0
- package/lib/module/core/a11y/keyboard.web.js +229 -0
- package/lib/module/core/a11y/labels.js +24 -0
- package/lib/module/core/device/MODULE.md +47 -0
- package/lib/module/core/device/index.js +91 -0
- package/lib/module/core/heading/MODULE.md +38 -0
- package/lib/module/core/heading/index.js +45 -0
- package/lib/module/core/icon/Icon.js +37 -0
- package/lib/module/core/icon/MODULE.md +42 -8
- package/lib/module/core/icon/icons/arrow-down.js +10 -0
- package/lib/module/core/icon/icons/arrow-left.js +10 -0
- package/lib/module/core/icon/icons/arrow-right.js +10 -0
- package/lib/module/core/icon/icons/arrow-up.js +10 -0
- package/lib/module/core/icon/icons/at-sign.js +10 -0
- package/lib/module/core/icon/icons/bell.js +10 -0
- package/lib/module/core/icon/icons/bold.js +10 -0
- package/lib/module/core/icon/icons/building-2.js +10 -0
- package/lib/module/core/icon/icons/calendar.js +10 -0
- package/lib/module/core/icon/icons/chart-column.js +10 -0
- package/lib/module/core/icon/icons/check.js +10 -0
- package/lib/module/core/icon/icons/chevron-down.js +10 -0
- package/lib/module/core/icon/icons/chevron-left.js +10 -0
- package/lib/module/core/icon/icons/chevron-right.js +10 -0
- package/lib/module/core/icon/icons/chevron-up.js +10 -0
- package/lib/module/core/icon/icons/chevrons-left.js +10 -0
- package/lib/module/core/icon/icons/chevrons-right.js +10 -0
- package/lib/module/core/icon/icons/chevrons-up-down.js +10 -0
- package/lib/module/core/icon/icons/circle-alert.js +10 -0
- package/lib/module/core/icon/icons/circle-check.js +10 -0
- package/lib/module/core/icon/icons/clock.js +10 -0
- package/lib/module/core/icon/icons/code.js +10 -0
- package/lib/module/core/icon/icons/download.js +10 -0
- package/lib/module/core/icon/icons/external-link.js +10 -0
- package/lib/module/core/icon/icons/eye.js +10 -0
- package/lib/module/core/icon/icons/file-text.js +10 -0
- package/lib/module/core/icon/icons/filter.js +10 -0
- package/lib/module/core/icon/icons/flag.js +10 -0
- package/lib/module/core/icon/icons/folder.js +10 -0
- package/lib/module/core/icon/icons/heading-1.js +10 -0
- package/lib/module/core/icon/icons/heading-2.js +10 -0
- package/lib/module/core/icon/icons/heading-3.js +10 -0
- package/lib/module/core/icon/icons/image.js +10 -0
- package/lib/module/core/icon/icons/inbox.js +10 -0
- package/lib/module/core/icon/icons/info.js +10 -0
- package/lib/module/core/icon/icons/italic.js +10 -0
- package/lib/module/core/icon/icons/kanban.js +10 -0
- package/lib/module/core/icon/icons/layers.js +10 -0
- package/lib/module/core/icon/icons/layout-dashboard.js +10 -0
- package/lib/module/core/icon/icons/layout-template.js +10 -0
- package/lib/module/core/icon/icons/life-buoy.js +10 -0
- package/lib/module/core/icon/icons/link.js +10 -0
- package/lib/module/core/icon/icons/list-checks.js +10 -0
- package/lib/module/core/icon/icons/list-ordered.js +10 -0
- package/lib/module/core/icon/icons/list-todo.js +10 -0
- package/lib/module/core/icon/icons/list.js +10 -0
- package/lib/module/core/icon/icons/log-out.js +10 -0
- package/lib/module/core/icon/icons/map.js +10 -0
- package/lib/module/core/icon/icons/message-square.js +10 -0
- package/lib/module/core/icon/icons/milestone.js +10 -0
- package/lib/module/core/icon/icons/minus.js +10 -0
- package/lib/module/core/icon/icons/more-horizontal.js +10 -0
- package/lib/module/core/icon/icons/paperclip.js +10 -0
- package/lib/module/core/icon/icons/pencil.js +10 -0
- package/lib/module/core/icon/icons/plus.js +10 -0
- package/lib/module/core/icon/icons/quote.js +10 -0
- package/lib/module/core/icon/icons/refresh-cw.js +10 -0
- package/lib/module/core/icon/icons/save.js +10 -0
- package/lib/module/core/icon/icons/search.js +10 -0
- package/lib/module/core/icon/icons/send.js +10 -0
- package/lib/module/core/icon/icons/settings.js +10 -0
- package/lib/module/core/icon/icons/share.js +10 -0
- package/lib/module/core/icon/icons/square-code.js +10 -0
- package/lib/module/core/icon/icons/star.js +10 -0
- package/lib/module/core/icon/icons/strikethrough.js +10 -0
- package/lib/module/core/icon/icons/tag.js +10 -0
- package/lib/module/core/icon/icons/trash.js +10 -0
- package/lib/module/core/icon/icons/triangle-alert.js +10 -0
- package/lib/module/core/icon/icons/underline.js +10 -0
- package/lib/module/core/icon/icons/upload.js +10 -0
- package/lib/module/core/icon/icons/user.js +10 -0
- package/lib/module/core/icon/icons/users.js +10 -0
- package/lib/module/core/icon/icons/x.js +10 -0
- package/lib/module/core/icon/index.js +4 -153
- package/lib/module/core/icon/names.js +2 -0
- package/lib/module/core/icon/resolve.js +158 -0
- package/lib/module/core/icon/types.js +4 -0
- package/lib/module/core/list/VirtualList.js +226 -0
- package/lib/module/core/list/index.js +4 -0
- package/lib/module/core/media/MediaImage.js +51 -0
- package/lib/module/core/media/expoImage.js +20 -0
- package/lib/module/core/media/index.js +6 -0
- package/lib/module/core/media/pickers.js +23 -0
- package/lib/module/core/motion/MODULE.md +101 -0
- package/lib/module/core/motion/config.js +112 -0
- package/lib/module/core/motion/index.js +7 -0
- package/lib/module/core/motion/presets.js +192 -0
- package/lib/module/core/motion/useAnimatedValue.js +19 -0
- package/lib/module/core/motion/useMotion.js +46 -0
- package/lib/module/core/style/index.js +2 -0
- package/lib/module/core/style/sx.js +76 -0
- package/lib/module/core/style/useThemedStyles.js +8 -0
- package/lib/module/index.js +70 -2
- package/lib/module/modules/accordion/Accordion.js +256 -87
- package/lib/module/modules/accordion/Accordion.variants.js +2 -4
- package/lib/module/modules/accordion/MODULE.md +35 -11
- package/lib/module/modules/alert-dialog/AlertDialog.js +1 -1
- package/lib/module/modules/alert-dialog/MODULE.md +11 -2
- package/lib/module/modules/app-bar/AppBar.js +179 -0
- package/lib/module/modules/app-bar/AppBar.variants.js +72 -0
- package/lib/module/modules/app-bar/MODULE.md +68 -0
- package/lib/module/modules/app-bar/index.js +10 -0
- package/lib/module/modules/avatar/Avatar.js +38 -18
- package/lib/module/modules/avatar/Avatar.variants.js +44 -3
- package/lib/module/modules/avatar/MODULE.md +37 -15
- package/lib/module/modules/avatar-group/AvatarGroup.js +77 -0
- package/lib/module/modules/avatar-group/AvatarGroup.variants.js +109 -0
- package/lib/module/modules/avatar-group/MODULE.md +28 -0
- package/lib/module/modules/avatar-group/index.js +10 -0
- package/lib/module/modules/badge/Badge.js +3 -2
- package/lib/module/modules/badge/Badge.variants.js +12 -2
- package/lib/module/modules/badge/MODULE.md +6 -0
- package/lib/module/modules/banner/Banner.js +135 -0
- package/lib/module/modules/banner/Banner.variants.js +118 -0
- package/lib/module/modules/banner/MODULE.md +113 -0
- package/lib/module/modules/banner/index.js +4 -0
- package/lib/module/modules/bottom-nav/BottomNav.js +37 -126
- package/lib/module/modules/bottom-nav/BottomNav.variants.js +28 -9
- package/lib/module/modules/bottom-nav/BottomNavIconWithBadge.js +56 -8
- package/lib/module/modules/bottom-nav/BottomNavOverflowSheet.js +133 -114
- package/lib/module/modules/bottom-nav/BottomNavTab.js +138 -0
- package/lib/module/modules/bottom-nav/MODULE.md +21 -6
- package/lib/module/modules/bottom-sheet/BottomSheet.js +189 -0
- package/lib/module/modules/bottom-sheet/BottomSheet.variants.js +49 -0
- package/lib/module/modules/bottom-sheet/MODULE.md +53 -0
- package/lib/module/modules/bottom-sheet/index.js +4 -0
- package/lib/module/modules/button/Button.js +98 -47
- package/lib/module/modules/button/Button.variants.js +12 -7
- package/lib/module/modules/button/MODULE.md +25 -3
- package/lib/module/modules/button-group/ButtonGroup.js +163 -55
- package/lib/module/modules/button-group/ButtonGroup.variants.js +30 -4
- package/lib/module/modules/button-group/MODULE.md +33 -7
- package/lib/module/modules/card/Card.js +10 -7
- package/lib/module/modules/card/MODULE.md +6 -0
- package/lib/module/modules/charts/BarChart.js +242 -0
- package/lib/module/modules/charts/BarList.js +98 -48
- package/lib/module/modules/charts/ChartLegend.js +154 -0
- package/lib/module/modules/charts/Charts.variants.js +524 -1
- package/lib/module/modules/charts/DonutChart.js +100 -65
- package/lib/module/modules/charts/LineChart.js +179 -0
- package/lib/module/modules/charts/MODULE.md +148 -22
- package/lib/module/modules/charts/PieChart.js +140 -0
- package/lib/module/modules/charts/Sparkline.js +5 -4
- package/lib/module/modules/charts/index.js +3 -0
- package/lib/module/modules/checkbox/Checkbox.js +114 -44
- package/lib/module/modules/checkbox/Checkbox.variants.js +13 -8
- package/lib/module/modules/checkbox/MODULE.md +35 -8
- package/lib/module/modules/chip/Chip.js +155 -0
- package/lib/module/modules/chip/Chip.variants.js +278 -0
- package/lib/module/modules/chip/ChipGroup.js +48 -0
- package/lib/module/modules/chip/MODULE.md +156 -0
- package/lib/module/modules/chip/index.js +13 -0
- package/lib/module/modules/combobox/Combobox.js +587 -0
- package/lib/module/modules/combobox/Combobox.variants.js +280 -0
- package/lib/module/modules/combobox/MODULE.md +183 -0
- package/lib/module/modules/combobox/comboboxKeys.js +19 -0
- package/lib/module/modules/combobox/comboboxKeys.web.js +76 -0
- package/lib/module/modules/combobox/index.js +13 -0
- package/lib/module/modules/composer/Composer.js +156 -0
- package/lib/module/modules/composer/Composer.variants.js +42 -0
- package/lib/module/modules/composer/MODULE.md +70 -0
- package/lib/module/modules/composer/index.js +4 -0
- package/lib/module/modules/copy-button/CopyButton.js +156 -0
- package/lib/module/modules/copy-button/CopyButton.variants.js +86 -0
- package/lib/module/modules/copy-button/MODULE.md +73 -0
- package/lib/module/modules/copy-button/index.js +4 -0
- package/lib/module/modules/data-table/DataTable.js +513 -0
- package/lib/module/modules/data-table/DataTable.variants.js +188 -0
- package/lib/module/modules/data-table/MODULE.md +145 -0
- package/lib/module/modules/data-table/index.js +10 -0
- package/lib/module/modules/date-picker/Calendar.js +368 -0
- package/lib/module/modules/date-picker/Calendar.keys.js +23 -0
- package/lib/module/modules/date-picker/Calendar.keys.web.js +83 -0
- package/lib/module/modules/date-picker/DatePicker.js +162 -0
- package/lib/module/modules/date-picker/DatePicker.variants.js +686 -0
- package/lib/module/modules/date-picker/DateRangePicker.js +87 -0
- package/lib/module/modules/date-picker/MODULE.md +169 -0
- package/lib/module/modules/date-picker/PickerField.js +142 -0
- package/lib/module/modules/date-picker/PickerShell.js +132 -0
- package/lib/module/modules/date-picker/TimePicker.js +184 -0
- package/lib/module/modules/date-picker/index.js +14 -0
- package/lib/module/modules/divider/Divider.js +8 -7
- package/lib/module/modules/divider/MODULE.md +6 -0
- package/lib/module/modules/drawer/Drawer.js +140 -58
- package/lib/module/modules/drawer/Drawer.variants.js +3 -16
- package/lib/module/modules/drawer/MODULE.md +90 -118
- package/lib/module/modules/empty-state/EmptyState.js +32 -18
- package/lib/module/modules/empty-state/EmptyState.variants.js +9 -0
- package/lib/module/modules/empty-state/MODULE.md +25 -7
- package/lib/module/modules/fab/Fab.js +212 -0
- package/lib/module/modules/fab/Fab.variants.js +346 -0
- package/lib/module/modules/fab/FabGroup.js +334 -0
- package/lib/module/modules/fab/MODULE.md +181 -0
- package/lib/module/modules/fab/index.js +13 -0
- package/lib/module/modules/file-grid/FileGrid.js +149 -0
- package/lib/module/modules/file-grid/FileGrid.variants.js +51 -0
- package/lib/module/modules/file-grid/MODULE.md +12 -0
- package/lib/module/modules/file-grid/index.js +4 -0
- package/lib/module/modules/file-upload/FileUpload.js +124 -34
- package/lib/module/modules/file-upload/FileUpload.variants.js +50 -7
- package/lib/module/modules/file-upload/MODULE.md +22 -4
- package/lib/module/modules/filter-sheet/FilterChip.js +25 -19
- package/lib/module/modules/filter-sheet/FilterSheet.js +17 -11
- package/lib/module/modules/filter-sheet/FilterSheet.variants.js +24 -5
- package/lib/module/modules/filter-sheet/FilterSheetBody.js +168 -82
- package/lib/module/modules/filter-sheet/MODULE.md +22 -1
- package/lib/module/modules/folder-row/FolderRow.js +132 -0
- package/lib/module/modules/folder-row/FolderRow.variants.js +49 -0
- package/lib/module/modules/folder-row/MODULE.md +71 -0
- package/lib/module/modules/folder-row/index.js +4 -0
- package/lib/module/modules/form-field/FormField.js +104 -0
- package/lib/module/modules/form-field/FormField.variants.js +88 -0
- package/lib/module/modules/form-field/MODULE.md +103 -0
- package/lib/module/modules/form-field/index.js +4 -0
- package/lib/module/modules/gantt/Gantt.js +218 -0
- package/lib/module/modules/gantt/Gantt.variants.js +141 -0
- package/lib/module/modules/gantt/MODULE.md +71 -0
- package/lib/module/modules/gantt/index.js +5 -0
- package/lib/module/modules/image-viewer/ImageViewer.js +235 -0
- package/lib/module/modules/image-viewer/ImageViewer.variants.js +6 -0
- package/lib/module/modules/image-viewer/MODULE.md +57 -0
- package/lib/module/modules/image-viewer/index.js +4 -0
- package/lib/module/modules/input/Input.js +106 -48
- package/lib/module/modules/input/Input.variants.js +18 -4
- package/lib/module/modules/input/MODULE.md +36 -6
- package/lib/module/modules/limit-reached-modal/LimitReachedModal.js +90 -0
- package/lib/module/modules/limit-reached-modal/LimitReachedModal.variants.js +108 -0
- package/lib/module/modules/limit-reached-modal/MODULE.md +94 -0
- package/lib/module/modules/limit-reached-modal/index.js +11 -0
- package/lib/module/modules/list-item/ListItem.js +45 -28
- package/lib/module/modules/list-item/MODULE.md +6 -0
- package/lib/module/modules/markdown/MODULE.md +32 -5
- package/lib/module/modules/markdown/Markdown.js +54 -20
- package/lib/module/modules/markdown/Markdown.variants.js +6 -1
- package/lib/module/modules/markdown/parseMarkdown.js +3 -3
- package/lib/module/modules/menu/MODULE.md +45 -14
- package/lib/module/modules/menu/Menu.js +174 -65
- package/lib/module/modules/menu/Menu.variants.js +10 -0
- package/lib/module/modules/message-bubble/MODULE.md +38 -0
- package/lib/module/modules/message-bubble/MessageBubble.js +55 -0
- package/lib/module/modules/message-bubble/MessageBubble.variants.js +57 -0
- package/lib/module/modules/message-bubble/index.js +4 -0
- package/lib/module/modules/modal/MODULE.md +29 -3
- package/lib/module/modules/modal/Modal.js +72 -22
- package/lib/module/modules/more-items/MODULE.md +72 -0
- package/lib/module/modules/more-items/MoreItems.js +162 -0
- package/lib/module/modules/more-items/MoreItems.variants.js +80 -0
- package/lib/module/modules/more-items/index.js +4 -0
- package/lib/module/modules/multi-select/MODULE.md +84 -18
- package/lib/module/modules/multi-select/MultiSelect.js +217 -105
- package/lib/module/modules/multi-select/MultiSelect.variants.js +28 -5
- package/lib/module/modules/number-input/MODULE.md +39 -5
- package/lib/module/modules/number-input/NumberInput.js +41 -11
- package/lib/module/modules/number-input/NumberInput.variants.js +39 -5
- package/lib/module/modules/org-switcher/MODULE.md +121 -0
- package/lib/module/modules/org-switcher/OrgSwitcher.js +284 -0
- package/lib/module/modules/org-switcher/OrgSwitcher.variants.js +186 -0
- package/lib/module/modules/org-switcher/index.js +9 -0
- package/lib/module/modules/pagination/MODULE.md +163 -0
- package/lib/module/modules/pagination/Pagination.js +197 -0
- package/lib/module/modules/pagination/Pagination.variants.js +307 -0
- package/lib/module/modules/pagination/PaginationControls.js +193 -0
- package/lib/module/modules/pagination/index.js +15 -0
- package/lib/module/modules/pin-input/MODULE.md +29 -14
- package/lib/module/modules/pin-input/PinInput.js +111 -80
- package/lib/module/modules/pin-input/PinInput.variants.js +13 -5
- package/lib/module/modules/progress-bar/MODULE.md +17 -7
- package/lib/module/modules/progress-bar/ProgressBar.js +97 -56
- package/lib/module/modules/progress-bar/ProgressBar.variants.js +16 -18
- package/lib/module/modules/radio-group/MODULE.md +40 -14
- package/lib/module/modules/radio-group/RadioGroup.js +71 -7
- package/lib/module/modules/radio-group/RadioGroup.variants.js +46 -10
- package/lib/module/modules/reorder/MODULE.md +104 -97
- package/lib/module/modules/reorder/Reorder.js +233 -197
- package/lib/module/modules/reorder/Reorder.variants.js +35 -13
- package/lib/module/modules/rich-text/MODULE.md +52 -0
- package/lib/module/modules/rich-text/RichText.js +362 -0
- package/lib/module/modules/rich-text/RichText.variants.js +17 -0
- package/lib/module/modules/rich-text/index.js +5 -0
- package/lib/module/modules/rich-text/parseRichText.js +133 -0
- package/lib/module/modules/rich-text-editor/MODULE.md +225 -0
- package/lib/module/modules/rich-text-editor/RichTextEditor.js +413 -0
- package/lib/module/modules/rich-text-editor/RichTextEditor.variants.js +316 -0
- package/lib/module/modules/rich-text-editor/index.js +10 -0
- package/lib/module/modules/screen/MODULE.md +57 -0
- package/lib/module/modules/screen/Screen.js +106 -0
- package/lib/module/modules/screen/Screen.variants.js +43 -0
- package/lib/module/modules/screen/index.js +10 -0
- package/lib/module/modules/search-bar/MODULE.md +114 -0
- package/lib/module/modules/search-bar/SearchBar.js +256 -0
- package/lib/module/modules/search-bar/SearchBar.variants.js +205 -0
- package/lib/module/modules/search-bar/index.js +12 -0
- package/lib/module/modules/section/MODULE.md +39 -0
- package/lib/module/modules/section/Section.js +42 -0
- package/lib/module/modules/section/Section.variants.js +29 -0
- package/lib/module/modules/section/index.js +10 -0
- package/lib/module/modules/section-list/MODULE.md +18 -0
- package/lib/module/modules/section-list/SectionList.js +64 -0
- package/lib/module/modules/section-list/SectionList.variants.js +11 -0
- package/lib/module/modules/section-list/index.js +4 -0
- package/lib/module/modules/segmented-control/MODULE.md +124 -0
- package/lib/module/modules/segmented-control/SegmentedControl.js +158 -0
- package/lib/module/modules/segmented-control/SegmentedControl.variants.js +167 -0
- package/lib/module/modules/segmented-control/index.js +13 -0
- package/lib/module/modules/select/MODULE.md +81 -14
- package/lib/module/modules/select/Select.js +196 -94
- package/lib/module/modules/select/Select.variants.js +28 -5
- package/lib/module/modules/skeleton/MODULE.md +27 -7
- package/lib/module/modules/skeleton/Skeleton.js +52 -38
- package/lib/module/modules/skeleton/Skeleton.variants.js +9 -8
- package/lib/module/modules/slider/MODULE.md +31 -5
- package/lib/module/modules/slider/Slider.js +67 -10
- package/lib/module/modules/slider/Slider.variants.js +60 -13
- package/lib/module/modules/spinner/MODULE.md +16 -6
- package/lib/module/modules/spinner/Spinner.js +20 -16
- package/lib/module/modules/spinner/Spinner.variants.js +5 -3
- package/lib/module/modules/stage-progress/MODULE.md +64 -0
- package/lib/module/modules/stage-progress/StageProgress.js +174 -0
- package/lib/module/modules/stage-progress/StageProgress.variants.js +164 -0
- package/lib/module/modules/stage-progress/index.js +4 -0
- package/lib/module/modules/stat-tile/MODULE.md +9 -2
- package/lib/module/modules/stat-tile/StatTile.js +70 -33
- package/lib/module/modules/stat-tile/StatTile.variants.js +6 -4
- package/lib/module/modules/state-block/MODULE.md +52 -0
- package/lib/module/modules/state-block/StateBlock.js +131 -0
- package/lib/module/modules/state-block/StateBlock.variants.js +55 -0
- package/lib/module/modules/state-block/index.js +10 -0
- package/lib/module/modules/stepper/MODULE.md +33 -6
- package/lib/module/modules/stepper/Stepper.js +108 -39
- package/lib/module/modules/stepper/Stepper.variants.js +6 -6
- package/lib/module/modules/swipeable-row/MODULE.md +120 -0
- package/lib/module/modules/swipeable-row/SwipeableRow.js +244 -0
- package/lib/module/modules/swipeable-row/SwipeableRow.variants.js +80 -0
- package/lib/module/modules/swipeable-row/index.js +4 -0
- package/lib/module/modules/switch/MODULE.md +14 -0
- package/lib/module/modules/switch/Switch.js +1 -1
- package/lib/module/modules/switch/Switch.variants.js +8 -0
- package/lib/module/modules/tabs/MODULE.md +47 -13
- package/lib/module/modules/tabs/Tabs.js +121 -72
- package/lib/module/modules/tabs/Tabs.variants.js +30 -8
- package/lib/module/modules/text/MODULE.md +51 -0
- package/lib/module/modules/text/Text.js +47 -0
- package/lib/module/modules/text/Text.variants.js +98 -0
- package/lib/module/modules/text/index.js +4 -0
- package/lib/module/modules/textarea/MODULE.md +29 -13
- package/lib/module/modules/textarea/Textarea.js +90 -45
- package/lib/module/modules/textarea/Textarea.variants.js +14 -9
- package/lib/module/modules/timeline/MODULE.md +39 -7
- package/lib/module/modules/timeline/Timeline.js +151 -77
- package/lib/module/modules/timeline/Timeline.variants.js +13 -0
- package/lib/module/modules/toast/MODULE.md +66 -7
- package/lib/module/modules/toast/Toast.js +93 -27
- package/lib/module/modules/toast/Toast.variants.js +37 -1
- package/lib/module/modules/toast/toastScreenReader.js +69 -0
- package/lib/module/modules/tooltip/MODULE.md +78 -28
- package/lib/module/modules/tooltip/Tooltip.js +93 -43
- package/lib/module/modules/tooltip/Tooltip.variants.js +3 -4
- package/lib/module/modules/typing-indicator/MODULE.md +48 -0
- package/lib/module/modules/typing-indicator/TypingIndicator.js +98 -0
- package/lib/module/modules/typing-indicator/TypingIndicator.variants.js +55 -0
- package/lib/module/modules/typing-indicator/index.js +4 -0
- package/lib/module/modules/unread-badge/MODULE.md +20 -0
- package/lib/module/modules/unread-badge/UnreadBadge.js +45 -0
- package/lib/module/modules/unread-badge/UnreadBadge.variants.js +66 -0
- package/lib/module/modules/unread-badge/index.js +4 -0
- package/lib/module/test/mocks/flashList.js +5 -0
- package/lib/module/test/perfHelpers.js +18 -0
- package/lib/module/theme/MODULE.md +6 -0
- package/lib/module/theme/hooks.js +11 -0
- package/lib/module/theme/index.js +3 -6
- package/lib/module/theme/platform/MODULE.md +6 -0
- package/lib/module/theme/platform/motion.native.js +15 -0
- package/lib/module/theme/provider/PixelizeProvider.js +9 -47
- package/lib/module/theme/provider/ThemeContext.js +6 -0
- package/lib/module/theme/provider/colorModeStorage.js +2 -2
- package/lib/module/theme/provider/index.js +1 -0
- package/lib/module/theme/provider/loadPalette.js +75 -0
- package/lib/module/theme/provider/types.js +4 -0
- package/lib/module/theme/provider/useTheme.js +1 -2
- package/lib/module/theme/provider/useThemeMode.js +1 -1
- package/lib/module/theme/tokens/roles/index.js +9 -3
- package/lib/typescript/core/a11y/announce.d.ts +20 -0
- package/lib/typescript/core/a11y/announce.web.d.ts +27 -0
- package/lib/typescript/core/a11y/index.d.ts +21 -2
- package/lib/typescript/core/a11y/keyboard.d.ts +45 -0
- package/lib/typescript/core/a11y/keyboard.web.d.ts +69 -0
- package/lib/typescript/core/a11y/labels.d.ts +19 -0
- package/lib/typescript/core/device/index.d.ts +16 -0
- package/lib/typescript/core/heading/index.d.ts +45 -0
- package/lib/typescript/core/icon/Icon.d.ts +18 -0
- package/lib/typescript/core/icon/icons/arrow-down.d.ts +3 -0
- package/lib/typescript/core/icon/icons/arrow-left.d.ts +3 -0
- package/lib/typescript/core/icon/icons/arrow-right.d.ts +3 -0
- package/lib/typescript/core/icon/icons/arrow-up.d.ts +3 -0
- package/lib/typescript/core/icon/icons/at-sign.d.ts +3 -0
- package/lib/typescript/core/icon/icons/bell.d.ts +3 -0
- package/lib/typescript/core/icon/icons/bold.d.ts +3 -0
- package/lib/typescript/core/icon/icons/building-2.d.ts +3 -0
- package/lib/typescript/core/icon/icons/calendar.d.ts +3 -0
- package/lib/typescript/core/icon/icons/chart-column.d.ts +3 -0
- package/lib/typescript/core/icon/icons/check.d.ts +3 -0
- package/lib/typescript/core/icon/icons/chevron-down.d.ts +3 -0
- package/lib/typescript/core/icon/icons/chevron-left.d.ts +3 -0
- package/lib/typescript/core/icon/icons/chevron-right.d.ts +3 -0
- package/lib/typescript/core/icon/icons/chevron-up.d.ts +3 -0
- package/lib/typescript/core/icon/icons/chevrons-left.d.ts +3 -0
- package/lib/typescript/core/icon/icons/chevrons-right.d.ts +3 -0
- package/lib/typescript/core/icon/icons/chevrons-up-down.d.ts +3 -0
- package/lib/typescript/core/icon/icons/circle-alert.d.ts +3 -0
- package/lib/typescript/core/icon/icons/circle-check.d.ts +3 -0
- package/lib/typescript/core/icon/icons/clock.d.ts +3 -0
- package/lib/typescript/core/icon/icons/code.d.ts +3 -0
- package/lib/typescript/core/icon/icons/download.d.ts +3 -0
- package/lib/typescript/core/icon/icons/external-link.d.ts +3 -0
- package/lib/typescript/core/icon/icons/eye.d.ts +3 -0
- package/lib/typescript/core/icon/icons/file-text.d.ts +3 -0
- package/lib/typescript/core/icon/icons/filter.d.ts +3 -0
- package/lib/typescript/core/icon/icons/flag.d.ts +3 -0
- package/lib/typescript/core/icon/icons/folder.d.ts +3 -0
- package/lib/typescript/core/icon/icons/heading-1.d.ts +3 -0
- package/lib/typescript/core/icon/icons/heading-2.d.ts +3 -0
- package/lib/typescript/core/icon/icons/heading-3.d.ts +3 -0
- package/lib/typescript/core/icon/icons/image.d.ts +3 -0
- package/lib/typescript/core/icon/icons/inbox.d.ts +3 -0
- package/lib/typescript/core/icon/icons/info.d.ts +3 -0
- package/lib/typescript/core/icon/icons/italic.d.ts +3 -0
- package/lib/typescript/core/icon/icons/kanban.d.ts +3 -0
- package/lib/typescript/core/icon/icons/layers.d.ts +3 -0
- package/lib/typescript/core/icon/icons/layout-dashboard.d.ts +3 -0
- package/lib/typescript/core/icon/icons/layout-template.d.ts +3 -0
- package/lib/typescript/core/icon/icons/life-buoy.d.ts +3 -0
- package/lib/typescript/core/icon/icons/link.d.ts +3 -0
- package/lib/typescript/core/icon/icons/list-checks.d.ts +3 -0
- package/lib/typescript/core/icon/icons/list-ordered.d.ts +3 -0
- package/lib/typescript/core/icon/icons/list-todo.d.ts +3 -0
- package/lib/typescript/core/icon/icons/list.d.ts +3 -0
- package/lib/typescript/core/icon/icons/log-out.d.ts +3 -0
- package/lib/typescript/core/icon/icons/map.d.ts +3 -0
- package/lib/typescript/core/icon/icons/message-square.d.ts +3 -0
- package/lib/typescript/core/icon/icons/milestone.d.ts +3 -0
- package/lib/typescript/core/icon/icons/minus.d.ts +3 -0
- package/lib/typescript/core/icon/icons/more-horizontal.d.ts +3 -0
- package/lib/typescript/core/icon/icons/paperclip.d.ts +3 -0
- package/lib/typescript/core/icon/icons/pencil.d.ts +3 -0
- package/lib/typescript/core/icon/icons/plus.d.ts +3 -0
- package/lib/typescript/core/icon/icons/quote.d.ts +3 -0
- package/lib/typescript/core/icon/icons/refresh-cw.d.ts +3 -0
- package/lib/typescript/core/icon/icons/save.d.ts +3 -0
- package/lib/typescript/core/icon/icons/search.d.ts +3 -0
- package/lib/typescript/core/icon/icons/send.d.ts +3 -0
- package/lib/typescript/core/icon/icons/settings.d.ts +3 -0
- package/lib/typescript/core/icon/icons/share.d.ts +3 -0
- package/lib/typescript/core/icon/icons/square-code.d.ts +3 -0
- package/lib/typescript/core/icon/icons/star.d.ts +3 -0
- package/lib/typescript/core/icon/icons/strikethrough.d.ts +3 -0
- package/lib/typescript/core/icon/icons/tag.d.ts +3 -0
- package/lib/typescript/core/icon/icons/trash.d.ts +3 -0
- package/lib/typescript/core/icon/icons/triangle-alert.d.ts +3 -0
- package/lib/typescript/core/icon/icons/underline.d.ts +3 -0
- package/lib/typescript/core/icon/icons/upload.d.ts +3 -0
- package/lib/typescript/core/icon/icons/user.d.ts +3 -0
- package/lib/typescript/core/icon/icons/users.d.ts +3 -0
- package/lib/typescript/core/icon/icons/x.d.ts +3 -0
- package/lib/typescript/core/icon/index.d.ts +6 -94
- package/lib/typescript/core/icon/names.d.ts +2 -0
- package/lib/typescript/core/icon/resolve.d.ts +4 -0
- package/lib/typescript/core/icon/types.d.ts +13 -0
- package/lib/typescript/core/list/VirtualList.d.ts +55 -0
- package/lib/typescript/core/list/index.d.ts +3 -0
- package/lib/typescript/core/media/MediaImage.d.ts +28 -0
- package/lib/typescript/core/media/expoImage.d.ts +14 -0
- package/lib/typescript/core/media/index.d.ts +7 -0
- package/lib/typescript/core/media/pickers.d.ts +27 -0
- package/lib/typescript/core/motion/config.d.ts +56 -0
- package/lib/typescript/core/motion/index.d.ts +8 -0
- package/lib/typescript/core/motion/presets.d.ts +49 -0
- package/lib/typescript/core/motion/useAnimatedValue.d.ts +11 -0
- package/lib/typescript/core/motion/useMotion.d.ts +34 -0
- package/lib/typescript/core/style/index.d.ts +3 -0
- package/lib/typescript/core/style/sx.d.ts +86 -0
- package/lib/typescript/core/style/useThemedStyles.d.ts +5 -0
- package/lib/typescript/index.d.ts +134 -2
- package/lib/typescript/modules/accordion/Accordion.d.ts +12 -23
- package/lib/typescript/modules/accordion/Accordion.variants.d.ts +5 -5
- package/lib/typescript/modules/alert-dialog/AlertDialog.variants.d.ts +1 -1
- package/lib/typescript/modules/app-bar/AppBar.d.ts +37 -0
- package/lib/typescript/modules/app-bar/AppBar.variants.d.ts +35 -0
- package/lib/typescript/modules/app-bar/index.d.ts +9 -0
- package/lib/typescript/modules/avatar/Avatar.d.ts +23 -3
- package/lib/typescript/modules/avatar/Avatar.variants.d.ts +32 -1
- package/lib/typescript/modules/avatar/index.d.ts +1 -1
- package/lib/typescript/modules/avatar-group/AvatarGroup.d.ts +28 -0
- package/lib/typescript/modules/avatar-group/AvatarGroup.variants.d.ts +75 -0
- package/lib/typescript/modules/avatar-group/index.d.ts +9 -0
- package/lib/typescript/modules/badge/Badge.d.ts +3 -1
- package/lib/typescript/modules/badge/Badge.variants.d.ts +8 -4
- package/lib/typescript/modules/banner/Banner.d.ts +35 -0
- package/lib/typescript/modules/banner/Banner.variants.d.ts +49 -0
- package/lib/typescript/modules/banner/index.d.ts +5 -0
- package/lib/typescript/modules/bottom-nav/BottomNav.d.ts +9 -8
- package/lib/typescript/modules/bottom-nav/BottomNav.variants.d.ts +22 -9
- package/lib/typescript/modules/bottom-nav/BottomNavTab.d.ts +34 -0
- package/lib/typescript/modules/bottom-sheet/BottomSheet.d.ts +29 -0
- package/lib/typescript/modules/bottom-sheet/BottomSheet.variants.d.ts +13 -0
- package/lib/typescript/modules/bottom-sheet/index.d.ts +3 -0
- package/lib/typescript/modules/button/Button.d.ts +21 -0
- package/lib/typescript/modules/button/Button.variants.d.ts +22 -9
- package/lib/typescript/modules/button-group/ButtonGroup.d.ts +4 -2
- package/lib/typescript/modules/button-group/ButtonGroup.variants.d.ts +18 -5
- package/lib/typescript/modules/card/Card.variants.d.ts +2 -2
- package/lib/typescript/modules/charts/BarChart.d.ts +26 -0
- package/lib/typescript/modules/charts/ChartLegend.d.ts +16 -0
- package/lib/typescript/modules/charts/Charts.variants.d.ts +201 -2
- package/lib/typescript/modules/charts/DonutChart.d.ts +3 -0
- package/lib/typescript/modules/charts/LineChart.d.ts +30 -0
- package/lib/typescript/modules/charts/PieChart.d.ts +18 -0
- package/lib/typescript/modules/charts/index.d.ts +6 -0
- package/lib/typescript/modules/checkbox/Checkbox.d.ts +4 -1
- package/lib/typescript/modules/checkbox/Checkbox.variants.d.ts +14 -9
- package/lib/typescript/modules/chip/Chip.d.ts +38 -0
- package/lib/typescript/modules/chip/Chip.variants.d.ts +198 -0
- package/lib/typescript/modules/chip/ChipGroup.d.ts +22 -0
- package/lib/typescript/modules/chip/index.d.ts +12 -0
- package/lib/typescript/modules/combobox/Combobox.d.ts +81 -0
- package/lib/typescript/modules/combobox/Combobox.variants.d.ts +212 -0
- package/lib/typescript/modules/combobox/comboboxKeys.d.ts +25 -0
- package/lib/typescript/modules/combobox/comboboxKeys.web.d.ts +23 -0
- package/lib/typescript/modules/combobox/index.d.ts +11 -0
- package/lib/typescript/modules/composer/Composer.d.ts +28 -0
- package/lib/typescript/modules/composer/Composer.variants.d.ts +7 -0
- package/lib/typescript/modules/composer/index.d.ts +3 -0
- package/lib/typescript/modules/copy-button/CopyButton.d.ts +21 -0
- package/lib/typescript/modules/copy-button/CopyButton.variants.d.ts +42 -0
- package/lib/typescript/modules/copy-button/index.d.ts +4 -0
- package/lib/typescript/modules/data-table/DataTable.d.ts +44 -0
- package/lib/typescript/modules/data-table/DataTable.variants.d.ts +118 -0
- package/lib/typescript/modules/data-table/index.d.ts +9 -0
- package/lib/typescript/modules/date-picker/Calendar.d.ts +42 -0
- package/lib/typescript/modules/date-picker/Calendar.keys.d.ts +19 -0
- package/lib/typescript/modules/date-picker/Calendar.keys.web.d.ts +35 -0
- package/lib/typescript/modules/date-picker/DatePicker.d.ts +40 -0
- package/lib/typescript/modules/date-picker/DatePicker.variants.d.ts +322 -0
- package/lib/typescript/modules/date-picker/DateRangePicker.d.ts +32 -0
- package/lib/typescript/modules/date-picker/PickerField.d.ts +26 -0
- package/lib/typescript/modules/date-picker/PickerShell.d.ts +29 -0
- package/lib/typescript/modules/date-picker/TimePicker.d.ts +20 -0
- package/lib/typescript/modules/date-picker/index.d.ts +16 -0
- package/lib/typescript/modules/divider/Divider.variants.d.ts +2 -2
- package/lib/typescript/modules/drawer/Drawer.d.ts +2 -1
- package/lib/typescript/modules/drawer/Drawer.variants.d.ts +4 -13
- package/lib/typescript/modules/empty-state/EmptyState.d.ts +7 -4
- package/lib/typescript/modules/empty-state/EmptyState.variants.d.ts +7 -1
- package/lib/typescript/modules/fab/Fab.d.ts +74 -0
- package/lib/typescript/modules/fab/Fab.variants.d.ts +229 -0
- package/lib/typescript/modules/fab/FabGroup.d.ts +66 -0
- package/lib/typescript/modules/fab/index.d.ts +12 -0
- package/lib/typescript/modules/file-grid/FileGrid.d.ts +26 -0
- package/lib/typescript/modules/file-grid/FileGrid.variants.d.ts +26 -0
- package/lib/typescript/modules/file-grid/index.d.ts +4 -0
- package/lib/typescript/modules/file-upload/FileUpload.d.ts +3 -0
- package/lib/typescript/modules/file-upload/FileUpload.variants.d.ts +22 -5
- package/lib/typescript/modules/filter-sheet/FilterSheet.variants.d.ts +30 -5
- package/lib/typescript/modules/filter-sheet/FilterSheetBody.d.ts +13 -8
- package/lib/typescript/modules/folder-row/FolderRow.d.ts +24 -0
- package/lib/typescript/modules/folder-row/FolderRow.variants.d.ts +29 -0
- package/lib/typescript/modules/folder-row/index.d.ts +3 -0
- package/lib/typescript/modules/form-field/FormField.d.ts +29 -0
- package/lib/typescript/modules/form-field/FormField.variants.d.ts +93 -0
- package/lib/typescript/modules/form-field/index.d.ts +4 -0
- package/lib/typescript/modules/gantt/Gantt.d.ts +19 -0
- package/lib/typescript/modules/gantt/Gantt.variants.d.ts +82 -0
- package/lib/typescript/modules/gantt/index.d.ts +5 -0
- package/lib/typescript/modules/image-viewer/ImageViewer.d.ts +27 -0
- package/lib/typescript/modules/image-viewer/ImageViewer.variants.d.ts +3 -0
- package/lib/typescript/modules/image-viewer/index.d.ts +3 -0
- package/lib/typescript/modules/input/Input.d.ts +9 -1
- package/lib/typescript/modules/input/Input.variants.d.ts +26 -6
- package/lib/typescript/modules/limit-reached-modal/LimitReachedModal.d.ts +34 -0
- package/lib/typescript/modules/limit-reached-modal/LimitReachedModal.variants.d.ts +46 -0
- package/lib/typescript/modules/limit-reached-modal/index.d.ts +10 -0
- package/lib/typescript/modules/list-item/ListItem.d.ts +6 -0
- package/lib/typescript/modules/list-item/ListItem.variants.d.ts +1 -1
- package/lib/typescript/modules/markdown/Markdown.d.ts +6 -0
- package/lib/typescript/modules/markdown/Markdown.variants.d.ts +8 -2
- package/lib/typescript/modules/markdown/parseMarkdown.d.ts +3 -2
- package/lib/typescript/modules/menu/Menu.d.ts +8 -18
- package/lib/typescript/modules/menu/Menu.variants.d.ts +8 -1
- package/lib/typescript/modules/message-bubble/MessageBubble.d.ts +25 -0
- package/lib/typescript/modules/message-bubble/MessageBubble.variants.d.ts +31 -0
- package/lib/typescript/modules/message-bubble/index.d.ts +4 -0
- package/lib/typescript/modules/modal/Modal.d.ts +12 -0
- package/lib/typescript/modules/modal/Modal.variants.d.ts +1 -1
- package/lib/typescript/modules/more-items/MoreItems.d.ts +15 -0
- package/lib/typescript/modules/more-items/MoreItems.variants.d.ts +30 -0
- package/lib/typescript/modules/more-items/index.d.ts +4 -0
- package/lib/typescript/modules/multi-select/MultiSelect.d.ts +1 -16
- package/lib/typescript/modules/multi-select/MultiSelect.variants.d.ts +24 -5
- package/lib/typescript/modules/number-input/NumberInput.d.ts +6 -0
- package/lib/typescript/modules/number-input/NumberInput.variants.d.ts +57 -7
- package/lib/typescript/modules/org-switcher/OrgSwitcher.d.ts +44 -0
- package/lib/typescript/modules/org-switcher/OrgSwitcher.variants.d.ts +139 -0
- package/lib/typescript/modules/org-switcher/index.d.ts +8 -0
- package/lib/typescript/modules/pagination/Pagination.d.ts +45 -0
- package/lib/typescript/modules/pagination/Pagination.variants.d.ts +240 -0
- package/lib/typescript/modules/pagination/PaginationControls.d.ts +50 -0
- package/lib/typescript/modules/pagination/index.d.ts +14 -0
- package/lib/typescript/modules/pin-input/PinInput.d.ts +6 -0
- package/lib/typescript/modules/pin-input/PinInput.variants.d.ts +22 -5
- package/lib/typescript/modules/progress-bar/ProgressBar.d.ts +8 -4
- package/lib/typescript/modules/progress-bar/ProgressBar.variants.d.ts +13 -15
- package/lib/typescript/modules/radio-group/RadioGroup.d.ts +6 -0
- package/lib/typescript/modules/radio-group/RadioGroup.variants.d.ts +32 -11
- package/lib/typescript/modules/reorder/Reorder.d.ts +28 -23
- package/lib/typescript/modules/reorder/Reorder.variants.d.ts +25 -9
- package/lib/typescript/modules/rich-text/RichText.d.ts +15 -0
- package/lib/typescript/modules/rich-text/RichText.variants.d.ts +15 -0
- package/lib/typescript/modules/rich-text/index.d.ts +5 -0
- package/lib/typescript/modules/rich-text/parseRichText.d.ts +30 -0
- package/lib/typescript/modules/rich-text-editor/RichTextEditor.d.ts +62 -0
- package/lib/typescript/modules/rich-text-editor/RichTextEditor.variants.d.ts +139 -0
- package/lib/typescript/modules/rich-text-editor/index.d.ts +9 -0
- package/lib/typescript/modules/screen/Screen.d.ts +36 -0
- package/lib/typescript/modules/screen/Screen.variants.d.ts +21 -0
- package/lib/typescript/modules/screen/index.d.ts +9 -0
- package/lib/typescript/modules/search-bar/SearchBar.d.ts +47 -0
- package/lib/typescript/modules/search-bar/SearchBar.variants.d.ts +179 -0
- package/lib/typescript/modules/search-bar/index.d.ts +11 -0
- package/lib/typescript/modules/section/Section.d.ts +17 -0
- package/lib/typescript/modules/section/Section.variants.d.ts +12 -0
- package/lib/typescript/modules/section/index.d.ts +8 -0
- package/lib/typescript/modules/section-list/SectionList.d.ts +26 -0
- package/lib/typescript/modules/section-list/SectionList.variants.d.ts +3 -0
- package/lib/typescript/modules/section-list/index.d.ts +3 -0
- package/lib/typescript/modules/segmented-control/SegmentedControl.d.ts +45 -0
- package/lib/typescript/modules/segmented-control/SegmentedControl.variants.d.ts +143 -0
- package/lib/typescript/modules/segmented-control/index.d.ts +11 -0
- package/lib/typescript/modules/select/Select.d.ts +1 -14
- package/lib/typescript/modules/select/Select.variants.d.ts +24 -5
- package/lib/typescript/modules/skeleton/Skeleton.d.ts +5 -0
- package/lib/typescript/modules/skeleton/Skeleton.variants.d.ts +10 -9
- package/lib/typescript/modules/slider/Slider.variants.d.ts +35 -14
- package/lib/typescript/modules/spinner/Spinner.variants.d.ts +6 -4
- package/lib/typescript/modules/stage-progress/StageProgress.d.ts +18 -0
- package/lib/typescript/modules/stage-progress/StageProgress.variants.d.ts +98 -0
- package/lib/typescript/modules/stage-progress/index.d.ts +4 -0
- package/lib/typescript/modules/stat-tile/StatTile.d.ts +4 -0
- package/lib/typescript/modules/stat-tile/StatTile.variants.d.ts +7 -5
- package/lib/typescript/modules/state-block/StateBlock.d.ts +51 -0
- package/lib/typescript/modules/state-block/StateBlock.variants.d.ts +30 -0
- package/lib/typescript/modules/state-block/index.d.ts +10 -0
- package/lib/typescript/modules/stepper/Stepper.d.ts +4 -0
- package/lib/typescript/modules/stepper/Stepper.variants.d.ts +7 -7
- package/lib/typescript/modules/swipeable-row/SwipeableRow.d.ts +35 -0
- package/lib/typescript/modules/swipeable-row/SwipeableRow.variants.d.ts +27 -0
- package/lib/typescript/modules/swipeable-row/index.d.ts +4 -0
- package/lib/typescript/modules/switch/Switch.variants.d.ts +9 -1
- package/lib/typescript/modules/tabs/Tabs.d.ts +8 -6
- package/lib/typescript/modules/tabs/Tabs.variants.d.ts +20 -7
- package/lib/typescript/modules/text/Text.d.ts +23 -0
- package/lib/typescript/modules/text/Text.variants.d.ts +18 -0
- package/lib/typescript/modules/text/index.d.ts +4 -0
- package/lib/typescript/modules/textarea/Textarea.d.ts +5 -0
- package/lib/typescript/modules/textarea/Textarea.variants.d.ts +15 -8
- package/lib/typescript/modules/timeline/Timeline.d.ts +9 -13
- package/lib/typescript/modules/timeline/Timeline.variants.d.ts +17 -1
- package/lib/typescript/modules/toast/Toast.d.ts +13 -3
- package/lib/typescript/modules/toast/Toast.variants.d.ts +31 -3
- package/lib/typescript/modules/toast/index.d.ts +1 -1
- package/lib/typescript/modules/toast/toastScreenReader.d.ts +22 -0
- package/lib/typescript/modules/tooltip/Tooltip.d.ts +34 -11
- package/lib/typescript/modules/tooltip/Tooltip.variants.d.ts +4 -5
- package/lib/typescript/modules/typing-indicator/TypingIndicator.d.ts +28 -0
- package/lib/typescript/modules/typing-indicator/TypingIndicator.variants.d.ts +32 -0
- package/lib/typescript/modules/typing-indicator/index.d.ts +4 -0
- package/lib/typescript/modules/unread-badge/UnreadBadge.d.ts +15 -0
- package/lib/typescript/modules/unread-badge/UnreadBadge.variants.d.ts +56 -0
- package/lib/typescript/modules/unread-badge/index.d.ts +4 -0
- package/lib/typescript/test/mocks/flashList.d.ts +3 -0
- package/lib/typescript/test/perfHelpers.d.ts +9 -0
- package/lib/typescript/theme/hooks.d.ts +11 -0
- package/lib/typescript/theme/index.d.ts +3 -2
- package/lib/typescript/theme/platform/motion.native.d.ts +15 -0
- package/lib/typescript/theme/provider/PixelizeProvider.d.ts +3 -80
- package/lib/typescript/theme/provider/ThemeContext.d.ts +4 -0
- package/lib/typescript/theme/provider/index.d.ts +2 -1
- package/lib/typescript/theme/provider/loadPalette.d.ts +9 -0
- package/lib/typescript/theme/provider/types.d.ts +41 -0
- package/lib/typescript/theme/provider/useTheme.d.ts +1 -2
- package/lib/typescript/theme/provider/useThemeMode.d.ts +1 -1
- package/lib/typescript/theme/tokens/roles/index.d.ts +7 -0
- package/package.json +193 -19
- package/registry.json +172 -2
- package/lib/module/core/a11y/index.js.map +0 -1
- package/lib/module/core/icon/index.js.map +0 -1
- package/lib/module/core/style/index.js.map +0 -1
- package/lib/module/core/style/layoutStyle.js.map +0 -1
- package/lib/module/core/style/variants.js.map +0 -1
- package/lib/module/index.js.map +0 -1
- package/lib/module/modules/accordion/Accordion.js.map +0 -1
- package/lib/module/modules/accordion/Accordion.variants.js.map +0 -1
- package/lib/module/modules/accordion/index.js.map +0 -1
- package/lib/module/modules/alert-dialog/AlertDialog.js.map +0 -1
- package/lib/module/modules/alert-dialog/AlertDialog.variants.js.map +0 -1
- package/lib/module/modules/alert-dialog/index.js.map +0 -1
- package/lib/module/modules/avatar/Avatar.js.map +0 -1
- package/lib/module/modules/avatar/Avatar.variants.js.map +0 -1
- package/lib/module/modules/avatar/index.js.map +0 -1
- package/lib/module/modules/badge/Badge.js.map +0 -1
- package/lib/module/modules/badge/Badge.variants.js.map +0 -1
- package/lib/module/modules/badge/index.js.map +0 -1
- package/lib/module/modules/bottom-nav/BottomNav.js.map +0 -1
- package/lib/module/modules/bottom-nav/BottomNav.search.js.map +0 -1
- package/lib/module/modules/bottom-nav/BottomNav.variants.js.map +0 -1
- package/lib/module/modules/bottom-nav/BottomNavIconWithBadge.js.map +0 -1
- package/lib/module/modules/bottom-nav/BottomNavOverflowSheet.js.map +0 -1
- package/lib/module/modules/bottom-nav/index.js.map +0 -1
- package/lib/module/modules/button/Button.js.map +0 -1
- package/lib/module/modules/button/Button.variants.js.map +0 -1
- package/lib/module/modules/button/index.js.map +0 -1
- package/lib/module/modules/button-group/ButtonGroup.js.map +0 -1
- package/lib/module/modules/button-group/ButtonGroup.variants.js.map +0 -1
- package/lib/module/modules/button-group/index.js.map +0 -1
- package/lib/module/modules/card/Card.js.map +0 -1
- package/lib/module/modules/card/Card.variants.js.map +0 -1
- package/lib/module/modules/card/index.js.map +0 -1
- package/lib/module/modules/charts/BarList.js.map +0 -1
- package/lib/module/modules/charts/Charts.variants.js.map +0 -1
- package/lib/module/modules/charts/DonutChart.js.map +0 -1
- package/lib/module/modules/charts/Sparkline.js.map +0 -1
- package/lib/module/modules/charts/index.js.map +0 -1
- package/lib/module/modules/checkbox/Checkbox.js.map +0 -1
- package/lib/module/modules/checkbox/Checkbox.variants.js.map +0 -1
- package/lib/module/modules/checkbox/index.js.map +0 -1
- package/lib/module/modules/divider/Divider.js.map +0 -1
- package/lib/module/modules/divider/Divider.variants.js.map +0 -1
- package/lib/module/modules/divider/index.js.map +0 -1
- package/lib/module/modules/drawer/Drawer.js.map +0 -1
- package/lib/module/modules/drawer/Drawer.variants.js.map +0 -1
- package/lib/module/modules/drawer/index.js.map +0 -1
- package/lib/module/modules/empty-state/EmptyState.js.map +0 -1
- package/lib/module/modules/empty-state/EmptyState.variants.js.map +0 -1
- package/lib/module/modules/empty-state/index.js.map +0 -1
- package/lib/module/modules/file-upload/FileUpload.js.map +0 -1
- package/lib/module/modules/file-upload/FileUpload.variants.js.map +0 -1
- package/lib/module/modules/file-upload/index.js.map +0 -1
- package/lib/module/modules/filter-sheet/FilterChip.js.map +0 -1
- package/lib/module/modules/filter-sheet/FilterSheet.js.map +0 -1
- package/lib/module/modules/filter-sheet/FilterSheet.variants.js.map +0 -1
- package/lib/module/modules/filter-sheet/FilterSheetBody.js.map +0 -1
- package/lib/module/modules/filter-sheet/filterSheet.helpers.js.map +0 -1
- package/lib/module/modules/filter-sheet/index.js.map +0 -1
- package/lib/module/modules/input/Input.js.map +0 -1
- package/lib/module/modules/input/Input.variants.js.map +0 -1
- package/lib/module/modules/input/index.js.map +0 -1
- package/lib/module/modules/list-item/ListItem.js.map +0 -1
- package/lib/module/modules/list-item/ListItem.variants.js.map +0 -1
- package/lib/module/modules/list-item/index.js.map +0 -1
- package/lib/module/modules/markdown/Markdown.js.map +0 -1
- package/lib/module/modules/markdown/Markdown.variants.js.map +0 -1
- package/lib/module/modules/markdown/index.js.map +0 -1
- package/lib/module/modules/markdown/parseMarkdown.js.map +0 -1
- package/lib/module/modules/menu/Menu.js.map +0 -1
- package/lib/module/modules/menu/Menu.variants.js.map +0 -1
- package/lib/module/modules/menu/index.js.map +0 -1
- package/lib/module/modules/modal/Modal.js.map +0 -1
- package/lib/module/modules/modal/Modal.variants.js.map +0 -1
- package/lib/module/modules/modal/ModalPortalContext.js.map +0 -1
- package/lib/module/modules/modal/ModalPortalProvider.js.map +0 -1
- package/lib/module/modules/modal/index.js.map +0 -1
- package/lib/module/modules/modal/renderWebPortal.js.map +0 -1
- package/lib/module/modules/modal/renderWebPortal.web.js.map +0 -1
- package/lib/module/modules/multi-select/MultiSelect.js.map +0 -1
- package/lib/module/modules/multi-select/MultiSelect.variants.js.map +0 -1
- package/lib/module/modules/multi-select/index.js.map +0 -1
- package/lib/module/modules/number-input/NumberInput.js.map +0 -1
- package/lib/module/modules/number-input/NumberInput.variants.js.map +0 -1
- package/lib/module/modules/number-input/index.js.map +0 -1
- package/lib/module/modules/pin-input/PinInput.js.map +0 -1
- package/lib/module/modules/pin-input/PinInput.variants.js.map +0 -1
- package/lib/module/modules/pin-input/index.js.map +0 -1
- package/lib/module/modules/progress-bar/ProgressBar.js.map +0 -1
- package/lib/module/modules/progress-bar/ProgressBar.variants.js.map +0 -1
- package/lib/module/modules/progress-bar/index.js.map +0 -1
- package/lib/module/modules/radio-group/RadioGroup.js.map +0 -1
- package/lib/module/modules/radio-group/RadioGroup.variants.js.map +0 -1
- package/lib/module/modules/radio-group/index.js.map +0 -1
- package/lib/module/modules/reorder/Reorder.js.map +0 -1
- package/lib/module/modules/reorder/Reorder.variants.js.map +0 -1
- package/lib/module/modules/reorder/index.js.map +0 -1
- package/lib/module/modules/select/Select.js.map +0 -1
- package/lib/module/modules/select/Select.variants.js.map +0 -1
- package/lib/module/modules/select/index.js.map +0 -1
- package/lib/module/modules/skeleton/Skeleton.js.map +0 -1
- package/lib/module/modules/skeleton/Skeleton.variants.js.map +0 -1
- package/lib/module/modules/skeleton/index.js.map +0 -1
- package/lib/module/modules/slider/Slider.js.map +0 -1
- package/lib/module/modules/slider/Slider.variants.js.map +0 -1
- package/lib/module/modules/slider/index.js.map +0 -1
- package/lib/module/modules/spinner/Spinner.js.map +0 -1
- package/lib/module/modules/spinner/Spinner.variants.js.map +0 -1
- package/lib/module/modules/spinner/index.js.map +0 -1
- package/lib/module/modules/stat-tile/StatTile.js.map +0 -1
- package/lib/module/modules/stat-tile/StatTile.variants.js.map +0 -1
- package/lib/module/modules/stat-tile/index.js.map +0 -1
- package/lib/module/modules/stepper/Stepper.js.map +0 -1
- package/lib/module/modules/stepper/Stepper.variants.js.map +0 -1
- package/lib/module/modules/stepper/index.js.map +0 -1
- package/lib/module/modules/switch/Switch.js.map +0 -1
- package/lib/module/modules/switch/Switch.variants.js.map +0 -1
- package/lib/module/modules/switch/index.js.map +0 -1
- package/lib/module/modules/tabs/Tabs.js.map +0 -1
- package/lib/module/modules/tabs/Tabs.variants.js.map +0 -1
- package/lib/module/modules/tabs/index.js.map +0 -1
- package/lib/module/modules/textarea/Textarea.js.map +0 -1
- package/lib/module/modules/textarea/Textarea.variants.js.map +0 -1
- package/lib/module/modules/textarea/index.js.map +0 -1
- package/lib/module/modules/timeline/Timeline.js.map +0 -1
- package/lib/module/modules/timeline/Timeline.variants.js.map +0 -1
- package/lib/module/modules/timeline/index.js.map +0 -1
- package/lib/module/modules/toast/Toast.js.map +0 -1
- package/lib/module/modules/toast/Toast.variants.js.map +0 -1
- package/lib/module/modules/toast/index.js.map +0 -1
- package/lib/module/modules/tooltip/Tooltip.js.map +0 -1
- package/lib/module/modules/tooltip/Tooltip.variants.js.map +0 -1
- package/lib/module/modules/tooltip/index.js.map +0 -1
- package/lib/module/theme/index.js.map +0 -1
- package/lib/module/theme/platform/colorScheme.native.js.map +0 -1
- package/lib/module/theme/platform/elevation.native.js.map +0 -1
- package/lib/module/theme/platform/fonts.native.js.map +0 -1
- package/lib/module/theme/platform/index.js.map +0 -1
- package/lib/module/theme/platform/units.native.js.map +0 -1
- package/lib/module/theme/provider/PixelizeProvider.js.map +0 -1
- package/lib/module/theme/provider/colorModeStorage.js.map +0 -1
- package/lib/module/theme/provider/index.js.map +0 -1
- package/lib/module/theme/provider/useTheme.js.map +0 -1
- package/lib/module/theme/provider/useThemeColors.js.map +0 -1
- package/lib/module/theme/provider/useThemeMode.js.map +0 -1
- package/lib/module/theme/tokens/brands/emerald/palette.dark.js.map +0 -1
- package/lib/module/theme/tokens/brands/emerald/palette.light.js.map +0 -1
- package/lib/module/theme/tokens/brands/index.js.map +0 -1
- package/lib/module/theme/tokens/brands/lavender/palette.dark.js.map +0 -1
- package/lib/module/theme/tokens/brands/lavender/palette.light.js.map +0 -1
- package/lib/module/theme/tokens/brands/meadow/palette.dark.js.map +0 -1
- package/lib/module/theme/tokens/brands/meadow/palette.light.js.map +0 -1
- package/lib/module/theme/tokens/brands/radiant/palette.dark.js.map +0 -1
- package/lib/module/theme/tokens/brands/radiant/palette.light.js.map +0 -1
- package/lib/module/theme/tokens/brands/rosewood/palette.dark.js.map +0 -1
- package/lib/module/theme/tokens/brands/rosewood/palette.light.js.map +0 -1
- package/lib/module/theme/tokens/brands/skyline/palette.dark.js.map +0 -1
- package/lib/module/theme/tokens/brands/skyline/palette.light.js.map +0 -1
- package/lib/module/theme/tokens/brands/slate/palette.dark.js.map +0 -1
- package/lib/module/theme/tokens/brands/slate/palette.light.js.map +0 -1
- package/lib/module/theme/tokens/brands/storefront/palette.dark.js.map +0 -1
- package/lib/module/theme/tokens/brands/storefront/palette.light.js.map +0 -1
- package/lib/module/theme/tokens/brands/zinc/palette.dark.js.map +0 -1
- package/lib/module/theme/tokens/brands/zinc/palette.light.js.map +0 -1
- package/lib/module/theme/tokens/builders/accentText.js.map +0 -1
- package/lib/module/theme/tokens/builders/buildBrandTokens.js.map +0 -1
- package/lib/module/theme/tokens/builders/buildDarkPalette.js.map +0 -1
- package/lib/module/theme/tokens/builders/color.js.map +0 -1
- package/lib/module/theme/tokens/index.js.map +0 -1
- package/lib/module/theme/tokens/primitives/borderWidths.js.map +0 -1
- package/lib/module/theme/tokens/primitives/breakpoints.js.map +0 -1
- package/lib/module/theme/tokens/primitives/elevation.js.map +0 -1
- package/lib/module/theme/tokens/primitives/fontSizes.js.map +0 -1
- package/lib/module/theme/tokens/primitives/fontWeights.js.map +0 -1
- package/lib/module/theme/tokens/primitives/index.js.map +0 -1
- package/lib/module/theme/tokens/primitives/letterSpacings.js.map +0 -1
- package/lib/module/theme/tokens/primitives/lineHeights.js.map +0 -1
- package/lib/module/theme/tokens/primitives/radii.js.map +0 -1
- package/lib/module/theme/tokens/primitives/sizes.js.map +0 -1
- package/lib/module/theme/tokens/primitives/space.js.map +0 -1
- package/lib/module/theme/tokens/primitives/zIndices.js.map +0 -1
- package/lib/module/theme/tokens/roles/index.js.map +0 -1
- package/lib/module/theme/tokens/types.js.map +0 -1
- package/lib/typescript/core/a11y/index.d.ts.map +0 -1
- package/lib/typescript/core/icon/index.d.ts.map +0 -1
- package/lib/typescript/core/style/index.d.ts.map +0 -1
- package/lib/typescript/core/style/layoutStyle.d.ts.map +0 -1
- package/lib/typescript/core/style/variants.d.ts.map +0 -1
- package/lib/typescript/index.d.ts.map +0 -1
- package/lib/typescript/modules/accordion/Accordion.d.ts.map +0 -1
- package/lib/typescript/modules/accordion/Accordion.variants.d.ts.map +0 -1
- package/lib/typescript/modules/accordion/index.d.ts.map +0 -1
- package/lib/typescript/modules/alert-dialog/AlertDialog.d.ts.map +0 -1
- package/lib/typescript/modules/alert-dialog/AlertDialog.variants.d.ts.map +0 -1
- package/lib/typescript/modules/alert-dialog/index.d.ts.map +0 -1
- package/lib/typescript/modules/avatar/Avatar.d.ts.map +0 -1
- package/lib/typescript/modules/avatar/Avatar.variants.d.ts.map +0 -1
- package/lib/typescript/modules/avatar/index.d.ts.map +0 -1
- package/lib/typescript/modules/badge/Badge.d.ts.map +0 -1
- package/lib/typescript/modules/badge/Badge.variants.d.ts.map +0 -1
- package/lib/typescript/modules/badge/index.d.ts.map +0 -1
- package/lib/typescript/modules/bottom-nav/BottomNav.d.ts.map +0 -1
- package/lib/typescript/modules/bottom-nav/BottomNav.search.d.ts.map +0 -1
- package/lib/typescript/modules/bottom-nav/BottomNav.variants.d.ts.map +0 -1
- package/lib/typescript/modules/bottom-nav/BottomNavIconWithBadge.d.ts.map +0 -1
- package/lib/typescript/modules/bottom-nav/BottomNavOverflowSheet.d.ts.map +0 -1
- package/lib/typescript/modules/bottom-nav/index.d.ts.map +0 -1
- package/lib/typescript/modules/button/Button.d.ts.map +0 -1
- package/lib/typescript/modules/button/Button.variants.d.ts.map +0 -1
- package/lib/typescript/modules/button/index.d.ts.map +0 -1
- package/lib/typescript/modules/button-group/ButtonGroup.d.ts.map +0 -1
- package/lib/typescript/modules/button-group/ButtonGroup.variants.d.ts.map +0 -1
- package/lib/typescript/modules/button-group/index.d.ts.map +0 -1
- package/lib/typescript/modules/card/Card.d.ts.map +0 -1
- package/lib/typescript/modules/card/Card.variants.d.ts.map +0 -1
- package/lib/typescript/modules/card/index.d.ts.map +0 -1
- package/lib/typescript/modules/charts/BarList.d.ts.map +0 -1
- package/lib/typescript/modules/charts/Charts.variants.d.ts.map +0 -1
- package/lib/typescript/modules/charts/DonutChart.d.ts.map +0 -1
- package/lib/typescript/modules/charts/Sparkline.d.ts.map +0 -1
- package/lib/typescript/modules/charts/index.d.ts.map +0 -1
- package/lib/typescript/modules/checkbox/Checkbox.d.ts.map +0 -1
- package/lib/typescript/modules/checkbox/Checkbox.variants.d.ts.map +0 -1
- package/lib/typescript/modules/checkbox/index.d.ts.map +0 -1
- package/lib/typescript/modules/divider/Divider.d.ts.map +0 -1
- package/lib/typescript/modules/divider/Divider.variants.d.ts.map +0 -1
- package/lib/typescript/modules/divider/index.d.ts.map +0 -1
- package/lib/typescript/modules/drawer/Drawer.d.ts.map +0 -1
- package/lib/typescript/modules/drawer/Drawer.variants.d.ts.map +0 -1
- package/lib/typescript/modules/drawer/index.d.ts.map +0 -1
- package/lib/typescript/modules/empty-state/EmptyState.d.ts.map +0 -1
- package/lib/typescript/modules/empty-state/EmptyState.variants.d.ts.map +0 -1
- package/lib/typescript/modules/empty-state/index.d.ts.map +0 -1
- package/lib/typescript/modules/file-upload/FileUpload.d.ts.map +0 -1
- package/lib/typescript/modules/file-upload/FileUpload.variants.d.ts.map +0 -1
- package/lib/typescript/modules/file-upload/index.d.ts.map +0 -1
- package/lib/typescript/modules/filter-sheet/FilterChip.d.ts.map +0 -1
- package/lib/typescript/modules/filter-sheet/FilterSheet.d.ts.map +0 -1
- package/lib/typescript/modules/filter-sheet/FilterSheet.variants.d.ts.map +0 -1
- package/lib/typescript/modules/filter-sheet/FilterSheetBody.d.ts.map +0 -1
- package/lib/typescript/modules/filter-sheet/filterSheet.helpers.d.ts.map +0 -1
- package/lib/typescript/modules/filter-sheet/index.d.ts.map +0 -1
- package/lib/typescript/modules/input/Input.d.ts.map +0 -1
- package/lib/typescript/modules/input/Input.variants.d.ts.map +0 -1
- package/lib/typescript/modules/input/index.d.ts.map +0 -1
- package/lib/typescript/modules/list-item/ListItem.d.ts.map +0 -1
- package/lib/typescript/modules/list-item/ListItem.variants.d.ts.map +0 -1
- package/lib/typescript/modules/list-item/index.d.ts.map +0 -1
- package/lib/typescript/modules/markdown/Markdown.d.ts.map +0 -1
- package/lib/typescript/modules/markdown/Markdown.variants.d.ts.map +0 -1
- package/lib/typescript/modules/markdown/index.d.ts.map +0 -1
- package/lib/typescript/modules/markdown/parseMarkdown.d.ts.map +0 -1
- package/lib/typescript/modules/menu/Menu.d.ts.map +0 -1
- package/lib/typescript/modules/menu/Menu.variants.d.ts.map +0 -1
- package/lib/typescript/modules/menu/index.d.ts.map +0 -1
- package/lib/typescript/modules/modal/Modal.d.ts.map +0 -1
- package/lib/typescript/modules/modal/Modal.variants.d.ts.map +0 -1
- package/lib/typescript/modules/modal/ModalPortalContext.d.ts.map +0 -1
- package/lib/typescript/modules/modal/ModalPortalProvider.d.ts.map +0 -1
- package/lib/typescript/modules/modal/index.d.ts.map +0 -1
- package/lib/typescript/modules/modal/renderWebPortal.d.ts.map +0 -1
- package/lib/typescript/modules/modal/renderWebPortal.web.d.ts.map +0 -1
- package/lib/typescript/modules/multi-select/MultiSelect.d.ts.map +0 -1
- package/lib/typescript/modules/multi-select/MultiSelect.variants.d.ts.map +0 -1
- package/lib/typescript/modules/multi-select/index.d.ts.map +0 -1
- package/lib/typescript/modules/number-input/NumberInput.d.ts.map +0 -1
- package/lib/typescript/modules/number-input/NumberInput.variants.d.ts.map +0 -1
- package/lib/typescript/modules/number-input/index.d.ts.map +0 -1
- package/lib/typescript/modules/pin-input/PinInput.d.ts.map +0 -1
- package/lib/typescript/modules/pin-input/PinInput.variants.d.ts.map +0 -1
- package/lib/typescript/modules/pin-input/index.d.ts.map +0 -1
- package/lib/typescript/modules/progress-bar/ProgressBar.d.ts.map +0 -1
- package/lib/typescript/modules/progress-bar/ProgressBar.variants.d.ts.map +0 -1
- package/lib/typescript/modules/progress-bar/index.d.ts.map +0 -1
- package/lib/typescript/modules/radio-group/RadioGroup.d.ts.map +0 -1
- package/lib/typescript/modules/radio-group/RadioGroup.variants.d.ts.map +0 -1
- package/lib/typescript/modules/radio-group/index.d.ts.map +0 -1
- package/lib/typescript/modules/reorder/Reorder.d.ts.map +0 -1
- package/lib/typescript/modules/reorder/Reorder.variants.d.ts.map +0 -1
- package/lib/typescript/modules/reorder/index.d.ts.map +0 -1
- package/lib/typescript/modules/select/Select.d.ts.map +0 -1
- package/lib/typescript/modules/select/Select.variants.d.ts.map +0 -1
- package/lib/typescript/modules/select/index.d.ts.map +0 -1
- package/lib/typescript/modules/skeleton/Skeleton.d.ts.map +0 -1
- package/lib/typescript/modules/skeleton/Skeleton.variants.d.ts.map +0 -1
- package/lib/typescript/modules/skeleton/index.d.ts.map +0 -1
- package/lib/typescript/modules/slider/Slider.d.ts.map +0 -1
- package/lib/typescript/modules/slider/Slider.variants.d.ts.map +0 -1
- package/lib/typescript/modules/slider/index.d.ts.map +0 -1
- package/lib/typescript/modules/spinner/Spinner.d.ts.map +0 -1
- package/lib/typescript/modules/spinner/Spinner.variants.d.ts.map +0 -1
- package/lib/typescript/modules/spinner/index.d.ts.map +0 -1
- package/lib/typescript/modules/stat-tile/StatTile.d.ts.map +0 -1
- package/lib/typescript/modules/stat-tile/StatTile.variants.d.ts.map +0 -1
- package/lib/typescript/modules/stat-tile/index.d.ts.map +0 -1
- package/lib/typescript/modules/stepper/Stepper.d.ts.map +0 -1
- package/lib/typescript/modules/stepper/Stepper.variants.d.ts.map +0 -1
- package/lib/typescript/modules/stepper/index.d.ts.map +0 -1
- package/lib/typescript/modules/switch/Switch.d.ts.map +0 -1
- package/lib/typescript/modules/switch/Switch.variants.d.ts.map +0 -1
- package/lib/typescript/modules/switch/index.d.ts.map +0 -1
- package/lib/typescript/modules/tabs/Tabs.d.ts.map +0 -1
- package/lib/typescript/modules/tabs/Tabs.variants.d.ts.map +0 -1
- package/lib/typescript/modules/tabs/index.d.ts.map +0 -1
- package/lib/typescript/modules/textarea/Textarea.d.ts.map +0 -1
- package/lib/typescript/modules/textarea/Textarea.variants.d.ts.map +0 -1
- package/lib/typescript/modules/textarea/index.d.ts.map +0 -1
- package/lib/typescript/modules/timeline/Timeline.d.ts.map +0 -1
- package/lib/typescript/modules/timeline/Timeline.variants.d.ts.map +0 -1
- package/lib/typescript/modules/timeline/index.d.ts.map +0 -1
- package/lib/typescript/modules/toast/Toast.d.ts.map +0 -1
- package/lib/typescript/modules/toast/Toast.variants.d.ts.map +0 -1
- package/lib/typescript/modules/toast/index.d.ts.map +0 -1
- package/lib/typescript/modules/tooltip/Tooltip.d.ts.map +0 -1
- package/lib/typescript/modules/tooltip/Tooltip.variants.d.ts.map +0 -1
- package/lib/typescript/modules/tooltip/index.d.ts.map +0 -1
- package/lib/typescript/theme/index.d.ts.map +0 -1
- package/lib/typescript/theme/platform/colorScheme.native.d.ts.map +0 -1
- package/lib/typescript/theme/platform/elevation.native.d.ts.map +0 -1
- package/lib/typescript/theme/platform/fonts.native.d.ts.map +0 -1
- package/lib/typescript/theme/platform/index.d.ts.map +0 -1
- package/lib/typescript/theme/platform/units.native.d.ts.map +0 -1
- package/lib/typescript/theme/provider/PixelizeProvider.d.ts.map +0 -1
- package/lib/typescript/theme/provider/colorModeStorage.d.ts.map +0 -1
- package/lib/typescript/theme/provider/index.d.ts.map +0 -1
- package/lib/typescript/theme/provider/useTheme.d.ts.map +0 -1
- package/lib/typescript/theme/provider/useThemeColors.d.ts.map +0 -1
- package/lib/typescript/theme/provider/useThemeMode.d.ts.map +0 -1
- package/lib/typescript/theme/tokens/brands/emerald/palette.dark.d.ts.map +0 -1
- package/lib/typescript/theme/tokens/brands/emerald/palette.light.d.ts.map +0 -1
- package/lib/typescript/theme/tokens/brands/index.d.ts.map +0 -1
- package/lib/typescript/theme/tokens/brands/lavender/palette.dark.d.ts.map +0 -1
- package/lib/typescript/theme/tokens/brands/lavender/palette.light.d.ts.map +0 -1
- package/lib/typescript/theme/tokens/brands/meadow/palette.dark.d.ts.map +0 -1
- package/lib/typescript/theme/tokens/brands/meadow/palette.light.d.ts.map +0 -1
- package/lib/typescript/theme/tokens/brands/radiant/palette.dark.d.ts.map +0 -1
- package/lib/typescript/theme/tokens/brands/radiant/palette.light.d.ts.map +0 -1
- package/lib/typescript/theme/tokens/brands/rosewood/palette.dark.d.ts.map +0 -1
- package/lib/typescript/theme/tokens/brands/rosewood/palette.light.d.ts.map +0 -1
- package/lib/typescript/theme/tokens/brands/skyline/palette.dark.d.ts.map +0 -1
- package/lib/typescript/theme/tokens/brands/skyline/palette.light.d.ts.map +0 -1
- package/lib/typescript/theme/tokens/brands/slate/palette.dark.d.ts.map +0 -1
- package/lib/typescript/theme/tokens/brands/slate/palette.light.d.ts.map +0 -1
- package/lib/typescript/theme/tokens/brands/storefront/palette.dark.d.ts.map +0 -1
- package/lib/typescript/theme/tokens/brands/storefront/palette.light.d.ts.map +0 -1
- package/lib/typescript/theme/tokens/brands/zinc/palette.dark.d.ts.map +0 -1
- package/lib/typescript/theme/tokens/brands/zinc/palette.light.d.ts.map +0 -1
- package/lib/typescript/theme/tokens/builders/accentText.d.ts.map +0 -1
- package/lib/typescript/theme/tokens/builders/buildBrandTokens.d.ts.map +0 -1
- package/lib/typescript/theme/tokens/builders/buildDarkPalette.d.ts.map +0 -1
- package/lib/typescript/theme/tokens/builders/color.d.ts.map +0 -1
- package/lib/typescript/theme/tokens/index.d.ts.map +0 -1
- package/lib/typescript/theme/tokens/primitives/borderWidths.d.ts.map +0 -1
- package/lib/typescript/theme/tokens/primitives/breakpoints.d.ts.map +0 -1
- package/lib/typescript/theme/tokens/primitives/elevation.d.ts.map +0 -1
- package/lib/typescript/theme/tokens/primitives/fontSizes.d.ts.map +0 -1
- package/lib/typescript/theme/tokens/primitives/fontWeights.d.ts.map +0 -1
- package/lib/typescript/theme/tokens/primitives/index.d.ts.map +0 -1
- package/lib/typescript/theme/tokens/primitives/letterSpacings.d.ts.map +0 -1
- package/lib/typescript/theme/tokens/primitives/lineHeights.d.ts.map +0 -1
- package/lib/typescript/theme/tokens/primitives/radii.d.ts.map +0 -1
- package/lib/typescript/theme/tokens/primitives/sizes.d.ts.map +0 -1
- package/lib/typescript/theme/tokens/primitives/space.d.ts.map +0 -1
- package/lib/typescript/theme/tokens/primitives/zIndices.d.ts.map +0 -1
- package/lib/typescript/theme/tokens/roles/index.d.ts.map +0 -1
- package/lib/typescript/theme/tokens/types.d.ts.map +0 -1
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
* Pure resolvers for the charts module — no React, no svg, so the WCAG tests import this directly
|
|
3
3
|
* (mocking only `react-native`'s `StyleSheet`, as every sibling module's tests do).
|
|
4
4
|
*/
|
|
5
|
-
import type { RoleColors, StatusRole, Theme } from "../../theme";
|
|
5
|
+
import type { RoleColors, StatusRole, Theme } from "../../theme/hooks";
|
|
6
6
|
export type SparklineTone = "accent" | "neutral" | StatusRole;
|
|
7
7
|
export declare const BAR_LIST_TRACK_HEIGHT = 6;
|
|
8
8
|
export interface BarListColors {
|
|
9
9
|
readonly label: string;
|
|
10
|
-
readonly
|
|
10
|
+
readonly valueColor: string;
|
|
11
11
|
readonly track: string;
|
|
12
12
|
readonly fill: string;
|
|
13
13
|
}
|
|
@@ -23,4 +23,203 @@ export declare const barListStructure: import("../../core/style").ThemedVariantR
|
|
|
23
23
|
export declare const barListRowStructure: import("../../core/style").ThemedVariantResolver<Theme, import("../../core/style").VariantGroups<import("react-native").ViewStyle>, import("react-native").ViewStyle>;
|
|
24
24
|
export declare const barListHeaderStructure: import("../../core/style").ThemedVariantResolver<Theme, import("../../core/style").VariantGroups<import("react-native").ViewStyle>, import("react-native").ViewStyle>;
|
|
25
25
|
export declare const barListTrackStructure: import("../../core/style").ThemedVariantResolver<Theme, import("../../core/style").VariantGroups<import("react-native").ViewStyle>, import("react-native").ViewStyle>;
|
|
26
|
+
/** Same touch-target floor as Select/Button (44dp — Apple HIG minimum, WCAG 2.5.5 AAA). */
|
|
27
|
+
export declare const CHART_MIN_TOUCH_TARGET = 44;
|
|
28
|
+
export interface ChartHitSlop {
|
|
29
|
+
readonly top: number;
|
|
30
|
+
readonly bottom: number;
|
|
31
|
+
readonly left: number;
|
|
32
|
+
readonly right: number;
|
|
33
|
+
}
|
|
34
|
+
/** Symmetric hit-area expansion so a drawn mark smaller than 44dp still meets the touch-target
|
|
35
|
+
* floor, on whichever axis is short — a thin bar and a slim pie wedge fail on different axes. */
|
|
36
|
+
export declare function hitSlopFor(width: number, height: number, minTarget?: number): ChartHitSlop;
|
|
37
|
+
export interface ChartAxisColors {
|
|
38
|
+
readonly label: string;
|
|
39
|
+
readonly gridline: string;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* `border.interactive` is the one border role proven ≥ 3:1 against `bg.surface`/`bg.canvas` on
|
|
43
|
+
* every brand × mode (`roleColors.test.ts`) — `border.default` is the decorative card-outline
|
|
44
|
+
* rung and isn't held to that bar, so it can't stand in for a gridline.
|
|
45
|
+
*/
|
|
46
|
+
export declare function resolveChartAxisColors(colors: RoleColors): ChartAxisColors;
|
|
47
|
+
/**
|
|
48
|
+
* Five role-derived hues for data series with no natural closed union (categorical breakdowns).
|
|
49
|
+
* Every entry measures ≥ 3:1 against `bg.surface` for all 9 brands × both modes (`Charts.test.ts`)
|
|
50
|
+
* — `status.*.text`, deliberately not `status.*.solid`: the solid fills are tuned for a label
|
|
51
|
+
* drawn ON them (badges) and measure as low as 2.0:1 against `bg.surface` on several brands in
|
|
52
|
+
* light mode, while `status.*.text` clears 5.9:1 everywhere.
|
|
53
|
+
*/
|
|
54
|
+
export declare function resolveCategoricalRamp(colors: RoleColors): readonly string[];
|
|
55
|
+
/** Wraps around the 5-hue ramp for a 6th+ series — an explicit per-series `color` is the escape
|
|
56
|
+
* hatch for a chart that needs more distinguishable hues than the role table has, the same
|
|
57
|
+
* documented exception `BarList`'s per-item `color` already establishes. */
|
|
58
|
+
export declare function categoricalColorAt(colors: RoleColors, index: number): string;
|
|
59
|
+
export interface NiceScale {
|
|
60
|
+
readonly min: number;
|
|
61
|
+
readonly max: number;
|
|
62
|
+
readonly step: number;
|
|
63
|
+
readonly ticks: readonly number[];
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* "Nice numbers" axis ticks (Heckbert): a human-readable step (0/25/50/75/100), never a raw
|
|
67
|
+
* division like 0/23.7/47.4. `min === max` (all-equal or single-value data) degenerates to a
|
|
68
|
+
* fixed small band instead of dividing a zero-width range.
|
|
69
|
+
*/
|
|
70
|
+
export declare function niceScale(min: number, max: number, tickCount?: number): NiceScale;
|
|
71
|
+
/** Linear value → pixel scaling. A zero-span domain (all-equal data) lands on the range midpoint
|
|
72
|
+
* instead of dividing by zero; a non-finite value falls back to `rangeStart`. */
|
|
73
|
+
export declare function scaleValue(value: number, domainMin: number, domainMax: number, rangeStart: number, rangeEnd: number): number;
|
|
74
|
+
export declare function finiteOrZero(value: number): number;
|
|
75
|
+
/** `1200 -> "1,200"`. The default `yAxisFormatter` for both `BarChart` and `LineChart`. */
|
|
76
|
+
export declare function defaultNumberFormatter(value: number): string;
|
|
77
|
+
export declare const BAR_GROUP_GAP_RATIO = 0.2;
|
|
78
|
+
export declare const BAR_SERIES_GAP_RATIO = 0.12;
|
|
79
|
+
export interface BarLayout {
|
|
80
|
+
readonly bandWidth: number;
|
|
81
|
+
readonly groupWidth: number;
|
|
82
|
+
readonly barWidth: number;
|
|
83
|
+
}
|
|
84
|
+
/** One category's horizontal "band": `bandWidth` split into a gap plus a `groupWidth` that holds
|
|
85
|
+
* either one bar (simple/stacked) or `seriesCount` bars side by side (grouped). */
|
|
86
|
+
export declare function resolveBarLayout(categoryCount: number, seriesCount: number, plotWidth: number, stacked: boolean): BarLayout;
|
|
87
|
+
/** Left edge (plot-relative) of one bar within its category band. */
|
|
88
|
+
export declare function resolveBarX(categoryIndex: number, seriesIndex: number, seriesCount: number, layout: BarLayout, stacked: boolean): number;
|
|
89
|
+
export interface BarChartDomainInput {
|
|
90
|
+
readonly values: readonly number[];
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* The y-domain across every category, baseline pinned to 0 (bars always read from zero). Stacked
|
|
94
|
+
* mode walks each category's own running cumulative sum and tracks its full min/max extent —
|
|
95
|
+
* the identical math the stacked bar geometry itself uses, so the axis and the bars can never
|
|
96
|
+
* disagree about where the stack reaches.
|
|
97
|
+
*/
|
|
98
|
+
export declare function resolveBarChartDomain(data: readonly BarChartDomainInput[], stacked: boolean): {
|
|
99
|
+
min: number;
|
|
100
|
+
max: number;
|
|
101
|
+
};
|
|
102
|
+
export interface BarChartSummaryDatum {
|
|
103
|
+
readonly label: string;
|
|
104
|
+
readonly values: readonly number[];
|
|
105
|
+
}
|
|
106
|
+
/** "Bar chart, 4 categories, highest Revenue at 1,200" — the accessibility label IS the chart for
|
|
107
|
+
* a screen reader, so it names the count and the single tallest bar drawn, across every series. */
|
|
108
|
+
export declare function summarizeBarChart(data: readonly BarChartSummaryDatum[], formatter: (value: number) => string): string;
|
|
109
|
+
export interface Point {
|
|
110
|
+
readonly x: number;
|
|
111
|
+
readonly y: number;
|
|
112
|
+
}
|
|
113
|
+
export interface LineSeriesDomainInput {
|
|
114
|
+
readonly data: readonly {
|
|
115
|
+
readonly y: number;
|
|
116
|
+
}[];
|
|
117
|
+
}
|
|
118
|
+
export declare function resolveLineDomain(series: readonly LineSeriesDomainInput[]): {
|
|
119
|
+
min: number;
|
|
120
|
+
max: number;
|
|
121
|
+
};
|
|
122
|
+
/** Above this sample count, line/sparkline series are decimated before any geometry is built —
|
|
123
|
+
* one svg node per sample is what makes a 5,000-point series unusable on a mid-tier phone. */
|
|
124
|
+
export declare const MAX_RENDERED_POINTS = 200;
|
|
125
|
+
/**
|
|
126
|
+
* Min/max bucket decimation down to ~`maxPoints`: both endpoints are kept, and the interior is
|
|
127
|
+
* split into equal buckets that each contribute their lowest and highest sample, in original
|
|
128
|
+
* order. Plain stride sampling would drop a one-sample spike; keeping each bucket's extremes
|
|
129
|
+
* preserves the visual envelope of the line at a fraction of the nodes.
|
|
130
|
+
*/
|
|
131
|
+
export declare function decimateSeries<T>(data: readonly T[], value: (item: T) => number, maxPoints?: number): readonly T[];
|
|
132
|
+
/** Non-finite samples are dropped (same contract as `Sparkline`), then the survivors are spaced
|
|
133
|
+
* evenly across `width` BY INDEX, not by numeric `x` — so unevenly-spaced categories (weeks,
|
|
134
|
+
* months) still lay out as a readable, evenly-ticked axis. A single survivor still plots as one
|
|
135
|
+
* centred point. */
|
|
136
|
+
export declare function resolveSeriesPoints(data: readonly {
|
|
137
|
+
readonly y: number;
|
|
138
|
+
}[], domainMin: number, domainMax: number, width: number, height: number): Point[];
|
|
139
|
+
/** A straight polyline by default; `curved` walks the same points through a Catmull-Rom spline
|
|
140
|
+
* converted to cubic bézier segments, so a smoothed line still passes through every sample
|
|
141
|
+
* instead of merely approaching it. */
|
|
142
|
+
export declare function buildLinePath(points: readonly Point[], curved: boolean): string;
|
|
143
|
+
/** The line path plus a close down to `baselineY` — the plot's bottom edge, matching `Sparkline`'s
|
|
144
|
+
* own area contract rather than the zero gridline (a chart with negative values has no single
|
|
145
|
+
* "bottom" that both floors the fill and still reads as empty space). */
|
|
146
|
+
export declare function buildAreaPath(points: readonly Point[], baselineY: number, curved: boolean): string;
|
|
147
|
+
export declare function summarizeLineChart(series: readonly {
|
|
148
|
+
readonly name: string;
|
|
149
|
+
}[]): string;
|
|
150
|
+
export interface PieWedgeInput {
|
|
151
|
+
readonly label: string;
|
|
152
|
+
readonly value: number;
|
|
153
|
+
readonly color?: string;
|
|
154
|
+
}
|
|
155
|
+
export interface PieWedge<T extends PieWedgeInput = PieWedgeInput> {
|
|
156
|
+
readonly source: T;
|
|
157
|
+
readonly color: string;
|
|
158
|
+
readonly fraction: number;
|
|
159
|
+
readonly percentage: number;
|
|
160
|
+
readonly startAngle: number;
|
|
161
|
+
readonly endAngle: number;
|
|
162
|
+
}
|
|
163
|
+
/** Drops non-finite/non-positive segments (same contract as `DonutChart`), then walks the
|
|
164
|
+
* survivors into cumulative angles, 0° = top, increasing clockwise. Carries the original segment
|
|
165
|
+
* as `source` so a caller's `onPressSegment` gets back its own object, not a reconstruction. */
|
|
166
|
+
export declare function resolvePieWedges<T extends PieWedgeInput>(segments: readonly T[], colors: RoleColors): PieWedge<T>[];
|
|
167
|
+
export declare function polarToCartesian(cx: number, cy: number, r: number, angleDeg: number): Point;
|
|
168
|
+
/** A filled-wedge path: center → arc start → (clockwise) arc end → close. Callers special-case a
|
|
169
|
+
* single 100% segment as a plain circle — an arc command can't describe a full sweep whose start
|
|
170
|
+
* and end coincide. */
|
|
171
|
+
export declare function describeWedge(cx: number, cy: number, r: number, startAngle: number, endAngle: number): string;
|
|
172
|
+
export interface BoundingBox {
|
|
173
|
+
readonly x: number;
|
|
174
|
+
readonly y: number;
|
|
175
|
+
readonly width: number;
|
|
176
|
+
readonly height: number;
|
|
177
|
+
}
|
|
178
|
+
/** Bounding box of a circular sector — samples the center, both arc endpoints, and every cardinal
|
|
179
|
+
* point (0/90/180/270°) the sector actually sweeps past, so a wedge spanning a quadrant boundary
|
|
180
|
+
* still gets a box that fully contains its curve, not just its two straight edges. Used to size
|
|
181
|
+
* the touch-target overlay for a pressable wedge, since the wedge itself isn't rectangular. */
|
|
182
|
+
export declare function resolveWedgeBoundingBox(cx: number, cy: number, r: number, startAngle: number, endAngle: number): BoundingBox;
|
|
183
|
+
export declare function summarizePieChart(segments: readonly PieWedgeInput[]): string;
|
|
184
|
+
/** Marker shapes, one per ramp hue, wrapping for a 6th+ series exactly as the hues do. */
|
|
185
|
+
export declare const SERIES_SHAPES: readonly ["circle", "square", "triangle", "diamond", "cross"];
|
|
186
|
+
export type SeriesShape = (typeof SERIES_SHAPES)[number];
|
|
187
|
+
/** Every shape except `circle`, which renders as a native `<Circle>` rather than a bezier path. */
|
|
188
|
+
export type MarkerShape = Exclude<SeriesShape, "circle">;
|
|
189
|
+
export declare function seriesShapeAt(index: number): SeriesShape;
|
|
190
|
+
/**
|
|
191
|
+
* `strokeDasharray` per series index — the line channel. Index 0 is solid (`undefined`, so the
|
|
192
|
+
* common single-series chart emits no dash prop at all), and the four patterns after it are
|
|
193
|
+
* separated by period AND by dash/gap ratio, not just length: two patterns that differ only in
|
|
194
|
+
* scale read as the same line at a glance.
|
|
195
|
+
*/
|
|
196
|
+
export declare const SERIES_DASH_PATTERNS: readonly (readonly number[] | undefined)[];
|
|
197
|
+
export declare function seriesDashAt(index: number): readonly number[] | undefined;
|
|
198
|
+
/**
|
|
199
|
+
* A closed svg path for one non-circular marker, centred on (`cx`, `cy`) and sized from `r` — the
|
|
200
|
+
* radius the equivalent circular marker would use.
|
|
201
|
+
*/
|
|
202
|
+
export declare function describeMarker(shape: MarkerShape, cx: number, cy: number, r: number): string;
|
|
203
|
+
/**
|
|
204
|
+
* Narrower than this and a knocked-out shape marker stops reading as a shape, so `BarChart` drops
|
|
205
|
+
* it and the bar falls back to the legend plus its fixed position in the group.
|
|
206
|
+
*/
|
|
207
|
+
export declare const BAR_MARKER_MIN_SPAN = 14;
|
|
208
|
+
export declare const BAR_MARKER_RADIUS = 4;
|
|
209
|
+
/** Hairline separators between stacked/adjacent segments — two ramp hues can sit at 1.02:1, which
|
|
210
|
+
* merges them into one indistinguishable block without an explicit boundary. */
|
|
211
|
+
export declare const SEGMENT_SEPARATOR_WIDTH = 1;
|
|
212
|
+
/** Fraction of the ring a donut segment gives up so its boundary with the next one is visible. */
|
|
213
|
+
export declare const DONUT_SEGMENT_GAP_RATIO = 0.006;
|
|
214
|
+
export declare const LEGEND_SWATCH_SIZE = 10;
|
|
215
|
+
/** The line-glyph swatch is wider than the plain square: a dash pattern needs run-length to read. */
|
|
216
|
+
export declare const LEGEND_GLYPH_WIDTH = 22;
|
|
217
|
+
export declare const LEGEND_GLYPH_HEIGHT = 10;
|
|
218
|
+
export declare const LEGEND_GLYPH_STROKE_WIDTH = 2;
|
|
219
|
+
export declare const LEGEND_GLYPH_MARKER_RADIUS = 3;
|
|
220
|
+
/** The knockout-shape swatch needs more room than the plain colour square to read as a shape. */
|
|
221
|
+
export declare const LEGEND_MARK_SIZE = 14;
|
|
222
|
+
export declare const chartLegendStructure: import("../../core/style").ThemedVariantResolver<Theme, import("../../core/style").VariantGroups<import("react-native").ViewStyle>, import("react-native").ViewStyle>;
|
|
223
|
+
export declare const chartLegendRowStructure: import("../../core/style").ThemedVariantResolver<Theme, import("../../core/style").VariantGroups<import("react-native").ViewStyle>, import("react-native").ViewStyle>;
|
|
224
|
+
export declare const chartLegendSwatchStructure: import("../../core/style").ThemedVariantResolver<Theme, import("../../core/style").VariantGroups<import("react-native").ViewStyle>, import("react-native").ViewStyle>;
|
|
26
225
|
//# sourceMappingURL=Charts.variants.d.ts.map
|
|
@@ -10,6 +10,9 @@ export interface DonutChartProps {
|
|
|
10
10
|
thickness?: number;
|
|
11
11
|
centerLabel?: string;
|
|
12
12
|
centerSublabel?: string;
|
|
13
|
+
/** Text legend naming each segment (falls back to "Segment N" when a segment has no `label`).
|
|
14
|
+
* Only drawn for 2+ valid segments — one ring needs no key. */
|
|
15
|
+
showLegend?: boolean;
|
|
13
16
|
/** Layout-only, outermost, applied exactly once as the LAST entry in the root style array. */
|
|
14
17
|
style?: LayoutStyle;
|
|
15
18
|
testID?: string;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { LayoutStyle } from "../../core/style";
|
|
2
|
+
import type { SeriesShape } from "./Charts.variants";
|
|
3
|
+
export interface LineChartDatum {
|
|
4
|
+
readonly x: string | number;
|
|
5
|
+
readonly y: number;
|
|
6
|
+
}
|
|
7
|
+
export interface LineChartSeries {
|
|
8
|
+
readonly name: string;
|
|
9
|
+
readonly data: LineChartDatum[];
|
|
10
|
+
readonly color?: string;
|
|
11
|
+
/** Overrides the shape this series' markers (and its legend glyph) take; defaults by index. */
|
|
12
|
+
readonly shape?: SeriesShape;
|
|
13
|
+
}
|
|
14
|
+
export interface LineChartProps {
|
|
15
|
+
series: LineChartSeries[];
|
|
16
|
+
height?: number;
|
|
17
|
+
showGrid?: boolean;
|
|
18
|
+
showDots?: boolean;
|
|
19
|
+
showArea?: boolean;
|
|
20
|
+
curved?: boolean;
|
|
21
|
+
/** Text legend naming each series. Only drawn for 2+ series — one line needs no key. */
|
|
22
|
+
showLegend?: boolean;
|
|
23
|
+
yAxisFormatter?: (value: number) => string;
|
|
24
|
+
xAxisFormatter?: (value: string | number) => string;
|
|
25
|
+
/** Layout-only, outermost, applied exactly once as the LAST entry in the root style array. */
|
|
26
|
+
style?: LayoutStyle;
|
|
27
|
+
testID?: string;
|
|
28
|
+
}
|
|
29
|
+
export declare const LineChart: import("react").NamedExoticComponent<LineChartProps>;
|
|
30
|
+
//# sourceMappingURL=LineChart.d.ts.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { LayoutStyle } from "../../core/style";
|
|
2
|
+
export interface PieChartSegment {
|
|
3
|
+
readonly label: string;
|
|
4
|
+
readonly value: number;
|
|
5
|
+
readonly color?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface PieChartProps {
|
|
8
|
+
segments: PieChartSegment[];
|
|
9
|
+
size?: number;
|
|
10
|
+
showLegend?: boolean;
|
|
11
|
+
showPercentages?: boolean;
|
|
12
|
+
onPressSegment?: (segment: PieChartSegment, index: number) => void;
|
|
13
|
+
/** Layout-only, outermost, applied exactly once as the LAST entry in the root style array. */
|
|
14
|
+
style?: LayoutStyle;
|
|
15
|
+
testID?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare const PieChart: import("react").NamedExoticComponent<PieChartProps>;
|
|
18
|
+
//# sourceMappingURL=PieChart.d.ts.map
|
|
@@ -9,5 +9,11 @@ export { DonutChart } from "./DonutChart";
|
|
|
9
9
|
export type { DonutChartProps, DonutChartSegment } from "./DonutChart";
|
|
10
10
|
export { Sparkline } from "./Sparkline";
|
|
11
11
|
export type { SparklineProps } from "./Sparkline";
|
|
12
|
+
export { BarChart } from "./BarChart";
|
|
13
|
+
export type { BarChartProps, BarChartDatum, BarChartSeries } from "./BarChart";
|
|
14
|
+
export { LineChart } from "./LineChart";
|
|
15
|
+
export type { LineChartProps, LineChartDatum, LineChartSeries } from "./LineChart";
|
|
16
|
+
export { PieChart } from "./PieChart";
|
|
17
|
+
export type { PieChartProps, PieChartSegment } from "./PieChart";
|
|
12
18
|
export type { SparklineTone } from "./Charts.variants";
|
|
13
19
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
* with tri-state support). Every state — unchecked, checked, indeterminate, disabled — maps to a
|
|
4
4
|
* role-coloured pairing proven ≥ 3:1 / ≥ 4.5:1 across every brand × mode, same discipline as
|
|
5
5
|
* `Button`.
|
|
6
|
+
*
|
|
7
|
+
* Motion comes from `core/motion`: the row takes `usePressMotion`, the glyph scales in when the box
|
|
8
|
+
* fills, and the focus ring crossfades. All three collapse to their end state under reduce-motion.
|
|
6
9
|
*/
|
|
7
10
|
import type { LayoutStyle } from "../../core/style";
|
|
8
11
|
import type { CheckboxSize } from "./Checkbox.variants";
|
|
@@ -10,7 +13,7 @@ interface CheckboxBaseProps {
|
|
|
10
13
|
checked: boolean;
|
|
11
14
|
onCheckedChange: (checked: boolean) => void;
|
|
12
15
|
/**
|
|
13
|
-
* Renders the "minus" glyph in place of "check", and reports `
|
|
16
|
+
* Renders the "minus" glyph in place of "check", and reports `aria-checked` as
|
|
14
17
|
* `"mixed"` — regardless of `checked` (the usual pairing is `checked={false}`, but indeterminate
|
|
15
18
|
* always wins the glyph/state either way). Toggling still flips `checked` via `onCheckedChange`.
|
|
16
19
|
*/
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* Free of `lucide` and of any React tree, so the WCAG + behaviour tests import it directly (mocking
|
|
17
17
|
* only `react-native`'s `StyleSheet`, as `core/style` and `Button.variants.ts` do).
|
|
18
18
|
*/
|
|
19
|
-
import type { RoleColors, Theme } from "../../theme";
|
|
19
|
+
import type { RoleColors, Theme } from "../../theme/hooks";
|
|
20
20
|
export type CheckboxSize = "sm" | "md";
|
|
21
21
|
/**
|
|
22
22
|
* Same touch-target floor as `Button` (44dp, WCAG 2.5.5 AAA). Duplicated rather than imported —
|
|
@@ -79,10 +79,8 @@ export interface CheckboxAccessibilityProps {
|
|
|
79
79
|
readonly accessibilityRole: "checkbox";
|
|
80
80
|
/** Falls back to the visible label; required by the type when there is no visible label. */
|
|
81
81
|
readonly accessibilityLabel: string | undefined;
|
|
82
|
-
readonly
|
|
83
|
-
|
|
84
|
-
readonly disabled: boolean;
|
|
85
|
-
};
|
|
82
|
+
readonly "aria-checked": boolean | "mixed";
|
|
83
|
+
readonly "aria-disabled": boolean;
|
|
86
84
|
/** The `Pressable` disabled prop — true while disabled, so touches are blocked. */
|
|
87
85
|
readonly disabled: boolean;
|
|
88
86
|
}
|
|
@@ -91,13 +89,20 @@ export interface CheckboxAccessibilityProps {
|
|
|
91
89
|
* - `indeterminate` reports `"mixed"` over the literal `checked` value — regardless of `checked` —
|
|
92
90
|
* because a screen reader must hear the tri-state, not a stale boolean (matches the visual: the
|
|
93
91
|
* "minus" glyph also wins over "check" whenever `indeterminate` is true).
|
|
94
|
-
* - `disabled` blocks the toggle (the `Pressable disabled` prop), so `
|
|
95
|
-
*
|
|
92
|
+
* - `disabled` blocks the toggle (the `Pressable disabled` prop), so `aria-disabled` always matches
|
|
93
|
+
* what actually renders.
|
|
94
|
+
*
|
|
95
|
+
* FLAT `aria-*`, not `accessibilityState={{…}}`: react-native-web 0.21's `createDOMProps` picks a
|
|
96
|
+
* purely flat vocabulary and drops the object entirely, so the web build announced the role with no
|
|
97
|
+
* state at all. RN's own `Pressable` merges the flat props INTO `accessibilityState` (with the flat
|
|
98
|
+
* one winning), so one flat form is correct on both platforms.
|
|
96
99
|
*/
|
|
97
100
|
export declare function resolveCheckboxAccessibility(input: CheckboxAccessibilityInput): CheckboxAccessibilityProps;
|
|
98
101
|
/**
|
|
99
|
-
* Structural row styles — layout only, no colour. Applied to the
|
|
100
|
-
*
|
|
102
|
+
* Structural row styles — layout only, no colour. Applied to the row `Animated.View` INSIDE the
|
|
103
|
+
* `Pressable` (which keeps `hitSlop` and, last and once, the consumer's own `style`), so the press
|
|
104
|
+
* scale transforms the row without moving the touch target. Fixed regardless of `size`: the box
|
|
105
|
+
* (below) is what scales.
|
|
101
106
|
*/
|
|
102
107
|
export declare const checkboxRowStructure: import("../../core/style").ThemedVariantResolver<Theme, import("../../core/style").VariantGroups<import("react-native").ViewStyle>, import("react-native").ViewStyle>;
|
|
103
108
|
/**
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Chip — an interactive token: press to select/toggle, and optionally press a separate trailing "x"
|
|
3
|
+
* to remove it. Distinct from `Badge` (`../badge`), which is documented, by its own file-level
|
|
4
|
+
* comment, as non-interactive ("no press, focus, loading, or disabled state" — a `View`, never a
|
|
5
|
+
* `Pressable`). Badge displays a status/label; Chip is the touchable counterpart for filter chips,
|
|
6
|
+
* selectable tags, and removable tokens — always `accessibilityRole="button"`, always a 44dp touch
|
|
7
|
+
* target, never icon-only (`label` is required).
|
|
8
|
+
*/
|
|
9
|
+
import type { IconName } from "../../core/icon";
|
|
10
|
+
import type { LayoutStyle } from "../../core/style";
|
|
11
|
+
import type { ChipSize, ChipTone, ChipVariant } from "./Chip.variants";
|
|
12
|
+
export interface ChipProps {
|
|
13
|
+
/** A chip is never icon-only — this is its whole accessible name. */
|
|
14
|
+
label: string;
|
|
15
|
+
variant?: ChipVariant;
|
|
16
|
+
tone?: ChipTone;
|
|
17
|
+
size?: ChipSize;
|
|
18
|
+
/** Renders the filled/accented look regardless of `variant`. Only added to
|
|
19
|
+
* `accessibilityState` when passed — see `resolveChipAccessibility`. */
|
|
20
|
+
selected?: boolean;
|
|
21
|
+
onPress?: () => void;
|
|
22
|
+
/** Provided → a trailing "x" `Pressable` that is a SIBLING of the chip's own press target, with
|
|
23
|
+
* its own accessible name and its own 44dp hit target, so removing never fires `onPress` and a
|
|
24
|
+
* screen reader can reach it. Omitted → no remove affordance renders. */
|
|
25
|
+
onRemove?: () => void;
|
|
26
|
+
/** Leading glyph. Ignored when `avatarUri` is also given — see `avatarUri`. */
|
|
27
|
+
icon?: IconName;
|
|
28
|
+
/** Leading circular image. Wins over `icon` when both are passed: an identity photo is a more
|
|
29
|
+
* specific signal than a generic glyph, the same "most specific wins" precedent `Select`'s own
|
|
30
|
+
* `leading` slot documents for the image-over-glyph case. */
|
|
31
|
+
avatarUri?: string;
|
|
32
|
+
disabled?: boolean;
|
|
33
|
+
/** Layout-only, outermost, applied exactly once as the LAST entry in the root style array. */
|
|
34
|
+
style?: LayoutStyle;
|
|
35
|
+
testID?: string;
|
|
36
|
+
}
|
|
37
|
+
export declare const Chip: import("react").NamedExoticComponent<ChipProps>;
|
|
38
|
+
//# sourceMappingURL=Chip.d.ts.map
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Chip's style + behaviour resolution — same split as every sibling module:
|
|
3
|
+
* - STRUCTURE (sizing/spacing off the theme scale) lives in the `createThemedVariants` resolvers
|
|
4
|
+
* below — static per (brand, mode), registered once.
|
|
5
|
+
* - COLOUR is resolved from the theme's ROLE colours (never a raw ramp, never a hardcoded hex) by
|
|
6
|
+
* `resolveChipColors` — `tone`/`variant` are closed unions for the same reason Button's `tone` is.
|
|
7
|
+
* - ACCESSIBILITY prop derivation is `resolveChipAccessibility`, kept pure so the "selected is only
|
|
8
|
+
* announced when the caller controls it" contract is unit-testable without rendering React Native.
|
|
9
|
+
*
|
|
10
|
+
* Free of React and of any lucide/Pressable import, so the WCAG + behaviour tests import it directly
|
|
11
|
+
* (mocking only `react-native`'s `StyleSheet`, as `core/style` does).
|
|
12
|
+
*/
|
|
13
|
+
import type { RoleColors, StatusRole, Theme } from "../../theme/hooks";
|
|
14
|
+
export type ChipVariant = "solid" | "outline" | "subtle";
|
|
15
|
+
/** `accent`/`neutral` are brand-driven emphasis; the rest mirror the theme's status roles — same
|
|
16
|
+
* shape `Badge`'s own `BadgeTone` uses. */
|
|
17
|
+
export type ChipTone = "accent" | "neutral" | StatusRole;
|
|
18
|
+
export type ChipSize = "sm" | "md";
|
|
19
|
+
export type ChipGroupGap = "sm" | "md";
|
|
20
|
+
/** Same touch-target floor as every interactive control in this library (44dp — Apple HIG minimum,
|
|
21
|
+
* WCAG 2.5.5 AAA). */
|
|
22
|
+
export declare const MIN_TOUCH_TARGET = 44;
|
|
23
|
+
export interface ChipSizeSpec {
|
|
24
|
+
/** Visual height in dp. */
|
|
25
|
+
readonly height: number;
|
|
26
|
+
/** Label size, on the same compact scale `Badge`'s own sizes use. */
|
|
27
|
+
readonly fontSize: number;
|
|
28
|
+
/** Leading icon glyph size in dp. */
|
|
29
|
+
readonly iconSize: number;
|
|
30
|
+
/** Symmetric touch expansion so `height + 2·hitSlop ≥ 44` — the visual pill stays small, the
|
|
31
|
+
* target doesn't. */
|
|
32
|
+
readonly hitSlop: number;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Chip-specific dimensions. Visibly smaller than Button (a chip is a token, not a call-to-action)
|
|
36
|
+
* but every size still reaches the 44dp floor via `hitSlop`, exactly like Button/Select do for
|
|
37
|
+
* their own short sizes.
|
|
38
|
+
*/
|
|
39
|
+
export declare const CHIP_SIZES: {
|
|
40
|
+
readonly sm: {
|
|
41
|
+
readonly height: 28;
|
|
42
|
+
readonly fontSize: 12;
|
|
43
|
+
readonly iconSize: 14;
|
|
44
|
+
readonly hitSlop: number;
|
|
45
|
+
};
|
|
46
|
+
readonly md: {
|
|
47
|
+
readonly height: 32;
|
|
48
|
+
readonly fontSize: 14;
|
|
49
|
+
readonly iconSize: 16;
|
|
50
|
+
readonly hitSlop: number;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
/** Leading `avatarUri` diameter per chip size — a few dp inside the chip's own height so it never
|
|
54
|
+
* clips the pill's vertical padding. */
|
|
55
|
+
export declare const CHIP_AVATAR_SIZE: {
|
|
56
|
+
readonly sm: 18;
|
|
57
|
+
readonly md: 22;
|
|
58
|
+
};
|
|
59
|
+
/** The trailing "x" remove affordance. Fixed — independent of `size`, the same stance Select's row
|
|
60
|
+
* "check" glyph and Menu's row icon take (a fixed-purpose glyph is not a caller-facing choice). */
|
|
61
|
+
export declare const CHIP_REMOVE_ICON_SIZE = 12;
|
|
62
|
+
/** Visual touch box for the remove glyph — small on purpose (it sits inside an already-small chip);
|
|
63
|
+
* `CHIP_REMOVE_HIT_SLOP` is what actually carries it to the 44dp floor. */
|
|
64
|
+
export declare const CHIP_REMOVE_TOUCH_BOX = 18;
|
|
65
|
+
export declare const CHIP_REMOVE_HIT_SLOP: number;
|
|
66
|
+
export interface ChipColors {
|
|
67
|
+
/** Chip fill. */
|
|
68
|
+
readonly background: string;
|
|
69
|
+
/** Label, leading icon, and remove glyph — one colour for all three (see `Chip.tsx`: the icon and
|
|
70
|
+
* remove glyph reuse this exact value, so once the label clears the stricter 4.5:1 text minimum,
|
|
71
|
+
* both glyphs clear their looser 3:1 non-text minimum for free — the same reasoning Menu's row
|
|
72
|
+
* icon and Select's active-row check glyph rely on). */
|
|
73
|
+
readonly text: string;
|
|
74
|
+
/** Boundary colour. Equals `background` for the solid/selected (filled) look, so the structural
|
|
75
|
+
* hairline (if any) blends away; `"transparent"` for `subtle`, which also has zero border WIDTH
|
|
76
|
+
* structurally, so the colour never shows either way. Only `outline` (unselected) draws a real,
|
|
77
|
+
* visible boundary. */
|
|
78
|
+
readonly border: string;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Resolves one (tone, variant, selected) combination's fill/text/border. `selected` renders the
|
|
82
|
+
* filled/accented look regardless of `variant` (spec) by reusing the SAME `solidFill`/`onSolid`
|
|
83
|
+
* pair `variant="solid"` reads — so "selected outline chip" and "solid chip" render identically
|
|
84
|
+
* instead of introducing a third, separately-measured filled pairing.
|
|
85
|
+
*/
|
|
86
|
+
export declare function resolveChipColors(colors: RoleColors, tone: ChipTone, variant: ChipVariant, selected: boolean): ChipColors;
|
|
87
|
+
/** Whether a (variant, selected) combination renders the filled/accented look — the same predicate
|
|
88
|
+
* `resolveChipColors` and `Chip.tsx`'s own press-feedback branch both key off. */
|
|
89
|
+
export declare function isChipFilled(variant: ChipVariant, selected: boolean): boolean;
|
|
90
|
+
/**
|
|
91
|
+
* A resting (non-filled) chip's pressed-state background — `bg.sunken`, the exact precedent
|
|
92
|
+
* `Menu.variants.ts`'s `resolveMenuRowPressedBackground` sets (a pale neutral tint keeps the label
|
|
93
|
+
* ≥ 4.5:1, unlike the saturated `bg.hover` mid-tone). Not used for a filled chip (`variant="solid"`
|
|
94
|
+
* or `selected`): swapping a coloured fill to a flat neutral tint on every press would erase the
|
|
95
|
+
* tone/selection cue for the moment a finger is down, so a filled chip dims instead
|
|
96
|
+
* (`Chip.tsx`'s `styles.filledPressed`) — the same "disabled is a uniform dim, exempt from the
|
|
97
|
+
* contrast minimum" reasoning this library already applies, extended to a transient press.
|
|
98
|
+
*/
|
|
99
|
+
export declare function resolveChipPressedBackground(colors: RoleColors): string;
|
|
100
|
+
export interface ChipAccessibilityInput {
|
|
101
|
+
/** The RAW prop, before any `= false` default — see the return contract below. */
|
|
102
|
+
readonly selected?: boolean | undefined;
|
|
103
|
+
readonly disabled?: boolean | undefined;
|
|
104
|
+
}
|
|
105
|
+
export interface ChipAccessibilityProps {
|
|
106
|
+
readonly accessibilityRole: "button";
|
|
107
|
+
/** Flat, never `accessibilityState`: react-native-web discards the object form (see
|
|
108
|
+
* `docs/PLATFORM-A11Y-PROPS.md`). Quoted key so the compiler still checks the prop name. */
|
|
109
|
+
readonly "aria-disabled": boolean;
|
|
110
|
+
/** The WEB half of `selected`. A filter chip is a toggle button, so the correct ARIA is
|
|
111
|
+
* `aria-pressed` — `aria-selected` is not valid on `role="button"` and browsers ignore it. */
|
|
112
|
+
readonly "aria-pressed": boolean | undefined;
|
|
113
|
+
/** The NATIVE half of `selected` — React Native has no `pressed` state, and react-native-web
|
|
114
|
+
* discards this object, so it never reaches the DOM. `undefined` when the chip has no toggle. */
|
|
115
|
+
readonly accessibilityState: {
|
|
116
|
+
readonly selected: boolean;
|
|
117
|
+
} | undefined;
|
|
118
|
+
readonly disabled: boolean;
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Derives the chip's accessibility surface once, purely. `selected` is only exposed when the CALLER
|
|
122
|
+
* actually passed the prop: a plain removable-token chip (never supplies `selected`) has no
|
|
123
|
+
* selection concept and shouldn't announce "not selected" as if it were part of a toggle group,
|
|
124
|
+
* while a filter chip that IS controlled (`selected` passed, even `false`) gets the full toggle
|
|
125
|
+
* semantics (WCAG 4.1.2 — a widget's state is only exposed when the widget actually has that state).
|
|
126
|
+
*/
|
|
127
|
+
export declare function resolveChipAccessibility(input: ChipAccessibilityInput): ChipAccessibilityProps;
|
|
128
|
+
/**
|
|
129
|
+
* Structural styles only — layout, height, padding, radius, border WIDTH. No colours (tone/selected
|
|
130
|
+
* driven, applied inline over this), so this compiles once per theme identity via the themed
|
|
131
|
+
* resolver. `variant` controls border WIDTH the same way Button's own `variant` does: a hairline for
|
|
132
|
+
* `outline`, zero for `solid`/`subtle` — `resolveChipColors` supplies the border COLOUR, so
|
|
133
|
+
* `outline` is the only variant that ever draws a visible ring (`solid`/`subtle`/selected set the
|
|
134
|
+
* colour to match their own fill, or to `"transparent"`, regardless of this width).
|
|
135
|
+
*/
|
|
136
|
+
export declare const chipStructure: import("../../core/style").ThemedVariantResolver<Theme, {
|
|
137
|
+
size: {
|
|
138
|
+
sm: {
|
|
139
|
+
height: 28;
|
|
140
|
+
paddingHorizontal: number;
|
|
141
|
+
};
|
|
142
|
+
md: {
|
|
143
|
+
height: 32;
|
|
144
|
+
paddingHorizontal: number;
|
|
145
|
+
};
|
|
146
|
+
};
|
|
147
|
+
variant: {
|
|
148
|
+
solid: {
|
|
149
|
+
borderWidth: number;
|
|
150
|
+
};
|
|
151
|
+
outline: {
|
|
152
|
+
borderWidth: 1;
|
|
153
|
+
};
|
|
154
|
+
subtle: {
|
|
155
|
+
borderWidth: number;
|
|
156
|
+
};
|
|
157
|
+
};
|
|
158
|
+
}, import("react-native").ViewStyle>;
|
|
159
|
+
/**
|
|
160
|
+
* The pill's own trailing gutter, widened to hold the remove control's slot. The control itself is
|
|
161
|
+
* a SIBLING of the chip's `Pressable` (it would be unreachable to a screen reader nested inside
|
|
162
|
+
* one — see `Chip.tsx`), so nothing in flow reserves its space; this padding does. The arithmetic
|
|
163
|
+
* reproduces the old in-flow layout exactly: gutter + touch box + the chip's own `columnGap`.
|
|
164
|
+
*/
|
|
165
|
+
export declare const chipRemoveSlotStructure: import("../../core/style").ThemedVariantResolver<Theme, {
|
|
166
|
+
size: {
|
|
167
|
+
sm: {
|
|
168
|
+
paddingRight: number;
|
|
169
|
+
};
|
|
170
|
+
md: {
|
|
171
|
+
paddingRight: number;
|
|
172
|
+
};
|
|
173
|
+
};
|
|
174
|
+
}, import("react-native").ViewStyle>;
|
|
175
|
+
/**
|
|
176
|
+
* The remove glyph's own small touch box — a circle, so its pressed-state fill (see `Chip.tsx`)
|
|
177
|
+
* reads as a rounded affordance rather than a square patch inside the pill. Absolutely positioned
|
|
178
|
+
* over the slot `chipRemoveSlotStructure` reserves, which is what lets it be a sibling of the chip's
|
|
179
|
+
* `Pressable` while still sitting inside the pill: the chip's own background (and its pressed tint)
|
|
180
|
+
* keeps running underneath it, exactly as when it was a child.
|
|
181
|
+
*/
|
|
182
|
+
export declare const chipRemoveTouchStructure: import("../../core/style").ThemedVariantResolver<Theme, {
|
|
183
|
+
size: {
|
|
184
|
+
sm: {
|
|
185
|
+
right: number;
|
|
186
|
+
top: number;
|
|
187
|
+
};
|
|
188
|
+
md: {
|
|
189
|
+
right: number;
|
|
190
|
+
top: number;
|
|
191
|
+
};
|
|
192
|
+
};
|
|
193
|
+
}, import("react-native").ViewStyle>;
|
|
194
|
+
/** Resolves `ChipGroup`'s `gap` prop onto the theme's spacing scale — a direct value, not its own
|
|
195
|
+
* `createThemedVariants` sheet, since `ChipGroup` has no other structural variant to compile
|
|
196
|
+
* alongside it (see `ChipGroup.tsx`). */
|
|
197
|
+
export declare function resolveChipGroupGap(theme: Theme, gap: ChipGroupGap): number;
|
|
198
|
+
//# sourceMappingURL=Chip.variants.d.ts.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ChipGroup — a thin layout wrapper for a row of `Chip`s: wraps onto multiple lines by default, or
|
|
3
|
+
* scrolls horizontally (`scrollable`) for a filter rail. Owns no chip state of its own — selection/
|
|
4
|
+
* removal stay on each `Chip`'s own `onPress`/`onRemove`, the same "props in, events out" stance
|
|
5
|
+
* every layout-only wrapper in this library takes.
|
|
6
|
+
*/
|
|
7
|
+
import type { ReactNode } from "react";
|
|
8
|
+
import type { LayoutStyle } from "../../core/style";
|
|
9
|
+
import type { ChipGroupGap } from "./Chip.variants";
|
|
10
|
+
export interface ChipGroupProps {
|
|
11
|
+
children: ReactNode;
|
|
12
|
+
/** Ignored when `scrollable` is true — a horizontal rail never wraps. */
|
|
13
|
+
wrap?: boolean;
|
|
14
|
+
gap?: ChipGroupGap;
|
|
15
|
+
/** Horizontal `ScrollView` (no wrap), for a filter rail that scrolls instead of wrapping. */
|
|
16
|
+
scrollable?: boolean;
|
|
17
|
+
/** Layout-only, outermost, applied exactly once as the LAST entry in the root style array. */
|
|
18
|
+
style?: LayoutStyle;
|
|
19
|
+
testID?: string;
|
|
20
|
+
}
|
|
21
|
+
export declare const ChipGroup: import("react").NamedExoticComponent<ChipGroupProps>;
|
|
22
|
+
//# sourceMappingURL=ChipGroup.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Public surface of `pixelize-native-library/chip`. Value exports and type exports are split for
|
|
3
|
+
* `verbatimModuleSyntax`. The resolvers (`resolveChipColors`, `CHIP_SIZES`, …) stay internal — a
|
|
4
|
+
* consumer configures a Chip through its props, never by importing its internals.
|
|
5
|
+
*/
|
|
6
|
+
export { Chip } from "./Chip";
|
|
7
|
+
export type { ChipProps } from "./Chip";
|
|
8
|
+
export { ChipGroup } from "./ChipGroup";
|
|
9
|
+
export type { ChipGroupProps } from "./ChipGroup";
|
|
10
|
+
export type { ChipGroupGap, ChipSize, ChipTone, ChipVariant } from "./Chip.variants";
|
|
11
|
+
export type { IconName } from "../../core/icon";
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|