@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
|
@@ -7,7 +7,6 @@ local useRef = _react.useRef
|
|
|
7
7
|
local useState = _react.useState
|
|
8
8
|
local UserInputService = TS.import(script, TS.getModule(script, "@rbxts", "services")).UserInputService
|
|
9
9
|
local useTheme = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "theme").useTheme
|
|
10
|
-
local SxHost = TS.import(script, script.Parent.Parent.Parent, "host").SxHost
|
|
11
10
|
local canActivate = TS.import(script, script.Parent.Parent.Parent, "button", "components", "activation").canActivate
|
|
12
11
|
local Input = TS.import(script, script.Parent.Parent.Parent, "input").Input
|
|
13
12
|
local NumberInput = TS.import(script, script.Parent.Parent.Parent, "numberInput").NumberInput
|
|
@@ -349,7 +348,7 @@ local function ColorPanel(props)
|
|
|
349
348
|
_newValue[_k] = _callback(_v, _k - 1, recents)
|
|
350
349
|
end
|
|
351
350
|
-- ▲ ReadonlyArray.map ▲
|
|
352
|
-
_condition = (React.createElement("frame", _attributes_20, _exp_14,
|
|
351
|
+
_condition = (React.createElement("frame", _attributes_20, _exp_14, _newValue))
|
|
353
352
|
end
|
|
354
353
|
return React.createElement("frame", _attributes, _exp, _exp_4, _exp_9, _exp_12, _exp_13, _condition)
|
|
355
354
|
end
|
|
@@ -392,21 +391,26 @@ local function ColorPicker(props)
|
|
|
392
391
|
return connection:Disconnect()
|
|
393
392
|
end
|
|
394
393
|
end, { shown, value })
|
|
395
|
-
local _attributes = {
|
|
396
|
-
tag = "frame",
|
|
397
|
-
}
|
|
394
|
+
local _attributes = {}
|
|
398
395
|
local _condition = id
|
|
399
396
|
if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
|
|
400
397
|
_condition = "ColorPicker"
|
|
401
398
|
end
|
|
402
399
|
_attributes.key = _condition
|
|
403
|
-
_attributes.
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
400
|
+
_attributes.ref = ref
|
|
401
|
+
for _k, _v in styles.field do
|
|
402
|
+
_attributes[_k] = _v
|
|
403
|
+
end
|
|
404
|
+
if className then
|
|
405
|
+
for _k, _v in className do
|
|
406
|
+
_attributes[_k] = _v
|
|
407
|
+
end
|
|
408
|
+
end
|
|
409
|
+
if sx then
|
|
410
|
+
for _k, _v in sx do
|
|
411
|
+
_attributes[_k] = _v
|
|
412
|
+
end
|
|
413
|
+
end
|
|
410
414
|
local _attributes_1 = table.clone(styles.rowLayout)
|
|
411
415
|
setmetatable(_attributes_1, nil)
|
|
412
416
|
local _exp = React.createElement("uilistlayout", _attributes_1)
|
|
@@ -484,15 +488,15 @@ local function ColorPicker(props)
|
|
|
484
488
|
local _attributes_7 = table.clone(styles.corner)
|
|
485
489
|
setmetatable(_attributes_7, nil)
|
|
486
490
|
local _exp_4 = React.createElement("uicorner", _attributes_7)
|
|
487
|
-
local _attributes_8 = table.clone(styles.
|
|
491
|
+
local _attributes_8 = table.clone(styles.swatchStroke)
|
|
488
492
|
setmetatable(_attributes_8, nil)
|
|
489
493
|
local _exp_5 = React.createElement("uistroke", _attributes_8)
|
|
490
494
|
local _attributes_9 = table.clone(styles.shellPad)
|
|
491
495
|
setmetatable(_attributes_9, nil)
|
|
492
496
|
_condition_1 = (React.createElement(Popup, {
|
|
493
497
|
anchor = anchor,
|
|
494
|
-
preferredWidth = theme.spacing.calc(
|
|
495
|
-
preferredHeight = theme.spacing.calc(
|
|
498
|
+
preferredWidth = theme.spacing.calc(18),
|
|
499
|
+
preferredHeight = theme.spacing.calc(20),
|
|
496
500
|
onDismiss = close,
|
|
497
501
|
}, React.createElement("frame", _attributes_6, _exp_4, _exp_5, React.createElement("uipadding", _attributes_9), React.createElement(ColorPanel, {
|
|
498
502
|
value = value,
|
|
@@ -500,7 +504,7 @@ local function ColorPicker(props)
|
|
|
500
504
|
onChange = onChange,
|
|
501
505
|
}))))
|
|
502
506
|
end
|
|
503
|
-
return React.createElement(
|
|
507
|
+
return React.createElement("frame", _attributes, _exp, _exp_2, _exp_3, _condition_1)
|
|
504
508
|
end
|
|
505
509
|
local default = ColorPicker
|
|
506
510
|
return {
|
|
@@ -15,22 +15,22 @@ local useColorPickerStyles = componentStyles("ColorPicker", function(theme)
|
|
|
15
15
|
},
|
|
16
16
|
column = {
|
|
17
17
|
FillDirection = Enum.FillDirection.Vertical,
|
|
18
|
-
Padding = UDim.new(0, theme.padding.calc(
|
|
18
|
+
Padding = UDim.new(0, theme.padding.calc(1)),
|
|
19
19
|
SortOrder = Enum.SortOrder.LayoutOrder,
|
|
20
20
|
},
|
|
21
21
|
row = {
|
|
22
|
-
Size = UDim2.new(1, 0, 0, theme.spacing.calc(
|
|
22
|
+
Size = UDim2.new(1, 0, 0, theme.spacing.calc(2)),
|
|
23
23
|
BackgroundTransparency = 1,
|
|
24
24
|
BorderSizePixel = 0,
|
|
25
25
|
},
|
|
26
26
|
rowLayout = {
|
|
27
27
|
FillDirection = Enum.FillDirection.Horizontal,
|
|
28
|
-
Padding = UDim.new(0, theme.padding.calc(
|
|
28
|
+
Padding = UDim.new(0, theme.padding.calc(1)),
|
|
29
29
|
VerticalAlignment = Enum.VerticalAlignment.Center,
|
|
30
30
|
SortOrder = Enum.SortOrder.LayoutOrder,
|
|
31
31
|
},
|
|
32
32
|
swatch = {
|
|
33
|
-
Size = UDim2.fromOffset(theme.spacing.calc(
|
|
33
|
+
Size = UDim2.fromOffset(theme.spacing.calc(2), theme.spacing.calc(2)),
|
|
34
34
|
BorderSizePixel = 0,
|
|
35
35
|
},
|
|
36
36
|
swatchStroke = {
|
|
@@ -41,11 +41,11 @@ local useColorPickerStyles = componentStyles("ColorPicker", function(theme)
|
|
|
41
41
|
CornerRadius = UDim.new(0, theme.padding.calc(0.5)),
|
|
42
42
|
},
|
|
43
43
|
hex = {
|
|
44
|
-
Size = UDim2.new(1, -theme.spacing.calc(
|
|
44
|
+
Size = UDim2.new(1, -theme.spacing.calc(3), 1, 0),
|
|
45
45
|
BackgroundTransparency = 1,
|
|
46
46
|
},
|
|
47
47
|
plane = {
|
|
48
|
-
Size = UDim2.new(1, 0, 0, theme.spacing.calc(
|
|
48
|
+
Size = UDim2.new(1, 0, 0, theme.spacing.calc(8)),
|
|
49
49
|
BorderSizePixel = 0,
|
|
50
50
|
Active = true,
|
|
51
51
|
},
|
|
@@ -55,7 +55,7 @@ local useColorPickerStyles = componentStyles("ColorPicker", function(theme)
|
|
|
55
55
|
BorderSizePixel = 0,
|
|
56
56
|
},
|
|
57
57
|
cursor = {
|
|
58
|
-
Size = UDim2.fromOffset(theme.spacing.calc(1
|
|
58
|
+
Size = UDim2.fromOffset(theme.spacing.calc(1), theme.spacing.calc(1)),
|
|
59
59
|
AnchorPoint = Vector2.new(0.5, 0.5),
|
|
60
60
|
BackgroundTransparency = 1,
|
|
61
61
|
BorderSizePixel = 0,
|
|
@@ -65,55 +65,45 @@ local useColorPickerStyles = componentStyles("ColorPicker", function(theme)
|
|
|
65
65
|
Thickness = 2,
|
|
66
66
|
},
|
|
67
67
|
hue = {
|
|
68
|
-
Size = UDim2.new(1, 0, 0, theme.spacing.calc(1.
|
|
68
|
+
Size = UDim2.new(1, 0, 0, theme.spacing.calc(1.5)),
|
|
69
69
|
BorderSizePixel = 0,
|
|
70
70
|
Active = true,
|
|
71
71
|
},
|
|
72
72
|
hueKnob = {
|
|
73
|
-
Size = UDim2.fromOffset(theme.padding.calc(1
|
|
73
|
+
Size = UDim2.fromOffset(theme.padding.calc(1), theme.spacing.calc(1.5)),
|
|
74
74
|
AnchorPoint = Vector2.new(0.5, 0.5),
|
|
75
75
|
BackgroundColor3 = theme.palette.text.primary,
|
|
76
76
|
BorderSizePixel = 0,
|
|
77
77
|
},
|
|
78
|
-
sequenceBar = {
|
|
79
|
-
Size = UDim2.new(1, 0, 0, theme.spacing.calc(3)),
|
|
80
|
-
BorderSizePixel = 0,
|
|
81
|
-
Active = true,
|
|
82
|
-
},
|
|
83
|
-
stop = {
|
|
84
|
-
Size = UDim2.fromOffset(theme.spacing.calc(1.5), theme.spacing.calc(1.5)),
|
|
85
|
-
AnchorPoint = Vector2.new(0.5, 0.5),
|
|
86
|
-
BorderSizePixel = 0,
|
|
87
|
-
},
|
|
88
78
|
channel = {
|
|
89
|
-
Size = UDim2.new(1 / 3, -theme.padding.calc(
|
|
79
|
+
Size = UDim2.new(1 / 3, -theme.padding.calc(1), 0, theme.spacing.calc(2)),
|
|
90
80
|
BackgroundTransparency = 1,
|
|
91
81
|
},
|
|
92
82
|
label = {
|
|
93
|
-
Size = UDim2.new(0, theme.spacing.calc(1
|
|
83
|
+
Size = UDim2.new(0, theme.spacing.calc(1), 1, 0),
|
|
94
84
|
BackgroundTransparency = 1,
|
|
95
85
|
Font = theme.typography.fontFamilies.default,
|
|
96
|
-
TextSize = theme.typography.fontSizes.
|
|
86
|
+
TextSize = theme.typography.fontSizes.caption,
|
|
97
87
|
TextColor3 = theme.palette.text.secondary,
|
|
98
88
|
TextXAlignment = Enum.TextXAlignment.Left,
|
|
99
89
|
},
|
|
100
90
|
channelField = {
|
|
101
|
-
Size = UDim2.new(1, -theme.spacing.calc(1
|
|
91
|
+
Size = UDim2.new(1, -theme.spacing.calc(1), 1, 0),
|
|
102
92
|
BackgroundTransparency = 1,
|
|
103
93
|
},
|
|
104
94
|
field = {
|
|
105
|
-
Size = UDim2.new(1, 0, 0, theme.spacing.calc(
|
|
95
|
+
Size = UDim2.new(1, 0, 0, theme.spacing.calc(2)),
|
|
106
96
|
BackgroundTransparency = 1,
|
|
107
97
|
BorderSizePixel = 0,
|
|
108
98
|
},
|
|
109
99
|
swatchButton = {
|
|
110
|
-
Size = UDim2.fromOffset(theme.spacing.calc(
|
|
100
|
+
Size = UDim2.fromOffset(theme.spacing.calc(2), theme.spacing.calc(2)),
|
|
111
101
|
BorderSizePixel = 0,
|
|
112
102
|
AutoButtonColor = false,
|
|
113
103
|
Text = "",
|
|
114
104
|
},
|
|
115
105
|
value = {
|
|
116
|
-
Size = UDim2.new(1, -theme.spacing.calc(
|
|
106
|
+
Size = UDim2.new(1, -theme.spacing.calc(3), 1, 0),
|
|
117
107
|
BackgroundTransparency = 1,
|
|
118
108
|
},
|
|
119
109
|
shell = {
|
|
@@ -127,27 +117,23 @@ local useColorPickerStyles = componentStyles("ColorPicker", function(theme)
|
|
|
127
117
|
PaddingLeft = UDim.new(0, theme.padding.calc(1)),
|
|
128
118
|
PaddingRight = UDim.new(0, theme.padding.calc(1)),
|
|
129
119
|
},
|
|
130
|
-
shellStroke = {
|
|
131
|
-
Color = theme.palette.divider,
|
|
132
|
-
Thickness = 1,
|
|
133
|
-
},
|
|
134
120
|
recent = {
|
|
135
|
-
Size = UDim2.new(1, 0, 0, theme.spacing.calc(
|
|
121
|
+
Size = UDim2.new(1, 0, 0, theme.spacing.calc(1.5)),
|
|
136
122
|
BackgroundTransparency = 1,
|
|
137
123
|
},
|
|
138
124
|
recentChip = {
|
|
139
|
-
Size = UDim2.fromOffset(theme.spacing.calc(
|
|
125
|
+
Size = UDim2.fromOffset(theme.spacing.calc(1.5), theme.spacing.calc(1.5)),
|
|
140
126
|
BorderSizePixel = 0,
|
|
141
127
|
AutoButtonColor = false,
|
|
142
128
|
Text = "",
|
|
143
129
|
},
|
|
144
130
|
link = {
|
|
145
|
-
Size = UDim2.new(0, 0, 0, theme.spacing.calc(
|
|
131
|
+
Size = UDim2.new(0, 0, 0, theme.spacing.calc(1.5)),
|
|
146
132
|
AutomaticSize = Enum.AutomaticSize.X,
|
|
147
133
|
BackgroundTransparency = 1,
|
|
148
134
|
AutoButtonColor = false,
|
|
149
135
|
Font = theme.typography.fontFamilies.default,
|
|
150
|
-
TextSize = theme.typography.fontSizes.
|
|
136
|
+
TextSize = theme.typography.fontSizes.caption,
|
|
151
137
|
TextColor3 = theme.palette.text.secondary,
|
|
152
138
|
TextXAlignment = Enum.TextXAlignment.Left,
|
|
153
139
|
},
|
|
@@ -4,7 +4,6 @@ local _react = TS.import(script, TS.getModule(script, "@rbxts", "react"))
|
|
|
4
4
|
local React = _react
|
|
5
5
|
local useRef = _react.useRef
|
|
6
6
|
local useState = _react.useState
|
|
7
|
-
local SxHost = TS.import(script, script.Parent.Parent.Parent, "host").SxHost
|
|
8
7
|
local canActivate = TS.import(script, script.Parent.Parent.Parent, "button", "components", "activation").canActivate
|
|
9
8
|
local ColorPicker = TS.import(script, script.Parent, "ColorPicker").default
|
|
10
9
|
local useColorPickerStyles = TS.import(script, script.Parent, "ColorPicker.styles").default
|
|
@@ -44,21 +43,26 @@ local function ColorSequenceEditor(props)
|
|
|
44
43
|
end
|
|
45
44
|
return math.clamp((position.X - rbx.AbsolutePosition.X) / width, 0, 1)
|
|
46
45
|
end
|
|
47
|
-
local _attributes = {
|
|
48
|
-
tag = "frame",
|
|
49
|
-
}
|
|
46
|
+
local _attributes = {}
|
|
50
47
|
local _condition = id
|
|
51
48
|
if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
|
|
52
49
|
_condition = "ColorSequenceEditor"
|
|
53
50
|
end
|
|
54
51
|
_attributes.key = _condition
|
|
55
|
-
_attributes.
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
52
|
+
_attributes.ref = ref
|
|
53
|
+
for _k, _v in styles.root do
|
|
54
|
+
_attributes[_k] = _v
|
|
55
|
+
end
|
|
56
|
+
if className then
|
|
57
|
+
for _k, _v in className do
|
|
58
|
+
_attributes[_k] = _v
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
if sx then
|
|
62
|
+
for _k, _v in sx do
|
|
63
|
+
_attributes[_k] = _v
|
|
64
|
+
end
|
|
65
|
+
end
|
|
62
66
|
_attributes.Selectable = false
|
|
63
67
|
local _attributes_1 = table.clone(styles.column)
|
|
64
68
|
setmetatable(_attributes_1, nil)
|
|
@@ -66,7 +70,7 @@ local function ColorSequenceEditor(props)
|
|
|
66
70
|
local _attributes_2 = {
|
|
67
71
|
key = "Bar",
|
|
68
72
|
}
|
|
69
|
-
for _k, _v in styles.
|
|
73
|
+
for _k, _v in styles.hue do
|
|
70
74
|
_attributes_2[_k] = _v
|
|
71
75
|
end
|
|
72
76
|
_attributes_2.LayoutOrder = 1
|
|
@@ -120,27 +124,24 @@ local function ColorSequenceEditor(props)
|
|
|
120
124
|
local _attributes_3 = table.clone(styles.corner)
|
|
121
125
|
setmetatable(_attributes_3, nil)
|
|
122
126
|
local _exp_1 = React.createElement("uicorner", _attributes_3)
|
|
123
|
-
local
|
|
124
|
-
setmetatable(_attributes_4, nil)
|
|
125
|
-
local _exp_2 = React.createElement("uistroke", _attributes_4)
|
|
126
|
-
local _exp_3 = React.createElement("uigradient", {
|
|
127
|
+
local _exp_2 = React.createElement("uigradient", {
|
|
127
128
|
Color = value,
|
|
128
129
|
})
|
|
129
130
|
-- ▼ ReadonlyArray.map ▼
|
|
130
131
|
local _newValue = table.create(#stops)
|
|
131
132
|
local _callback = function(stop, stopIndex)
|
|
132
|
-
local
|
|
133
|
+
local _attributes_4 = {
|
|
133
134
|
key = `Stop-{stopIndex}`,
|
|
134
135
|
}
|
|
135
|
-
for _k, _v in styles.
|
|
136
|
-
|
|
136
|
+
for _k, _v in styles.hueKnob do
|
|
137
|
+
_attributes_4[_k] = _v
|
|
137
138
|
end
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
139
|
+
_attributes_4.BackgroundColor3 = stop.color
|
|
140
|
+
_attributes_4.Position = UDim2.fromScale(stop.t, 0.5)
|
|
141
|
+
_attributes_4.ZIndex = if stopIndex == index then 2 else 1
|
|
142
|
+
local _attributes_5 = table.clone(styles.corner)
|
|
143
|
+
setmetatable(_attributes_5, nil)
|
|
144
|
+
return React.createElement("frame", _attributes_4, React.createElement("uicorner", _attributes_5), React.createElement("uistroke", {
|
|
144
145
|
Thickness = if stopIndex == index then 2 else 1,
|
|
145
146
|
Color = Color3.new(1, 1, 1),
|
|
146
147
|
}))
|
|
@@ -149,8 +150,8 @@ local function ColorSequenceEditor(props)
|
|
|
149
150
|
_newValue[_k] = _callback(_v, _k - 1, stops)
|
|
150
151
|
end
|
|
151
152
|
-- ▲ ReadonlyArray.map ▲
|
|
152
|
-
local
|
|
153
|
-
local
|
|
153
|
+
local _exp_3 = React.createElement("frame", _attributes_2, _exp_1, _exp_2, _newValue)
|
|
154
|
+
local _exp_4 = React.createElement(ColorPicker, {
|
|
154
155
|
key = "StopColor",
|
|
155
156
|
value = current.color,
|
|
156
157
|
disabled = disabled,
|
|
@@ -162,15 +163,15 @@ local function ColorSequenceEditor(props)
|
|
|
162
163
|
})
|
|
163
164
|
local _condition_1 = #stops > 2 and index > 0 and index < #stops - 1
|
|
164
165
|
if _condition_1 then
|
|
165
|
-
local
|
|
166
|
+
local _attributes_4 = {
|
|
166
167
|
key = "Remove",
|
|
167
168
|
}
|
|
168
169
|
for _k, _v in styles.link do
|
|
169
|
-
|
|
170
|
+
_attributes_4[_k] = _v
|
|
170
171
|
end
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
172
|
+
_attributes_4.Text = "Remove stop"
|
|
173
|
+
_attributes_4.LayoutOrder = 3
|
|
174
|
+
_attributes_4.Event = {
|
|
174
175
|
Activated = function()
|
|
175
176
|
if not active then
|
|
176
177
|
return nil
|
|
@@ -179,9 +180,9 @@ local function ColorSequenceEditor(props)
|
|
|
179
180
|
setSelected(math.max(0, index - 1))
|
|
180
181
|
end,
|
|
181
182
|
}
|
|
182
|
-
_condition_1 = (React.createElement("textbutton",
|
|
183
|
+
_condition_1 = (React.createElement("textbutton", _attributes_4))
|
|
183
184
|
end
|
|
184
|
-
return React.createElement(
|
|
185
|
+
return React.createElement("frame", _attributes, _exp, _exp_3, _exp_4, _condition_1)
|
|
185
186
|
end
|
|
186
187
|
local default = ColorSequenceEditor
|
|
187
188
|
return {
|
|
@@ -4,7 +4,6 @@ local _react = TS.import(script, TS.getModule(script, "@rbxts", "react"))
|
|
|
4
4
|
local React = _react
|
|
5
5
|
local useRef = _react.useRef
|
|
6
6
|
local useState = _react.useState
|
|
7
|
-
local SxHost = TS.import(script, script.Parent.Parent.Parent, "host").SxHost
|
|
8
7
|
local canActivate = TS.import(script, script.Parent.Parent.Parent, "button", "components", "activation").canActivate
|
|
9
8
|
local NumberInput = TS.import(script, script.Parent.Parent.Parent, "numberInput").NumberInput
|
|
10
9
|
local useColorPickerStyles = TS.import(script, script.Parent, "ColorPicker.styles").default
|
|
@@ -45,21 +44,26 @@ local function NumberSequenceEditor(props)
|
|
|
45
44
|
end
|
|
46
45
|
return math.clamp((position.X - rbx.AbsolutePosition.X) / width, 0, 1)
|
|
47
46
|
end
|
|
48
|
-
local _attributes = {
|
|
49
|
-
tag = "frame",
|
|
50
|
-
}
|
|
47
|
+
local _attributes = {}
|
|
51
48
|
local _condition = id
|
|
52
49
|
if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
|
|
53
50
|
_condition = "NumberSequenceEditor"
|
|
54
51
|
end
|
|
55
52
|
_attributes.key = _condition
|
|
56
|
-
_attributes.
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
53
|
+
_attributes.ref = ref
|
|
54
|
+
for _k, _v in styles.root do
|
|
55
|
+
_attributes[_k] = _v
|
|
56
|
+
end
|
|
57
|
+
if className then
|
|
58
|
+
for _k, _v in className do
|
|
59
|
+
_attributes[_k] = _v
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
if sx then
|
|
63
|
+
for _k, _v in sx do
|
|
64
|
+
_attributes[_k] = _v
|
|
65
|
+
end
|
|
66
|
+
end
|
|
63
67
|
_attributes.Selectable = false
|
|
64
68
|
local _attributes_1 = table.clone(styles.column)
|
|
65
69
|
setmetatable(_attributes_1, nil)
|
|
@@ -67,10 +71,10 @@ local function NumberSequenceEditor(props)
|
|
|
67
71
|
local _attributes_2 = {
|
|
68
72
|
key = "Bar",
|
|
69
73
|
}
|
|
70
|
-
for _k, _v in styles.
|
|
74
|
+
for _k, _v in styles.hue do
|
|
71
75
|
_attributes_2[_k] = _v
|
|
72
76
|
end
|
|
73
|
-
_attributes_2.BackgroundColor3 = Color3.new(
|
|
77
|
+
_attributes_2.BackgroundColor3 = Color3.new(0.2, 0.2, 0.2)
|
|
74
78
|
_attributes_2.LayoutOrder = 1
|
|
75
79
|
_attributes_2.Active = active
|
|
76
80
|
_attributes_2.Event = {
|
|
@@ -122,64 +126,57 @@ local function NumberSequenceEditor(props)
|
|
|
122
126
|
local _attributes_3 = table.clone(styles.corner)
|
|
123
127
|
setmetatable(_attributes_3, nil)
|
|
124
128
|
local _exp_1 = React.createElement("uicorner", _attributes_3)
|
|
125
|
-
local
|
|
126
|
-
setmetatable(_attributes_4, nil)
|
|
127
|
-
local _exp_2 = React.createElement("uistroke", _attributes_4)
|
|
128
|
-
local _exp_3 = React.createElement("uigradient", {
|
|
129
|
+
local _exp_2 = React.createElement("uigradient", {
|
|
129
130
|
Transparency = value,
|
|
130
131
|
})
|
|
131
132
|
-- ▼ ReadonlyArray.map ▼
|
|
132
133
|
local _newValue = table.create(#stops)
|
|
133
134
|
local _callback = function(stop, stopIndex)
|
|
134
|
-
local
|
|
135
|
+
local _attributes_4 = {
|
|
135
136
|
key = `Stop-{stopIndex}`,
|
|
136
137
|
}
|
|
137
|
-
for _k, _v in styles.
|
|
138
|
-
|
|
138
|
+
for _k, _v in styles.hueKnob do
|
|
139
|
+
_attributes_4[_k] = _v
|
|
139
140
|
end
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
_attributes_5
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
}), React.createElement("uistroke", {
|
|
146
|
-
Thickness = if stopIndex == index then 2 else 1,
|
|
147
|
-
Color = Color3.new(1, 1, 1),
|
|
148
|
-
}))
|
|
141
|
+
_attributes_4.Position = UDim2.fromScale(stop.t, 0.5)
|
|
142
|
+
_attributes_4.ZIndex = if stopIndex == index then 2 else 1
|
|
143
|
+
local _attributes_5 = table.clone(styles.corner)
|
|
144
|
+
setmetatable(_attributes_5, nil)
|
|
145
|
+
return React.createElement("frame", _attributes_4, React.createElement("uicorner", _attributes_5))
|
|
149
146
|
end
|
|
150
147
|
for _k, _v in stops do
|
|
151
148
|
_newValue[_k] = _callback(_v, _k - 1, stops)
|
|
152
149
|
end
|
|
153
150
|
-- ▲ ReadonlyArray.map ▲
|
|
154
|
-
local
|
|
155
|
-
local
|
|
151
|
+
local _exp_3 = React.createElement("frame", _attributes_2, _exp_1, _exp_2, _newValue)
|
|
152
|
+
local _attributes_4 = {
|
|
156
153
|
key = "Fields",
|
|
157
154
|
}
|
|
158
155
|
for _k, _v in styles.row do
|
|
159
|
-
|
|
156
|
+
_attributes_4[_k] = _v
|
|
160
157
|
end
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
local
|
|
165
|
-
setmetatable(
|
|
166
|
-
local
|
|
167
|
-
local
|
|
158
|
+
_attributes_4.LayoutOrder = 2
|
|
159
|
+
_attributes_4.Size = UDim2.new(1, 0, 0, 0)
|
|
160
|
+
_attributes_4.AutomaticSize = Enum.AutomaticSize.Y
|
|
161
|
+
local _attributes_5 = table.clone(styles.rowLayout)
|
|
162
|
+
setmetatable(_attributes_5, nil)
|
|
163
|
+
local _exp_4 = React.createElement("uilistlayout", _attributes_5)
|
|
164
|
+
local _attributes_6 = {
|
|
168
165
|
key = "Value",
|
|
169
166
|
}
|
|
170
167
|
for _k, _v in styles.channel do
|
|
171
|
-
|
|
168
|
+
_attributes_6[_k] = _v
|
|
172
169
|
end
|
|
173
|
-
local
|
|
170
|
+
local _attributes_7 = table.clone(styles.rowLayout)
|
|
171
|
+
setmetatable(_attributes_7, nil)
|
|
172
|
+
local _exp_5 = React.createElement("uilistlayout", _attributes_7)
|
|
173
|
+
local _attributes_8 = table.clone(styles.label)
|
|
174
174
|
setmetatable(_attributes_8, nil)
|
|
175
|
-
|
|
176
|
-
local
|
|
175
|
+
_attributes_8.Text = "V"
|
|
176
|
+
local _exp_6 = React.createElement("textlabel", _attributes_8)
|
|
177
|
+
local _attributes_9 = table.clone(styles.channelField)
|
|
177
178
|
setmetatable(_attributes_9, nil)
|
|
178
|
-
|
|
179
|
-
local _exp_7 = React.createElement("textlabel", _attributes_9)
|
|
180
|
-
local _attributes_10 = table.clone(styles.channelField)
|
|
181
|
-
setmetatable(_attributes_10, nil)
|
|
182
|
-
local _exp_8 = React.createElement("frame", _attributes_7, _exp_6, _exp_7, React.createElement("frame", _attributes_10, React.createElement(NumberInput, {
|
|
179
|
+
local _exp_7 = React.createElement("frame", _attributes_6, _exp_5, _exp_6, React.createElement("frame", _attributes_9, React.createElement(NumberInput, {
|
|
183
180
|
value = current.value,
|
|
184
181
|
disabled = disabled,
|
|
185
182
|
width = UDim.new(1, 0),
|
|
@@ -189,22 +186,22 @@ local function NumberSequenceEditor(props)
|
|
|
189
186
|
}))
|
|
190
187
|
end,
|
|
191
188
|
})))
|
|
192
|
-
local
|
|
189
|
+
local _attributes_10 = {
|
|
193
190
|
key = "Envelope",
|
|
194
191
|
}
|
|
195
192
|
for _k, _v in styles.channel do
|
|
196
|
-
|
|
193
|
+
_attributes_10[_k] = _v
|
|
197
194
|
end
|
|
198
|
-
local
|
|
195
|
+
local _attributes_11 = table.clone(styles.rowLayout)
|
|
196
|
+
setmetatable(_attributes_11, nil)
|
|
197
|
+
local _exp_8 = React.createElement("uilistlayout", _attributes_11)
|
|
198
|
+
local _attributes_12 = table.clone(styles.label)
|
|
199
199
|
setmetatable(_attributes_12, nil)
|
|
200
|
-
|
|
201
|
-
local
|
|
200
|
+
_attributes_12.Text = "E"
|
|
201
|
+
local _exp_9 = React.createElement("textlabel", _attributes_12)
|
|
202
|
+
local _attributes_13 = table.clone(styles.channelField)
|
|
202
203
|
setmetatable(_attributes_13, nil)
|
|
203
|
-
|
|
204
|
-
local _exp_10 = React.createElement("textlabel", _attributes_13)
|
|
205
|
-
local _attributes_14 = table.clone(styles.channelField)
|
|
206
|
-
setmetatable(_attributes_14, nil)
|
|
207
|
-
local _exp_11 = React.createElement("frame", _attributes_5, _exp_5, _exp_8, React.createElement("frame", _attributes_11, _exp_9, _exp_10, React.createElement("frame", _attributes_14, React.createElement(NumberInput, {
|
|
204
|
+
local _exp_10 = React.createElement("frame", _attributes_4, _exp_4, _exp_7, React.createElement("frame", _attributes_10, _exp_8, _exp_9, React.createElement("frame", _attributes_13, React.createElement(NumberInput, {
|
|
208
205
|
value = current.envelope,
|
|
209
206
|
disabled = disabled,
|
|
210
207
|
width = UDim.new(1, 0),
|
|
@@ -216,15 +213,15 @@ local function NumberSequenceEditor(props)
|
|
|
216
213
|
}))))
|
|
217
214
|
local _condition_1 = #stops > 2 and index > 0 and index < #stops - 1
|
|
218
215
|
if _condition_1 then
|
|
219
|
-
local
|
|
216
|
+
local _attributes_14 = {
|
|
220
217
|
key = "Remove",
|
|
221
218
|
}
|
|
222
219
|
for _k, _v in styles.link do
|
|
223
|
-
|
|
220
|
+
_attributes_14[_k] = _v
|
|
224
221
|
end
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
222
|
+
_attributes_14.Text = "Remove stop"
|
|
223
|
+
_attributes_14.LayoutOrder = 3
|
|
224
|
+
_attributes_14.Event = {
|
|
228
225
|
Activated = function()
|
|
229
226
|
if not active then
|
|
230
227
|
return nil
|
|
@@ -233,9 +230,9 @@ local function NumberSequenceEditor(props)
|
|
|
233
230
|
setSelected(math.max(0, index - 1))
|
|
234
231
|
end,
|
|
235
232
|
}
|
|
236
|
-
_condition_1 = (React.createElement("textbutton",
|
|
233
|
+
_condition_1 = (React.createElement("textbutton", _attributes_14))
|
|
237
234
|
end
|
|
238
|
-
return React.createElement(
|
|
235
|
+
return React.createElement("frame", _attributes, _exp, _exp_3, _exp_10, _condition_1)
|
|
239
236
|
end
|
|
240
237
|
local default = NumberSequenceEditor
|
|
241
238
|
return {
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import React from "@rbxts/react";
|
|
2
|
-
import { CustomizedProps } from "../../../../theme/index";
|
|
3
2
|
export interface DialogProps {
|
|
4
3
|
host?: Instance;
|
|
5
4
|
open: boolean;
|
|
6
|
-
title
|
|
5
|
+
title: string;
|
|
7
6
|
onClose: () => void;
|
|
8
7
|
children?: React.ReactNode;
|
|
9
8
|
actions?: React.ReactNode;
|
|
10
9
|
}
|
|
11
|
-
declare function Dialog(props:
|
|
10
|
+
declare function Dialog(props: DialogProps): JSX.Element;
|
|
12
11
|
export default Dialog;
|