@rbxts/uiblox 0.2.0-alpha.36 → 0.2.0-alpha.38
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/README.md +1 -18
- package/out/theme/constants/NumberConstants.d.ts +10 -0
- package/out/theme/constants/NumberConstants.luau +12 -0
- package/out/theme/interfaces/density/controlMetrics.luau +2 -2
- package/out/theme/interfaces/palette/Palette.d.ts +7 -0
- package/out/theme/interfaces/spacing/Shape.d.ts +6 -0
- package/out/theme/interfaces/theme/Theme.d.ts +6 -0
- package/out/theme/interfaces/typography/FontFamilies.luau +1 -0
- package/out/theme/interfaces/typography/FontFamilyOptions.d.ts +1 -1
- package/out/theme/interfaces/typography/FontSizeOptions.d.ts +1 -1
- package/out/theme/interfaces/typography/FontSizes.luau +2 -0
- package/out/theme/interfaces/typography/Variants.d.ts +3 -1
- package/out/theme/interfaces/typography/Variants.luau +25 -1
- package/out/theme/styles/utilities/focusRing.d.ts +7 -0
- package/out/theme/styles/utilities/focusRing.luau +14 -0
- package/out/theme/styles/utilities/index.d.ts +1 -0
- package/out/theme/styles/utilities/init.luau +3 -0
- package/out/theme/styles/utilities/resolveSx.d.ts +6 -1
- package/out/theme/styles/utilities/resolveSx.luau +53 -12
- package/out/theme/themes/DarkTheme.luau +4 -0
- package/out/theme/themes/LightTheme.luau +4 -0
- package/out/theme/themes/createPalette.luau +15 -0
- package/out/ui/packages/accordion/components/Accordion.d.ts +1 -0
- package/out/ui/packages/accordion/components/Accordion.luau +112 -32
- package/out/ui/packages/accordion/components/Accordion.styles.luau +70 -32
- package/out/ui/packages/accordion/components/accordionNote.d.ts +2 -0
- package/out/ui/packages/accordion/components/accordionNote.luau +11 -0
- package/out/ui/packages/alert/components/Alert.d.ts +2 -0
- package/out/ui/packages/alert/components/Alert.luau +39 -12
- package/out/ui/packages/alert/components/Alert.styles.luau +44 -22
- package/out/ui/packages/alert/components/alertAction.d.ts +2 -0
- package/out/ui/packages/alert/components/alertAction.luau +11 -0
- package/out/ui/packages/appBar/components/AppBar.d.ts +1 -0
- package/out/ui/packages/appBar/components/AppBar.luau +88 -22
- package/out/ui/packages/appBar/components/AppBar.styles.luau +41 -11
- package/out/ui/packages/appBar/components/appBarSubtitle.d.ts +2 -0
- package/out/ui/packages/appBar/components/appBarSubtitle.luau +11 -0
- package/out/ui/packages/autocomplete/components/Autocomplete.luau +4 -0
- package/out/ui/packages/avatar/components/Avatar.d.ts +2 -0
- package/out/ui/packages/avatar/components/Avatar.luau +9 -2
- package/out/ui/packages/avatar/components/Avatar.styles.luau +7 -0
- package/out/ui/packages/avatarGroup/components/AvatarGroup.d.ts +14 -0
- package/out/ui/packages/avatarGroup/components/AvatarGroup.luau +107 -0
- package/out/ui/packages/avatarGroup/components/AvatarGroup.styles.d.ts +6 -0
- package/out/ui/packages/avatarGroup/components/AvatarGroup.styles.luau +55 -0
- package/out/ui/packages/avatarGroup/components/avatarGroupCut.d.ts +2 -0
- package/out/ui/packages/avatarGroup/components/avatarGroupCut.luau +11 -0
- package/out/ui/packages/avatarGroup/index.d.ts +3 -0
- package/out/ui/packages/avatarGroup/init.luau +6 -0
- package/out/ui/packages/badge/components/Badge.luau +14 -11
- package/out/ui/packages/badge/components/Badge.styles.luau +5 -1
- package/out/ui/packages/bottomNavigation/components/BottomNavigation.d.ts +4 -1
- package/out/ui/packages/bottomNavigation/components/BottomNavigation.luau +19 -1
- package/out/ui/packages/bottomNavigation/components/BottomNavigation.styles.luau +24 -3
- package/out/ui/packages/bottomNavigation/components/navBadge.d.ts +2 -0
- package/out/ui/packages/bottomNavigation/components/navBadge.luau +14 -0
- package/out/ui/packages/bottomNavigation/index.d.ts +1 -1
- package/out/ui/packages/breadcrumbs/components/Breadcrumbs.luau +21 -6
- package/out/ui/packages/breadcrumbs/components/Breadcrumbs.styles.luau +10 -0
- package/out/ui/packages/breadcrumbs/components/breadcrumbItems.d.ts +2 -0
- package/out/ui/packages/breadcrumbs/components/breadcrumbItems.luau +8 -0
- package/out/ui/packages/brickColorPicker/components/BrickColorPicker.luau +20 -2
- package/out/ui/packages/brickColorPicker/components/BrickColorPicker.styles.luau +72 -66
- package/out/ui/packages/button/components/Button.d.ts +2 -0
- package/out/ui/packages/button/components/Button.luau +112 -36
- package/out/ui/packages/button/components/Button.styles.luau +2 -0
- package/out/ui/packages/button/components/buttonLook.d.ts +2 -0
- package/out/ui/packages/button/components/buttonLook.luau +11 -0
- package/out/ui/packages/button/components/buttonPaint.d.ts +16 -0
- package/out/ui/packages/button/components/buttonPaint.luau +70 -0
- package/out/ui/packages/buttonGroup/components/ButtonGroup.d.ts +14 -0
- package/out/ui/packages/buttonGroup/components/ButtonGroup.luau +117 -0
- package/out/ui/packages/buttonGroup/components/ButtonGroup.styles.d.ts +5 -0
- package/out/ui/packages/buttonGroup/components/ButtonGroup.styles.luau +57 -0
- package/out/ui/packages/buttonGroup/components/buttonGroupEdge.d.ts +2 -0
- package/out/ui/packages/buttonGroup/components/buttonGroupEdge.luau +16 -0
- package/out/ui/packages/buttonGroup/index.d.ts +3 -0
- package/out/ui/packages/buttonGroup/init.luau +6 -0
- package/out/ui/packages/card/components/Card.d.ts +1 -0
- package/out/ui/packages/card/components/Card.luau +21 -2
- package/out/ui/packages/card/components/Card.styles.d.ts +3 -1
- package/out/ui/packages/card/components/Card.styles.luau +20 -9
- package/out/ui/packages/card/components/cardWidth.d.ts +10 -0
- package/out/ui/packages/card/components/cardWidth.luau +36 -0
- package/out/ui/packages/cframeEditor/components/CFrameEditor.luau +18 -5
- package/out/ui/packages/cframeEditor/components/CFrameEditor.styles.luau +50 -32
- package/out/ui/packages/cframeEditor/components/cframeValue.d.ts +1 -0
- package/out/ui/packages/cframeEditor/components/cframeValue.luau +13 -0
- package/out/ui/packages/checkbox/components/Checkbox.luau +7 -5
- package/out/ui/packages/checkbox/components/Checkbox.styles.luau +2 -0
- package/out/ui/packages/checkbox/components/checkboxLook.d.ts +2 -2
- package/out/ui/packages/checkbox/components/checkboxLook.luau +2 -2
- package/out/ui/packages/chip/components/Chip.luau +16 -14
- package/out/ui/packages/chip/components/Chip.styles.d.ts +2 -1
- package/out/ui/packages/chip/components/Chip.styles.luau +15 -9
- package/out/ui/packages/chip/components/chipTone.d.ts +3 -0
- package/out/ui/packages/chip/components/chipTone.luau +11 -0
- package/out/ui/packages/circularProgress/components/CircularProgress.luau +10 -3
- package/out/ui/packages/codeEditor/components/CodeEditor.d.ts +12 -0
- package/out/ui/packages/codeEditor/components/CodeEditor.luau +262 -0
- package/out/ui/packages/codeEditor/components/CodeEditor.styles.d.ts +6 -0
- package/out/ui/packages/codeEditor/components/CodeEditor.styles.luau +124 -0
- package/out/ui/packages/codeEditor/highlightCode.d.ts +11 -0
- package/out/ui/packages/codeEditor/highlightCode.luau +503 -0
- package/out/ui/packages/codeEditor/index.d.ts +2 -0
- package/out/ui/packages/codeEditor/init.luau +5 -0
- package/out/ui/packages/collapse/components/Collapse.d.ts +8 -0
- package/out/ui/packages/collapse/components/Collapse.luau +34 -0
- package/out/ui/packages/collapse/components/Collapse.styles.d.ts +2 -0
- package/out/ui/packages/collapse/components/Collapse.styles.luau +20 -0
- package/out/ui/packages/collapse/components/collapseOpen.d.ts +1 -0
- package/out/ui/packages/collapse/components/collapseOpen.luau +7 -0
- package/out/ui/packages/collapse/index.d.ts +3 -0
- package/out/ui/packages/collapse/init.luau +6 -0
- package/out/ui/packages/colorPicker/components/ColorPicker.luau +9 -1
- package/out/ui/packages/colorPicker/components/ColorPicker.styles.luau +74 -67
- package/out/ui/packages/colorPicker/components/ColorSequenceEditor.luau +16 -6
- package/out/ui/packages/colorPicker/components/NumberSequenceEditor.luau +16 -6
- package/out/ui/packages/colorPicker/components/sequenceValue.d.ts +2 -0
- package/out/ui/packages/colorPicker/components/sequenceValue.luau +8 -0
- package/out/ui/packages/colorPicker/index.d.ts +1 -1
- package/out/ui/packages/colorPicker/init.luau +2 -0
- package/out/ui/packages/copyButton/components/CopyButton.d.ts +8 -0
- package/out/ui/packages/copyButton/components/CopyButton.luau +32 -0
- package/out/ui/packages/copyButton/components/copyInvoke.d.ts +2 -0
- package/out/ui/packages/copyButton/components/copyInvoke.luau +12 -0
- package/out/ui/packages/copyButton/index.d.ts +3 -0
- package/out/ui/packages/copyButton/init.luau +6 -0
- package/out/ui/packages/cover/components/Cover.d.ts +8 -0
- package/out/ui/packages/cover/components/Cover.luau +47 -0
- package/out/ui/packages/cover/components/coverFill.d.ts +2 -0
- package/out/ui/packages/cover/components/coverFill.luau +14 -0
- package/out/ui/packages/cover/index.d.ts +3 -0
- package/out/ui/packages/cover/init.luau +6 -0
- package/out/ui/packages/dateRange/components/DateRangePicker.d.ts +3 -0
- package/out/ui/packages/dateRange/components/DateRangePicker.luau +186 -95
- package/out/ui/packages/dateRange/dateRangeValue.d.ts +5 -0
- package/out/ui/packages/dateRange/dateRangeValue.luau +34 -0
- package/out/ui/packages/dateRange/index.d.ts +1 -1
- package/out/ui/packages/dateRange/init.luau +3 -0
- package/out/ui/packages/dialog/components/Dialog.d.ts +1 -0
- package/out/ui/packages/dialog/components/Dialog.luau +55 -6
- package/out/ui/packages/dialog/components/Dialog.styles.luau +9 -5
- package/out/ui/packages/dialog/components/dialogWidth.d.ts +7 -0
- package/out/ui/packages/dialog/components/dialogWidth.luau +35 -0
- package/out/ui/packages/divider/components/Divider.luau +60 -13
- package/out/ui/packages/divider/components/Divider.styles.luau +1 -0
- package/out/ui/packages/divider/components/dividerLabel.d.ts +2 -0
- package/out/ui/packages/divider/components/dividerLabel.luau +11 -0
- package/out/ui/packages/drawer/components/Drawer.d.ts +2 -0
- package/out/ui/packages/drawer/components/Drawer.luau +51 -7
- package/out/ui/packages/drawer/components/Drawer.styles.luau +13 -5
- package/out/ui/packages/drawer/components/drawerPlacement.d.ts +15 -1
- package/out/ui/packages/drawer/components/drawerPlacement.luau +46 -0
- package/out/ui/packages/editorFace.d.ts +22 -0
- package/out/ui/packages/editorFace.luau +49 -0
- package/out/ui/packages/fab/components/Fab.luau +19 -6
- package/out/ui/packages/fab/components/Fab.styles.luau +4 -3
- package/out/ui/packages/fontEditor/components/FontEditor.luau +13 -3
- package/out/ui/packages/fontEditor/components/FontEditor.styles.luau +36 -27
- package/out/ui/packages/gradientEditor/components/GradientEditor.luau +21 -13
- package/out/ui/packages/gradientEditor/components/GradientEditor.styles.luau +52 -44
- package/out/ui/packages/icon/components/DrawnGlyph.d.ts +11 -0
- package/out/ui/packages/icon/components/DrawnGlyph.luau +87 -0
- package/out/ui/packages/icon/components/Icon.d.ts +6 -2
- package/out/ui/packages/icon/components/Icon.luau +23 -3
- package/out/ui/packages/icon/components/Icon.styles.luau +3 -0
- package/out/ui/packages/icon/components/glyphs.d.ts +28 -0
- package/out/ui/packages/icon/components/glyphs.luau +64 -0
- package/out/ui/packages/icon/index.d.ts +1 -0
- package/out/ui/packages/iconButton/components/IconButton.d.ts +6 -1
- package/out/ui/packages/iconButton/components/IconButton.luau +112 -11
- package/out/ui/packages/iconButton/components/IconButton.styles.luau +4 -27
- package/out/ui/packages/iconButton/components/iconButtonBox.d.ts +11 -0
- package/out/ui/packages/iconButton/components/iconButtonBox.luau +48 -0
- package/out/ui/packages/iconButton/components/transportGlyph.d.ts +10 -0
- package/out/ui/packages/iconButton/components/transportGlyph.luau +77 -0
- package/out/ui/packages/imageList/components/ImageList.d.ts +4 -0
- package/out/ui/packages/imageList/components/ImageList.luau +28 -7
- package/out/ui/packages/imageList/components/ImageList.styles.d.ts +1 -0
- package/out/ui/packages/imageList/components/ImageList.styles.luau +17 -10
- package/out/ui/packages/imageList/components/imageListLayout.d.ts +8 -0
- package/out/ui/packages/imageList/components/imageListLayout.luau +36 -0
- package/out/ui/packages/index.d.ts +12 -0
- package/out/ui/packages/init.luau +36 -0
- package/out/ui/packages/input/components/Input.d.ts +4 -0
- package/out/ui/packages/input/components/Input.luau +74 -37
- package/out/ui/packages/input/components/Input.styles.d.ts +1 -0
- package/out/ui/packages/input/components/Input.styles.luau +45 -18
- package/out/ui/packages/input/components/clampText.d.ts +2 -0
- package/out/ui/packages/input/components/clampText.luau +16 -0
- package/out/ui/packages/input/components/fieldChrome.d.ts +5 -0
- package/out/ui/packages/input/components/fieldChrome.luau +11 -0
- package/out/ui/packages/input/components/multilineHeight.d.ts +1 -0
- package/out/ui/packages/input/components/multilineHeight.luau +11 -0
- package/out/ui/packages/layout/components/Box.luau +92 -13
- package/out/ui/packages/layout/components/Box.styles.d.ts +0 -2
- package/out/ui/packages/layout/components/Box.styles.luau +0 -9
- package/out/ui/packages/layout/components/Grid.luau +81 -16
- package/out/ui/packages/layout/components/Pad.d.ts +24 -0
- package/out/ui/packages/layout/components/Pad.luau +88 -0
- package/out/ui/packages/layout/components/Stack.luau +79 -13
- package/out/ui/packages/link/components/Link.luau +17 -7
- package/out/ui/packages/link/components/Link.styles.d.ts +0 -1
- package/out/ui/packages/link/components/Link.styles.luau +3 -5
- package/out/ui/packages/listItem/components/ListItem.d.ts +6 -0
- package/out/ui/packages/listItem/components/ListItem.luau +155 -40
- package/out/ui/packages/listItem/components/ListItem.styles.d.ts +4 -0
- package/out/ui/packages/listItem/components/ListItem.styles.luau +70 -31
- package/out/ui/packages/listItem/components/listItemInk.d.ts +3 -0
- package/out/ui/packages/listItem/components/listItemInk.luau +14 -0
- package/out/ui/packages/listItem/components/listItemLayout.d.ts +22 -0
- package/out/ui/packages/listItem/components/listItemLayout.luau +68 -0
- package/out/ui/packages/markdown/components/Markdown.d.ts +2 -0
- package/out/ui/packages/markdown/components/Markdown.luau +244 -46
- package/out/ui/packages/markdown/components/Markdown.styles.luau +125 -51
- package/out/ui/packages/markdown/components/MarkdownEditor.luau +215 -146
- package/out/ui/packages/markdown/components/MarkdownEditor.styles.d.ts +1 -0
- package/out/ui/packages/markdown/components/MarkdownEditor.styles.luau +153 -83
- package/out/ui/packages/markdown/index.d.ts +2 -2
- package/out/ui/packages/markdown/init.luau +2 -0
- package/out/ui/packages/markdown/parseMarkdown.d.ts +30 -2
- package/out/ui/packages/markdown/parseMarkdown.luau +453 -25
- package/out/ui/packages/menu/components/Menu.d.ts +4 -1
- package/out/ui/packages/menu/components/Menu.luau +76 -28
- package/out/ui/packages/menu/components/Menu.styles.luau +6 -1
- package/out/ui/packages/menu/components/menuIcon.d.ts +6 -0
- package/out/ui/packages/menu/components/menuIcon.luau +32 -0
- package/out/ui/packages/numberInput/components/NumberInput.d.ts +1 -0
- package/out/ui/packages/numberInput/components/NumberInput.luau +82 -1
- package/out/ui/packages/numberInput/components/numberValue.d.ts +2 -0
- package/out/ui/packages/numberInput/components/numberValue.luau +10 -0
- package/out/ui/packages/numberRangeEditor/components/NumberRangeEditor.luau +9 -1
- package/out/ui/packages/numberRangeEditor/components/NumberRangeEditor.styles.luau +23 -16
- package/out/ui/packages/pager/components/Pager.d.ts +11 -0
- package/out/ui/packages/pager/components/Pager.luau +114 -0
- package/out/ui/packages/pager/components/Pager.styles.d.ts +2 -0
- package/out/ui/packages/pager/components/Pager.styles.luau +66 -0
- package/out/ui/packages/pager/components/pagerStep.d.ts +3 -0
- package/out/ui/packages/pager/components/pagerStep.luau +24 -0
- package/out/ui/packages/pager/index.d.ts +3 -0
- package/out/ui/packages/pager/init.luau +9 -0
- package/out/ui/packages/pagination/components/Pagination.styles.luau +4 -1
- package/out/ui/packages/paper/components/Paper.luau +17 -11
- package/out/ui/packages/paper/components/Paper.styles.luau +12 -5
- package/out/ui/packages/physicalPropertiesEditor/components/PhysicalPropertiesEditor.luau +14 -1
- package/out/ui/packages/physicalPropertiesEditor/components/PhysicalPropertiesEditor.styles.luau +24 -19
- package/out/ui/packages/physicalPropertiesEditor/components/physicalParts.d.ts +5 -0
- package/out/ui/packages/physicalPropertiesEditor/components/physicalParts.luau +22 -0
- package/out/ui/packages/popover/components/Popover.d.ts +12 -0
- package/out/ui/packages/popover/components/Popover.luau +52 -0
- package/out/ui/packages/popover/components/Popover.styles.d.ts +2 -0
- package/out/ui/packages/popover/components/Popover.styles.luau +32 -0
- package/out/ui/packages/popover/index.d.ts +2 -0
- package/out/ui/packages/popover/init.luau +5 -0
- package/out/ui/packages/popup/components/Popup.d.ts +2 -0
- package/out/ui/packages/popup/components/Popup.luau +64 -2
- package/out/ui/packages/popup/components/placement.luau +6 -4
- package/out/ui/packages/progressBar/components/ProgressBar.luau +1 -1
- package/out/ui/packages/progressBar/components/ProgressBar.styles.luau +3 -2
- package/out/ui/packages/radioGroup/components/RadioGroup.d.ts +4 -1
- package/out/ui/packages/radioGroup/components/RadioGroup.luau +53 -9
- package/out/ui/packages/radioGroup/components/RadioGroup.styles.luau +26 -2
- package/out/ui/packages/radioGroup/components/radioHint.d.ts +2 -0
- package/out/ui/packages/radioGroup/components/radioHint.luau +11 -0
- package/out/ui/packages/radioGroup/index.d.ts +1 -1
- package/out/ui/packages/rating/components/Rating.d.ts +1 -1
- package/out/ui/packages/rating/components/Rating.luau +48 -4
- package/out/ui/packages/rating/components/Rating.styles.luau +1 -1
- package/out/ui/packages/rating/components/ratingCommit.d.ts +2 -0
- package/out/ui/packages/rating/components/ratingCommit.luau +11 -0
- package/out/ui/packages/rayEditor/components/RayEditor.luau +9 -1
- package/out/ui/packages/rayEditor/components/RayEditor.styles.luau +17 -11
- package/out/ui/packages/rectEditor/components/RectEditor.luau +9 -1
- package/out/ui/packages/rectEditor/components/RectEditor.styles.luau +49 -42
- package/out/ui/packages/scroll/components/ScrollView.luau +76 -7
- package/out/ui/packages/select/components/Select.d.ts +2 -0
- package/out/ui/packages/select/components/Select.luau +164 -105
- package/out/ui/packages/select/components/Select.styles.d.ts +2 -0
- package/out/ui/packages/select/components/Select.styles.luau +30 -9
- package/out/ui/packages/select/components/selectWidth.d.ts +2 -0
- package/out/ui/packages/select/components/selectWidth.luau +15 -0
- package/out/ui/packages/shadow/components/Shadow.luau +202 -21
- package/out/ui/packages/sidebar/components/Sidebar.styles.luau +1 -0
- package/out/ui/packages/skeleton/components/Skeleton.luau +4 -0
- package/out/ui/packages/slider/components/RangeSlider.d.ts +16 -0
- package/out/ui/packages/slider/components/RangeSlider.luau +232 -0
- package/out/ui/packages/slider/components/RangeSlider.styles.d.ts +7 -0
- package/out/ui/packages/slider/components/RangeSlider.styles.luau +48 -0
- package/out/ui/packages/slider/components/Slider.d.ts +1 -0
- package/out/ui/packages/slider/components/Slider.luau +53 -25
- package/out/ui/packages/slider/components/Slider.styles.d.ts +1 -0
- package/out/ui/packages/slider/components/Slider.styles.luau +19 -5
- package/out/ui/packages/slider/components/rangeValue.d.ts +21 -0
- package/out/ui/packages/slider/components/rangeValue.luau +77 -0
- package/out/ui/packages/slider/components/sliderLabel.d.ts +4 -0
- package/out/ui/packages/slider/components/sliderLabel.luau +30 -0
- package/out/ui/packages/slider/index.d.ts +3 -0
- package/out/ui/packages/slider/init.luau +6 -0
- package/out/ui/packages/snackbar/components/Snackbar.d.ts +1 -0
- package/out/ui/packages/snackbar/components/Snackbar.luau +2 -0
- package/out/ui/packages/sparkline/components/Sparkline.d.ts +3 -0
- package/out/ui/packages/sparkline/components/Sparkline.luau +72 -8
- package/out/ui/packages/sparkline/index.d.ts +1 -1
- package/out/ui/packages/sparkline/init.luau +6 -1
- package/out/ui/packages/sparkline/sparklineLayout.d.ts +17 -0
- package/out/ui/packages/sparkline/sparklineLayout.luau +132 -8
- package/out/ui/packages/speedDial/components/SpeedDial.d.ts +1 -0
- package/out/ui/packages/speedDial/components/SpeedDial.luau +59 -9
- package/out/ui/packages/speedDial/components/SpeedDial.styles.d.ts +1 -0
- package/out/ui/packages/speedDial/components/SpeedDial.styles.luau +50 -3
- package/out/ui/packages/speedDial/components/speedDialLabel.d.ts +4 -0
- package/out/ui/packages/speedDial/components/speedDialLabel.luau +16 -0
- package/out/ui/packages/splitPane/components/splitLook.d.ts +1 -1
- package/out/ui/packages/stateMatrix.d.ts +1 -0
- package/out/ui/packages/stateMatrix.luau +9 -0
- package/out/ui/packages/stepper/components/Stepper.d.ts +2 -0
- package/out/ui/packages/stepper/components/Stepper.luau +35 -7
- package/out/ui/packages/stepper/components/Stepper.styles.luau +12 -6
- package/out/ui/packages/stepper/components/stepState.d.ts +4 -2
- package/out/ui/packages/stepper/components/stepState.luau +12 -1
- package/out/ui/packages/stepper/index.d.ts +1 -1
- package/out/ui/packages/stepper/init.luau +3 -1
- package/out/ui/packages/switch/components/Switch.luau +2 -2
- package/out/ui/packages/switch/components/Switch.styles.luau +2 -5
- package/out/ui/packages/switch/components/switchLook.d.ts +3 -3
- package/out/ui/packages/switch/components/switchLook.luau +4 -10
- package/out/ui/packages/table/components/Table.d.ts +1 -0
- package/out/ui/packages/table/components/Table.luau +99 -57
- package/out/ui/packages/table/components/Table.styles.luau +23 -6
- package/out/ui/packages/table/components/tableColumns.d.ts +2 -0
- package/out/ui/packages/table/components/tableColumns.luau +2 -0
- package/out/ui/packages/table/components/tableSort.d.ts +2 -0
- package/out/ui/packages/table/components/tableSort.luau +95 -0
- package/out/ui/packages/table/index.d.ts +1 -0
- package/out/ui/packages/table/init.luau +1 -0
- package/out/ui/packages/tabs/components/Tabs.luau +77 -6
- package/out/ui/packages/tabs/components/Tabs.styles.luau +12 -11
- package/out/ui/packages/tabs/components/tabIndicator.d.ts +7 -0
- package/out/ui/packages/tabs/components/tabIndicator.luau +21 -0
- package/out/ui/packages/tabs/components/tabScroll.d.ts +2 -0
- package/out/ui/packages/tabs/components/tabScroll.luau +18 -0
- package/out/ui/packages/text/components/Text.d.ts +9 -0
- package/out/ui/packages/text/components/Text.luau +64 -0
- package/out/ui/packages/text/components/textBox.d.ts +12 -0
- package/out/ui/packages/text/components/textBox.luau +21 -0
- package/out/ui/packages/text/index.d.ts +2 -0
- package/out/ui/packages/text/init.luau +5 -0
- package/out/ui/packages/timeField/components/TimeField.d.ts +13 -0
- package/out/ui/packages/timeField/components/TimeField.luau +106 -0
- package/out/ui/packages/timeField/index.d.ts +4 -0
- package/out/ui/packages/timeField/init.luau +9 -0
- package/out/ui/packages/timeField/timeValue.d.ts +8 -0
- package/out/ui/packages/timeField/timeValue.luau +49 -0
- package/out/ui/packages/timeline/components/Timeline.d.ts +12 -0
- package/out/ui/packages/timeline/components/Timeline.luau +102 -0
- package/out/ui/packages/timeline/components/Timeline.styles.d.ts +2 -0
- package/out/ui/packages/timeline/components/Timeline.styles.luau +115 -0
- package/out/ui/packages/timeline/components/timelineRail.d.ts +4 -0
- package/out/ui/packages/timeline/components/timelineRail.luau +15 -0
- package/out/ui/packages/timeline/index.d.ts +3 -0
- package/out/ui/packages/timeline/init.luau +8 -0
- package/out/ui/packages/toast/components/Toast.d.ts +1 -0
- package/out/ui/packages/toast/components/Toast.luau +200 -57
- package/out/ui/packages/toast/components/Toast.styles.luau +40 -20
- package/out/ui/packages/toast/components/toastPlace.d.ts +16 -0
- package/out/ui/packages/toast/components/toastPlace.luau +44 -0
- package/out/ui/packages/toast/enums/ToastVariants.d.ts +2 -1
- package/out/ui/packages/toast/enums/ToastVariants.luau +1 -0
- package/out/ui/packages/toggleButton/components/ToggleButton.luau +43 -4
- package/out/ui/packages/toggleButton/components/ToggleButton.styles.luau +1 -1
- package/out/ui/packages/tooltip/components/Tooltip.d.ts +1 -0
- package/out/ui/packages/tooltip/components/Tooltip.luau +109 -31
- package/out/ui/packages/tooltip/components/Tooltip.styles.luau +31 -1
- package/out/ui/packages/tooltip/components/tooltipBox.d.ts +4 -0
- package/out/ui/packages/tooltip/components/tooltipBox.luau +12 -0
- package/out/ui/packages/tooltip/components/tooltipPointer.d.ts +2 -0
- package/out/ui/packages/tooltip/components/tooltipPointer.luau +11 -0
- package/out/ui/packages/treeView/components/TreeView.luau +12 -13
- package/out/ui/packages/treeView/components/TreeView.styles.luau +6 -0
- package/out/ui/packages/typography/components/Typography.d.ts +2 -0
- package/out/ui/packages/typography/components/Typography.luau +8 -0
- package/out/ui/packages/typography/components/Typography.styles.luau +3 -1
- package/out/ui/packages/udimEditor/components/UDimEditor.luau +9 -1
- package/out/ui/packages/udimEditor/components/UDimEditor.styles.luau +25 -18
- package/out/ui/packages/vectorEditor/components/VectorEditor.luau +18 -3
- package/out/ui/packages/vectorEditor/components/VectorEditor.styles.luau +30 -16
- package/out/ui/packages/virtualList/components/VirtualList.styles.luau +1 -0
- package/out/ui/packages/weekGrid/components/WeekGrid.d.ts +24 -0
- package/out/ui/packages/weekGrid/components/WeekGrid.luau +187 -0
- package/out/ui/packages/weekGrid/components/weekColumns.d.ts +9 -0
- package/out/ui/packages/weekGrid/components/weekColumns.luau +25 -0
- package/out/ui/packages/weekGrid/index.d.ts +3 -0
- package/out/ui/packages/weekGrid/init.luau +8 -0
- package/package.json +2 -2
|
@@ -3,35 +3,12 @@ local TS = _G[script]
|
|
|
3
3
|
local _theme = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "theme")
|
|
4
4
|
local createStyles = _theme.createStyles
|
|
5
5
|
local componentStyles = _theme.componentStyles
|
|
6
|
+
local iconButtonScale = TS.import(script, script.Parent, "iconButtonBox").iconButtonScale
|
|
6
7
|
local useIconButtonStyles = componentStyles("IconButton", function(theme, props)
|
|
7
|
-
local
|
|
8
|
-
local _binding = props
|
|
9
|
-
local size = _binding.size
|
|
10
|
-
repeat
|
|
11
|
-
if size == "xxs" then
|
|
12
|
-
return UDim2.new(0, theme.spacing.calc(1), 0, theme.spacing.calc(1))
|
|
13
|
-
end
|
|
14
|
-
if size == "xs" then
|
|
15
|
-
return UDim2.new(0, theme.spacing.calc(1.5), 0, theme.spacing.calc(1.5))
|
|
16
|
-
end
|
|
17
|
-
if size == "sm" then
|
|
18
|
-
return UDim2.new(0, theme.spacing.calc(2), 0, theme.spacing.calc(2))
|
|
19
|
-
end
|
|
20
|
-
if size == "md" then
|
|
21
|
-
return UDim2.new(0, theme.spacing.calc(3), 0, theme.spacing.calc(3))
|
|
22
|
-
end
|
|
23
|
-
if size == "lg" then
|
|
24
|
-
return UDim2.new(0, theme.spacing.calc(4), 0, theme.spacing.calc(4))
|
|
25
|
-
end
|
|
26
|
-
if size == "xl" then
|
|
27
|
-
return UDim2.new(0, theme.spacing.calc(5), 0, theme.spacing.calc(5))
|
|
28
|
-
end
|
|
29
|
-
return UDim2.new(0, theme.spacing.calc(2), 0, theme.spacing.calc(2))
|
|
30
|
-
until true
|
|
31
|
-
end
|
|
8
|
+
local extent = theme.spacing.calc(iconButtonScale(props.size))
|
|
32
9
|
return createStyles({
|
|
33
10
|
container = {
|
|
34
|
-
Size =
|
|
11
|
+
Size = UDim2.new(0, extent, 0, extent),
|
|
35
12
|
BackgroundColor3 = theme.palette.primary.main,
|
|
36
13
|
ImageColor3 = theme.palette.text.primary,
|
|
37
14
|
BackgroundTransparency = 1,
|
|
@@ -40,7 +17,7 @@ local useIconButtonStyles = componentStyles("IconButton", function(theme, props)
|
|
|
40
17
|
ZIndex = 12000,
|
|
41
18
|
},
|
|
42
19
|
corner = {
|
|
43
|
-
CornerRadius = UDim.new(
|
|
20
|
+
CornerRadius = UDim.new(theme.shape.pillScale / 2, 0),
|
|
44
21
|
},
|
|
45
22
|
})
|
|
46
23
|
end)
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare function iconButtonScale(size?: string): 4 | 1 | 2 | 3 | 5 | 1.5;
|
|
2
|
+
/** Glyph box inside the button. A fixed 16px mark overflows the small sizes and looks lost in the large ones. */
|
|
3
|
+
export declare function iconGlyphExtent(button: number): number;
|
|
4
|
+
export type IconButtonFace = "clear" | "hover" | "pressed" | "selected";
|
|
5
|
+
export declare function iconButtonFace(input: {
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
loading: boolean;
|
|
8
|
+
selected: boolean;
|
|
9
|
+
hover: boolean;
|
|
10
|
+
down: boolean;
|
|
11
|
+
}): IconButtonFace;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
-- Compiled with roblox-ts v3.0.0
|
|
2
|
+
local function iconButtonScale(size)
|
|
3
|
+
repeat
|
|
4
|
+
if size == "xxs" then
|
|
5
|
+
return 1
|
|
6
|
+
end
|
|
7
|
+
if size == "xs" then
|
|
8
|
+
return 1.5
|
|
9
|
+
end
|
|
10
|
+
if size == "sm" then
|
|
11
|
+
return 2
|
|
12
|
+
end
|
|
13
|
+
if size == "md" then
|
|
14
|
+
return 3
|
|
15
|
+
end
|
|
16
|
+
if size == "lg" then
|
|
17
|
+
return 4
|
|
18
|
+
end
|
|
19
|
+
if size == "xl" then
|
|
20
|
+
return 5
|
|
21
|
+
end
|
|
22
|
+
return 2
|
|
23
|
+
until true
|
|
24
|
+
end
|
|
25
|
+
--* Glyph box inside the button. A fixed 16px mark overflows the small sizes and looks lost in the large ones.
|
|
26
|
+
local function iconGlyphExtent(button)
|
|
27
|
+
return math.max(4, math.floor(button * 0.62))
|
|
28
|
+
end
|
|
29
|
+
local function iconButtonFace(input)
|
|
30
|
+
if input.disabled or input.loading then
|
|
31
|
+
return "clear"
|
|
32
|
+
end
|
|
33
|
+
if input.down then
|
|
34
|
+
return "pressed"
|
|
35
|
+
end
|
|
36
|
+
if input.selected then
|
|
37
|
+
return "selected"
|
|
38
|
+
end
|
|
39
|
+
if input.hover then
|
|
40
|
+
return "hover"
|
|
41
|
+
end
|
|
42
|
+
return "clear"
|
|
43
|
+
end
|
|
44
|
+
return {
|
|
45
|
+
iconButtonScale = iconButtonScale,
|
|
46
|
+
iconGlyphExtent = iconGlyphExtent,
|
|
47
|
+
iconButtonFace = iconButtonFace,
|
|
48
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type TransportGlyph = "play" | "pause" | "previous" | "next";
|
|
2
|
+
export declare function isTransportGlyph(name: string): name is TransportGlyph;
|
|
3
|
+
export interface GlyphRect {
|
|
4
|
+
x: number;
|
|
5
|
+
y: number;
|
|
6
|
+
w: number;
|
|
7
|
+
h: number;
|
|
8
|
+
}
|
|
9
|
+
/** Play, pause, previous, and next as a few rectangles. Not an icon font. */
|
|
10
|
+
export declare function transportGlyph(name: TransportGlyph, size?: number): GlyphRect[];
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
-- Compiled with roblox-ts v3.0.0
|
|
2
|
+
local function isTransportGlyph(name)
|
|
3
|
+
return name == "play" or name == "pause" or name == "previous" or name == "next"
|
|
4
|
+
end
|
|
5
|
+
local function wedge(size, pointRight)
|
|
6
|
+
local steps = 6
|
|
7
|
+
local h = math.max(1, math.floor(size / steps))
|
|
8
|
+
local mid = (steps - 1) / 2
|
|
9
|
+
local parts = {}
|
|
10
|
+
for i = 0, steps - 1 do
|
|
11
|
+
local reach = 1 - math.abs(i - mid) / mid
|
|
12
|
+
local w = math.max(1, math.floor(reach * size))
|
|
13
|
+
local x = if pointRight then 0 else size - w
|
|
14
|
+
local _arg0 = {
|
|
15
|
+
x = x,
|
|
16
|
+
y = i * h,
|
|
17
|
+
w = w,
|
|
18
|
+
h = h,
|
|
19
|
+
}
|
|
20
|
+
table.insert(parts, _arg0)
|
|
21
|
+
end
|
|
22
|
+
return parts
|
|
23
|
+
end
|
|
24
|
+
--* Play, pause, previous, and next as a few rectangles. Not an icon font.
|
|
25
|
+
local function transportGlyph(name, size)
|
|
26
|
+
if size == nil then
|
|
27
|
+
size = 16
|
|
28
|
+
end
|
|
29
|
+
local box = math.max(4, math.floor(size))
|
|
30
|
+
if name == "pause" then
|
|
31
|
+
local bar = math.max(2, math.floor(box / 5))
|
|
32
|
+
local gap = bar
|
|
33
|
+
local span = bar * 2 + gap
|
|
34
|
+
local x0 = math.floor((box - span) / 2)
|
|
35
|
+
return { {
|
|
36
|
+
x = x0,
|
|
37
|
+
y = 0,
|
|
38
|
+
w = bar,
|
|
39
|
+
h = box,
|
|
40
|
+
}, {
|
|
41
|
+
x = x0 + bar + gap,
|
|
42
|
+
y = 0,
|
|
43
|
+
w = bar,
|
|
44
|
+
h = box,
|
|
45
|
+
} }
|
|
46
|
+
end
|
|
47
|
+
if name == "play" then
|
|
48
|
+
return wedge(box, true)
|
|
49
|
+
end
|
|
50
|
+
local bar = math.max(2, math.floor(box / 6))
|
|
51
|
+
local mark = {
|
|
52
|
+
x = if name == "previous" then 0 else box - bar,
|
|
53
|
+
y = 0,
|
|
54
|
+
w = bar,
|
|
55
|
+
h = box,
|
|
56
|
+
}
|
|
57
|
+
local inner = math.max(4, box - bar - 1)
|
|
58
|
+
local shift = if name == "previous" then bar + 1 else 0
|
|
59
|
+
local moved = {}
|
|
60
|
+
for _, part in wedge(inner, name ~= "previous") do
|
|
61
|
+
local _arg0 = {
|
|
62
|
+
x = part.x + shift,
|
|
63
|
+
y = part.y,
|
|
64
|
+
w = part.w,
|
|
65
|
+
h = part.h,
|
|
66
|
+
}
|
|
67
|
+
table.insert(moved, _arg0)
|
|
68
|
+
end
|
|
69
|
+
local _array = { mark }
|
|
70
|
+
local _length = #_array
|
|
71
|
+
table.move(moved, 1, #moved, _length + 1, _array)
|
|
72
|
+
return _array
|
|
73
|
+
end
|
|
74
|
+
return {
|
|
75
|
+
isTransportGlyph = isTransportGlyph,
|
|
76
|
+
transportGlyph = transportGlyph,
|
|
77
|
+
}
|
|
@@ -2,12 +2,16 @@ import { CustomizedProps } from "../../../../theme/index";
|
|
|
2
2
|
export interface ImageListItem {
|
|
3
3
|
src: string;
|
|
4
4
|
title?: string;
|
|
5
|
+
color?: Color3;
|
|
6
|
+
aspect?: number;
|
|
5
7
|
}
|
|
6
8
|
export interface ImageListProps {
|
|
7
9
|
items: ImageListItem[];
|
|
8
10
|
cols?: number;
|
|
9
11
|
gap?: number;
|
|
10
12
|
itemSize?: number;
|
|
13
|
+
aspect?: number;
|
|
14
|
+
selected?: ReadonlyArray<number>;
|
|
11
15
|
onItemActivated?: (index: number) => void;
|
|
12
16
|
}
|
|
13
17
|
declare function ImageList(props: CustomizedProps<Frame, ImageListProps>): JSX.Element;
|
|
@@ -2,7 +2,11 @@
|
|
|
2
2
|
local TS = _G[script]
|
|
3
3
|
local React = TS.import(script, TS.getModule(script, "@rbxts", "react"))
|
|
4
4
|
local SxHost = TS.import(script, script.Parent.Parent.Parent, "host").SxHost
|
|
5
|
-
local
|
|
5
|
+
local _imageListLayout = TS.import(script, script.Parent, "imageListLayout")
|
|
6
|
+
local imageListCell = _imageListLayout.imageListCell
|
|
7
|
+
local imageListItemAspect = _imageListLayout.imageListItemAspect
|
|
8
|
+
local imageListSelected = _imageListLayout.imageListSelected
|
|
9
|
+
local imageListTitle = _imageListLayout.imageListTitle
|
|
6
10
|
local useImageListStyles = TS.import(script, script.Parent, "ImageList.styles").default
|
|
7
11
|
local function ImageList(props)
|
|
8
12
|
local _binding = props
|
|
@@ -10,6 +14,8 @@ local function ImageList(props)
|
|
|
10
14
|
local cols = _binding.cols
|
|
11
15
|
local gap = _binding.gap
|
|
12
16
|
local itemSize = _binding.itemSize
|
|
17
|
+
local aspect = _binding.aspect
|
|
18
|
+
local selected = _binding.selected
|
|
13
19
|
local onItemActivated = _binding.onItemActivated
|
|
14
20
|
local className = _binding.className
|
|
15
21
|
local sx = _binding.sx
|
|
@@ -19,6 +25,7 @@ local function ImageList(props)
|
|
|
19
25
|
cols = cols,
|
|
20
26
|
gap = gap,
|
|
21
27
|
itemSize = itemSize,
|
|
28
|
+
aspect = aspect,
|
|
22
29
|
})
|
|
23
30
|
local _attributes = {
|
|
24
31
|
tag = "frame",
|
|
@@ -32,19 +39,27 @@ local function ImageList(props)
|
|
|
32
39
|
_attributes.base = styles.root
|
|
33
40
|
_attributes.className = className
|
|
34
41
|
_attributes.sx = sx
|
|
35
|
-
local _attributes_1 = table.clone(styles.
|
|
42
|
+
local _attributes_1 = table.clone(styles.flow)
|
|
36
43
|
setmetatable(_attributes_1, nil)
|
|
37
|
-
local _exp = React.createElement("
|
|
44
|
+
local _exp = React.createElement("uilistlayout", _attributes_1)
|
|
38
45
|
-- ▼ ReadonlyArray.map ▼
|
|
39
46
|
local _newValue = table.create(#items)
|
|
40
47
|
local _callback = function(item, index)
|
|
41
48
|
local title = imageListTitle(item.title)
|
|
49
|
+
local picked = imageListSelected(selected, index)
|
|
50
|
+
local cell = imageListCell(itemSize, imageListItemAspect(item.aspect, aspect))
|
|
42
51
|
local _attributes_2 = {
|
|
43
52
|
key = `Tile-{index}`,
|
|
44
53
|
}
|
|
45
54
|
for _k, _v in styles.tile do
|
|
46
55
|
_attributes_2[_k] = _v
|
|
47
56
|
end
|
|
57
|
+
_attributes_2.Size = UDim2.fromOffset(cell.width, cell.height)
|
|
58
|
+
for _k, _v in (if item.color ~= nil then {
|
|
59
|
+
BackgroundColor3 = item.color,
|
|
60
|
+
} else {}) do
|
|
61
|
+
_attributes_2[_k] = _v
|
|
62
|
+
end
|
|
48
63
|
_attributes_2.LayoutOrder = index
|
|
49
64
|
_attributes_2.Event = {
|
|
50
65
|
Activated = function()
|
|
@@ -58,6 +73,12 @@ local function ImageList(props)
|
|
|
58
73
|
local _attributes_3 = table.clone(styles.corner)
|
|
59
74
|
setmetatable(_attributes_3, nil)
|
|
60
75
|
local _exp_1 = React.createElement("uicorner", _attributes_3)
|
|
76
|
+
local _condition_1 = picked
|
|
77
|
+
if _condition_1 then
|
|
78
|
+
local _attributes_4 = table.clone(styles.selected)
|
|
79
|
+
setmetatable(_attributes_4, nil)
|
|
80
|
+
_condition_1 = React.createElement("uistroke", _attributes_4)
|
|
81
|
+
end
|
|
61
82
|
local _attributes_4 = {
|
|
62
83
|
key = "Image",
|
|
63
84
|
}
|
|
@@ -66,8 +87,8 @@ local function ImageList(props)
|
|
|
66
87
|
end
|
|
67
88
|
_attributes_4.Image = item.src
|
|
68
89
|
local _exp_2 = React.createElement("imagelabel", _attributes_4)
|
|
69
|
-
local
|
|
70
|
-
if
|
|
90
|
+
local _condition_2 = title ~= nil
|
|
91
|
+
if _condition_2 then
|
|
71
92
|
local _attributes_5 = {
|
|
72
93
|
key = "Title",
|
|
73
94
|
}
|
|
@@ -77,9 +98,9 @@ local function ImageList(props)
|
|
|
77
98
|
_attributes_5.Text = title
|
|
78
99
|
local _attributes_6 = table.clone(styles.titlePad)
|
|
79
100
|
setmetatable(_attributes_6, nil)
|
|
80
|
-
|
|
101
|
+
_condition_2 = (React.createElement("textlabel", _attributes_5, React.createElement("uipadding", _attributes_6)))
|
|
81
102
|
end
|
|
82
|
-
return React.createElement("imagebutton", _attributes_2, _exp_1, _exp_2,
|
|
103
|
+
return React.createElement("imagebutton", _attributes_2, _exp_1, _condition_1, _exp_2, _condition_2)
|
|
83
104
|
end
|
|
84
105
|
for _k, _v in items do
|
|
85
106
|
_newValue[_k] = _callback(_v, _k - 1, items)
|
|
@@ -5,40 +5,46 @@ local Common = _theme.Common
|
|
|
5
5
|
local componentStyles = _theme.componentStyles
|
|
6
6
|
local createStyles = _theme.createStyles
|
|
7
7
|
local _imageListLayout = TS.import(script, script.Parent, "imageListLayout")
|
|
8
|
+
local imageListCell = _imageListLayout.imageListCell
|
|
8
9
|
local imageListCols = _imageListLayout.imageListCols
|
|
9
10
|
local imageListGap = _imageListLayout.imageListGap
|
|
10
|
-
local imageListItemSize = _imageListLayout.imageListItemSize
|
|
11
11
|
local useImageListStyles = componentStyles("ImageList", function(theme, _param)
|
|
12
12
|
local cols = _param.cols
|
|
13
13
|
local gap = _param.gap
|
|
14
14
|
local itemSize = _param.itemSize
|
|
15
|
-
local
|
|
15
|
+
local aspect = _param.aspect
|
|
16
|
+
local columns = imageListCols(cols)
|
|
17
|
+
local cell = imageListCell(itemSize, aspect)
|
|
16
18
|
local pad = theme.spacing.calc(imageListGap(gap))
|
|
17
19
|
local bar = theme.spacing.calc(2.5)
|
|
20
|
+
local span = columns * cell.width + math.max(0, columns - 1) * pad
|
|
18
21
|
return createStyles({
|
|
19
22
|
root = {
|
|
20
|
-
AutomaticSize = Enum.AutomaticSize.
|
|
21
|
-
Size = UDim2.
|
|
23
|
+
AutomaticSize = Enum.AutomaticSize.Y,
|
|
24
|
+
Size = UDim2.fromOffset(span, 0),
|
|
22
25
|
BackgroundTransparency = 1,
|
|
23
26
|
BorderSizePixel = 0,
|
|
24
27
|
},
|
|
25
|
-
|
|
26
|
-
CellSize = UDim2.fromOffset(size, size),
|
|
27
|
-
CellPadding = UDim2.fromOffset(pad, pad),
|
|
28
|
+
flow = {
|
|
28
29
|
FillDirection = Enum.FillDirection.Horizontal,
|
|
29
|
-
|
|
30
|
+
Wraps = true,
|
|
31
|
+
Padding = UDim.new(0, pad),
|
|
30
32
|
SortOrder = Enum.SortOrder.LayoutOrder,
|
|
31
|
-
StartCorner = Enum.StartCorner.TopLeft,
|
|
32
33
|
HorizontalAlignment = Enum.HorizontalAlignment.Left,
|
|
33
34
|
VerticalAlignment = Enum.VerticalAlignment.Top,
|
|
34
35
|
},
|
|
35
36
|
tile = {
|
|
36
|
-
Size = UDim2.fromOffset(
|
|
37
|
+
Size = UDim2.fromOffset(cell.width, cell.height),
|
|
37
38
|
BackgroundColor3 = theme.palette.surface.input,
|
|
38
39
|
BorderSizePixel = 0,
|
|
39
40
|
AutoButtonColor = false,
|
|
40
41
|
ClipsDescendants = true,
|
|
41
42
|
},
|
|
43
|
+
selected = {
|
|
44
|
+
Color = theme.palette.primary.main,
|
|
45
|
+
Thickness = 2,
|
|
46
|
+
ApplyStrokeMode = Enum.ApplyStrokeMode.Border,
|
|
47
|
+
},
|
|
42
48
|
corner = {
|
|
43
49
|
CornerRadius = UDim.new(0, theme.shape.borderRadius),
|
|
44
50
|
},
|
|
@@ -59,6 +65,7 @@ local useImageListStyles = componentStyles("ImageList", function(theme, _param)
|
|
|
59
65
|
TextColor3 = Common.White,
|
|
60
66
|
TextXAlignment = Enum.TextXAlignment.Left,
|
|
61
67
|
TextTruncate = Enum.TextTruncate.AtEnd,
|
|
68
|
+
TextWrapped = false,
|
|
62
69
|
ZIndex = 2,
|
|
63
70
|
},
|
|
64
71
|
titlePad = {
|
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
export declare function imageListCols(cols?: number): number;
|
|
2
2
|
export declare function imageListGap(gap?: number): number;
|
|
3
3
|
export declare function imageListItemSize(itemSize?: number): number;
|
|
4
|
+
export declare function imageListAspect(aspect?: number): number;
|
|
5
|
+
/** Item ratio wins. The list ratio is used when the item does not set one. */
|
|
6
|
+
export declare function imageListItemAspect(item?: number, list?: number): number;
|
|
7
|
+
export declare function imageListCell(itemSize?: number, aspect?: number): {
|
|
8
|
+
width: number;
|
|
9
|
+
height: number;
|
|
10
|
+
};
|
|
11
|
+
export declare function imageListSelected(selected: ReadonlyArray<number> | undefined, index: number): boolean;
|
|
4
12
|
export declare function imageListTitle(title?: string): string | undefined;
|
|
@@ -17,6 +17,38 @@ local function imageListItemSize(itemSize)
|
|
|
17
17
|
end
|
|
18
18
|
return math.floor(itemSize)
|
|
19
19
|
end
|
|
20
|
+
local function imageListAspect(aspect)
|
|
21
|
+
if aspect == nil or aspect <= 0 then
|
|
22
|
+
return 1
|
|
23
|
+
end
|
|
24
|
+
return aspect
|
|
25
|
+
end
|
|
26
|
+
--* Item ratio wins. The list ratio is used when the item does not set one.
|
|
27
|
+
local function imageListItemAspect(item, list)
|
|
28
|
+
if item ~= nil and item > 0 then
|
|
29
|
+
return item
|
|
30
|
+
end
|
|
31
|
+
return imageListAspect(list)
|
|
32
|
+
end
|
|
33
|
+
local function imageListCell(itemSize, aspect)
|
|
34
|
+
local width = imageListItemSize(itemSize)
|
|
35
|
+
local height = math.max(1, math.floor(width / imageListAspect(aspect)))
|
|
36
|
+
return {
|
|
37
|
+
width = width,
|
|
38
|
+
height = height,
|
|
39
|
+
}
|
|
40
|
+
end
|
|
41
|
+
local function imageListSelected(selected, index)
|
|
42
|
+
if selected == nil then
|
|
43
|
+
return false
|
|
44
|
+
end
|
|
45
|
+
for _, value in selected do
|
|
46
|
+
if value == index then
|
|
47
|
+
return true
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
return false
|
|
51
|
+
end
|
|
20
52
|
local function imageListTitle(title)
|
|
21
53
|
if title == nil or #title == 0 then
|
|
22
54
|
return nil
|
|
@@ -27,5 +59,9 @@ return {
|
|
|
27
59
|
imageListCols = imageListCols,
|
|
28
60
|
imageListGap = imageListGap,
|
|
29
61
|
imageListItemSize = imageListItemSize,
|
|
62
|
+
imageListAspect = imageListAspect,
|
|
63
|
+
imageListItemAspect = imageListItemAspect,
|
|
64
|
+
imageListCell = imageListCell,
|
|
65
|
+
imageListSelected = imageListSelected,
|
|
30
66
|
imageListTitle = imageListTitle,
|
|
31
67
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from "./circularProgress/index";
|
|
2
|
+
export * from "./cover/index";
|
|
2
3
|
export * from "./skeleton/index";
|
|
3
4
|
export * from "./divider/index";
|
|
4
5
|
export * from "./errorBoundary/index";
|
|
@@ -17,14 +18,20 @@ export * from "./sidebar/index";
|
|
|
17
18
|
export * from "./toast/index";
|
|
18
19
|
export * from "./treeView/index";
|
|
19
20
|
export * from "./typography/index";
|
|
21
|
+
export * from "./text/index";
|
|
22
|
+
export * from "./weekGrid/index";
|
|
20
23
|
export * from "./button/index";
|
|
24
|
+
export * from "./buttonGroup/index";
|
|
25
|
+
export * from "./copyButton/index";
|
|
21
26
|
export * from "./checkbox/index";
|
|
22
27
|
export * from "./colorPicker/index";
|
|
23
28
|
export * from "./fontEditor/index";
|
|
29
|
+
export * from "./codeEditor/index";
|
|
24
30
|
export * from "./loadingStroke/index";
|
|
25
31
|
export * from "./numberInput/index";
|
|
26
32
|
export * from "./numberRangeEditor/index";
|
|
27
33
|
export * from "./dateRange/index";
|
|
34
|
+
export * from "./timeField/index";
|
|
28
35
|
export * from "./sparkline/index";
|
|
29
36
|
export * from "./rectEditor/index";
|
|
30
37
|
export * from "./rayEditor/index";
|
|
@@ -34,6 +41,7 @@ export * from "./vectorEditor/index";
|
|
|
34
41
|
export * from "./cframeEditor/index";
|
|
35
42
|
export * from "./enumPicker/index";
|
|
36
43
|
export * from "./popup/index";
|
|
44
|
+
export * from "./popover/index";
|
|
37
45
|
export * from "./modal/index";
|
|
38
46
|
export * from "./backdrop/index";
|
|
39
47
|
export * from "./dialog/index";
|
|
@@ -43,13 +51,17 @@ export * from "./chip/index";
|
|
|
43
51
|
export * from "./badge/index";
|
|
44
52
|
export * from "./brickColorPicker/index";
|
|
45
53
|
export * from "./avatar/index";
|
|
54
|
+
export * from "./avatarGroup/index";
|
|
46
55
|
export * from "./assetField/index";
|
|
47
56
|
export * from "./gradientEditor/index";
|
|
48
57
|
export * from "./drawer/index";
|
|
49
58
|
export * from "./breadcrumbs/index";
|
|
50
59
|
export * from "./pagination/index";
|
|
60
|
+
export * from "./pager/index";
|
|
51
61
|
export * from "./stepper/index";
|
|
62
|
+
export * from "./timeline/index";
|
|
52
63
|
export * from "./accordion/index";
|
|
64
|
+
export * from "./collapse/index";
|
|
53
65
|
export * from "./snackbar/index";
|
|
54
66
|
export * from "./table/index";
|
|
55
67
|
export * from "./autocomplete/index";
|
|
@@ -4,6 +4,9 @@ local exports = {}
|
|
|
4
4
|
for _k, _v in TS.import(script, script, "circularProgress") or {} do
|
|
5
5
|
exports[_k] = _v
|
|
6
6
|
end
|
|
7
|
+
for _k, _v in TS.import(script, script, "cover") or {} do
|
|
8
|
+
exports[_k] = _v
|
|
9
|
+
end
|
|
7
10
|
for _k, _v in TS.import(script, script, "skeleton") or {} do
|
|
8
11
|
exports[_k] = _v
|
|
9
12
|
end
|
|
@@ -58,9 +61,21 @@ end
|
|
|
58
61
|
for _k, _v in TS.import(script, script, "typography") or {} do
|
|
59
62
|
exports[_k] = _v
|
|
60
63
|
end
|
|
64
|
+
for _k, _v in TS.import(script, script, "text") or {} do
|
|
65
|
+
exports[_k] = _v
|
|
66
|
+
end
|
|
67
|
+
for _k, _v in TS.import(script, script, "weekGrid") or {} do
|
|
68
|
+
exports[_k] = _v
|
|
69
|
+
end
|
|
61
70
|
for _k, _v in TS.import(script, script, "button") or {} do
|
|
62
71
|
exports[_k] = _v
|
|
63
72
|
end
|
|
73
|
+
for _k, _v in TS.import(script, script, "buttonGroup") or {} do
|
|
74
|
+
exports[_k] = _v
|
|
75
|
+
end
|
|
76
|
+
for _k, _v in TS.import(script, script, "copyButton") or {} do
|
|
77
|
+
exports[_k] = _v
|
|
78
|
+
end
|
|
64
79
|
for _k, _v in TS.import(script, script, "checkbox") or {} do
|
|
65
80
|
exports[_k] = _v
|
|
66
81
|
end
|
|
@@ -70,6 +85,9 @@ end
|
|
|
70
85
|
for _k, _v in TS.import(script, script, "fontEditor") or {} do
|
|
71
86
|
exports[_k] = _v
|
|
72
87
|
end
|
|
88
|
+
for _k, _v in TS.import(script, script, "codeEditor") or {} do
|
|
89
|
+
exports[_k] = _v
|
|
90
|
+
end
|
|
73
91
|
for _k, _v in TS.import(script, script, "loadingStroke") or {} do
|
|
74
92
|
exports[_k] = _v
|
|
75
93
|
end
|
|
@@ -82,6 +100,9 @@ end
|
|
|
82
100
|
for _k, _v in TS.import(script, script, "dateRange") or {} do
|
|
83
101
|
exports[_k] = _v
|
|
84
102
|
end
|
|
103
|
+
for _k, _v in TS.import(script, script, "timeField") or {} do
|
|
104
|
+
exports[_k] = _v
|
|
105
|
+
end
|
|
85
106
|
for _k, _v in TS.import(script, script, "sparkline") or {} do
|
|
86
107
|
exports[_k] = _v
|
|
87
108
|
end
|
|
@@ -109,6 +130,9 @@ end
|
|
|
109
130
|
for _k, _v in TS.import(script, script, "popup") or {} do
|
|
110
131
|
exports[_k] = _v
|
|
111
132
|
end
|
|
133
|
+
for _k, _v in TS.import(script, script, "popover") or {} do
|
|
134
|
+
exports[_k] = _v
|
|
135
|
+
end
|
|
112
136
|
for _k, _v in TS.import(script, script, "modal") or {} do
|
|
113
137
|
exports[_k] = _v
|
|
114
138
|
end
|
|
@@ -136,6 +160,9 @@ end
|
|
|
136
160
|
for _k, _v in TS.import(script, script, "avatar") or {} do
|
|
137
161
|
exports[_k] = _v
|
|
138
162
|
end
|
|
163
|
+
for _k, _v in TS.import(script, script, "avatarGroup") or {} do
|
|
164
|
+
exports[_k] = _v
|
|
165
|
+
end
|
|
139
166
|
for _k, _v in TS.import(script, script, "assetField") or {} do
|
|
140
167
|
exports[_k] = _v
|
|
141
168
|
end
|
|
@@ -151,12 +178,21 @@ end
|
|
|
151
178
|
for _k, _v in TS.import(script, script, "pagination") or {} do
|
|
152
179
|
exports[_k] = _v
|
|
153
180
|
end
|
|
181
|
+
for _k, _v in TS.import(script, script, "pager") or {} do
|
|
182
|
+
exports[_k] = _v
|
|
183
|
+
end
|
|
154
184
|
for _k, _v in TS.import(script, script, "stepper") or {} do
|
|
155
185
|
exports[_k] = _v
|
|
156
186
|
end
|
|
187
|
+
for _k, _v in TS.import(script, script, "timeline") or {} do
|
|
188
|
+
exports[_k] = _v
|
|
189
|
+
end
|
|
157
190
|
for _k, _v in TS.import(script, script, "accordion") or {} do
|
|
158
191
|
exports[_k] = _v
|
|
159
192
|
end
|
|
193
|
+
for _k, _v in TS.import(script, script, "collapse") or {} do
|
|
194
|
+
exports[_k] = _v
|
|
195
|
+
end
|
|
160
196
|
for _k, _v in TS.import(script, script, "snackbar") or {} do
|
|
161
197
|
exports[_k] = _v
|
|
162
198
|
end
|
|
@@ -17,6 +17,10 @@ export interface InputProps {
|
|
|
17
17
|
rounded?: boolean;
|
|
18
18
|
clearsTextOnFocus?: boolean;
|
|
19
19
|
size?: ControlSize;
|
|
20
|
+
multiline?: boolean;
|
|
21
|
+
minRows?: number;
|
|
22
|
+
maxRows?: number;
|
|
23
|
+
maxLength?: number;
|
|
20
24
|
reducedMotion?: boolean;
|
|
21
25
|
startAdornment?: React.Element;
|
|
22
26
|
endAdornment?: React.Element;
|