@rbxts/uiblox 0.2.0-alpha.35 → 0.2.0-alpha.4
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 +109 -27
- package/out/hooks/index.d.ts +0 -1
- package/out/hooks/init.luau +0 -3
- package/out/hooks/useBreakpoints.luau +11 -2
- package/out/theme/interfaces/theme/Theme.d.ts +0 -15
- package/out/theme/styles/utilities/componentStyles.luau +3 -45
- package/out/theme/styles/utilities/componentTheme.d.ts +0 -15
- package/out/theme/styles/utilities/index.d.ts +0 -2
- package/out/theme/styles/utilities/init.luau +0 -7
- package/out/theme/styles/utilities/resolveStyle.d.ts +2 -10
- package/out/theme/styles/utilities/resolveStyle.luau +3 -7
- package/out/theme/styles/utilities/styleCache.d.ts +0 -2
- package/out/theme/styles/utilities/styleCache.luau +0 -9
- package/out/theme/types/types.d.ts +1 -2
- package/out/ui/packages/accordion/components/Accordion.d.ts +0 -2
- package/out/ui/packages/accordion/components/Accordion.luau +30 -46
- package/out/ui/packages/accordion/components/Accordion.styles.d.ts +0 -1
- package/out/ui/packages/accordion/components/Accordion.styles.luau +4 -16
- package/out/ui/packages/accordion/components/accordionOpen.d.ts +0 -1
- package/out/ui/packages/accordion/components/accordionOpen.luau +0 -4
- package/out/ui/packages/alert/components/Alert.d.ts +0 -2
- package/out/ui/packages/alert/components/Alert.luau +42 -48
- package/out/ui/packages/alert/components/Alert.styles.d.ts +0 -2
- package/out/ui/packages/alert/components/Alert.styles.luau +8 -17
- package/out/ui/packages/appBar/components/AppBar.d.ts +1 -2
- package/out/ui/packages/appBar/components/AppBar.luau +36 -47
- package/out/ui/packages/appBar/components/AppBar.styles.d.ts +0 -2
- package/out/ui/packages/appBar/components/AppBar.styles.luau +5 -16
- package/out/ui/packages/assetField/components/AssetField.luau +16 -12
- package/out/ui/packages/autocomplete/components/Autocomplete.luau +0 -8
- package/out/ui/packages/avatar/components/Avatar.d.ts +0 -2
- package/out/ui/packages/avatar/components/Avatar.luau +26 -27
- package/out/ui/packages/avatar/components/Avatar.styles.d.ts +0 -2
- package/out/ui/packages/avatar/components/Avatar.styles.luau +1 -5
- package/out/ui/packages/badge/components/Badge.d.ts +0 -3
- package/out/ui/packages/badge/components/Badge.luau +24 -32
- package/out/ui/packages/badge/components/Badge.styles.d.ts +1 -5
- package/out/ui/packages/badge/components/Badge.styles.luau +8 -20
- package/out/ui/packages/bottomNavigation/components/BottomNavigation.d.ts +0 -1
- package/out/ui/packages/bottomNavigation/components/BottomNavigation.luau +18 -20
- package/out/ui/packages/bottomNavigation/components/BottomNavigation.styles.d.ts +1 -3
- package/out/ui/packages/bottomNavigation/components/BottomNavigation.styles.luau +2 -6
- package/out/ui/packages/breadcrumbs/components/Breadcrumbs.d.ts +0 -1
- package/out/ui/packages/breadcrumbs/components/Breadcrumbs.luau +40 -67
- package/out/ui/packages/breadcrumbs/components/breadcrumbItems.d.ts +0 -9
- package/out/ui/packages/breadcrumbs/components/breadcrumbItems.luau +0 -68
- package/out/ui/packages/breadcrumbs/index.d.ts +0 -1
- package/out/ui/packages/breadcrumbs/init.luau +0 -3
- package/out/ui/packages/brickColorPicker/components/BrickColorPicker.luau +16 -12
- package/out/ui/packages/button/components/Button.luau +18 -20
- package/out/ui/packages/card/components/Card.d.ts +1 -3
- package/out/ui/packages/card/components/Card.luau +0 -10
- package/out/ui/packages/cframeEditor/components/CFrameEditor.luau +53 -75
- package/out/ui/packages/cframeEditor/components/CFrameEditor.styles.luau +9 -26
- package/out/ui/packages/checkbox/components/Checkbox.luau +16 -16
- package/out/ui/packages/checkbox/components/checkboxLook.d.ts +1 -1
- package/out/ui/packages/chip/components/Chip.d.ts +1 -6
- package/out/ui/packages/chip/components/Chip.luau +17 -61
- package/out/ui/packages/chip/components/Chip.styles.d.ts +0 -6
- package/out/ui/packages/chip/components/Chip.styles.luau +9 -54
- package/out/ui/packages/circularProgress/components/CircularProgress.luau +18 -29
- package/out/ui/packages/colorPicker/components/ColorPicker.luau +20 -16
- package/out/ui/packages/colorPicker/components/ColorPicker.styles.luau +20 -34
- package/out/ui/packages/colorPicker/components/ColorSequenceEditor.luau +35 -34
- package/out/ui/packages/colorPicker/components/NumberSequenceEditor.luau +62 -65
- package/out/ui/packages/dialog/components/Dialog.d.ts +2 -3
- package/out/ui/packages/dialog/components/Dialog.luau +21 -41
- package/out/ui/packages/divider/components/Divider.d.ts +0 -1
- package/out/ui/packages/divider/components/Divider.luau +17 -52
- package/out/ui/packages/divider/components/Divider.styles.luau +0 -32
- package/out/ui/packages/drawer/components/Drawer.d.ts +1 -3
- package/out/ui/packages/drawer/components/Drawer.luau +37 -71
- package/out/ui/packages/drawer/components/Drawer.styles.d.ts +1 -3
- package/out/ui/packages/drawer/components/Drawer.styles.luau +2 -3
- package/out/ui/packages/fab/components/Fab.d.ts +0 -3
- package/out/ui/packages/fab/components/Fab.luau +37 -79
- package/out/ui/packages/fab/components/Fab.styles.d.ts +0 -3
- package/out/ui/packages/fab/components/Fab.styles.luau +3 -39
- package/out/ui/packages/fab/components/fabSize.d.ts +0 -1
- package/out/ui/packages/fab/components/fabSize.luau +0 -4
- package/out/ui/packages/fab/index.d.ts +1 -1
- package/out/ui/packages/fab/init.luau +0 -1
- package/out/ui/packages/fontEditor/components/FontEditor.luau +16 -12
- package/out/ui/packages/gradientEditor/components/GradientEditor.luau +42 -56
- package/out/ui/packages/gradientEditor/components/GradientEditor.styles.luau +4 -37
- package/out/ui/packages/icon/components/Icon.luau +16 -9
- package/out/ui/packages/iconButton/components/IconButton.luau +16 -16
- package/out/ui/packages/index.d.ts +0 -7
- package/out/ui/packages/init.luau +0 -21
- package/out/ui/packages/input/components/Input.d.ts +0 -1
- package/out/ui/packages/input/components/Input.luau +18 -21
- package/out/ui/packages/layout/components/Grid.d.ts +1 -5
- package/out/ui/packages/layout/components/Grid.luau +19 -41
- package/out/ui/packages/layout/components/List.luau +16 -9
- package/out/ui/packages/layout/index.d.ts +0 -14
- package/out/ui/packages/layout/init.luau +0 -5
- package/out/ui/packages/link/components/Link.luau +16 -13
- package/out/ui/packages/listItem/components/ListItem.d.ts +1 -4
- package/out/ui/packages/listItem/components/ListItem.luau +4 -44
- package/out/ui/packages/listItem/components/ListItem.styles.d.ts +0 -1
- package/out/ui/packages/listItem/components/ListItem.styles.luau +5 -16
- package/out/ui/packages/loadingStroke/components/LoadingStroke.d.ts +1 -5
- package/out/ui/packages/menu/components/Menu.d.ts +1 -7
- package/out/ui/packages/menu/components/Menu.luau +26 -68
- package/out/ui/packages/menu/components/Menu.styles.luau +1 -5
- package/out/ui/packages/modal/components/Modal.d.ts +1 -2
- package/out/ui/packages/modal/components/Modal.luau +37 -79
- package/out/ui/packages/motion/index.d.ts +1 -1
- package/out/ui/packages/motion/init.luau +0 -1
- package/out/ui/packages/motion/unit.d.ts +0 -5
- package/out/ui/packages/motion/unit.luau +0 -23
- package/out/ui/packages/numberInput/components/NumberInput.d.ts +0 -2
- package/out/ui/packages/numberInput/components/NumberInput.luau +3 -16
- package/out/ui/packages/numberInput/components/numberValue.d.ts +0 -1
- package/out/ui/packages/numberInput/components/numberValue.luau +0 -45
- package/out/ui/packages/numberRangeEditor/components/NumberRangeEditor.luau +16 -12
- package/out/ui/packages/pagination/components/Pagination.d.ts +1 -6
- package/out/ui/packages/pagination/components/Pagination.luau +38 -62
- package/out/ui/packages/pagination/components/Pagination.styles.d.ts +1 -6
- package/out/ui/packages/pagination/components/Pagination.styles.luau +4 -36
- package/out/ui/packages/pagination/components/pageRange.d.ts +1 -2
- package/out/ui/packages/pagination/components/pageRange.luau +8 -91
- package/out/ui/packages/pagination/index.d.ts +0 -1
- package/out/ui/packages/pagination/init.luau +0 -1
- package/out/ui/packages/paper/components/Paper.d.ts +2 -4
- package/out/ui/packages/paper/components/Paper.luau +9 -31
- package/out/ui/packages/paper/components/Paper.styles.d.ts +1 -1
- package/out/ui/packages/paper/components/Paper.styles.luau +0 -6
- package/out/ui/packages/physicalPropertiesEditor/components/PhysicalPropertiesEditor.luau +38 -63
- package/out/ui/packages/physicalPropertiesEditor/components/PhysicalPropertiesEditor.styles.luau +7 -21
- package/out/ui/packages/physicalPropertiesEditor/components/physicalParts.d.ts +0 -2
- package/out/ui/packages/physicalPropertiesEditor/components/physicalParts.luau +0 -14
- package/out/ui/packages/popup/components/Popup.d.ts +1 -2
- package/out/ui/packages/popup/components/Popup.luau +18 -35
- package/out/ui/packages/popup/index.d.ts +0 -1
- package/out/ui/packages/popup/init.luau +0 -1
- package/out/ui/packages/preloader/components/Preloader.luau +16 -9
- package/out/ui/packages/progressBar/components/ProgressBar.luau +16 -12
- package/out/ui/packages/radioGroup/components/RadioGroup.d.ts +0 -1
- package/out/ui/packages/radioGroup/components/RadioGroup.luau +18 -16
- package/out/ui/packages/radioGroup/components/RadioGroup.styles.d.ts +0 -1
- package/out/ui/packages/radioGroup/components/RadioGroup.styles.luau +1 -4
- package/out/ui/packages/rating/components/Rating.d.ts +1 -3
- package/out/ui/packages/rating/components/Rating.luau +17 -19
- package/out/ui/packages/rating/components/Rating.styles.d.ts +0 -2
- package/out/ui/packages/rating/components/Rating.styles.luau +2 -7
- package/out/ui/packages/rayEditor/components/RayEditor.luau +16 -12
- package/out/ui/packages/rectEditor/components/RectEditor.luau +43 -86
- package/out/ui/packages/rectEditor/components/RectEditor.styles.luau +7 -30
- package/out/ui/packages/scroll/index.d.ts +0 -2
- package/out/ui/packages/scroll/init.luau +0 -1
- package/out/ui/packages/select/components/Select.d.ts +0 -5
- package/out/ui/packages/select/components/Select.luau +77 -61
- package/out/ui/packages/select/components/Select.styles.luau +1 -1
- package/out/ui/packages/select/components/selectMotion.d.ts +2 -0
- package/out/ui/packages/select/components/selectMotion.luau +12 -0
- package/out/ui/packages/shadow/components/Shadow.d.ts +1 -2
- package/out/ui/packages/shadow/components/Shadow.luau +17 -39
- package/out/ui/packages/shadow/components/Shadow.styles.luau +2 -7
- package/out/ui/packages/sidebar/components/Sidebar.luau +16 -9
- package/out/ui/packages/skeleton/components/Skeleton.luau +28 -19
- package/out/ui/packages/skeleton/components/Skeleton.styles.luau +3 -7
- package/out/ui/packages/slider/components/Slider.d.ts +0 -3
- package/out/ui/packages/slider/components/Slider.luau +19 -47
- package/out/ui/packages/slider/components/Slider.styles.d.ts +0 -2
- package/out/ui/packages/slider/components/Slider.styles.luau +1 -14
- package/out/ui/packages/snackbar/components/Snackbar.d.ts +0 -2
- package/out/ui/packages/snackbar/components/Snackbar.luau +0 -5
- package/out/ui/packages/splitPane/components/SplitPane.luau +17 -13
- package/out/ui/packages/splitPane/components/splitLook.d.ts +1 -1
- package/out/ui/packages/stateMatrix.d.ts +0 -2
- package/out/ui/packages/stateMatrix.luau +929 -843
- package/out/ui/packages/stepper/components/Stepper.d.ts +0 -1
- package/out/ui/packages/stepper/components/Stepper.luau +17 -16
- package/out/ui/packages/stepper/components/Stepper.styles.d.ts +1 -3
- package/out/ui/packages/stepper/components/Stepper.styles.luau +2 -6
- package/out/ui/packages/switch/components/Switch.d.ts +0 -2
- package/out/ui/packages/switch/components/Switch.luau +16 -21
- package/out/ui/packages/switch/components/Switch.styles.d.ts +0 -2
- package/out/ui/packages/switch/components/Switch.styles.luau +1 -6
- package/out/ui/packages/switch/components/switchLook.d.ts +1 -1
- package/out/ui/packages/table/components/Table.d.ts +2 -16
- package/out/ui/packages/table/components/Table.luau +53 -136
- package/out/ui/packages/table/components/Table.styles.d.ts +1 -3
- package/out/ui/packages/table/components/Table.styles.luau +6 -10
- package/out/ui/packages/table/index.d.ts +1 -2
- package/out/ui/packages/tabs/components/Tabs.d.ts +0 -3
- package/out/ui/packages/tabs/components/Tabs.luau +19 -24
- package/out/ui/packages/tabs/components/Tabs.styles.d.ts +1 -5
- package/out/ui/packages/tabs/components/Tabs.styles.luau +10 -26
- package/out/ui/packages/tabs/index.d.ts +0 -1
- package/out/ui/packages/tabs/init.luau +0 -1
- package/out/ui/packages/toast/components/Toast.d.ts +0 -2
- package/out/ui/packages/toast/components/Toast.luau +13 -41
- package/out/ui/packages/toast/components/Toast.styles.luau +5 -23
- package/out/ui/packages/toggleButton/components/ToggleButton.d.ts +1 -5
- package/out/ui/packages/toggleButton/components/ToggleButton.luau +33 -36
- package/out/ui/packages/toggleButton/components/ToggleButton.styles.d.ts +0 -4
- package/out/ui/packages/toggleButton/components/ToggleButton.styles.luau +5 -16
- package/out/ui/packages/tooltip/components/Tooltip.luau +16 -9
- package/out/ui/packages/treeView/components/TreeView.luau +16 -9
- package/out/ui/packages/typography/components/Typography.luau +14 -13
- package/out/ui/packages/udimEditor/components/UDimEditor.luau +16 -12
- package/out/ui/packages/vectorEditor/components/VectorEditor.luau +16 -12
- package/out/ui/packages/virtualList/components/VirtualList.luau +16 -9
- package/out/ui/packages/virtualList/index.d.ts +0 -2
- package/out/ui/packages/virtualList/init.luau +0 -1
- package/package.json +2 -2
- package/out/hooks/viewportObserver.d.ts +0 -10
- package/out/hooks/viewportObserver.luau +0 -75
- package/out/theme/styles/utilities/resolveSx.d.ts +0 -120
- package/out/theme/styles/utilities/resolveSx.luau +0 -524
- package/out/ui/packages/backdrop/components/Backdrop.d.ts +0 -10
- package/out/ui/packages/backdrop/components/Backdrop.luau +0 -51
- package/out/ui/packages/backdrop/components/Backdrop.styles.d.ts +0 -4
- package/out/ui/packages/backdrop/components/Backdrop.styles.luau +0 -24
- package/out/ui/packages/backdrop/index.d.ts +0 -2
- package/out/ui/packages/backdrop/init.luau +0 -5
- package/out/ui/packages/dateRange/components/DateRangePicker.d.ts +0 -11
- package/out/ui/packages/dateRange/components/DateRangePicker.luau +0 -253
- package/out/ui/packages/dateRange/dateRangeValue.d.ts +0 -18
- package/out/ui/packages/dateRange/dateRangeValue.luau +0 -121
- package/out/ui/packages/dateRange/index.d.ts +0 -3
- package/out/ui/packages/dateRange/init.luau +0 -16
- package/out/ui/packages/divider/components/dividerLabel.d.ts +0 -1
- package/out/ui/packages/divider/components/dividerLabel.luau +0 -10
- package/out/ui/packages/formText/components/FormHelperText.d.ts +0 -8
- package/out/ui/packages/formText/components/FormHelperText.luau +0 -40
- package/out/ui/packages/formText/components/FormLabel.d.ts +0 -9
- package/out/ui/packages/formText/components/FormLabel.luau +0 -42
- package/out/ui/packages/formText/components/FormText.styles.d.ts +0 -5
- package/out/ui/packages/formText/components/FormText.styles.luau +0 -33
- package/out/ui/packages/formText/index.d.ts +0 -4
- package/out/ui/packages/formText/init.luau +0 -6
- package/out/ui/packages/host/components/SxHost.d.ts +0 -18
- package/out/ui/packages/host/components/SxHost.luau +0 -210
- package/out/ui/packages/host/hostPaint.d.ts +0 -12
- package/out/ui/packages/host/hostPaint.luau +0 -34
- package/out/ui/packages/host/hostRules.d.ts +0 -15
- package/out/ui/packages/host/hostRules.luau +0 -92
- package/out/ui/packages/host/index.d.ts +0 -3
- package/out/ui/packages/host/init.luau +0 -13
- package/out/ui/packages/imageList/components/ImageList.d.ts +0 -14
- package/out/ui/packages/imageList/components/ImageList.luau +0 -93
- package/out/ui/packages/imageList/components/ImageList.styles.d.ts +0 -6
- package/out/ui/packages/imageList/components/ImageList.styles.luau +0 -73
- package/out/ui/packages/imageList/components/imageListLayout.d.ts +0 -4
- package/out/ui/packages/imageList/components/imageListLayout.luau +0 -31
- package/out/ui/packages/imageList/index.d.ts +0 -2
- package/out/ui/packages/imageList/init.luau +0 -5
- package/out/ui/packages/layout/components/Box.d.ts +0 -11
- package/out/ui/packages/layout/components/Box.luau +0 -40
- package/out/ui/packages/layout/components/Box.styles.d.ts +0 -7
- package/out/ui/packages/layout/components/Box.styles.luau +0 -34
- package/out/ui/packages/layout/components/Container.d.ts +0 -10
- package/out/ui/packages/layout/components/Container.luau +0 -45
- package/out/ui/packages/layout/components/Container.styles.d.ts +0 -6
- package/out/ui/packages/layout/components/Container.styles.luau +0 -41
- package/out/ui/packages/layout/components/FlexItem.d.ts +0 -12
- package/out/ui/packages/layout/components/FlexItem.luau +0 -40
- package/out/ui/packages/layout/components/FlexItem.styles.d.ts +0 -8
- package/out/ui/packages/layout/components/FlexItem.styles.luau +0 -66
- package/out/ui/packages/layout/components/Stack.d.ts +0 -14
- package/out/ui/packages/layout/components/Stack.luau +0 -44
- package/out/ui/packages/layout/components/Stack.styles.d.ts +0 -10
- package/out/ui/packages/layout/components/Stack.styles.luau +0 -101
- package/out/ui/packages/layout/components/boxPad.d.ts +0 -14
- package/out/ui/packages/layout/components/boxPad.luau +0 -59
- package/out/ui/packages/layout/components/containerWidth.d.ts +0 -2
- package/out/ui/packages/layout/components/containerWidth.luau +0 -17
- package/out/ui/packages/layout/components/flexItemMode.d.ts +0 -6
- package/out/ui/packages/layout/components/flexItemMode.luau +0 -36
- package/out/ui/packages/layout/components/gridProps.d.ts +0 -3
- package/out/ui/packages/layout/components/gridProps.luau +0 -20
- package/out/ui/packages/layout/components/stackAlign.d.ts +0 -10
- package/out/ui/packages/layout/components/stackAlign.luau +0 -43
- package/out/ui/packages/loadingStroke/components/loadingStrokeSx.d.ts +0 -11
- package/out/ui/packages/loadingStroke/components/loadingStrokeSx.luau +0 -2
- package/out/ui/packages/markdown/components/Markdown.d.ts +0 -6
- package/out/ui/packages/markdown/components/Markdown.luau +0 -221
- package/out/ui/packages/markdown/components/Markdown.styles.d.ts +0 -2
- package/out/ui/packages/markdown/components/Markdown.styles.luau +0 -101
- package/out/ui/packages/markdown/components/MarkdownEditor.d.ts +0 -22
- package/out/ui/packages/markdown/components/MarkdownEditor.luau +0 -433
- package/out/ui/packages/markdown/components/MarkdownEditor.styles.d.ts +0 -6
- package/out/ui/packages/markdown/components/MarkdownEditor.styles.luau +0 -161
- package/out/ui/packages/markdown/components/markdownEditorHeight.d.ts +0 -1
- package/out/ui/packages/markdown/components/markdownEditorHeight.luau +0 -13
- package/out/ui/packages/markdown/htmlToMarkdown.d.ts +0 -2
- package/out/ui/packages/markdown/htmlToMarkdown.luau +0 -350
- package/out/ui/packages/markdown/index.d.ts +0 -8
- package/out/ui/packages/markdown/init.luau +0 -11
- package/out/ui/packages/markdown/parseMarkdown.d.ts +0 -42
- package/out/ui/packages/markdown/parseMarkdown.luau +0 -459
- package/out/ui/packages/scroll/components/ScrollView.d.ts +0 -7
- package/out/ui/packages/scroll/components/ScrollView.luau +0 -42
- package/out/ui/packages/skeleton/components/skeletonTone.d.ts +0 -20
- package/out/ui/packages/skeleton/components/skeletonTone.luau +0 -14
- package/out/ui/packages/slider/components/sliderMarks.d.ts +0 -1
- package/out/ui/packages/slider/components/sliderMarks.luau +0 -37
- package/out/ui/packages/snackbar/components/snackbarAction.d.ts +0 -1
- package/out/ui/packages/snackbar/components/snackbarAction.luau +0 -10
- package/out/ui/packages/sparkline/components/Sparkline.d.ts +0 -9
- package/out/ui/packages/sparkline/components/Sparkline.luau +0 -66
- package/out/ui/packages/sparkline/index.d.ts +0 -3
- package/out/ui/packages/sparkline/init.luau +0 -6
- package/out/ui/packages/sparkline/sparklineLayout.d.ts +0 -8
- package/out/ui/packages/sparkline/sparklineLayout.luau +0 -75
- package/out/ui/packages/speedDial/components/SpeedDial.d.ts +0 -19
- package/out/ui/packages/speedDial/components/SpeedDial.luau +0 -97
- package/out/ui/packages/speedDial/components/SpeedDial.styles.d.ts +0 -5
- package/out/ui/packages/speedDial/components/SpeedDial.styles.luau +0 -31
- package/out/ui/packages/speedDial/index.d.ts +0 -3
- package/out/ui/packages/speedDial/init.luau +0 -5
- package/out/ui/packages/table/components/tableColumns.d.ts +0 -26
- package/out/ui/packages/table/components/tableColumns.luau +0 -92
- package/out/ui/packages/tabs/components/tabsOrientation.d.ts +0 -2
- package/out/ui/packages/tabs/components/tabsOrientation.luau +0 -7
- package/out/ui/packages/virtualList/components/EmptyListHint.d.ts +0 -7
- package/out/ui/packages/virtualList/components/EmptyListHint.luau +0 -43
- package/out/ui/packages/virtualList/components/EmptyListHint.styles.d.ts +0 -5
- package/out/ui/packages/virtualList/components/EmptyListHint.styles.luau +0 -26
|
@@ -10,7 +10,6 @@ local _motion = TS.import(script, script.Parent.Parent.Parent, "motion")
|
|
|
10
10
|
local loopProperty = _motion.loopProperty
|
|
11
11
|
local progressSpin = _motion.progressSpin
|
|
12
12
|
local progressUnit = _motion.progressUnit
|
|
13
|
-
local SxHost = TS.import(script, script.Parent.Parent.Parent, "host").SxHost
|
|
14
13
|
local useProgressBarStyles = TS.import(script, script.Parent, "ProgressBar.styles").default
|
|
15
14
|
local function ProgressBar(props)
|
|
16
15
|
local _binding = props
|
|
@@ -54,21 +53,26 @@ local function ProgressBar(props)
|
|
|
54
53
|
Position = UDim2.new(1, 0, 0.5, 0),
|
|
55
54
|
}, 1.1)
|
|
56
55
|
end, { motion, unit })
|
|
57
|
-
local _attributes = {
|
|
58
|
-
tag = "frame",
|
|
59
|
-
}
|
|
56
|
+
local _attributes = {}
|
|
60
57
|
local _condition = id
|
|
61
58
|
if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
|
|
62
59
|
_condition = "ProgressBar"
|
|
63
60
|
end
|
|
64
61
|
_attributes.key = _condition
|
|
65
|
-
_attributes.
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
62
|
+
_attributes.ref = ref
|
|
63
|
+
for _k, _v in container do
|
|
64
|
+
_attributes[_k] = _v
|
|
65
|
+
end
|
|
66
|
+
if className then
|
|
67
|
+
for _k, _v in className do
|
|
68
|
+
_attributes[_k] = _v
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
if sx then
|
|
72
|
+
for _k, _v in sx do
|
|
73
|
+
_attributes[_k] = _v
|
|
74
|
+
end
|
|
75
|
+
end
|
|
72
76
|
local _attributes_1 = {
|
|
73
77
|
key = "Bar",
|
|
74
78
|
}
|
|
@@ -109,7 +113,7 @@ local function ProgressBar(props)
|
|
|
109
113
|
for _k, _v in corner do
|
|
110
114
|
_attributes_7[_k] = _v
|
|
111
115
|
end
|
|
112
|
-
return React.createElement(
|
|
116
|
+
return React.createElement("frame", _attributes, React.createElement("frame", _attributes_1, _exp, _exp_1, React.createElement("frame", _attributes_4, _exp_2, React.createElement("frame", _attributes_6, React.createElement("uicorner", _attributes_7)))))
|
|
113
117
|
end
|
|
114
118
|
local default = ProgressBar
|
|
115
119
|
return {
|
|
@@ -11,7 +11,6 @@ export interface RadioGroupProps<T> {
|
|
|
11
11
|
onChange: (value: T) => void;
|
|
12
12
|
disabled?: boolean;
|
|
13
13
|
size?: ControlSize;
|
|
14
|
-
row?: boolean;
|
|
15
14
|
}
|
|
16
15
|
declare function RadioGroup<T>(props: CustomizedProps<Frame, RadioGroupProps<T>>): JSX.Element;
|
|
17
16
|
export default RadioGroup;
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
local TS = _G[script]
|
|
3
3
|
local React = TS.import(script, TS.getModule(script, "@rbxts", "react"))
|
|
4
4
|
local canActivate = TS.import(script, script.Parent.Parent.Parent, "button", "components", "activation").canActivate
|
|
5
|
-
local SxHost = TS.import(script, script.Parent.Parent.Parent, "host").SxHost
|
|
6
5
|
local useRadioGroupStyles = TS.import(script, script.Parent, "RadioGroup.styles").default
|
|
7
6
|
local function RadioGroup(props)
|
|
8
7
|
local _binding = props
|
|
@@ -11,39 +10,42 @@ local function RadioGroup(props)
|
|
|
11
10
|
local onChange = _binding.onChange
|
|
12
11
|
local disabled = _binding.disabled
|
|
13
12
|
local size = _binding.size
|
|
14
|
-
local row = _binding.row
|
|
15
13
|
local className = _binding.className
|
|
16
14
|
local sx = _binding.sx
|
|
17
15
|
local id = _binding.id
|
|
18
16
|
local ref = _binding.ref
|
|
19
17
|
local _binding_1 = useRadioGroupStyles({
|
|
20
18
|
size = size,
|
|
21
|
-
row = row,
|
|
22
19
|
})
|
|
23
20
|
local root = _binding_1.root
|
|
24
21
|
local list = _binding_1.list
|
|
25
22
|
local option = _binding_1.option
|
|
26
|
-
local
|
|
23
|
+
local row = _binding_1.row
|
|
27
24
|
local ring = _binding_1.ring
|
|
28
25
|
local dot = _binding_1.dot
|
|
29
26
|
local stroke = _binding_1.stroke
|
|
30
27
|
local corner = _binding_1.corner
|
|
31
28
|
local label = _binding_1.label
|
|
32
|
-
local _attributes = {
|
|
33
|
-
tag = "frame",
|
|
34
|
-
}
|
|
29
|
+
local _attributes = {}
|
|
35
30
|
local _condition = id
|
|
36
31
|
if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
|
|
37
32
|
_condition = "RadioGroup"
|
|
38
33
|
end
|
|
39
34
|
_attributes.key = _condition
|
|
40
|
-
_attributes.
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
35
|
+
_attributes.ref = ref
|
|
36
|
+
for _k, _v in root do
|
|
37
|
+
_attributes[_k] = _v
|
|
38
|
+
end
|
|
39
|
+
if className then
|
|
40
|
+
for _k, _v in className do
|
|
41
|
+
_attributes[_k] = _v
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
if sx then
|
|
45
|
+
for _k, _v in sx do
|
|
46
|
+
_attributes[_k] = _v
|
|
47
|
+
end
|
|
48
|
+
end
|
|
47
49
|
local _attributes_1 = table.clone(list)
|
|
48
50
|
setmetatable(_attributes_1, nil)
|
|
49
51
|
local _exp = React.createElement("uilistlayout", _attributes_1)
|
|
@@ -68,7 +70,7 @@ local function RadioGroup(props)
|
|
|
68
70
|
end
|
|
69
71
|
end,
|
|
70
72
|
}
|
|
71
|
-
local _attributes_3 = table.clone(
|
|
73
|
+
local _attributes_3 = table.clone(row)
|
|
72
74
|
setmetatable(_attributes_3, nil)
|
|
73
75
|
local _exp_1 = React.createElement("uilistlayout", _attributes_3)
|
|
74
76
|
local _attributes_4 = table.clone(ring)
|
|
@@ -102,7 +104,7 @@ local function RadioGroup(props)
|
|
|
102
104
|
_newValue[_k] = _callback(_v, _k - 1, options)
|
|
103
105
|
end
|
|
104
106
|
-- ▲ ReadonlyArray.map ▲
|
|
105
|
-
return React.createElement(
|
|
107
|
+
return React.createElement("frame", _attributes, _exp, _newValue)
|
|
106
108
|
end
|
|
107
109
|
local default = RadioGroup
|
|
108
110
|
return {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ControlSize } from "../../../../theme/index";
|
|
2
2
|
export interface RadioGroupStyleProps {
|
|
3
3
|
size?: ControlSize;
|
|
4
|
-
row?: boolean;
|
|
5
4
|
}
|
|
6
5
|
declare const useRadioGroupStyles: (props: RadioGroupStyleProps) => import("../../../../theme/index").ClassNameMap<string>;
|
|
7
6
|
export default useRadioGroupStyles;
|
|
@@ -6,7 +6,6 @@ local createStyles = _theme.createStyles
|
|
|
6
6
|
local componentStyles = _theme.componentStyles
|
|
7
7
|
local useRadioGroupStyles = componentStyles("RadioGroup", function(theme, _param)
|
|
8
8
|
local size = _param.size
|
|
9
|
-
local row = _param.row
|
|
10
9
|
local metrics = controlMetrics(theme.density, size)
|
|
11
10
|
return createStyles({
|
|
12
11
|
root = {
|
|
@@ -16,10 +15,8 @@ local useRadioGroupStyles = componentStyles("RadioGroup", function(theme, _param
|
|
|
16
15
|
BorderSizePixel = 0,
|
|
17
16
|
},
|
|
18
17
|
list = {
|
|
19
|
-
FillDirection = if row == true then Enum.FillDirection.Horizontal else Enum.FillDirection.Vertical,
|
|
20
18
|
Padding = UDim.new(0, theme.padding.default),
|
|
21
19
|
SortOrder = Enum.SortOrder.LayoutOrder,
|
|
22
|
-
VerticalAlignment = Enum.VerticalAlignment.Center,
|
|
23
20
|
},
|
|
24
21
|
option = {
|
|
25
22
|
AutomaticSize = Enum.AutomaticSize.XY,
|
|
@@ -28,7 +25,7 @@ local useRadioGroupStyles = componentStyles("RadioGroup", function(theme, _param
|
|
|
28
25
|
BorderSizePixel = 0,
|
|
29
26
|
Text = "",
|
|
30
27
|
},
|
|
31
|
-
|
|
28
|
+
row = {
|
|
32
29
|
FillDirection = Enum.FillDirection.Horizontal,
|
|
33
30
|
Padding = UDim.new(0, theme.padding.default),
|
|
34
31
|
VerticalAlignment = Enum.VerticalAlignment.Center,
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CustomizedProps } from "../../../../theme/index";
|
|
2
2
|
export interface RatingProps {
|
|
3
3
|
value: number;
|
|
4
4
|
max?: number;
|
|
5
|
-
size?: ControlSize;
|
|
6
5
|
disabled?: boolean;
|
|
7
|
-
readOnly?: boolean;
|
|
8
6
|
onChange: (value: number) => void;
|
|
9
7
|
}
|
|
10
8
|
declare function Rating(props: CustomizedProps<Frame, RatingProps>): JSX.Element;
|
|
@@ -3,7 +3,6 @@ local TS = _G[script]
|
|
|
3
3
|
local React = TS.import(script, TS.getModule(script, "@rbxts", "react"))
|
|
4
4
|
local Icons = TS.import(script, script.Parent.Parent.Parent.Parent, "enums").Icons
|
|
5
5
|
local canActivate = TS.import(script, script.Parent.Parent.Parent, "button", "components", "activation").canActivate
|
|
6
|
-
local SxHost = TS.import(script, script.Parent.Parent.Parent, "host").SxHost
|
|
7
6
|
local useRatingStyles = TS.import(script, script.Parent, "Rating.styles").default
|
|
8
7
|
local function Rating(props)
|
|
9
8
|
local _binding = props
|
|
@@ -12,12 +11,7 @@ local function Rating(props)
|
|
|
12
11
|
if max == nil then
|
|
13
12
|
max = 5
|
|
14
13
|
end
|
|
15
|
-
local size = _binding.size
|
|
16
|
-
if size == nil then
|
|
17
|
-
size = "medium"
|
|
18
|
-
end
|
|
19
14
|
local disabled = _binding.disabled
|
|
20
|
-
local readOnly = _binding.readOnly
|
|
21
15
|
local onChange = _binding.onChange
|
|
22
16
|
local className = _binding.className
|
|
23
17
|
local sx = _binding.sx
|
|
@@ -25,9 +19,8 @@ local function Rating(props)
|
|
|
25
19
|
local ref = _binding.ref
|
|
26
20
|
local styles = useRatingStyles({
|
|
27
21
|
disabled = disabled,
|
|
28
|
-
size = size,
|
|
29
22
|
})
|
|
30
|
-
local active = canActivate(disabled)
|
|
23
|
+
local active = canActivate(disabled)
|
|
31
24
|
local stars = {}
|
|
32
25
|
do
|
|
33
26
|
local i = 1
|
|
@@ -45,21 +38,26 @@ local function Rating(props)
|
|
|
45
38
|
table.insert(stars, _i)
|
|
46
39
|
end
|
|
47
40
|
end
|
|
48
|
-
local _attributes = {
|
|
49
|
-
tag = "frame",
|
|
50
|
-
}
|
|
41
|
+
local _attributes = {}
|
|
51
42
|
local _condition = id
|
|
52
43
|
if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
|
|
53
44
|
_condition = "Rating"
|
|
54
45
|
end
|
|
55
46
|
_attributes.key = _condition
|
|
56
|
-
_attributes.
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
47
|
+
_attributes.ref = ref
|
|
48
|
+
for _k, _v in styles.root do
|
|
49
|
+
_attributes[_k] = _v
|
|
50
|
+
end
|
|
51
|
+
if className then
|
|
52
|
+
for _k, _v in className do
|
|
53
|
+
_attributes[_k] = _v
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
if sx then
|
|
57
|
+
for _k, _v in sx do
|
|
58
|
+
_attributes[_k] = _v
|
|
59
|
+
end
|
|
60
|
+
end
|
|
63
61
|
local _attributes_1 = table.clone(styles.list)
|
|
64
62
|
setmetatable(_attributes_1, nil)
|
|
65
63
|
local _exp = React.createElement("uilistlayout", _attributes_1)
|
|
@@ -89,7 +87,7 @@ local function Rating(props)
|
|
|
89
87
|
_newValue[_k] = _callback(_v, _k - 1, stars)
|
|
90
88
|
end
|
|
91
89
|
-- ▲ ReadonlyArray.map ▲
|
|
92
|
-
return React.createElement(
|
|
90
|
+
return React.createElement("frame", _attributes, _exp, _newValue)
|
|
93
91
|
end
|
|
94
92
|
local default = Rating
|
|
95
93
|
return {
|
|
@@ -8,11 +8,6 @@ local useRatingStyles = componentStyles("Rating", function(theme, _param)
|
|
|
8
8
|
if disabled == nil then
|
|
9
9
|
disabled = false
|
|
10
10
|
end
|
|
11
|
-
local size = _param.size
|
|
12
|
-
if size == nil then
|
|
13
|
-
size = "medium"
|
|
14
|
-
end
|
|
15
|
-
local star = if size == "small" then theme.spacing.calc(2) elseif size == "large" then theme.spacing.calc(4) else theme.spacing.calc(3)
|
|
16
11
|
return createStyles({
|
|
17
12
|
root = {
|
|
18
13
|
AutomaticSize = Enum.AutomaticSize.XY,
|
|
@@ -25,10 +20,10 @@ local useRatingStyles = componentStyles("Rating", function(theme, _param)
|
|
|
25
20
|
HorizontalAlignment = Enum.HorizontalAlignment.Left,
|
|
26
21
|
VerticalAlignment = Enum.VerticalAlignment.Center,
|
|
27
22
|
SortOrder = Enum.SortOrder.LayoutOrder,
|
|
28
|
-
Padding = UDim.new(0, theme.padding.calc(
|
|
23
|
+
Padding = UDim.new(0, theme.padding.calc(0.5)),
|
|
29
24
|
},
|
|
30
25
|
star = {
|
|
31
|
-
Size = UDim2.fromOffset(
|
|
26
|
+
Size = UDim2.fromOffset(theme.spacing.calc(3), theme.spacing.calc(3)),
|
|
32
27
|
BackgroundTransparency = 1,
|
|
33
28
|
BorderSizePixel = 0,
|
|
34
29
|
AutoButtonColor = false,
|
|
@@ -1,7 +1,6 @@
|
|
|
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 SxHost = TS.import(script, script.Parent.Parent.Parent, "host").SxHost
|
|
5
4
|
local VectorEditor = TS.import(script, script.Parent.Parent.Parent, "vectorEditor").VectorEditor
|
|
6
5
|
local useRayEditorStyles = TS.import(script, script.Parent, "RayEditor.styles").default
|
|
7
6
|
local function RayEditor(props)
|
|
@@ -14,21 +13,26 @@ local function RayEditor(props)
|
|
|
14
13
|
local id = _binding.id
|
|
15
14
|
local ref = _binding.ref
|
|
16
15
|
local styles = useRayEditorStyles()
|
|
17
|
-
local _attributes = {
|
|
18
|
-
tag = "frame",
|
|
19
|
-
}
|
|
16
|
+
local _attributes = {}
|
|
20
17
|
local _condition = id
|
|
21
18
|
if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
|
|
22
19
|
_condition = "RayEditor"
|
|
23
20
|
end
|
|
24
21
|
_attributes.key = _condition
|
|
25
|
-
_attributes.
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
22
|
+
_attributes.ref = ref
|
|
23
|
+
for _k, _v in styles.root do
|
|
24
|
+
_attributes[_k] = _v
|
|
25
|
+
end
|
|
26
|
+
if className then
|
|
27
|
+
for _k, _v in className do
|
|
28
|
+
_attributes[_k] = _v
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
if sx then
|
|
32
|
+
for _k, _v in sx do
|
|
33
|
+
_attributes[_k] = _v
|
|
34
|
+
end
|
|
35
|
+
end
|
|
32
36
|
local _attributes_1 = table.clone(styles.column)
|
|
33
37
|
setmetatable(_attributes_1, nil)
|
|
34
38
|
local _exp = React.createElement("uilistlayout", _attributes_1)
|
|
@@ -65,7 +69,7 @@ local function RayEditor(props)
|
|
|
65
69
|
local _attributes_7 = table.clone(styles.label)
|
|
66
70
|
setmetatable(_attributes_7, nil)
|
|
67
71
|
_attributes_7.Text = "Direction"
|
|
68
|
-
return React.createElement(
|
|
72
|
+
return React.createElement("frame", _attributes, _exp, _exp_2, React.createElement("frame", _attributes_5, _exp_3, React.createElement("textlabel", _attributes_7), React.createElement(VectorEditor, {
|
|
69
73
|
value = value.Direction,
|
|
70
74
|
disabled = disabled,
|
|
71
75
|
onChange = function(direction)
|
|
@@ -1,17 +1,11 @@
|
|
|
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 SxHost = TS.import(script, script.Parent.Parent.Parent, "host").SxHost
|
|
5
4
|
local NumberInput = TS.import(script, script.Parent.Parent.Parent, "numberInput").NumberInput
|
|
6
5
|
local useRectEditorStyles = TS.import(script, script.Parent, "RectEditor.styles").default
|
|
7
|
-
local
|
|
8
|
-
local
|
|
9
|
-
|
|
10
|
-
fields = { "MinX", "MinY" },
|
|
11
|
-
}, {
|
|
12
|
-
title = "Max",
|
|
13
|
-
fields = { "MaxX", "MaxY" },
|
|
14
|
-
} }
|
|
6
|
+
local _rectValue = TS.import(script, script.Parent, "rectValue")
|
|
7
|
+
local rectFields = _rectValue.rectFields
|
|
8
|
+
local writeRectParts = _rectValue.writeRectParts
|
|
15
9
|
local function RectEditor(props)
|
|
16
10
|
local _binding = props
|
|
17
11
|
local value = _binding.value
|
|
@@ -22,105 +16,68 @@ local function RectEditor(props)
|
|
|
22
16
|
local id = _binding.id
|
|
23
17
|
local ref = _binding.ref
|
|
24
18
|
local styles = useRectEditorStyles()
|
|
25
|
-
local amounts = {
|
|
26
|
-
MinX = value.Min.X,
|
|
27
|
-
MinY = value.Min.Y,
|
|
28
|
-
MaxX = value.Max.X,
|
|
29
|
-
MaxY = value.Max.Y,
|
|
30
|
-
}
|
|
19
|
+
local amounts = { value.Min.X, value.Min.Y, value.Max.X, value.Max.Y }
|
|
31
20
|
local commit = function(field, amount)
|
|
32
21
|
local parts = writeRectParts(value.Min.X, value.Min.Y, value.Max.X, value.Max.Y, field, amount)
|
|
33
22
|
onChange(Rect.new(parts[1], parts[2], parts[3], parts[4]))
|
|
34
23
|
end
|
|
35
|
-
local _attributes = {
|
|
36
|
-
tag = "frame",
|
|
37
|
-
}
|
|
24
|
+
local _attributes = {}
|
|
38
25
|
local _condition = id
|
|
39
26
|
if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
|
|
40
27
|
_condition = "RectEditor"
|
|
41
28
|
end
|
|
42
29
|
_attributes.key = _condition
|
|
43
|
-
_attributes.
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
30
|
+
_attributes.ref = ref
|
|
31
|
+
for _k, _v in styles.root do
|
|
32
|
+
_attributes[_k] = _v
|
|
33
|
+
end
|
|
34
|
+
if className then
|
|
35
|
+
for _k, _v in className do
|
|
36
|
+
_attributes[_k] = _v
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
if sx then
|
|
40
|
+
for _k, _v in sx do
|
|
41
|
+
_attributes[_k] = _v
|
|
42
|
+
end
|
|
43
|
+
end
|
|
50
44
|
local _attributes_1 = table.clone(styles.wrap)
|
|
51
45
|
setmetatable(_attributes_1, nil)
|
|
52
46
|
local _exp = React.createElement("uilistlayout", _attributes_1)
|
|
47
|
+
local _exp_1 = rectFields()
|
|
53
48
|
-- ▼ ReadonlyArray.map ▼
|
|
54
|
-
local _newValue = table.create(#
|
|
55
|
-
local _callback = function(
|
|
49
|
+
local _newValue = table.create(#_exp_1)
|
|
50
|
+
local _callback = function(field, index)
|
|
56
51
|
local _attributes_2 = {
|
|
57
|
-
key =
|
|
52
|
+
key = field,
|
|
58
53
|
}
|
|
59
|
-
for _k, _v in styles.
|
|
54
|
+
for _k, _v in styles.axis do
|
|
60
55
|
_attributes_2[_k] = _v
|
|
61
56
|
end
|
|
62
|
-
_attributes_2.LayoutOrder =
|
|
63
|
-
local _attributes_3 = table.clone(styles.
|
|
57
|
+
_attributes_2.LayoutOrder = index + 1
|
|
58
|
+
local _attributes_3 = table.clone(styles.row)
|
|
64
59
|
setmetatable(_attributes_3, nil)
|
|
65
|
-
local
|
|
66
|
-
local _attributes_4 = table.clone(styles.
|
|
60
|
+
local _exp_2 = React.createElement("uilistlayout", _attributes_3)
|
|
61
|
+
local _attributes_4 = table.clone(styles.label)
|
|
67
62
|
setmetatable(_attributes_4, nil)
|
|
68
|
-
_attributes_4.Text =
|
|
69
|
-
|
|
70
|
-
local
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
local _exp_3 = React.createElement("uilistlayout", _attributes_6)
|
|
81
|
-
local _exp_4 = group.fields
|
|
82
|
-
-- ▼ ReadonlyArray.map ▼
|
|
83
|
-
local _newValue_1 = table.create(#_exp_4)
|
|
84
|
-
local _callback_1 = function(field, index)
|
|
85
|
-
local _attributes_7 = {
|
|
86
|
-
key = field,
|
|
87
|
-
}
|
|
88
|
-
for _k, _v in styles.cell do
|
|
89
|
-
_attributes_7[_k] = _v
|
|
90
|
-
end
|
|
91
|
-
_attributes_7.LayoutOrder = index + 1
|
|
92
|
-
local _attributes_8 = table.clone(styles.stack)
|
|
93
|
-
setmetatable(_attributes_8, nil)
|
|
94
|
-
local _exp_5 = React.createElement("uilistlayout", _attributes_8)
|
|
95
|
-
local _attributes_9 = table.clone(styles.label)
|
|
96
|
-
setmetatable(_attributes_9, nil)
|
|
97
|
-
_attributes_9.Text = field
|
|
98
|
-
_attributes_9.LayoutOrder = 1
|
|
99
|
-
local _exp_6 = React.createElement("textlabel", _attributes_9)
|
|
100
|
-
local _attributes_10 = table.clone(styles.field)
|
|
101
|
-
setmetatable(_attributes_10, nil)
|
|
102
|
-
_attributes_10.LayoutOrder = 2
|
|
103
|
-
return React.createElement("frame", _attributes_7, _exp_5, _exp_6, React.createElement("frame", _attributes_10, React.createElement(NumberInput, {
|
|
104
|
-
value = amounts[field],
|
|
105
|
-
places = 4,
|
|
106
|
-
disabled = disabled,
|
|
107
|
-
width = UDim.new(1, 0),
|
|
108
|
-
onChange = function(amount)
|
|
109
|
-
return commit(field, amount)
|
|
110
|
-
end,
|
|
111
|
-
})))
|
|
112
|
-
end
|
|
113
|
-
for _k, _v in _exp_4 do
|
|
114
|
-
_newValue_1[_k] = _callback_1(_v, _k - 1, _exp_4)
|
|
115
|
-
end
|
|
116
|
-
-- ▲ ReadonlyArray.map ▲
|
|
117
|
-
return React.createElement("frame", _attributes_2, _exp_1, _exp_2, React.createElement("frame", _attributes_5, _exp_3, React.createElement(React.Fragment, nil, _newValue_1)))
|
|
63
|
+
_attributes_4.Text = field
|
|
64
|
+
local _exp_3 = React.createElement("textlabel", _attributes_4)
|
|
65
|
+
local _attributes_5 = table.clone(styles.field)
|
|
66
|
+
setmetatable(_attributes_5, nil)
|
|
67
|
+
return React.createElement("frame", _attributes_2, _exp_2, _exp_3, React.createElement("frame", _attributes_5, React.createElement(NumberInput, {
|
|
68
|
+
value = amounts[index + 1],
|
|
69
|
+
disabled = disabled,
|
|
70
|
+
width = UDim.new(1, 0),
|
|
71
|
+
onChange = function(amount)
|
|
72
|
+
return commit(field, amount)
|
|
73
|
+
end,
|
|
74
|
+
})))
|
|
118
75
|
end
|
|
119
|
-
for _k, _v in
|
|
120
|
-
_newValue[_k] = _callback(_v, _k - 1,
|
|
76
|
+
for _k, _v in _exp_1 do
|
|
77
|
+
_newValue[_k] = _callback(_v, _k - 1, _exp_1)
|
|
121
78
|
end
|
|
122
79
|
-- ▲ ReadonlyArray.map ▲
|
|
123
|
-
return React.createElement(
|
|
80
|
+
return React.createElement("frame", _attributes, _exp, _newValue)
|
|
124
81
|
end
|
|
125
82
|
local default = RectEditor
|
|
126
83
|
return {
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
-- Compiled with roblox-ts v3.0.0
|
|
2
2
|
local TS = _G[script]
|
|
3
3
|
local _theme = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "theme")
|
|
4
|
-
local controlMetrics = _theme.controlMetrics
|
|
5
4
|
local createStyles = _theme.createStyles
|
|
6
5
|
local componentStyles = _theme.componentStyles
|
|
7
6
|
local useRectEditorStyles = componentStyles("RectEditor", function(theme)
|
|
8
|
-
local gap = theme.padding.calc(1)
|
|
9
7
|
return createStyles({
|
|
10
8
|
root = {
|
|
11
9
|
Size = UDim2.new(1, 0, 0, 0),
|
|
@@ -18,47 +16,26 @@ local useRectEditorStyles = componentStyles("RectEditor", function(theme)
|
|
|
18
16
|
Padding = UDim.new(0, theme.padding.calc(0.5)),
|
|
19
17
|
SortOrder = Enum.SortOrder.LayoutOrder,
|
|
20
18
|
},
|
|
21
|
-
|
|
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 = {
|
|
19
|
+
row = {
|
|
36
20
|
FillDirection = Enum.FillDirection.Horizontal,
|
|
37
|
-
Padding = UDim.new(0,
|
|
21
|
+
Padding = UDim.new(0, theme.padding.calc(1)),
|
|
22
|
+
VerticalAlignment = Enum.VerticalAlignment.Center,
|
|
38
23
|
SortOrder = Enum.SortOrder.LayoutOrder,
|
|
39
24
|
},
|
|
40
|
-
|
|
41
|
-
Size = UDim2.new(
|
|
42
|
-
AutomaticSize = Enum.AutomaticSize.Y,
|
|
25
|
+
axis = {
|
|
26
|
+
Size = UDim2.new(1, 0, 0, theme.spacing.calc(2)),
|
|
43
27
|
BackgroundTransparency = 1,
|
|
44
28
|
},
|
|
45
|
-
stack = {
|
|
46
|
-
FillDirection = Enum.FillDirection.Vertical,
|
|
47
|
-
Padding = UDim.new(0, theme.padding.calc(0.5)),
|
|
48
|
-
SortOrder = Enum.SortOrder.LayoutOrder,
|
|
49
|
-
},
|
|
50
29
|
label = {
|
|
51
|
-
Size = UDim2.new(
|
|
52
|
-
AutomaticSize = Enum.AutomaticSize.Y,
|
|
30
|
+
Size = UDim2.new(0, theme.spacing.calc(3), 1, 0),
|
|
53
31
|
BackgroundTransparency = 1,
|
|
54
32
|
Font = theme.typography.fontFamilies.default,
|
|
55
33
|
TextSize = theme.typography.fontSizes.caption,
|
|
56
34
|
TextColor3 = theme.palette.text.secondary,
|
|
57
35
|
TextXAlignment = Enum.TextXAlignment.Left,
|
|
58
|
-
TextTruncate = Enum.TextTruncate.AtEnd,
|
|
59
36
|
},
|
|
60
37
|
field = {
|
|
61
|
-
Size = UDim2.new(1,
|
|
38
|
+
Size = UDim2.new(1, -theme.spacing.calc(3), 1, 0),
|
|
62
39
|
BackgroundTransparency = 1,
|
|
63
40
|
},
|
|
64
41
|
})
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from "@rbxts/react";
|
|
2
1
|
import { ControlSize, CustomizedProps } from "../../../../theme/index";
|
|
3
2
|
import { ChoiceOption } from "../../radioGroup/index";
|
|
4
3
|
export interface SelectProps<T> {
|
|
@@ -10,10 +9,6 @@ export interface SelectProps<T> {
|
|
|
10
9
|
loading?: boolean;
|
|
11
10
|
placeholder?: string;
|
|
12
11
|
searchable?: boolean;
|
|
13
|
-
defaultOpen?: boolean;
|
|
14
|
-
defaultQuery?: string;
|
|
15
|
-
emptyText?: string;
|
|
16
|
-
empty?: React.Element;
|
|
17
12
|
reducedMotion?: boolean;
|
|
18
13
|
size?: ControlSize;
|
|
19
14
|
}
|