@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
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
-- Compiled with roblox-ts v3.0.0
|
|
2
2
|
local TS = _G[script]
|
|
3
|
-
local
|
|
3
|
+
local _react = TS.import(script, TS.getModule(script, "@rbxts", "react"))
|
|
4
|
+
local React = _react
|
|
5
|
+
local useState = _react.useState
|
|
6
|
+
local controlFade = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "theme").controlFade
|
|
4
7
|
local canActivate = TS.import(script, script.Parent.Parent.Parent, "button", "components", "activation").canActivate
|
|
5
8
|
local SxHost = TS.import(script, script.Parent.Parent.Parent, "host").SxHost
|
|
9
|
+
local radioHint = TS.import(script, script.Parent, "radioHint").radioHint
|
|
6
10
|
local useRadioGroupStyles = TS.import(script, script.Parent, "RadioGroup.styles").default
|
|
7
11
|
local function RadioGroup(props)
|
|
8
12
|
local _binding = props
|
|
@@ -27,8 +31,12 @@ local function RadioGroup(props)
|
|
|
27
31
|
local ring = _binding_1.ring
|
|
28
32
|
local dot = _binding_1.dot
|
|
29
33
|
local stroke = _binding_1.stroke
|
|
34
|
+
local focus = _binding_1.focus
|
|
30
35
|
local corner = _binding_1.corner
|
|
31
36
|
local label = _binding_1.label
|
|
37
|
+
local hint = _binding_1.hint
|
|
38
|
+
local notes = _binding_1.notes
|
|
39
|
+
local focused, setFocused = useState(nil)
|
|
32
40
|
local _attributes = {
|
|
33
41
|
tag = "frame",
|
|
34
42
|
}
|
|
@@ -51,7 +59,8 @@ local function RadioGroup(props)
|
|
|
51
59
|
local _newValue = table.create(#options)
|
|
52
60
|
local _callback = function(choice, index)
|
|
53
61
|
local active = canActivate(disabled or choice.disabled)
|
|
54
|
-
local fade = if active then 0 else
|
|
62
|
+
local fade = if active then 0 else controlFade
|
|
63
|
+
local note = radioHint(choice.hint)
|
|
55
64
|
local _attributes_2 = {
|
|
56
65
|
key = `{choice.label}-{index}`,
|
|
57
66
|
}
|
|
@@ -67,6 +76,16 @@ local function RadioGroup(props)
|
|
|
67
76
|
onChange(choice.value)
|
|
68
77
|
end
|
|
69
78
|
end,
|
|
79
|
+
SelectionGained = function()
|
|
80
|
+
if active then
|
|
81
|
+
setFocused(index)
|
|
82
|
+
end
|
|
83
|
+
end,
|
|
84
|
+
SelectionLost = function()
|
|
85
|
+
setFocused(function(current)
|
|
86
|
+
return if current == index then nil else current
|
|
87
|
+
end)
|
|
88
|
+
end,
|
|
70
89
|
}
|
|
71
90
|
local _attributes_3 = table.clone(optionRow)
|
|
72
91
|
setmetatable(_attributes_3, nil)
|
|
@@ -77,7 +96,7 @@ local function RadioGroup(props)
|
|
|
77
96
|
local _attributes_5 = table.clone(corner)
|
|
78
97
|
setmetatable(_attributes_5, nil)
|
|
79
98
|
local _exp_2 = React.createElement("uicorner", _attributes_5)
|
|
80
|
-
local _attributes_6 = table.clone(stroke)
|
|
99
|
+
local _attributes_6 = table.clone((if focused == index then focus else stroke))
|
|
81
100
|
setmetatable(_attributes_6, nil)
|
|
82
101
|
_attributes_6.Transparency = fade
|
|
83
102
|
local _exp_3 = React.createElement("uistroke", _attributes_6)
|
|
@@ -91,12 +110,37 @@ local function RadioGroup(props)
|
|
|
91
110
|
_condition_1 = (React.createElement("frame", _attributes_7, React.createElement("uicorner", _attributes_8)))
|
|
92
111
|
end
|
|
93
112
|
local _exp_4 = React.createElement("frame", _attributes_4, _exp_2, _exp_3, _condition_1)
|
|
94
|
-
local
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
113
|
+
local _result
|
|
114
|
+
if note == nil then
|
|
115
|
+
local _attributes_7 = table.clone(label)
|
|
116
|
+
setmetatable(_attributes_7, nil)
|
|
117
|
+
_attributes_7.Text = choice.label
|
|
118
|
+
_attributes_7.TextTransparency = fade
|
|
119
|
+
_attributes_7.LayoutOrder = 2
|
|
120
|
+
_result = (React.createElement("textlabel", _attributes_7))
|
|
121
|
+
else
|
|
122
|
+
local _attributes_7 = table.clone(notes)
|
|
123
|
+
setmetatable(_attributes_7, nil)
|
|
124
|
+
_attributes_7.LayoutOrder = 2
|
|
125
|
+
local _exp_5 = React.createElement("uilistlayout", {
|
|
126
|
+
FillDirection = Enum.FillDirection.Vertical,
|
|
127
|
+
SortOrder = Enum.SortOrder.LayoutOrder,
|
|
128
|
+
Padding = UDim.new(0, 0),
|
|
129
|
+
})
|
|
130
|
+
local _attributes_8 = table.clone(label)
|
|
131
|
+
setmetatable(_attributes_8, nil)
|
|
132
|
+
_attributes_8.Text = choice.label
|
|
133
|
+
_attributes_8.TextTransparency = fade
|
|
134
|
+
_attributes_8.LayoutOrder = 1
|
|
135
|
+
local _exp_6 = React.createElement("textlabel", _attributes_8)
|
|
136
|
+
local _attributes_9 = table.clone(hint)
|
|
137
|
+
setmetatable(_attributes_9, nil)
|
|
138
|
+
_attributes_9.Text = note
|
|
139
|
+
_attributes_9.TextTransparency = fade
|
|
140
|
+
_attributes_9.LayoutOrder = 2
|
|
141
|
+
_result = (React.createElement("frame", _attributes_7, _exp_5, _exp_6, React.createElement("textlabel", _attributes_9)))
|
|
142
|
+
end
|
|
143
|
+
return React.createElement("textbutton", _attributes_2, _exp_1, _exp_4, _result)
|
|
100
144
|
end
|
|
101
145
|
for _k, _v in options do
|
|
102
146
|
_newValue[_k] = _callback(_v, _k - 1, options)
|
|
@@ -4,11 +4,12 @@ local _theme = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "the
|
|
|
4
4
|
local controlMetrics = _theme.controlMetrics
|
|
5
5
|
local createStyles = _theme.createStyles
|
|
6
6
|
local componentStyles = _theme.componentStyles
|
|
7
|
+
local focusRing = _theme.focusRing
|
|
7
8
|
local useRadioGroupStyles = componentStyles("RadioGroup", function(theme, _param)
|
|
8
9
|
local size = _param.size
|
|
9
10
|
local row = _param.row
|
|
10
11
|
local metrics = controlMetrics(theme.density, size)
|
|
11
|
-
|
|
12
|
+
local _object = {
|
|
12
13
|
root = {
|
|
13
14
|
AutomaticSize = Enum.AutomaticSize.XY,
|
|
14
15
|
Size = UDim2.fromScale(0, 0),
|
|
@@ -50,6 +51,7 @@ local useRadioGroupStyles = componentStyles("RadioGroup", function(theme, _param
|
|
|
50
51
|
Color = theme.palette.text.primary,
|
|
51
52
|
Thickness = 1,
|
|
52
53
|
},
|
|
54
|
+
focus = focusRing(theme.palette.focus),
|
|
53
55
|
corner = {
|
|
54
56
|
CornerRadius = UDim.new(1, 0),
|
|
55
57
|
},
|
|
@@ -61,7 +63,29 @@ local useRadioGroupStyles = componentStyles("RadioGroup", function(theme, _param
|
|
|
61
63
|
Font = theme.typography.fontFamilies.default,
|
|
62
64
|
TextSize = metrics.font,
|
|
63
65
|
},
|
|
64
|
-
}
|
|
66
|
+
}
|
|
67
|
+
local _left = "hint"
|
|
68
|
+
local _object_1 = {
|
|
69
|
+
AutomaticSize = Enum.AutomaticSize.XY,
|
|
70
|
+
Size = UDim2.fromScale(0, 0),
|
|
71
|
+
BackgroundTransparency = 1,
|
|
72
|
+
TextColor3 = theme.palette.text.secondary,
|
|
73
|
+
Font = theme.typography.fontFamilies.default,
|
|
74
|
+
}
|
|
75
|
+
local _left_1 = "TextSize"
|
|
76
|
+
local _condition = theme.typography.fontSizes.caption
|
|
77
|
+
if _condition == nil then
|
|
78
|
+
_condition = metrics.font
|
|
79
|
+
end
|
|
80
|
+
_object_1[_left_1] = _condition
|
|
81
|
+
_object[_left] = _object_1
|
|
82
|
+
_object.notes = {
|
|
83
|
+
AutomaticSize = Enum.AutomaticSize.XY,
|
|
84
|
+
Size = UDim2.fromScale(0, 0),
|
|
85
|
+
BackgroundTransparency = 1,
|
|
86
|
+
BorderSizePixel = 0,
|
|
87
|
+
}
|
|
88
|
+
return createStyles(_object)
|
|
65
89
|
end)
|
|
66
90
|
local default = useRadioGroupStyles
|
|
67
91
|
return {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as RadioGroup } from "./components/RadioGroup";
|
|
2
|
-
export { RadioGroupProps, ChoiceOption } from "./components/RadioGroup";
|
|
2
|
+
export { RadioGroupProps, ChoiceOption, RadioOption } from "./components/RadioGroup";
|
|
@@ -5,7 +5,7 @@ export interface RatingProps {
|
|
|
5
5
|
size?: ControlSize;
|
|
6
6
|
disabled?: boolean;
|
|
7
7
|
readOnly?: boolean;
|
|
8
|
-
onChange
|
|
8
|
+
onChange?: (value: number) => void;
|
|
9
9
|
}
|
|
10
10
|
declare function Rating(props: CustomizedProps<Frame, RatingProps>): JSX.Element;
|
|
11
11
|
export default Rating;
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
-- Compiled with roblox-ts v3.0.0
|
|
2
2
|
local TS = _G[script]
|
|
3
|
-
local
|
|
3
|
+
local _react = TS.import(script, TS.getModule(script, "@rbxts", "react"))
|
|
4
|
+
local React = _react
|
|
5
|
+
local useState = _react.useState
|
|
6
|
+
local _theme = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "theme")
|
|
7
|
+
local controlFade = _theme.controlFade
|
|
8
|
+
local focusRing = _theme.focusRing
|
|
9
|
+
local useTheme = _theme.useTheme
|
|
4
10
|
local Icons = TS.import(script, script.Parent.Parent.Parent.Parent, "enums").Icons
|
|
5
11
|
local canActivate = TS.import(script, script.Parent.Parent.Parent, "button", "components", "activation").canActivate
|
|
6
12
|
local SxHost = TS.import(script, script.Parent.Parent.Parent, "host").SxHost
|
|
13
|
+
local ratingCommit = TS.import(script, script.Parent, "ratingCommit").ratingCommit
|
|
7
14
|
local useRatingStyles = TS.import(script, script.Parent, "Rating.styles").default
|
|
8
15
|
local function Rating(props)
|
|
9
16
|
local _binding = props
|
|
@@ -27,7 +34,11 @@ local function Rating(props)
|
|
|
27
34
|
disabled = disabled,
|
|
28
35
|
size = size,
|
|
29
36
|
})
|
|
37
|
+
local _binding_1 = useTheme()
|
|
38
|
+
local theme = _binding_1.theme
|
|
30
39
|
local active = canActivate(disabled) and readOnly ~= true
|
|
40
|
+
local hover, setHover = useState(0)
|
|
41
|
+
local focused, setFocused = useState(0)
|
|
31
42
|
local stars = {}
|
|
32
43
|
do
|
|
33
44
|
local i = 1
|
|
@@ -59,6 +70,13 @@ local function Rating(props)
|
|
|
59
70
|
_attributes.sx = sx
|
|
60
71
|
_attributes.state = {
|
|
61
72
|
disabled = disabled,
|
|
73
|
+
hover = hover > 0,
|
|
74
|
+
focused = focused > 0,
|
|
75
|
+
}
|
|
76
|
+
_attributes.Event = {
|
|
77
|
+
MouseLeave = function()
|
|
78
|
+
return setHover(0)
|
|
79
|
+
end,
|
|
62
80
|
}
|
|
63
81
|
local _attributes_1 = table.clone(styles.list)
|
|
64
82
|
setmetatable(_attributes_1, nil)
|
|
@@ -66,24 +84,50 @@ local function Rating(props)
|
|
|
66
84
|
-- ▼ ReadonlyArray.map ▼
|
|
67
85
|
local _newValue = table.create(#stars)
|
|
68
86
|
local _callback = function(n)
|
|
87
|
+
local filled = n <= value
|
|
88
|
+
local preview = active and hover > 0 and n <= hover and not filled
|
|
69
89
|
local _attributes_2 = {
|
|
70
90
|
key = `Star-{n}`,
|
|
71
91
|
}
|
|
72
92
|
for _k, _v in styles.star do
|
|
73
93
|
_attributes_2[_k] = _v
|
|
74
94
|
end
|
|
75
|
-
_attributes_2.Image = tostring(if
|
|
95
|
+
_attributes_2.Image = tostring(if filled or (active and hover >= n) then Icons.StarFilled else Icons.Star)
|
|
96
|
+
_attributes_2.ImageColor3 = if filled then theme.palette.primary.main elseif preview then theme.palette.primary.hover else theme.palette.text.secondary
|
|
97
|
+
_attributes_2.ImageTransparency = if disabled == true then controlFade else 0
|
|
76
98
|
_attributes_2.LayoutOrder = n
|
|
77
99
|
_attributes_2.Active = active
|
|
78
100
|
_attributes_2.Selectable = active
|
|
79
101
|
_attributes_2.Event = {
|
|
80
102
|
Activated = function()
|
|
103
|
+
local landed = ratingCommit(readOnly, onChange, if n == value then 0 else n)
|
|
104
|
+
if landed ~= nil and onChange ~= nil then
|
|
105
|
+
onChange(landed)
|
|
106
|
+
end
|
|
107
|
+
end,
|
|
108
|
+
MouseEnter = function()
|
|
109
|
+
if active then
|
|
110
|
+
setHover(n)
|
|
111
|
+
end
|
|
112
|
+
end,
|
|
113
|
+
SelectionGained = function()
|
|
81
114
|
if active then
|
|
82
|
-
|
|
115
|
+
setFocused(n)
|
|
83
116
|
end
|
|
84
117
|
end,
|
|
118
|
+
SelectionLost = function()
|
|
119
|
+
return setFocused(0)
|
|
120
|
+
end,
|
|
85
121
|
}
|
|
86
|
-
|
|
122
|
+
local _result
|
|
123
|
+
if focused == n and active then
|
|
124
|
+
local _attributes_3 = table.clone(focusRing(theme.palette.focus))
|
|
125
|
+
setmetatable(_attributes_3, nil)
|
|
126
|
+
_result = React.createElement("uistroke", _attributes_3)
|
|
127
|
+
else
|
|
128
|
+
_result = nil
|
|
129
|
+
end
|
|
130
|
+
return React.createElement("imagebutton", _attributes_2, _result)
|
|
87
131
|
end
|
|
88
132
|
for _k, _v in stars do
|
|
89
133
|
_newValue[_k] = _callback(_v, _k - 1, stars)
|
|
@@ -34,7 +34,7 @@ local useRatingStyles = componentStyles("Rating", function(theme, _param)
|
|
|
34
34
|
AutoButtonColor = false,
|
|
35
35
|
Active = not disabled,
|
|
36
36
|
Selectable = not disabled,
|
|
37
|
-
ImageColor3 =
|
|
37
|
+
ImageColor3 = theme.palette.primary.main,
|
|
38
38
|
},
|
|
39
39
|
})
|
|
40
40
|
end)
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
-- Compiled with roblox-ts v3.0.0
|
|
2
|
+
--* Clicks commit only when the rating is editable and a handler was passed.
|
|
3
|
+
local function ratingCommit(readOnly, onChange, landed)
|
|
4
|
+
if readOnly == true or onChange == nil then
|
|
5
|
+
return nil
|
|
6
|
+
end
|
|
7
|
+
return landed
|
|
8
|
+
end
|
|
9
|
+
return {
|
|
10
|
+
ratingCommit = ratingCommit,
|
|
11
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
-- Compiled with roblox-ts v3.0.0
|
|
2
2
|
local TS = _G[script]
|
|
3
3
|
local React = TS.import(script, TS.getModule(script, "@rbxts", "react"))
|
|
4
|
+
local useEditorHover = TS.import(script, script.Parent.Parent.Parent, "editorFace").useEditorHover
|
|
4
5
|
local SxHost = TS.import(script, script.Parent.Parent.Parent, "host").SxHost
|
|
5
6
|
local VectorEditor = TS.import(script, script.Parent.Parent.Parent, "vectorEditor").VectorEditor
|
|
6
7
|
local useRayEditorStyles = TS.import(script, script.Parent, "RayEditor.styles").default
|
|
@@ -14,6 +15,7 @@ local function RayEditor(props)
|
|
|
14
15
|
local id = _binding.id
|
|
15
16
|
local ref = _binding.ref
|
|
16
17
|
local styles = useRayEditorStyles()
|
|
18
|
+
local hover = useEditorHover(disabled)
|
|
17
19
|
local _attributes = {
|
|
18
20
|
tag = "frame",
|
|
19
21
|
}
|
|
@@ -23,12 +25,18 @@ local function RayEditor(props)
|
|
|
23
25
|
end
|
|
24
26
|
_attributes.key = _condition
|
|
25
27
|
_attributes.hostRef = ref
|
|
26
|
-
|
|
28
|
+
local _object = table.clone(styles.root)
|
|
29
|
+
setmetatable(_object, nil)
|
|
30
|
+
for _k, _v in hover.face do
|
|
31
|
+
_object[_k] = _v
|
|
32
|
+
end
|
|
33
|
+
_attributes.base = _object
|
|
27
34
|
_attributes.className = className
|
|
28
35
|
_attributes.sx = sx
|
|
29
36
|
_attributes.state = {
|
|
30
37
|
disabled = disabled,
|
|
31
38
|
}
|
|
39
|
+
_attributes.Event = hover.event
|
|
32
40
|
local _attributes_1 = table.clone(styles.column)
|
|
33
41
|
setmetatable(_attributes_1, nil)
|
|
34
42
|
local _exp = React.createElement("uilistlayout", _attributes_1)
|
|
@@ -3,8 +3,11 @@ 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 _editorFace = TS.import(script, script.Parent.Parent.Parent, "editorFace")
|
|
7
|
+
local editorPad = _editorFace.editorPad
|
|
8
|
+
local editorText = _editorFace.editorText
|
|
6
9
|
local useRayEditorStyles = componentStyles("RayEditor", function(theme)
|
|
7
|
-
|
|
10
|
+
local _object = {
|
|
8
11
|
root = {
|
|
9
12
|
Size = UDim2.new(1, 0, 0, 0),
|
|
10
13
|
AutomaticSize = Enum.AutomaticSize.Y,
|
|
@@ -13,7 +16,7 @@ local useRayEditorStyles = componentStyles("RayEditor", function(theme)
|
|
|
13
16
|
},
|
|
14
17
|
column = {
|
|
15
18
|
FillDirection = Enum.FillDirection.Vertical,
|
|
16
|
-
Padding = UDim.new(0, theme
|
|
19
|
+
Padding = UDim.new(0, editorPad(theme)),
|
|
17
20
|
SortOrder = Enum.SortOrder.LayoutOrder,
|
|
18
21
|
},
|
|
19
22
|
row = {
|
|
@@ -21,15 +24,18 @@ local useRayEditorStyles = componentStyles("RayEditor", function(theme)
|
|
|
21
24
|
AutomaticSize = Enum.AutomaticSize.Y,
|
|
22
25
|
BackgroundTransparency = 1,
|
|
23
26
|
},
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
27
|
+
}
|
|
28
|
+
local _left = "label"
|
|
29
|
+
local _object_1 = {
|
|
30
|
+
Size = UDim2.new(1, 0, 0, theme.spacing.calc(1.5)),
|
|
31
|
+
BackgroundTransparency = 1,
|
|
32
|
+
TextColor3 = theme.palette.text.secondary,
|
|
33
|
+
}
|
|
34
|
+
for _k, _v in editorText(theme) do
|
|
35
|
+
_object_1[_k] = _v
|
|
36
|
+
end
|
|
37
|
+
_object[_left] = _object_1
|
|
38
|
+
return createStyles(_object)
|
|
33
39
|
end)
|
|
34
40
|
local default = useRayEditorStyles
|
|
35
41
|
return {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
-- Compiled with roblox-ts v3.0.0
|
|
2
2
|
local TS = _G[script]
|
|
3
3
|
local React = TS.import(script, TS.getModule(script, "@rbxts", "react"))
|
|
4
|
+
local useEditorHover = TS.import(script, script.Parent.Parent.Parent, "editorFace").useEditorHover
|
|
4
5
|
local SxHost = TS.import(script, script.Parent.Parent.Parent, "host").SxHost
|
|
5
6
|
local NumberInput = TS.import(script, script.Parent.Parent.Parent, "numberInput").NumberInput
|
|
6
7
|
local useRectEditorStyles = TS.import(script, script.Parent, "RectEditor.styles").default
|
|
@@ -22,6 +23,7 @@ local function RectEditor(props)
|
|
|
22
23
|
local id = _binding.id
|
|
23
24
|
local ref = _binding.ref
|
|
24
25
|
local styles = useRectEditorStyles()
|
|
26
|
+
local hover = useEditorHover(disabled)
|
|
25
27
|
local amounts = {
|
|
26
28
|
MinX = value.Min.X,
|
|
27
29
|
MinY = value.Min.Y,
|
|
@@ -41,12 +43,18 @@ local function RectEditor(props)
|
|
|
41
43
|
end
|
|
42
44
|
_attributes.key = _condition
|
|
43
45
|
_attributes.hostRef = ref
|
|
44
|
-
|
|
46
|
+
local _object = table.clone(styles.root)
|
|
47
|
+
setmetatable(_object, nil)
|
|
48
|
+
for _k, _v in hover.face do
|
|
49
|
+
_object[_k] = _v
|
|
50
|
+
end
|
|
51
|
+
_attributes.base = _object
|
|
45
52
|
_attributes.className = className
|
|
46
53
|
_attributes.sx = sx
|
|
47
54
|
_attributes.state = {
|
|
48
55
|
disabled = disabled,
|
|
49
56
|
}
|
|
57
|
+
_attributes.Event = hover.event
|
|
50
58
|
local _attributes_1 = table.clone(styles.wrap)
|
|
51
59
|
setmetatable(_attributes_1, nil)
|
|
52
60
|
local _exp = React.createElement("uilistlayout", _attributes_1)
|
|
@@ -4,9 +4,12 @@ local _theme = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "the
|
|
|
4
4
|
local controlMetrics = _theme.controlMetrics
|
|
5
5
|
local createStyles = _theme.createStyles
|
|
6
6
|
local componentStyles = _theme.componentStyles
|
|
7
|
+
local _editorFace = TS.import(script, script.Parent.Parent.Parent, "editorFace")
|
|
8
|
+
local editorPad = _editorFace.editorPad
|
|
9
|
+
local editorText = _editorFace.editorText
|
|
7
10
|
local useRectEditorStyles = componentStyles("RectEditor", function(theme)
|
|
8
|
-
local gap = theme
|
|
9
|
-
|
|
11
|
+
local gap = editorPad(theme)
|
|
12
|
+
local _object = {
|
|
10
13
|
root = {
|
|
11
14
|
Size = UDim2.new(1, 0, 0, 0),
|
|
12
15
|
AutomaticSize = Enum.AutomaticSize.Y,
|
|
@@ -15,53 +18,57 @@ local useRectEditorStyles = componentStyles("RectEditor", function(theme)
|
|
|
15
18
|
},
|
|
16
19
|
wrap = {
|
|
17
20
|
FillDirection = Enum.FillDirection.Vertical,
|
|
18
|
-
Padding = UDim.new(0, theme.padding.calc(0.5)),
|
|
19
|
-
SortOrder = Enum.SortOrder.LayoutOrder,
|
|
20
|
-
},
|
|
21
|
-
group = {
|
|
22
|
-
Size = UDim2.new(1, 0, 0, 0),
|
|
23
|
-
AutomaticSize = Enum.AutomaticSize.Y,
|
|
24
|
-
BackgroundTransparency = 1,
|
|
25
|
-
},
|
|
26
|
-
groupLabel = {
|
|
27
|
-
Size = UDim2.new(1, 0, 0, 0),
|
|
28
|
-
AutomaticSize = Enum.AutomaticSize.Y,
|
|
29
|
-
BackgroundTransparency = 1,
|
|
30
|
-
Font = theme.typography.fontFamilies.default,
|
|
31
|
-
TextSize = theme.typography.fontSizes.caption,
|
|
32
|
-
TextColor3 = theme.palette.text.secondary,
|
|
33
|
-
TextXAlignment = Enum.TextXAlignment.Left,
|
|
34
|
-
},
|
|
35
|
-
pair = {
|
|
36
|
-
FillDirection = Enum.FillDirection.Horizontal,
|
|
37
21
|
Padding = UDim.new(0, gap),
|
|
38
22
|
SortOrder = Enum.SortOrder.LayoutOrder,
|
|
39
23
|
},
|
|
40
|
-
|
|
41
|
-
Size = UDim2.new(0.5, -gap / 2, 0, 0),
|
|
42
|
-
AutomaticSize = Enum.AutomaticSize.Y,
|
|
43
|
-
BackgroundTransparency = 1,
|
|
44
|
-
},
|
|
45
|
-
stack = {
|
|
46
|
-
FillDirection = Enum.FillDirection.Vertical,
|
|
47
|
-
Padding = UDim.new(0, theme.padding.calc(0.5)),
|
|
48
|
-
SortOrder = Enum.SortOrder.LayoutOrder,
|
|
49
|
-
},
|
|
50
|
-
label = {
|
|
24
|
+
group = {
|
|
51
25
|
Size = UDim2.new(1, 0, 0, 0),
|
|
52
26
|
AutomaticSize = Enum.AutomaticSize.Y,
|
|
53
27
|
BackgroundTransparency = 1,
|
|
54
|
-
Font = theme.typography.fontFamilies.default,
|
|
55
|
-
TextSize = theme.typography.fontSizes.caption,
|
|
56
|
-
TextColor3 = theme.palette.text.secondary,
|
|
57
|
-
TextXAlignment = Enum.TextXAlignment.Left,
|
|
58
|
-
TextTruncate = Enum.TextTruncate.AtEnd,
|
|
59
|
-
},
|
|
60
|
-
field = {
|
|
61
|
-
Size = UDim2.new(1, 0, 0, controlMetrics(theme.density).height),
|
|
62
|
-
BackgroundTransparency = 1,
|
|
63
28
|
},
|
|
64
|
-
}
|
|
29
|
+
}
|
|
30
|
+
local _left = "groupLabel"
|
|
31
|
+
local _object_1 = {
|
|
32
|
+
Size = UDim2.new(1, 0, 0, 0),
|
|
33
|
+
AutomaticSize = Enum.AutomaticSize.Y,
|
|
34
|
+
BackgroundTransparency = 1,
|
|
35
|
+
TextColor3 = theme.palette.text.secondary,
|
|
36
|
+
}
|
|
37
|
+
for _k, _v in editorText(theme) do
|
|
38
|
+
_object_1[_k] = _v
|
|
39
|
+
end
|
|
40
|
+
_object[_left] = _object_1
|
|
41
|
+
_object.pair = {
|
|
42
|
+
FillDirection = Enum.FillDirection.Horizontal,
|
|
43
|
+
Padding = UDim.new(0, gap),
|
|
44
|
+
SortOrder = Enum.SortOrder.LayoutOrder,
|
|
45
|
+
}
|
|
46
|
+
_object.cell = {
|
|
47
|
+
Size = UDim2.new(0.5, -gap / 2, 0, 0),
|
|
48
|
+
AutomaticSize = Enum.AutomaticSize.Y,
|
|
49
|
+
BackgroundTransparency = 1,
|
|
50
|
+
}
|
|
51
|
+
_object.stack = {
|
|
52
|
+
FillDirection = Enum.FillDirection.Vertical,
|
|
53
|
+
Padding = UDim.new(0, gap),
|
|
54
|
+
SortOrder = Enum.SortOrder.LayoutOrder,
|
|
55
|
+
}
|
|
56
|
+
local _left_1 = "label"
|
|
57
|
+
local _object_2 = {
|
|
58
|
+
Size = UDim2.new(1, 0, 0, 0),
|
|
59
|
+
AutomaticSize = Enum.AutomaticSize.Y,
|
|
60
|
+
BackgroundTransparency = 1,
|
|
61
|
+
TextColor3 = theme.palette.text.secondary,
|
|
62
|
+
}
|
|
63
|
+
for _k, _v in editorText(theme) do
|
|
64
|
+
_object_2[_k] = _v
|
|
65
|
+
end
|
|
66
|
+
_object[_left_1] = _object_2
|
|
67
|
+
_object.field = {
|
|
68
|
+
Size = UDim2.new(1, 0, 0, controlMetrics(theme.density).height),
|
|
69
|
+
BackgroundTransparency = 1,
|
|
70
|
+
}
|
|
71
|
+
return createStyles(_object)
|
|
65
72
|
end)
|
|
66
73
|
local default = useRectEditorStyles
|
|
67
74
|
return {
|
|
@@ -1,8 +1,30 @@
|
|
|
1
1
|
-- Compiled with roblox-ts v3.0.0
|
|
2
2
|
local TS = _G[script]
|
|
3
3
|
local React = TS.import(script, TS.getModule(script, "@rbxts", "react"))
|
|
4
|
-
local
|
|
4
|
+
local _theme = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "theme")
|
|
5
|
+
local resolveSx = _theme.resolveSx
|
|
6
|
+
local useTheme = _theme.useTheme
|
|
5
7
|
local SxHost = TS.import(script, script.Parent.Parent.Parent, "host").SxHost
|
|
8
|
+
local function isPadKey(key)
|
|
9
|
+
return key == "p" or key == "px" or key == "py" or key == "pt" or key == "pr" or key == "pb" or key == "pl" or key == "padding"
|
|
10
|
+
end
|
|
11
|
+
--* Padding on a scrolling frame offsets scale-sized children without shrinking them.
|
|
12
|
+
local function withoutPad(sx)
|
|
13
|
+
if sx == nil then
|
|
14
|
+
return nil
|
|
15
|
+
end
|
|
16
|
+
local rest = {}
|
|
17
|
+
local kept = false
|
|
18
|
+
for key, value in pairs(sx) do
|
|
19
|
+
local name = tostring(key)
|
|
20
|
+
if isPadKey(name) then
|
|
21
|
+
continue
|
|
22
|
+
end
|
|
23
|
+
rest[name] = value
|
|
24
|
+
kept = true
|
|
25
|
+
end
|
|
26
|
+
return if kept then rest else nil
|
|
27
|
+
end
|
|
6
28
|
local function ScrollView(props)
|
|
7
29
|
local _binding = props
|
|
8
30
|
local children = _binding.children
|
|
@@ -22,19 +44,66 @@ local function ScrollView(props)
|
|
|
22
44
|
ScrollBarThickness = theme.spacing.calc(0.5),
|
|
23
45
|
ScrollBarImageColor3 = theme.palette.text.secondary,
|
|
24
46
|
}
|
|
47
|
+
local pad = resolveSx(theme, sx).padding
|
|
48
|
+
local _result = pad
|
|
49
|
+
if _result ~= nil then
|
|
50
|
+
_result = _result.PaddingLeft.Offset
|
|
51
|
+
end
|
|
52
|
+
local _condition = _result
|
|
53
|
+
if _condition == nil then
|
|
54
|
+
_condition = 0
|
|
55
|
+
end
|
|
56
|
+
local left = _condition
|
|
57
|
+
local _result_1 = pad
|
|
58
|
+
if _result_1 ~= nil then
|
|
59
|
+
_result_1 = _result_1.PaddingRight.Offset
|
|
60
|
+
end
|
|
61
|
+
local _condition_1 = _result_1
|
|
62
|
+
if _condition_1 == nil then
|
|
63
|
+
_condition_1 = 0
|
|
64
|
+
end
|
|
65
|
+
local right = _condition_1
|
|
66
|
+
local _result_2 = pad
|
|
67
|
+
if _result_2 ~= nil then
|
|
68
|
+
_result_2 = _result_2.PaddingTop.Offset
|
|
69
|
+
end
|
|
70
|
+
local _condition_2 = _result_2
|
|
71
|
+
if _condition_2 == nil then
|
|
72
|
+
_condition_2 = 0
|
|
73
|
+
end
|
|
74
|
+
local top = _condition_2
|
|
75
|
+
local _result_3 = pad
|
|
76
|
+
if _result_3 ~= nil then
|
|
77
|
+
_result_3 = _result_3.PaddingBottom.Offset
|
|
78
|
+
end
|
|
79
|
+
local _condition_3 = _result_3
|
|
80
|
+
if _condition_3 == nil then
|
|
81
|
+
_condition_3 = 0
|
|
82
|
+
end
|
|
83
|
+
local bottom = _condition_3
|
|
84
|
+
local inset = left + right + top + bottom > 0
|
|
25
85
|
local _attributes = {
|
|
26
86
|
tag = "scrollingframe",
|
|
27
87
|
}
|
|
28
|
-
local
|
|
29
|
-
if not (
|
|
30
|
-
|
|
88
|
+
local _condition_4 = id
|
|
89
|
+
if not (_condition_4 ~= 0 and _condition_4 == _condition_4 and _condition_4 ~= "" and _condition_4) then
|
|
90
|
+
_condition_4 = "ScrollView"
|
|
31
91
|
end
|
|
32
|
-
_attributes.key =
|
|
92
|
+
_attributes.key = _condition_4
|
|
33
93
|
_attributes.hostRef = ref
|
|
34
94
|
_attributes.base = root
|
|
35
95
|
_attributes.className = className
|
|
36
|
-
_attributes.sx = sx
|
|
37
|
-
return React.createElement(SxHost, _attributes,
|
|
96
|
+
_attributes.sx = withoutPad(sx)
|
|
97
|
+
return React.createElement(SxHost, _attributes, if inset then (React.createElement("frame", {
|
|
98
|
+
key = "Pad",
|
|
99
|
+
Size = UDim2.new(1, -(left + right), 0, 0),
|
|
100
|
+
Position = UDim2.new(0, left, 0, top),
|
|
101
|
+
AutomaticSize = Enum.AutomaticSize.Y,
|
|
102
|
+
BackgroundTransparency = 1,
|
|
103
|
+
BorderSizePixel = 0,
|
|
104
|
+
}, React.createElement("uipadding", {
|
|
105
|
+
PaddingBottom = UDim.new(0, bottom),
|
|
106
|
+
}), children)) else children)
|
|
38
107
|
end
|
|
39
108
|
local default = ScrollView
|
|
40
109
|
return {
|
|
@@ -16,6 +16,8 @@ export interface SelectProps<T> {
|
|
|
16
16
|
empty?: React.Element;
|
|
17
17
|
reducedMotion?: boolean;
|
|
18
18
|
size?: ControlSize;
|
|
19
|
+
hasError?: boolean;
|
|
20
|
+
helperText?: string;
|
|
19
21
|
}
|
|
20
22
|
declare function Select<T>(props: CustomizedProps<Frame, SelectProps<T>>): JSX.Element;
|
|
21
23
|
export default Select;
|