@rbxts/uiblox 0.2.0-alpha.36 → 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 -8
- package/out/ui/packages/init.luau +0 -24
- 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/reorder/index.d.ts +0 -2
- package/out/ui/packages/reorder/init.luau +0 -14
- package/out/ui/packages/reorder/reorder.d.ts +0 -24
- package/out/ui/packages/reorder/reorder.luau +0 -178
- package/out/ui/packages/reorder/useReorderDrag.d.ts +0 -15
- package/out/ui/packages/reorder/useReorderDrag.luau +0 -129
- 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
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
-- Compiled with roblox-ts v3.0.0
|
|
2
|
-
local TS = _G[script]
|
|
3
|
-
local _react = TS.import(script, TS.getModule(script, "@rbxts", "react"))
|
|
4
|
-
local useEffect = _react.useEffect
|
|
5
|
-
local useRef = _react.useRef
|
|
6
|
-
local useState = _react.useState
|
|
7
|
-
local UserInputService = TS.import(script, TS.getModule(script, "@rbxts", "services")).UserInputService
|
|
8
|
-
local _reorder = TS.import(script, script.Parent, "reorder")
|
|
9
|
-
local hitRect = _reorder.hitRect
|
|
10
|
-
local isReorderMove = _reorder.isReorderMove
|
|
11
|
-
local isReorderPress = _reorder.isReorderPress
|
|
12
|
-
local isReorderRelease = _reorder.isReorderRelease
|
|
13
|
-
local passedDragThreshold = _reorder.passedDragThreshold
|
|
14
|
-
local rest = function()
|
|
15
|
-
return {
|
|
16
|
-
active = false,
|
|
17
|
-
x = 0,
|
|
18
|
-
y = 0,
|
|
19
|
-
}
|
|
20
|
-
end
|
|
21
|
-
local function useReorderDrag(onDrop, getRects)
|
|
22
|
-
local drag, setDrag = useState(rest())
|
|
23
|
-
local tracking = useRef({
|
|
24
|
-
down = false,
|
|
25
|
-
active = false,
|
|
26
|
-
x = 0,
|
|
27
|
-
y = 0,
|
|
28
|
-
startX = 0,
|
|
29
|
-
startY = 0,
|
|
30
|
-
})
|
|
31
|
-
local onDropRef = useRef(onDrop)
|
|
32
|
-
local rectsRef = useRef(getRects)
|
|
33
|
-
local took = useRef(false)
|
|
34
|
-
onDropRef.current = onDrop
|
|
35
|
-
rectsRef.current = getRects
|
|
36
|
-
local clear = function(drop)
|
|
37
|
-
local current = tracking.current
|
|
38
|
-
tracking.current = {
|
|
39
|
-
down = false,
|
|
40
|
-
active = false,
|
|
41
|
-
x = 0,
|
|
42
|
-
y = 0,
|
|
43
|
-
startX = 0,
|
|
44
|
-
startY = 0,
|
|
45
|
-
}
|
|
46
|
-
setDrag(rest())
|
|
47
|
-
if drop and current.active and current.id ~= nil then
|
|
48
|
-
took.current = true
|
|
49
|
-
onDropRef.current(current.id, current.overId)
|
|
50
|
-
end
|
|
51
|
-
end
|
|
52
|
-
useEffect(function()
|
|
53
|
-
local changed = UserInputService.InputChanged:Connect(function(input)
|
|
54
|
-
local current = tracking.current
|
|
55
|
-
if not current.down or not isReorderMove(input.UserInputType) then
|
|
56
|
-
return nil
|
|
57
|
-
end
|
|
58
|
-
local x = input.Position.X
|
|
59
|
-
local y = input.Position.Y
|
|
60
|
-
local active = current.active or passedDragThreshold(current.startX, current.startY, x, y)
|
|
61
|
-
local overId = if active then hitRect(rectsRef.current(), x, y) else nil
|
|
62
|
-
local _object = table.clone(current)
|
|
63
|
-
setmetatable(_object, nil)
|
|
64
|
-
_object.active = active
|
|
65
|
-
_object.x = x
|
|
66
|
-
_object.y = y
|
|
67
|
-
_object.overId = overId
|
|
68
|
-
tracking.current = _object
|
|
69
|
-
if active then
|
|
70
|
-
setDrag({
|
|
71
|
-
active = true,
|
|
72
|
-
id = current.id,
|
|
73
|
-
overId = overId,
|
|
74
|
-
x = x,
|
|
75
|
-
y = y,
|
|
76
|
-
})
|
|
77
|
-
end
|
|
78
|
-
end)
|
|
79
|
-
local ended = UserInputService.InputEnded:Connect(function(input)
|
|
80
|
-
if not tracking.current.down or not isReorderRelease(input.UserInputType) then
|
|
81
|
-
return nil
|
|
82
|
-
end
|
|
83
|
-
clear(true)
|
|
84
|
-
end)
|
|
85
|
-
local began = UserInputService.InputBegan:Connect(function(input)
|
|
86
|
-
if input.KeyCode == Enum.KeyCode.Escape then
|
|
87
|
-
clear(false)
|
|
88
|
-
end
|
|
89
|
-
end)
|
|
90
|
-
return function()
|
|
91
|
-
changed:Disconnect()
|
|
92
|
-
ended:Disconnect()
|
|
93
|
-
began:Disconnect()
|
|
94
|
-
end
|
|
95
|
-
end, {})
|
|
96
|
-
return {
|
|
97
|
-
drag = drag,
|
|
98
|
-
begin = function(id, input)
|
|
99
|
-
if not isReorderPress(input.UserInputType) then
|
|
100
|
-
return false
|
|
101
|
-
end
|
|
102
|
-
local x = input.Position.X
|
|
103
|
-
local y = input.Position.Y
|
|
104
|
-
tracking.current = {
|
|
105
|
-
down = true,
|
|
106
|
-
active = false,
|
|
107
|
-
id = id,
|
|
108
|
-
x = x,
|
|
109
|
-
y = y,
|
|
110
|
-
startX = x,
|
|
111
|
-
startY = y,
|
|
112
|
-
}
|
|
113
|
-
return true
|
|
114
|
-
end,
|
|
115
|
-
cancel = function()
|
|
116
|
-
return clear(false)
|
|
117
|
-
end,
|
|
118
|
-
suppressClick = function()
|
|
119
|
-
if not took.current then
|
|
120
|
-
return false
|
|
121
|
-
end
|
|
122
|
-
took.current = false
|
|
123
|
-
return true
|
|
124
|
-
end,
|
|
125
|
-
}
|
|
126
|
-
end
|
|
127
|
-
return {
|
|
128
|
-
useReorderDrag = useReorderDrag,
|
|
129
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React from "@rbxts/react";
|
|
2
|
-
import { CustomizedProps } from "../../../../theme/index";
|
|
3
|
-
export interface ScrollViewProps {
|
|
4
|
-
children?: React.ReactNode;
|
|
5
|
-
}
|
|
6
|
-
declare function ScrollView(props: CustomizedProps<ScrollingFrame, ScrollViewProps>): JSX.Element;
|
|
7
|
-
export default ScrollView;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
-- Compiled with roblox-ts v3.0.0
|
|
2
|
-
local TS = _G[script]
|
|
3
|
-
local React = TS.import(script, TS.getModule(script, "@rbxts", "react"))
|
|
4
|
-
local useTheme = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "theme").useTheme
|
|
5
|
-
local SxHost = TS.import(script, script.Parent.Parent.Parent, "host").SxHost
|
|
6
|
-
local function ScrollView(props)
|
|
7
|
-
local _binding = props
|
|
8
|
-
local children = _binding.children
|
|
9
|
-
local className = _binding.className
|
|
10
|
-
local sx = _binding.sx
|
|
11
|
-
local id = _binding.id
|
|
12
|
-
local ref = _binding.ref
|
|
13
|
-
local _binding_1 = useTheme()
|
|
14
|
-
local theme = _binding_1.theme
|
|
15
|
-
local root = {
|
|
16
|
-
Size = UDim2.fromScale(1, 1),
|
|
17
|
-
BackgroundTransparency = 1,
|
|
18
|
-
BorderSizePixel = 0,
|
|
19
|
-
CanvasSize = UDim2.fromScale(0, 0),
|
|
20
|
-
AutomaticCanvasSize = Enum.AutomaticSize.Y,
|
|
21
|
-
ScrollingDirection = Enum.ScrollingDirection.Y,
|
|
22
|
-
ScrollBarThickness = theme.spacing.calc(0.5),
|
|
23
|
-
ScrollBarImageColor3 = theme.palette.text.secondary,
|
|
24
|
-
}
|
|
25
|
-
local _attributes = {
|
|
26
|
-
tag = "scrollingframe",
|
|
27
|
-
}
|
|
28
|
-
local _condition = id
|
|
29
|
-
if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
|
|
30
|
-
_condition = "ScrollView"
|
|
31
|
-
end
|
|
32
|
-
_attributes.key = _condition
|
|
33
|
-
_attributes.hostRef = ref
|
|
34
|
-
_attributes.base = root
|
|
35
|
-
_attributes.className = className
|
|
36
|
-
_attributes.sx = sx
|
|
37
|
-
return React.createElement(SxHost, _attributes, children)
|
|
38
|
-
end
|
|
39
|
-
local default = ScrollView
|
|
40
|
-
return {
|
|
41
|
-
default = default,
|
|
42
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
interface SkeletonPalette {
|
|
2
|
-
surface: {
|
|
3
|
-
canvas: Color3;
|
|
4
|
-
elevated: Color3;
|
|
5
|
-
};
|
|
6
|
-
action: {
|
|
7
|
-
hover: Color3;
|
|
8
|
-
};
|
|
9
|
-
text: {
|
|
10
|
-
secondary: Color3;
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
/** Bone + shimmer peak from semantic tokens; shine always lifts off the bone vs canvas. */
|
|
14
|
-
export declare function skeletonTone(theme: {
|
|
15
|
-
palette: SkeletonPalette;
|
|
16
|
-
}): {
|
|
17
|
-
bone: Color3;
|
|
18
|
-
shine: Color3;
|
|
19
|
-
};
|
|
20
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
-- Compiled with roblox-ts v3.0.0
|
|
2
|
-
local TS = _G[script]
|
|
3
|
-
local relativeLuminance = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "theme", "utilites", "colorMath").relativeLuminance
|
|
4
|
-
--* Bone + shimmer peak from semantic tokens; shine always lifts off the bone vs canvas.
|
|
5
|
-
local function skeletonTone(theme)
|
|
6
|
-
local lightCanvas = relativeLuminance(theme.palette.surface.canvas) > 0.5
|
|
7
|
-
return {
|
|
8
|
-
bone = theme.palette.action.hover,
|
|
9
|
-
shine = if lightCanvas then theme.palette.surface.elevated else theme.palette.text.secondary,
|
|
10
|
-
}
|
|
11
|
-
end
|
|
12
|
-
return {
|
|
13
|
-
skeletonTone = skeletonTone,
|
|
14
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function sliderMarkValues(min: number, max: number, step: number | undefined, marks: boolean | ReadonlyArray<number> | undefined): number[];
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
-- Compiled with roblox-ts v3.0.0
|
|
2
|
-
local function sliderMarkValues(min, max, step, marks)
|
|
3
|
-
if marks == nil or marks == false then
|
|
4
|
-
return {}
|
|
5
|
-
end
|
|
6
|
-
if marks ~= true then
|
|
7
|
-
local out = {}
|
|
8
|
-
for _, value in marks do
|
|
9
|
-
if value >= min and value <= max then
|
|
10
|
-
table.insert(out, value)
|
|
11
|
-
end
|
|
12
|
-
end
|
|
13
|
-
return out
|
|
14
|
-
end
|
|
15
|
-
local span = max - min
|
|
16
|
-
if span <= 0 then
|
|
17
|
-
return { min }
|
|
18
|
-
end
|
|
19
|
-
local increment = if step ~= nil and step > 0 then step else span
|
|
20
|
-
local out = {}
|
|
21
|
-
local value = min
|
|
22
|
-
local guard = 0
|
|
23
|
-
while value <= max + increment * 1e-9 and guard < 64 do
|
|
24
|
-
local _arg0 = math.clamp(value, min, max)
|
|
25
|
-
table.insert(out, _arg0)
|
|
26
|
-
value += increment
|
|
27
|
-
guard += 1
|
|
28
|
-
end
|
|
29
|
-
if out[#out] ~= max then
|
|
30
|
-
local _max = max
|
|
31
|
-
table.insert(out, _max)
|
|
32
|
-
end
|
|
33
|
-
return out
|
|
34
|
-
end
|
|
35
|
-
return {
|
|
36
|
-
sliderMarkValues = sliderMarkValues,
|
|
37
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function snackbarActionLabel(action?: string): string | undefined;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { CustomizedProps } from "../../../../theme/index";
|
|
2
|
-
export interface SparklineProps {
|
|
3
|
-
values: number[];
|
|
4
|
-
width?: number;
|
|
5
|
-
height?: number;
|
|
6
|
-
color?: Color3;
|
|
7
|
-
}
|
|
8
|
-
declare function Sparkline(props: CustomizedProps<Frame, SparklineProps>): JSX.Element;
|
|
9
|
-
export default Sparkline;
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
-- Compiled with roblox-ts v3.0.0
|
|
2
|
-
local TS = _G[script]
|
|
3
|
-
local React = TS.import(script, TS.getModule(script, "@rbxts", "react"))
|
|
4
|
-
local useTheme = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "theme").useTheme
|
|
5
|
-
local SxHost = TS.import(script, script.Parent.Parent.Parent, "host").SxHost
|
|
6
|
-
local sparklineLayout = TS.import(script, script.Parent.Parent, "sparklineLayout").sparklineLayout
|
|
7
|
-
local function Sparkline(props)
|
|
8
|
-
local _binding = props
|
|
9
|
-
local values = _binding.values
|
|
10
|
-
local width = _binding.width
|
|
11
|
-
if width == nil then
|
|
12
|
-
width = 120
|
|
13
|
-
end
|
|
14
|
-
local height = _binding.height
|
|
15
|
-
if height == nil then
|
|
16
|
-
height = 36
|
|
17
|
-
end
|
|
18
|
-
local color = _binding.color
|
|
19
|
-
local className = _binding.className
|
|
20
|
-
local sx = _binding.sx
|
|
21
|
-
local id = _binding.id
|
|
22
|
-
local ref = _binding.ref
|
|
23
|
-
local _binding_1 = useTheme()
|
|
24
|
-
local theme = _binding_1.theme
|
|
25
|
-
local segments = sparklineLayout(values, width, height)
|
|
26
|
-
local stroke = color or theme.palette.primary.main
|
|
27
|
-
local _attributes = {
|
|
28
|
-
tag = "frame",
|
|
29
|
-
}
|
|
30
|
-
local _condition = id
|
|
31
|
-
if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
|
|
32
|
-
_condition = "Sparkline"
|
|
33
|
-
end
|
|
34
|
-
_attributes.key = _condition
|
|
35
|
-
_attributes.hostRef = ref
|
|
36
|
-
_attributes.base = {
|
|
37
|
-
Size = UDim2.fromOffset(width, height),
|
|
38
|
-
BackgroundTransparency = 1,
|
|
39
|
-
BorderSizePixel = 0,
|
|
40
|
-
ClipsDescendants = true,
|
|
41
|
-
}
|
|
42
|
-
_attributes.className = className
|
|
43
|
-
_attributes.sx = sx
|
|
44
|
-
-- ▼ ReadonlyArray.map ▼
|
|
45
|
-
local _newValue = table.create(#segments)
|
|
46
|
-
local _callback = function(segment, index)
|
|
47
|
-
return React.createElement("frame", {
|
|
48
|
-
key = `s-{index}`,
|
|
49
|
-
AnchorPoint = Vector2.new(0.5, 0.5),
|
|
50
|
-
Position = UDim2.fromOffset(segment.x, segment.y),
|
|
51
|
-
Size = UDim2.fromOffset(segment.length, 2),
|
|
52
|
-
Rotation = segment.rotation,
|
|
53
|
-
BackgroundColor3 = stroke,
|
|
54
|
-
BorderSizePixel = 0,
|
|
55
|
-
})
|
|
56
|
-
end
|
|
57
|
-
for _k, _v in segments do
|
|
58
|
-
_newValue[_k] = _callback(_v, _k - 1, segments)
|
|
59
|
-
end
|
|
60
|
-
-- ▲ ReadonlyArray.map ▲
|
|
61
|
-
return React.createElement(SxHost, _attributes, _newValue)
|
|
62
|
-
end
|
|
63
|
-
local default = Sparkline
|
|
64
|
-
return {
|
|
65
|
-
default = default,
|
|
66
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export interface SparkSegment {
|
|
2
|
-
x: number;
|
|
3
|
-
y: number;
|
|
4
|
-
length: number;
|
|
5
|
-
rotation: number;
|
|
6
|
-
}
|
|
7
|
-
/** Line segments for a number series. Empty and single-point series draw nothing. */
|
|
8
|
-
export declare function sparklineLayout(values: number[], width: number, height: number, pad?: number): SparkSegment[];
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
-- Compiled with roblox-ts v3.0.0
|
|
2
|
-
--* Line segments for a number series. Empty and single-point series draw nothing.
|
|
3
|
-
local function sparklineLayout(values, width, height, pad)
|
|
4
|
-
if pad == nil then
|
|
5
|
-
pad = 4
|
|
6
|
-
end
|
|
7
|
-
local count = #values
|
|
8
|
-
if count < 2 or width <= pad * 2 or height <= pad * 2 then
|
|
9
|
-
return {}
|
|
10
|
-
end
|
|
11
|
-
local min = values[1]
|
|
12
|
-
local max = values[1]
|
|
13
|
-
for _, value in values do
|
|
14
|
-
if value < min then
|
|
15
|
-
min = value
|
|
16
|
-
end
|
|
17
|
-
if value > max then
|
|
18
|
-
max = value
|
|
19
|
-
end
|
|
20
|
-
end
|
|
21
|
-
local span = math.max(max - min, 1)
|
|
22
|
-
local innerW = width - pad * 2
|
|
23
|
-
local innerH = height - pad * 2
|
|
24
|
-
local step = innerW / (count - 1)
|
|
25
|
-
local points = {}
|
|
26
|
-
do
|
|
27
|
-
local index = 0
|
|
28
|
-
local _shouldIncrement = false
|
|
29
|
-
while true do
|
|
30
|
-
if _shouldIncrement then
|
|
31
|
-
index += 1
|
|
32
|
-
else
|
|
33
|
-
_shouldIncrement = true
|
|
34
|
-
end
|
|
35
|
-
if not (index < count) then
|
|
36
|
-
break
|
|
37
|
-
end
|
|
38
|
-
local _arg0 = {
|
|
39
|
-
x = pad + index * step,
|
|
40
|
-
y = pad + (1 - (values[index + 1] - min) / span) * innerH,
|
|
41
|
-
}
|
|
42
|
-
table.insert(points, _arg0)
|
|
43
|
-
end
|
|
44
|
-
end
|
|
45
|
-
local segments = {}
|
|
46
|
-
do
|
|
47
|
-
local index = 0
|
|
48
|
-
local _shouldIncrement = false
|
|
49
|
-
while true do
|
|
50
|
-
if _shouldIncrement then
|
|
51
|
-
index += 1
|
|
52
|
-
else
|
|
53
|
-
_shouldIncrement = true
|
|
54
|
-
end
|
|
55
|
-
if not (index < count - 1) then
|
|
56
|
-
break
|
|
57
|
-
end
|
|
58
|
-
local start = points[index + 1]
|
|
59
|
-
local finish = points[index + 2]
|
|
60
|
-
local dx = finish.x - start.x
|
|
61
|
-
local dy = finish.y - start.y
|
|
62
|
-
local _arg0 = {
|
|
63
|
-
x = (start.x + finish.x) / 2,
|
|
64
|
-
y = (start.y + finish.y) / 2,
|
|
65
|
-
length = math.sqrt(dx * dx + dy * dy),
|
|
66
|
-
rotation = math.deg(math.atan2(dy, dx)),
|
|
67
|
-
}
|
|
68
|
-
table.insert(segments, _arg0)
|
|
69
|
-
end
|
|
70
|
-
end
|
|
71
|
-
return segments
|
|
72
|
-
end
|
|
73
|
-
return {
|
|
74
|
-
sparklineLayout = sparklineLayout,
|
|
75
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { CustomizedProps } from "../../../../theme/index";
|
|
2
|
-
import { Icons } from "../../../enums/index";
|
|
3
|
-
import { SpeedDialDirection } from "./SpeedDial.styles";
|
|
4
|
-
export interface SpeedDialAction {
|
|
5
|
-
icon: Icons;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
onClick?: () => void;
|
|
8
|
-
}
|
|
9
|
-
export interface SpeedDialProps {
|
|
10
|
-
open: boolean;
|
|
11
|
-
onOpenChange: (open: boolean) => void;
|
|
12
|
-
actions: SpeedDialAction[];
|
|
13
|
-
icon?: Icons;
|
|
14
|
-
openIcon?: Icons;
|
|
15
|
-
disabled?: boolean;
|
|
16
|
-
direction?: SpeedDialDirection;
|
|
17
|
-
}
|
|
18
|
-
declare function SpeedDial(props: CustomizedProps<Frame, SpeedDialProps>): JSX.Element;
|
|
19
|
-
export default SpeedDial;
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
-- Compiled with roblox-ts v3.0.0
|
|
2
|
-
local TS = _G[script]
|
|
3
|
-
local React = TS.import(script, TS.getModule(script, "@rbxts", "react"))
|
|
4
|
-
local Icons = TS.import(script, script.Parent.Parent.Parent.Parent, "enums").Icons
|
|
5
|
-
local Fab = TS.import(script, script.Parent.Parent.Parent, "fab").Fab
|
|
6
|
-
local SxHost = TS.import(script, script.Parent.Parent.Parent, "host").SxHost
|
|
7
|
-
local useSpeedDialStyles = TS.import(script, script.Parent, "SpeedDial.styles").default
|
|
8
|
-
local function SpeedDial(props)
|
|
9
|
-
local _binding = props
|
|
10
|
-
local open = _binding.open
|
|
11
|
-
local onOpenChange = _binding.onOpenChange
|
|
12
|
-
local actions = _binding.actions
|
|
13
|
-
local icon = _binding.icon
|
|
14
|
-
if icon == nil then
|
|
15
|
-
icon = Icons.OpenBox
|
|
16
|
-
end
|
|
17
|
-
local openIcon = _binding.openIcon
|
|
18
|
-
if openIcon == nil then
|
|
19
|
-
openIcon = Icons.Close
|
|
20
|
-
end
|
|
21
|
-
local disabled = _binding.disabled
|
|
22
|
-
local direction = _binding.direction
|
|
23
|
-
if direction == nil then
|
|
24
|
-
direction = "up"
|
|
25
|
-
end
|
|
26
|
-
local className = _binding.className
|
|
27
|
-
local sx = _binding.sx
|
|
28
|
-
local id = _binding.id
|
|
29
|
-
local ref = _binding.ref
|
|
30
|
-
local styles = useSpeedDialStyles({
|
|
31
|
-
direction = direction,
|
|
32
|
-
})
|
|
33
|
-
local mainFirst = direction == "down" or direction == "right"
|
|
34
|
-
local mainOrder = if mainFirst then 0 else 1000
|
|
35
|
-
local actionBase = if mainFirst then 1 else 0
|
|
36
|
-
local _attributes = {
|
|
37
|
-
tag = "frame",
|
|
38
|
-
}
|
|
39
|
-
local _condition = id
|
|
40
|
-
if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
|
|
41
|
-
_condition = "SpeedDial"
|
|
42
|
-
end
|
|
43
|
-
_attributes.key = _condition
|
|
44
|
-
_attributes.hostRef = ref
|
|
45
|
-
_attributes.base = styles.root
|
|
46
|
-
_attributes.className = className
|
|
47
|
-
_attributes.sx = sx
|
|
48
|
-
_attributes.state = {
|
|
49
|
-
disabled = disabled,
|
|
50
|
-
}
|
|
51
|
-
local _attributes_1 = table.clone(styles.list)
|
|
52
|
-
setmetatable(_attributes_1, nil)
|
|
53
|
-
local _exp = React.createElement("uilistlayout", _attributes_1)
|
|
54
|
-
local _condition_1 = open
|
|
55
|
-
if _condition_1 then
|
|
56
|
-
-- ▼ ReadonlyArray.map ▼
|
|
57
|
-
local _newValue = table.create(#actions)
|
|
58
|
-
local _callback = function(action, index)
|
|
59
|
-
return React.createElement(Fab, {
|
|
60
|
-
key = `Action-{index}`,
|
|
61
|
-
icon = action.icon,
|
|
62
|
-
size = "small",
|
|
63
|
-
disabled = disabled == true or action.disabled == true,
|
|
64
|
-
onClick = function()
|
|
65
|
-
local _result = action.onClick
|
|
66
|
-
if _result ~= nil then
|
|
67
|
-
_result()
|
|
68
|
-
end
|
|
69
|
-
onOpenChange(false)
|
|
70
|
-
end,
|
|
71
|
-
className = {
|
|
72
|
-
LayoutOrder = actionBase + index,
|
|
73
|
-
},
|
|
74
|
-
})
|
|
75
|
-
end
|
|
76
|
-
for _k, _v in actions do
|
|
77
|
-
_newValue[_k] = _callback(_v, _k - 1, actions)
|
|
78
|
-
end
|
|
79
|
-
-- ▲ ReadonlyArray.map ▲
|
|
80
|
-
_condition_1 = (React.createElement(React.Fragment, nil, _newValue))
|
|
81
|
-
end
|
|
82
|
-
return React.createElement(SxHost, _attributes, _exp, _condition_1, React.createElement(Fab, {
|
|
83
|
-
key = "Main",
|
|
84
|
-
icon = if open then openIcon else icon,
|
|
85
|
-
disabled = disabled,
|
|
86
|
-
onClick = function()
|
|
87
|
-
return onOpenChange(not open)
|
|
88
|
-
end,
|
|
89
|
-
className = {
|
|
90
|
-
LayoutOrder = mainOrder,
|
|
91
|
-
},
|
|
92
|
-
}))
|
|
93
|
-
end
|
|
94
|
-
local default = SpeedDial
|
|
95
|
-
return {
|
|
96
|
-
default = default,
|
|
97
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
-- Compiled with roblox-ts v3.0.0
|
|
2
|
-
local TS = _G[script]
|
|
3
|
-
local _theme = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "theme")
|
|
4
|
-
local componentStyles = _theme.componentStyles
|
|
5
|
-
local createStyles = _theme.createStyles
|
|
6
|
-
local useSpeedDialStyles = componentStyles("SpeedDial", function(theme, _param)
|
|
7
|
-
local direction = _param.direction
|
|
8
|
-
if direction == nil then
|
|
9
|
-
direction = "up"
|
|
10
|
-
end
|
|
11
|
-
local vertical = direction == "up" or direction == "down"
|
|
12
|
-
return createStyles({
|
|
13
|
-
root = {
|
|
14
|
-
AutomaticSize = Enum.AutomaticSize.XY,
|
|
15
|
-
Size = UDim2.fromScale(0, 0),
|
|
16
|
-
BackgroundTransparency = 1,
|
|
17
|
-
BorderSizePixel = 0,
|
|
18
|
-
},
|
|
19
|
-
list = {
|
|
20
|
-
FillDirection = if vertical then Enum.FillDirection.Vertical else Enum.FillDirection.Horizontal,
|
|
21
|
-
HorizontalAlignment = if direction == "left" then Enum.HorizontalAlignment.Right elseif direction == "right" then Enum.HorizontalAlignment.Left else Enum.HorizontalAlignment.Center,
|
|
22
|
-
VerticalAlignment = if direction == "up" then Enum.VerticalAlignment.Bottom elseif direction == "down" then Enum.VerticalAlignment.Top else Enum.VerticalAlignment.Center,
|
|
23
|
-
SortOrder = Enum.SortOrder.LayoutOrder,
|
|
24
|
-
Padding = UDim.new(0, theme.padding.calc(1)),
|
|
25
|
-
},
|
|
26
|
-
})
|
|
27
|
-
end)
|
|
28
|
-
local default = useSpeedDialStyles
|
|
29
|
-
return {
|
|
30
|
-
default = default,
|
|
31
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export type TableAlign = "left" | "center" | "right";
|
|
2
|
-
export type TableSortDirection = "asc" | "desc";
|
|
3
|
-
export interface TableColumnSpec {
|
|
4
|
-
header: unknown;
|
|
5
|
-
width?: number | UDim;
|
|
6
|
-
flex?: number;
|
|
7
|
-
align?: TableAlign;
|
|
8
|
-
sortable?: boolean;
|
|
9
|
-
}
|
|
10
|
-
export interface ResolvedColumn {
|
|
11
|
-
header: unknown;
|
|
12
|
-
width?: number | UDim;
|
|
13
|
-
flex?: number;
|
|
14
|
-
align: TableAlign;
|
|
15
|
-
sortable: boolean;
|
|
16
|
-
}
|
|
17
|
-
export interface ColumnSize {
|
|
18
|
-
scale: number;
|
|
19
|
-
offset: number;
|
|
20
|
-
}
|
|
21
|
-
export declare function resolveColumn(column: string | TableColumnSpec): ResolvedColumn;
|
|
22
|
-
/** Scale/offset for each column. Number widths are scales. Flex shares whatever scale is left. */
|
|
23
|
-
export declare function columnSizes(columns: ReadonlyArray<Pick<ResolvedColumn, "width" | "flex">>): ColumnSize[];
|
|
24
|
-
export declare function isTextCell(value: unknown): value is string | undefined;
|
|
25
|
-
export declare function canSort(sortable: boolean | undefined, hasHandler: boolean): boolean;
|
|
26
|
-
export declare function headerText(label: string, active: boolean, direction?: TableSortDirection): string;
|