@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
|
@@ -2,7 +2,6 @@ import { CustomizedProps } from "../../../../theme/index";
|
|
|
2
2
|
export interface StepperProps {
|
|
3
3
|
steps: string[];
|
|
4
4
|
activeStep: number;
|
|
5
|
-
orientation?: "horizontal" | "vertical";
|
|
6
5
|
}
|
|
7
6
|
declare function Stepper(props: CustomizedProps<Frame, StepperProps>): JSX.Element;
|
|
8
7
|
export default Stepper;
|
|
@@ -3,35 +3,36 @@ local TS = _G[script]
|
|
|
3
3
|
local React = TS.import(script, TS.getModule(script, "@rbxts", "react"))
|
|
4
4
|
local cx = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "theme").cx
|
|
5
5
|
local stepState = TS.import(script, script.Parent, "stepState").stepState
|
|
6
|
-
local SxHost = TS.import(script, script.Parent.Parent.Parent, "host").SxHost
|
|
7
6
|
local useStepperStyles = TS.import(script, script.Parent, "Stepper.styles").default
|
|
8
7
|
local function Stepper(props)
|
|
9
8
|
local _binding = props
|
|
10
9
|
local steps = _binding.steps
|
|
11
10
|
local activeStep = _binding.activeStep
|
|
12
|
-
local orientation = _binding.orientation
|
|
13
|
-
if orientation == nil then
|
|
14
|
-
orientation = "horizontal"
|
|
15
|
-
end
|
|
16
11
|
local className = _binding.className
|
|
17
12
|
local sx = _binding.sx
|
|
18
13
|
local id = _binding.id
|
|
19
14
|
local ref = _binding.ref
|
|
20
|
-
local styles = useStepperStyles(
|
|
21
|
-
|
|
22
|
-
})
|
|
23
|
-
local _attributes = {
|
|
24
|
-
tag = "frame",
|
|
25
|
-
}
|
|
15
|
+
local styles = useStepperStyles()
|
|
16
|
+
local _attributes = {}
|
|
26
17
|
local _condition = id
|
|
27
18
|
if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
|
|
28
19
|
_condition = "Stepper"
|
|
29
20
|
end
|
|
30
21
|
_attributes.key = _condition
|
|
31
|
-
_attributes.
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
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
|
|
35
36
|
local _attributes_1 = table.clone(styles.list)
|
|
36
37
|
setmetatable(_attributes_1, nil)
|
|
37
38
|
local _exp = React.createElement("uilistlayout", _attributes_1)
|
|
@@ -53,7 +54,7 @@ local function Stepper(props)
|
|
|
53
54
|
_newValue[_k] = _callback(_v, _k - 1, steps)
|
|
54
55
|
end
|
|
55
56
|
-- ▲ ReadonlyArray.map ▲
|
|
56
|
-
return React.createElement(
|
|
57
|
+
return React.createElement("frame", _attributes, _exp, _newValue)
|
|
57
58
|
end
|
|
58
59
|
local default = Stepper
|
|
59
60
|
return {
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
declare const useStepperStyles: (
|
|
2
|
-
orientation?: "horizontal" | "vertical";
|
|
3
|
-
}) => import("../../../../theme/index").ClassNameMap<string>;
|
|
1
|
+
declare const useStepperStyles: () => import("../../../../theme/index").ClassNameMap<string>;
|
|
4
2
|
export default useStepperStyles;
|
|
@@ -3,11 +3,7 @@ local TS = _G[script]
|
|
|
3
3
|
local _theme = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "theme")
|
|
4
4
|
local componentStyles = _theme.componentStyles
|
|
5
5
|
local createStyles = _theme.createStyles
|
|
6
|
-
local useStepperStyles = componentStyles("Stepper", function(theme
|
|
7
|
-
local orientation = _param.orientation
|
|
8
|
-
if orientation == nil then
|
|
9
|
-
orientation = "horizontal"
|
|
10
|
-
end
|
|
6
|
+
local useStepperStyles = componentStyles("Stepper", function(theme)
|
|
11
7
|
return createStyles({
|
|
12
8
|
root = {
|
|
13
9
|
AutomaticSize = Enum.AutomaticSize.XY,
|
|
@@ -16,7 +12,7 @@ local useStepperStyles = componentStyles("Stepper", function(theme, _param)
|
|
|
16
12
|
BorderSizePixel = 0,
|
|
17
13
|
},
|
|
18
14
|
list = {
|
|
19
|
-
FillDirection =
|
|
15
|
+
FillDirection = Enum.FillDirection.Horizontal,
|
|
20
16
|
Padding = UDim.new(0, theme.padding.calc(1)),
|
|
21
17
|
SortOrder = Enum.SortOrder.LayoutOrder,
|
|
22
18
|
},
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { ControlSize, CustomizedProps } from "../../../../theme/index";
|
|
2
|
-
import { SwitchColor } from "./Switch.styles";
|
|
3
2
|
export interface SwitchProps {
|
|
4
3
|
value: boolean;
|
|
5
4
|
onChange: (value: boolean) => void;
|
|
6
5
|
disabled?: boolean;
|
|
7
6
|
label?: string;
|
|
8
7
|
size?: ControlSize;
|
|
9
|
-
color?: SwitchColor;
|
|
10
8
|
reducedMotion?: boolean;
|
|
11
9
|
}
|
|
12
10
|
declare function Switch(props: CustomizedProps<TextButton, SwitchProps>): JSX.Element;
|
|
@@ -11,7 +11,6 @@ local controlMetrics = _theme.controlMetrics
|
|
|
11
11
|
local cx = _theme.cx
|
|
12
12
|
local useTheme = _theme.useTheme
|
|
13
13
|
local canActivate = TS.import(script, script.Parent.Parent.Parent, "button", "components", "activation").canActivate
|
|
14
|
-
local SxHost = TS.import(script, script.Parent.Parent.Parent, "host").SxHost
|
|
15
14
|
local playProperty = TS.import(script, script.Parent.Parent.Parent, "motion").playProperty
|
|
16
15
|
local useSwitchStyles = TS.import(script, script.Parent, "Switch.styles").default
|
|
17
16
|
local _switchLook = TS.import(script, script.Parent, "switchLook")
|
|
@@ -28,10 +27,6 @@ local function Switch(props)
|
|
|
28
27
|
local disabled = _binding.disabled
|
|
29
28
|
local label = _binding.label
|
|
30
29
|
local size = _binding.size
|
|
31
|
-
local color = _binding.color
|
|
32
|
-
if color == nil then
|
|
33
|
-
color = "primary"
|
|
34
|
-
end
|
|
35
30
|
local reducedProp = _binding.reducedMotion
|
|
36
31
|
local className = _binding.className
|
|
37
32
|
local sx = _binding.sx
|
|
@@ -42,7 +37,6 @@ local function Switch(props)
|
|
|
42
37
|
local theme = _binding_1.theme
|
|
43
38
|
local _binding_2 = useSwitchStyles({
|
|
44
39
|
size = size,
|
|
45
|
-
color = color,
|
|
46
40
|
})
|
|
47
41
|
local root = _binding_2.root
|
|
48
42
|
local row = _binding_2.row
|
|
@@ -79,25 +73,26 @@ local function Switch(props)
|
|
|
79
73
|
end
|
|
80
74
|
return playProperty(thumb, goal, THUMB_SECONDS, reducedMotion)
|
|
81
75
|
end, { placement.scaleX, placement.offsetX, placement.anchorX, reducedMotion })
|
|
82
|
-
local _attributes = {
|
|
83
|
-
tag = "textbutton",
|
|
84
|
-
}
|
|
76
|
+
local _attributes = {}
|
|
85
77
|
local _condition = id
|
|
86
78
|
if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
|
|
87
79
|
_condition = "Switch"
|
|
88
80
|
end
|
|
89
81
|
_attributes.key = _condition
|
|
90
|
-
_attributes.
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
82
|
+
_attributes.ref = ref
|
|
83
|
+
for _k, _v in root do
|
|
84
|
+
_attributes[_k] = _v
|
|
85
|
+
end
|
|
86
|
+
if className then
|
|
87
|
+
for _k, _v in className do
|
|
88
|
+
_attributes[_k] = _v
|
|
89
|
+
end
|
|
90
|
+
end
|
|
91
|
+
if sx then
|
|
92
|
+
for _k, _v in sx do
|
|
93
|
+
_attributes[_k] = _v
|
|
94
|
+
end
|
|
95
|
+
end
|
|
101
96
|
_attributes.Active = active
|
|
102
97
|
_attributes.Selectable = not disabled
|
|
103
98
|
_attributes.BackgroundTransparency = if focused and active then 0.85 else 1
|
|
@@ -167,7 +162,7 @@ local function Switch(props)
|
|
|
167
162
|
_attributes_7.LayoutOrder = 2
|
|
168
163
|
_condition_1 = (React.createElement("textlabel", _attributes_7))
|
|
169
164
|
end
|
|
170
|
-
return React.createElement(
|
|
165
|
+
return React.createElement("textbutton", _attributes, _exp, _exp_3, _condition_1)
|
|
171
166
|
end
|
|
172
167
|
local default = Switch
|
|
173
168
|
return {
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { ControlSize } from "../../../../theme/index";
|
|
2
|
-
export type SwitchColor = "primary" | "accent";
|
|
3
2
|
export interface SwitchStyleProps {
|
|
4
3
|
size?: ControlSize;
|
|
5
|
-
color?: SwitchColor;
|
|
6
4
|
}
|
|
7
5
|
declare const useSwitchStyles: (props: SwitchStyleProps) => import("../../../../theme/index").ClassNameMap<string>;
|
|
8
6
|
export default useSwitchStyles;
|
|
@@ -6,12 +6,7 @@ local createStyles = _theme.createStyles
|
|
|
6
6
|
local componentStyles = _theme.componentStyles
|
|
7
7
|
local useSwitchStyles = componentStyles("Switch", function(theme, _param)
|
|
8
8
|
local size = _param.size
|
|
9
|
-
local color = _param.color
|
|
10
|
-
if color == nil then
|
|
11
|
-
color = "primary"
|
|
12
|
-
end
|
|
13
9
|
local metrics = controlMetrics(theme.density, size)
|
|
14
|
-
local onTone = if color == "accent" then theme.palette.accent.main else theme.palette.primary.main
|
|
15
10
|
return createStyles({
|
|
16
11
|
root = {
|
|
17
12
|
AutomaticSize = Enum.AutomaticSize.XY,
|
|
@@ -33,7 +28,7 @@ local useSwitchStyles = componentStyles("Switch", function(theme, _param)
|
|
|
33
28
|
BorderSizePixel = 0,
|
|
34
29
|
},
|
|
35
30
|
trackOn = {
|
|
36
|
-
BackgroundColor3 =
|
|
31
|
+
BackgroundColor3 = theme.palette.primary.main,
|
|
37
32
|
},
|
|
38
33
|
knob = {
|
|
39
34
|
Size = UDim2.fromOffset(metrics.switchThumb, metrics.switchThumb),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export type SwitchPointer = "rest" | "hover" | "press" | "focus";
|
|
2
2
|
export declare function switchPointer(hovering: boolean, pressed: boolean, focused: boolean): SwitchPointer;
|
|
3
|
-
export declare function switchTrackTransparency(on: boolean, disabled: boolean, pointer: SwitchPointer): 0 | 0.25 | 0.
|
|
3
|
+
export declare function switchTrackTransparency(on: boolean, disabled: boolean, pointer: SwitchPointer): 0 | 0.25 | 0.35 | 0.65 | 0.55 | 0.15 | 0.08;
|
|
4
4
|
export declare function switchThumbTransparency(disabled: boolean): 0 | 0.35;
|
|
5
5
|
export declare function switchStrokeTransparency(disabled: boolean, pointer: SwitchPointer): 1 | 0 | 0.35;
|
|
6
6
|
export declare function switchThumbPlacement(on: boolean, inset: number): {
|
|
@@ -1,22 +1,8 @@
|
|
|
1
|
-
import React from "@rbxts/react";
|
|
2
1
|
import { CustomizedProps } from "../../../../theme/index";
|
|
3
|
-
import { TableAlign, TableSortDirection } from "./tableColumns";
|
|
4
|
-
export interface TableColumn {
|
|
5
|
-
header: string | React.ReactNode;
|
|
6
|
-
width?: number | UDim;
|
|
7
|
-
flex?: number;
|
|
8
|
-
align?: TableAlign;
|
|
9
|
-
sortable?: boolean;
|
|
10
|
-
}
|
|
11
|
-
export type TableCell = string | React.ReactNode;
|
|
12
2
|
export interface TableProps {
|
|
13
|
-
columns:
|
|
14
|
-
rows:
|
|
3
|
+
columns: string[];
|
|
4
|
+
rows: string[][];
|
|
15
5
|
selected?: number;
|
|
16
|
-
dense?: boolean;
|
|
17
|
-
sortColumn?: number;
|
|
18
|
-
sortDirection?: TableSortDirection;
|
|
19
|
-
onSort?: (column: number) => void;
|
|
20
6
|
onRowActivated?: (index: number) => void;
|
|
21
7
|
}
|
|
22
8
|
declare function Table(props: CustomizedProps<Frame, TableProps>): JSX.Element;
|
|
@@ -2,64 +2,40 @@
|
|
|
2
2
|
local TS = _G[script]
|
|
3
3
|
local React = TS.import(script, TS.getModule(script, "@rbxts", "react"))
|
|
4
4
|
local cx = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "theme").cx
|
|
5
|
-
local SxHost = TS.import(script, script.Parent.Parent.Parent, "host").SxHost
|
|
6
5
|
local rowSelected = TS.import(script, script.Parent, "rowSelected").rowSelected
|
|
7
|
-
local _tableColumns = TS.import(script, script.Parent, "tableColumns")
|
|
8
|
-
local canSort = _tableColumns.canSort
|
|
9
|
-
local columnSizes = _tableColumns.columnSizes
|
|
10
|
-
local headerText = _tableColumns.headerText
|
|
11
|
-
local isTextCell = _tableColumns.isTextCell
|
|
12
|
-
local resolveColumn = _tableColumns.resolveColumn
|
|
13
6
|
local useTableStyles = TS.import(script, script.Parent, "Table.styles").default
|
|
14
|
-
local function textAlign(align)
|
|
15
|
-
if align == "center" then
|
|
16
|
-
return Enum.TextXAlignment.Center
|
|
17
|
-
end
|
|
18
|
-
if align == "right" then
|
|
19
|
-
return Enum.TextXAlignment.Right
|
|
20
|
-
end
|
|
21
|
-
return Enum.TextXAlignment.Left
|
|
22
|
-
end
|
|
23
7
|
local function Table(props)
|
|
24
8
|
local _binding = props
|
|
25
9
|
local columns = _binding.columns
|
|
26
10
|
local rows = _binding.rows
|
|
27
11
|
local selected = _binding.selected
|
|
28
|
-
local dense = _binding.dense
|
|
29
|
-
local sortColumn = _binding.sortColumn
|
|
30
|
-
local sortDirection = _binding.sortDirection
|
|
31
|
-
local onSort = _binding.onSort
|
|
32
12
|
local onRowActivated = _binding.onRowActivated
|
|
33
13
|
local className = _binding.className
|
|
34
14
|
local sx = _binding.sx
|
|
35
15
|
local id = _binding.id
|
|
36
16
|
local ref = _binding.ref
|
|
37
|
-
local styles = useTableStyles(
|
|
38
|
-
|
|
39
|
-
}
|
|
40
|
-
-- ▼ ReadonlyArray.map ▼
|
|
41
|
-
local _newValue = table.create(#columns)
|
|
42
|
-
local _callback = function(column)
|
|
43
|
-
return resolveColumn(column)
|
|
44
|
-
end
|
|
45
|
-
for _k, _v in columns do
|
|
46
|
-
_newValue[_k] = _callback(_v, _k - 1, columns)
|
|
47
|
-
end
|
|
48
|
-
-- ▲ ReadonlyArray.map ▲
|
|
49
|
-
local resolved = _newValue
|
|
50
|
-
local sizes = columnSizes(resolved)
|
|
51
|
-
local _attributes = {
|
|
52
|
-
tag = "frame",
|
|
53
|
-
}
|
|
17
|
+
local styles = useTableStyles()
|
|
18
|
+
local width = if #columns > 0 then 1 / #columns else 1
|
|
19
|
+
local _attributes = {}
|
|
54
20
|
local _condition = id
|
|
55
21
|
if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
|
|
56
22
|
_condition = "Table"
|
|
57
23
|
end
|
|
58
24
|
_attributes.key = _condition
|
|
59
|
-
_attributes.
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
25
|
+
_attributes.ref = ref
|
|
26
|
+
for _k, _v in styles.root do
|
|
27
|
+
_attributes[_k] = _v
|
|
28
|
+
end
|
|
29
|
+
if className then
|
|
30
|
+
for _k, _v in className do
|
|
31
|
+
_attributes[_k] = _v
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
if sx then
|
|
35
|
+
for _k, _v in sx do
|
|
36
|
+
_attributes[_k] = _v
|
|
37
|
+
end
|
|
38
|
+
end
|
|
63
39
|
local _attributes_1 = table.clone(styles.corner)
|
|
64
40
|
setmetatable(_attributes_1, nil)
|
|
65
41
|
local _exp = React.createElement("uicorner", _attributes_1)
|
|
@@ -80,72 +56,27 @@ local function Table(props)
|
|
|
80
56
|
setmetatable(_attributes_5, nil)
|
|
81
57
|
local _exp_3 = React.createElement("uilistlayout", _attributes_5)
|
|
82
58
|
-- ▼ ReadonlyArray.map ▼
|
|
83
|
-
local
|
|
84
|
-
local
|
|
85
|
-
local
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
local label = if type(_header) == "string" then headerText(column.header, active, sortDirection) else nil
|
|
91
|
-
local clickable = canSort(column.sortable, onSort ~= nil)
|
|
92
|
-
if clickable then
|
|
93
|
-
local _attributes_6 = {
|
|
94
|
-
key = `h-{index}`,
|
|
95
|
-
}
|
|
96
|
-
for _k, _v in (cx(styles.cell, styles.headerCell)) do
|
|
97
|
-
_attributes_6[_k] = _v
|
|
98
|
-
end
|
|
99
|
-
local _condition_1 = label
|
|
100
|
-
if _condition_1 == nil then
|
|
101
|
-
_condition_1 = ""
|
|
102
|
-
end
|
|
103
|
-
_attributes_6.Text = _condition_1
|
|
104
|
-
_attributes_6.Size = box
|
|
105
|
-
_attributes_6.TextXAlignment = align
|
|
106
|
-
_attributes_6.AutoButtonColor = false
|
|
107
|
-
_attributes_6.LayoutOrder = index
|
|
108
|
-
_attributes_6.Event = {
|
|
109
|
-
Activated = function()
|
|
110
|
-
local _result = onSort
|
|
111
|
-
if _result ~= nil then
|
|
112
|
-
_result = _result(index)
|
|
113
|
-
end
|
|
114
|
-
return _result
|
|
115
|
-
end,
|
|
116
|
-
}
|
|
117
|
-
return React.createElement("textbutton", _attributes_6, label == nil and (column.header))
|
|
118
|
-
end
|
|
119
|
-
if label ~= nil then
|
|
120
|
-
local _attributes_6 = {
|
|
121
|
-
key = `h-{index}`,
|
|
122
|
-
}
|
|
123
|
-
for _k, _v in cx(styles.cell, styles.headerCell) do
|
|
124
|
-
_attributes_6[_k] = _v
|
|
125
|
-
end
|
|
126
|
-
_attributes_6.Text = label
|
|
127
|
-
_attributes_6.Size = box
|
|
128
|
-
_attributes_6.TextXAlignment = align
|
|
129
|
-
_attributes_6.LayoutOrder = index
|
|
130
|
-
return React.createElement("textlabel", _attributes_6)
|
|
59
|
+
local _newValue = table.create(#columns)
|
|
60
|
+
local _callback = function(label, index)
|
|
61
|
+
local _attributes_6 = {
|
|
62
|
+
key = `h-{label}-{index}`,
|
|
63
|
+
}
|
|
64
|
+
for _k, _v in cx(styles.cell, styles.headerCell) do
|
|
65
|
+
_attributes_6[_k] = _v
|
|
131
66
|
end
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
BackgroundTransparency = 1,
|
|
137
|
-
BorderSizePixel = 0,
|
|
138
|
-
LayoutOrder = index,
|
|
139
|
-
}, column.header)
|
|
67
|
+
_attributes_6.Text = label
|
|
68
|
+
_attributes_6.Size = UDim2.new(width, 0, 0, 0)
|
|
69
|
+
_attributes_6.LayoutOrder = index
|
|
70
|
+
return React.createElement("textlabel", _attributes_6)
|
|
140
71
|
end
|
|
141
|
-
for _k, _v in
|
|
142
|
-
|
|
72
|
+
for _k, _v in columns do
|
|
73
|
+
_newValue[_k] = _callback(_v, _k - 1, columns)
|
|
143
74
|
end
|
|
144
75
|
-- ▲ ReadonlyArray.map ▲
|
|
145
|
-
local _exp_4 = React.createElement("frame", _attributes_3, _exp_2, _exp_3,
|
|
76
|
+
local _exp_4 = React.createElement("frame", _attributes_3, _exp_2, _exp_3, _newValue)
|
|
146
77
|
-- ▼ ReadonlyArray.map ▼
|
|
147
|
-
local
|
|
148
|
-
local
|
|
78
|
+
local _newValue_1 = table.create(#rows)
|
|
79
|
+
local _callback_1 = function(cells, rowIndex)
|
|
149
80
|
local _attributes_6 = {
|
|
150
81
|
key = `r-{rowIndex}`,
|
|
151
82
|
}
|
|
@@ -169,48 +100,34 @@ local function Table(props)
|
|
|
169
100
|
setmetatable(_attributes_8, nil)
|
|
170
101
|
local _exp_6 = React.createElement("uilistlayout", _attributes_8)
|
|
171
102
|
-- ▼ ReadonlyArray.map ▼
|
|
172
|
-
local
|
|
173
|
-
local
|
|
174
|
-
local
|
|
175
|
-
local box = UDim2.new(size.scale, size.offset, 0, 0)
|
|
176
|
-
local value = cells[colIndex + 1]
|
|
177
|
-
if isTextCell(value) then
|
|
178
|
-
local _attributes_9 = {
|
|
179
|
-
key = `c-{rowIndex}-{colIndex}`,
|
|
180
|
-
}
|
|
181
|
-
for _k, _v in styles.cell do
|
|
182
|
-
_attributes_9[_k] = _v
|
|
183
|
-
end
|
|
184
|
-
local _condition_1 = value
|
|
185
|
-
if _condition_1 == nil then
|
|
186
|
-
_condition_1 = ""
|
|
187
|
-
end
|
|
188
|
-
_attributes_9.Text = _condition_1
|
|
189
|
-
_attributes_9.Size = box
|
|
190
|
-
_attributes_9.TextXAlignment = textAlign(column.align)
|
|
191
|
-
_attributes_9.LayoutOrder = colIndex
|
|
192
|
-
return React.createElement("textlabel", _attributes_9)
|
|
193
|
-
end
|
|
194
|
-
return React.createElement("frame", {
|
|
103
|
+
local _newValue_2 = table.create(#columns)
|
|
104
|
+
local _callback_2 = function(_, colIndex)
|
|
105
|
+
local _attributes_9 = {
|
|
195
106
|
key = `c-{rowIndex}-{colIndex}`,
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
107
|
+
}
|
|
108
|
+
for _k, _v in styles.cell do
|
|
109
|
+
_attributes_9[_k] = _v
|
|
110
|
+
end
|
|
111
|
+
local _condition_1 = cells[colIndex + 1]
|
|
112
|
+
if _condition_1 == nil then
|
|
113
|
+
_condition_1 = ""
|
|
114
|
+
end
|
|
115
|
+
_attributes_9.Text = _condition_1
|
|
116
|
+
_attributes_9.Size = UDim2.new(width, 0, 0, 0)
|
|
117
|
+
_attributes_9.LayoutOrder = colIndex
|
|
118
|
+
return React.createElement("textlabel", _attributes_9)
|
|
202
119
|
end
|
|
203
|
-
for _k, _v in
|
|
204
|
-
|
|
120
|
+
for _k, _v in columns do
|
|
121
|
+
_newValue_2[_k] = _callback_2(_v, _k - 1, columns)
|
|
205
122
|
end
|
|
206
123
|
-- ▲ ReadonlyArray.map ▲
|
|
207
|
-
return React.createElement("textbutton", _attributes_6, _exp_5, _exp_6,
|
|
124
|
+
return React.createElement("textbutton", _attributes_6, _exp_5, _exp_6, _newValue_2)
|
|
208
125
|
end
|
|
209
126
|
for _k, _v in rows do
|
|
210
|
-
|
|
127
|
+
_newValue_1[_k] = _callback_1(_v, _k - 1, rows)
|
|
211
128
|
end
|
|
212
129
|
-- ▲ ReadonlyArray.map ▲
|
|
213
|
-
return React.createElement(
|
|
130
|
+
return React.createElement("frame", _attributes, _exp, _exp_1, _exp_4, _newValue_1)
|
|
214
131
|
end
|
|
215
132
|
local default = Table
|
|
216
133
|
return {
|
|
@@ -3,11 +3,7 @@ local TS = _G[script]
|
|
|
3
3
|
local _theme = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "theme")
|
|
4
4
|
local componentStyles = _theme.componentStyles
|
|
5
5
|
local createStyles = _theme.createStyles
|
|
6
|
-
local useTableStyles = componentStyles("Table", function(theme
|
|
7
|
-
local dense = _param.dense
|
|
8
|
-
local padY = theme.padding.calc(if dense == true then 0.5 else 1)
|
|
9
|
-
local padX = theme.padding.calc(if dense == true then 1 else 1.5)
|
|
10
|
-
local textSize = if dense == true then theme.typography.fontSizes.caption else theme.typography.fontSizes.body
|
|
6
|
+
local useTableStyles = componentStyles("Table", function(theme)
|
|
11
7
|
return createStyles({
|
|
12
8
|
root = {
|
|
13
9
|
AutomaticSize = Enum.AutomaticSize.Y,
|
|
@@ -48,7 +44,7 @@ local useTableStyles = componentStyles("Table", function(theme, _param)
|
|
|
48
44
|
BackgroundTransparency = 1,
|
|
49
45
|
BorderSizePixel = 0,
|
|
50
46
|
Font = theme.typography.fontFamilies.default,
|
|
51
|
-
TextSize =
|
|
47
|
+
TextSize = theme.typography.fontSizes.body,
|
|
52
48
|
TextColor3 = theme.palette.text.primary,
|
|
53
49
|
TextXAlignment = Enum.TextXAlignment.Left,
|
|
54
50
|
TextTruncate = Enum.TextTruncate.AtEnd,
|
|
@@ -58,10 +54,10 @@ local useTableStyles = componentStyles("Table", function(theme, _param)
|
|
|
58
54
|
TextColor3 = theme.palette.text.secondary,
|
|
59
55
|
},
|
|
60
56
|
padding = {
|
|
61
|
-
PaddingTop = UDim.new(0,
|
|
62
|
-
PaddingBottom = UDim.new(0,
|
|
63
|
-
PaddingLeft = UDim.new(0,
|
|
64
|
-
PaddingRight = UDim.new(0,
|
|
57
|
+
PaddingTop = UDim.new(0, theme.padding.calc(1)),
|
|
58
|
+
PaddingBottom = UDim.new(0, theme.padding.calc(1)),
|
|
59
|
+
PaddingLeft = UDim.new(0, theme.padding.calc(1.5)),
|
|
60
|
+
PaddingRight = UDim.new(0, theme.padding.calc(1.5)),
|
|
65
61
|
},
|
|
66
62
|
corner = {
|
|
67
63
|
CornerRadius = UDim.new(0, theme.shape.borderRadius),
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import { CustomizedProps } from "../../../../theme/index";
|
|
2
2
|
import { ChoiceOption } from "../../radioGroup/index";
|
|
3
|
-
import { TabsOrientation } from "./tabsOrientation";
|
|
4
3
|
export interface TabsProps<T> {
|
|
5
4
|
value: T;
|
|
6
5
|
options: ChoiceOption<T>[];
|
|
7
6
|
onChange: (value: T) => void;
|
|
8
7
|
disabled?: boolean;
|
|
9
|
-
orientation?: TabsOrientation;
|
|
10
|
-
centered?: boolean;
|
|
11
8
|
}
|
|
12
9
|
declare function Tabs<T>(props: CustomizedProps<ScrollingFrame, TabsProps<T>>): JSX.Element;
|
|
13
10
|
export default Tabs;
|
|
@@ -4,8 +4,6 @@ local React = TS.import(script, TS.getModule(script, "@rbxts", "react"))
|
|
|
4
4
|
local cx = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "theme").cx
|
|
5
5
|
local canActivate = TS.import(script, script.Parent.Parent.Parent, "button", "components", "activation").canActivate
|
|
6
6
|
local stepChoice = TS.import(script, script.Parent.Parent.Parent, "select", "components", "stepChoice").stepChoice
|
|
7
|
-
local SxHost = TS.import(script, script.Parent.Parent.Parent, "host").SxHost
|
|
8
|
-
local tabsIsVertical = TS.import(script, script.Parent, "tabsOrientation").tabsIsVertical
|
|
9
7
|
local useTabsStyles = TS.import(script, script.Parent, "Tabs.styles").default
|
|
10
8
|
local function Tabs(props)
|
|
11
9
|
local _binding = props
|
|
@@ -13,17 +11,11 @@ local function Tabs(props)
|
|
|
13
11
|
local options = _binding.options
|
|
14
12
|
local onChange = _binding.onChange
|
|
15
13
|
local disabled = _binding.disabled
|
|
16
|
-
local orientation = _binding.orientation
|
|
17
|
-
local centered = _binding.centered
|
|
18
14
|
local className = _binding.className
|
|
19
15
|
local sx = _binding.sx
|
|
20
16
|
local id = _binding.id
|
|
21
17
|
local ref = _binding.ref
|
|
22
|
-
local styles = useTabsStyles(
|
|
23
|
-
orientation = orientation,
|
|
24
|
-
centered = centered,
|
|
25
|
-
})
|
|
26
|
-
local vertical = tabsIsVertical(orientation)
|
|
18
|
+
local styles = useTabsStyles()
|
|
27
19
|
local choose = function(index)
|
|
28
20
|
local choice = options[index + 1]
|
|
29
21
|
if choice ~= nil and canActivate(disabled or choice.disabled) and choice.value ~= value then
|
|
@@ -44,29 +36,32 @@ local function Tabs(props)
|
|
|
44
36
|
end
|
|
45
37
|
-- ▲ ReadonlyArray.findIndex ▲
|
|
46
38
|
local index = _result
|
|
47
|
-
|
|
48
|
-
local forward = if vertical then Enum.KeyCode.Down else Enum.KeyCode.Right
|
|
49
|
-
if input.KeyCode == back then
|
|
39
|
+
if input.KeyCode == Enum.KeyCode.Left then
|
|
50
40
|
choose(stepChoice(options, index, -1))
|
|
51
|
-
elseif input.KeyCode ==
|
|
41
|
+
elseif input.KeyCode == Enum.KeyCode.Right then
|
|
52
42
|
choose(stepChoice(options, index, 1))
|
|
53
43
|
end
|
|
54
44
|
end
|
|
55
|
-
local _attributes = {
|
|
56
|
-
tag = "scrollingframe",
|
|
57
|
-
}
|
|
45
|
+
local _attributes = {}
|
|
58
46
|
local _condition = id
|
|
59
47
|
if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
|
|
60
48
|
_condition = "Tabs"
|
|
61
49
|
end
|
|
62
50
|
_attributes.key = _condition
|
|
63
|
-
_attributes.
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
51
|
+
_attributes.ref = ref
|
|
52
|
+
for _k, _v in styles.root do
|
|
53
|
+
_attributes[_k] = _v
|
|
54
|
+
end
|
|
55
|
+
if className then
|
|
56
|
+
for _k, _v in className do
|
|
57
|
+
_attributes[_k] = _v
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
if sx then
|
|
61
|
+
for _k, _v in sx do
|
|
62
|
+
_attributes[_k] = _v
|
|
63
|
+
end
|
|
64
|
+
end
|
|
70
65
|
local _attributes_1 = table.clone(styles.list)
|
|
71
66
|
setmetatable(_attributes_1, nil)
|
|
72
67
|
local _exp = React.createElement("uilistlayout", _attributes_1)
|
|
@@ -110,7 +105,7 @@ local function Tabs(props)
|
|
|
110
105
|
_newValue[_k] = _callback(_v, _k - 1, options)
|
|
111
106
|
end
|
|
112
107
|
-- ▲ ReadonlyArray.map ▲
|
|
113
|
-
return React.createElement(
|
|
108
|
+
return React.createElement("scrollingframe", _attributes, _exp, _newValue)
|
|
114
109
|
end
|
|
115
110
|
local default = Tabs
|
|
116
111
|
return {
|
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
declare const useTabsStyles: (props: {
|
|
3
|
-
orientation?: TabsOrientation;
|
|
4
|
-
centered?: boolean;
|
|
5
|
-
}) => import("../../../../theme/index").ClassNameMap<string>;
|
|
1
|
+
declare const useTabsStyles: () => import("../../../../theme/index").ClassNameMap<string>;
|
|
6
2
|
export default useTabsStyles;
|