@rbxts/uiblox 0.2.0-alpha.21 → 0.2.0-alpha.23
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/out/ui/packages/cframeEditor/components/CFrameEditor.luau +64 -38
- package/out/ui/packages/cframeEditor/components/CFrameEditor.styles.luau +26 -9
- package/out/ui/packages/checkbox/components/checkboxLook.d.ts +1 -1
- package/out/ui/packages/colorPicker/components/ColorPicker.luau +3 -3
- package/out/ui/packages/colorPicker/components/ColorPicker.styles.luau +34 -20
- package/out/ui/packages/colorPicker/components/ColorSequenceEditor.luau +23 -20
- package/out/ui/packages/colorPicker/components/NumberSequenceEditor.luau +54 -47
- package/out/ui/packages/gradientEditor/components/GradientEditor.luau +45 -27
- package/out/ui/packages/gradientEditor/components/GradientEditor.styles.luau +37 -4
- package/out/ui/packages/imageList/components/ImageList.luau +1 -1
- package/out/ui/packages/imageList/components/ImageList.styles.luau +0 -1
- package/out/ui/packages/index.d.ts +1 -0
- package/out/ui/packages/init.luau +3 -0
- package/out/ui/packages/markdown/components/Markdown.d.ts +6 -0
- package/out/ui/packages/markdown/components/Markdown.luau +228 -0
- package/out/ui/packages/markdown/components/Markdown.styles.d.ts +2 -0
- package/out/ui/packages/markdown/components/Markdown.styles.luau +101 -0
- package/out/ui/packages/markdown/components/MarkdownEditor.d.ts +16 -0
- package/out/ui/packages/markdown/components/MarkdownEditor.luau +322 -0
- package/out/ui/packages/markdown/components/MarkdownEditor.styles.d.ts +6 -0
- package/out/ui/packages/markdown/components/MarkdownEditor.styles.luau +132 -0
- package/out/ui/packages/markdown/htmlToMarkdown.d.ts +2 -0
- package/out/ui/packages/markdown/htmlToMarkdown.luau +350 -0
- package/out/ui/packages/markdown/index.d.ts +8 -0
- package/out/ui/packages/markdown/init.luau +11 -0
- package/out/ui/packages/markdown/parseMarkdown.d.ts +42 -0
- package/out/ui/packages/markdown/parseMarkdown.luau +459 -0
- package/out/ui/packages/menu/components/Menu.luau +1 -1
- package/out/ui/packages/select/components/Select.luau +2 -39
- package/out/ui/packages/splitPane/components/splitLook.d.ts +1 -1
- package/out/ui/packages/stateMatrix.luau +78 -31
- package/out/ui/packages/switch/components/switchLook.d.ts +1 -1
- package/package.json +2 -2
- package/out/ui/packages/select/components/selectMotion.d.ts +0 -2
- package/out/ui/packages/select/components/selectMotion.luau +0 -12
|
@@ -2050,96 +2050,143 @@ local function miscRows()
|
|
|
2050
2050
|
local _Length_52 = #_array_53
|
|
2051
2051
|
table.move(_array_53, 1, _Length_52, _length + 1, _array)
|
|
2052
2052
|
_length += _Length_52
|
|
2053
|
-
local _array_54 = pair("
|
|
2054
|
-
|
|
2053
|
+
local _array_54 = pair("ImageList", "untitled", {
|
|
2054
|
+
text = "",
|
|
2055
2055
|
})
|
|
2056
2056
|
local _Length_53 = #_array_54
|
|
2057
2057
|
table.move(_array_54, 1, _Length_53, _length + 1, _array)
|
|
2058
2058
|
_length += _Length_53
|
|
2059
|
-
local _array_55 = pair("SpeedDial", "
|
|
2060
|
-
open =
|
|
2059
|
+
local _array_55 = pair("SpeedDial", "closed", {
|
|
2060
|
+
open = false,
|
|
2061
2061
|
})
|
|
2062
2062
|
local _Length_54 = #_array_55
|
|
2063
2063
|
table.move(_array_55, 1, _Length_54, _length + 1, _array)
|
|
2064
2064
|
_length += _Length_54
|
|
2065
|
-
local _array_56 = pair("SpeedDial", "
|
|
2066
|
-
open =
|
|
2067
|
-
disabled = true,
|
|
2065
|
+
local _array_56 = pair("SpeedDial", "open", {
|
|
2066
|
+
open = true,
|
|
2068
2067
|
})
|
|
2069
2068
|
local _Length_55 = #_array_56
|
|
2070
2069
|
table.move(_array_56, 1, _Length_55, _length + 1, _array)
|
|
2071
2070
|
_length += _Length_55
|
|
2072
|
-
local _array_57 = pair("SpeedDial", "
|
|
2073
|
-
open =
|
|
2074
|
-
|
|
2071
|
+
local _array_57 = pair("SpeedDial", "disabled", {
|
|
2072
|
+
open = false,
|
|
2073
|
+
disabled = true,
|
|
2075
2074
|
})
|
|
2076
2075
|
local _Length_56 = #_array_57
|
|
2077
2076
|
table.move(_array_57, 1, _Length_56, _length + 1, _array)
|
|
2078
2077
|
_length += _Length_56
|
|
2079
|
-
local _array_58 = pair("
|
|
2080
|
-
|
|
2078
|
+
local _array_58 = pair("SpeedDial", "down", {
|
|
2079
|
+
open = true,
|
|
2080
|
+
variant = "down",
|
|
2081
2081
|
})
|
|
2082
2082
|
local _Length_57 = #_array_58
|
|
2083
2083
|
table.move(_array_58, 1, _Length_57, _length + 1, _array)
|
|
2084
2084
|
_length += _Length_57
|
|
2085
|
-
local _array_59 = pair("FormLabel", "
|
|
2085
|
+
local _array_59 = pair("FormLabel", "default", {
|
|
2086
2086
|
text = "Email",
|
|
2087
|
-
value = true,
|
|
2088
2087
|
})
|
|
2089
2088
|
local _Length_58 = #_array_59
|
|
2090
2089
|
table.move(_array_59, 1, _Length_58, _length + 1, _array)
|
|
2091
2090
|
_length += _Length_58
|
|
2092
|
-
local _array_60 = pair("FormLabel", "
|
|
2091
|
+
local _array_60 = pair("FormLabel", "required", {
|
|
2093
2092
|
text = "Email",
|
|
2094
|
-
|
|
2093
|
+
value = true,
|
|
2095
2094
|
})
|
|
2096
2095
|
local _Length_59 = #_array_60
|
|
2097
2096
|
table.move(_array_60, 1, _Length_59, _length + 1, _array)
|
|
2098
2097
|
_length += _Length_59
|
|
2099
|
-
local _array_61 = pair("
|
|
2100
|
-
text = "
|
|
2098
|
+
local _array_61 = pair("FormLabel", "error", {
|
|
2099
|
+
text = "Email",
|
|
2100
|
+
hasError = true,
|
|
2101
2101
|
})
|
|
2102
2102
|
local _Length_60 = #_array_61
|
|
2103
2103
|
table.move(_array_61, 1, _Length_60, _length + 1, _array)
|
|
2104
2104
|
_length += _Length_60
|
|
2105
|
-
local _array_62 = pair("FormHelperText", "
|
|
2106
|
-
text = "
|
|
2107
|
-
hasError = true,
|
|
2105
|
+
local _array_62 = pair("FormHelperText", "default", {
|
|
2106
|
+
text = "We never share this",
|
|
2108
2107
|
})
|
|
2109
2108
|
local _Length_61 = #_array_62
|
|
2110
2109
|
table.move(_array_62, 1, _Length_61, _length + 1, _array)
|
|
2111
2110
|
_length += _Length_61
|
|
2112
|
-
local _array_63 = pair("
|
|
2113
|
-
|
|
2111
|
+
local _array_63 = pair("FormHelperText", "error", {
|
|
2112
|
+
text = "Required",
|
|
2113
|
+
hasError = true,
|
|
2114
2114
|
})
|
|
2115
2115
|
local _Length_62 = #_array_63
|
|
2116
2116
|
table.move(_array_63, 1, _Length_62, _length + 1, _array)
|
|
2117
2117
|
_length += _Length_62
|
|
2118
|
-
local _array_64 = pair("Menu", "
|
|
2119
|
-
open =
|
|
2118
|
+
local _array_64 = pair("Menu", "closed", {
|
|
2119
|
+
open = false,
|
|
2120
2120
|
})
|
|
2121
2121
|
local _Length_63 = #_array_64
|
|
2122
2122
|
table.move(_array_64, 1, _Length_63, _length + 1, _array)
|
|
2123
2123
|
_length += _Length_63
|
|
2124
|
-
local _array_65 = pair("Menu", "
|
|
2124
|
+
local _array_65 = pair("Menu", "open", {
|
|
2125
2125
|
open = true,
|
|
2126
|
-
options = {},
|
|
2127
2126
|
})
|
|
2128
2127
|
local _Length_64 = #_array_65
|
|
2129
2128
|
table.move(_array_65, 1, _Length_64, _length + 1, _array)
|
|
2130
2129
|
_length += _Length_64
|
|
2131
|
-
local _array_66 = pair("Menu", "
|
|
2130
|
+
local _array_66 = pair("Menu", "empty", {
|
|
2132
2131
|
open = true,
|
|
2133
|
-
|
|
2132
|
+
options = {},
|
|
2134
2133
|
})
|
|
2135
2134
|
local _Length_65 = #_array_66
|
|
2136
2135
|
table.move(_array_66, 1, _Length_65, _length + 1, _array)
|
|
2137
2136
|
_length += _Length_65
|
|
2138
|
-
local _array_67 = pair("Menu", "
|
|
2137
|
+
local _array_67 = pair("Menu", "dense", {
|
|
2138
|
+
open = true,
|
|
2139
|
+
variant = "dense",
|
|
2140
|
+
})
|
|
2141
|
+
local _Length_66 = #_array_67
|
|
2142
|
+
table.move(_array_67, 1, _Length_66, _length + 1, _array)
|
|
2143
|
+
_length += _Length_66
|
|
2144
|
+
local _array_68 = pair("Menu", "selected", {
|
|
2139
2145
|
open = true,
|
|
2140
2146
|
selected = "a",
|
|
2141
2147
|
})
|
|
2142
|
-
|
|
2148
|
+
local _Length_67 = #_array_68
|
|
2149
|
+
table.move(_array_68, 1, _Length_67, _length + 1, _array)
|
|
2150
|
+
_length += _Length_67
|
|
2151
|
+
local _array_69 = pair("Markdown", "default", {
|
|
2152
|
+
text = "# Title\n\nHello **world**",
|
|
2153
|
+
})
|
|
2154
|
+
local _Length_68 = #_array_69
|
|
2155
|
+
table.move(_array_69, 1, _Length_68, _length + 1, _array)
|
|
2156
|
+
_length += _Length_68
|
|
2157
|
+
local _array_70 = pair("Markdown", "empty", {
|
|
2158
|
+
text = "",
|
|
2159
|
+
})
|
|
2160
|
+
local _Length_69 = #_array_70
|
|
2161
|
+
table.move(_array_70, 1, _Length_69, _length + 1, _array)
|
|
2162
|
+
_length += _Length_69
|
|
2163
|
+
local _array_71 = pair("MarkdownEditor", "split", {
|
|
2164
|
+
text = "# Title",
|
|
2165
|
+
variant = "split",
|
|
2166
|
+
})
|
|
2167
|
+
local _Length_70 = #_array_71
|
|
2168
|
+
table.move(_array_71, 1, _Length_70, _length + 1, _array)
|
|
2169
|
+
_length += _Length_70
|
|
2170
|
+
local _array_72 = pair("MarkdownEditor", "edit", {
|
|
2171
|
+
text = "# Title",
|
|
2172
|
+
variant = "edit",
|
|
2173
|
+
})
|
|
2174
|
+
local _Length_71 = #_array_72
|
|
2175
|
+
table.move(_array_72, 1, _Length_71, _length + 1, _array)
|
|
2176
|
+
_length += _Length_71
|
|
2177
|
+
local _array_73 = pair("MarkdownEditor", "preview", {
|
|
2178
|
+
text = "# Title",
|
|
2179
|
+
variant = "preview",
|
|
2180
|
+
})
|
|
2181
|
+
local _Length_72 = #_array_73
|
|
2182
|
+
table.move(_array_73, 1, _Length_72, _length + 1, _array)
|
|
2183
|
+
_length += _Length_72
|
|
2184
|
+
local _array_74 = pair("MarkdownEditor", "density-compact", {
|
|
2185
|
+
text = "# Title",
|
|
2186
|
+
density = "compact",
|
|
2187
|
+
variant = "split",
|
|
2188
|
+
})
|
|
2189
|
+
table.move(_array_74, 1, #_array_74, _length + 1, _array)
|
|
2143
2190
|
return _array
|
|
2144
2191
|
end
|
|
2145
2192
|
local function concatRows(...)
|
|
@@ -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.55 | 0.35 | 0.15 | 0.65 | 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): {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rbxts/uiblox",
|
|
3
|
-
"version": "0.2.0-alpha.
|
|
3
|
+
"version": "0.2.0-alpha.23",
|
|
4
4
|
"description": "UI Library and theming for roblox-ts projects",
|
|
5
5
|
"main": "out/init.luau",
|
|
6
6
|
"packageManager": "pnpm@11.3.0",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"build": "rbxtsc",
|
|
9
9
|
"watch": "rbxtsc -w",
|
|
10
10
|
"pack:check": "node scripts/pack-check.mjs",
|
|
11
|
-
"test": "node scripts/no-internal-refs.check.mjs && node scripts/import-case.check.mjs && node --experimental-strip-types scripts/theme-scope.check.mjs && node --experimental-strip-types scripts/style-types.check.mjs && node --experimental-strip-types scripts/style-cache.check.mjs && node --experimental-strip-types scripts/style-variants.check.mjs && node --experimental-strip-types scripts/component-styles.check.mjs && node --experimental-strip-types scripts/interaction-styles.check.mjs && node --experimental-strip-types scripts/resolve-style.check.mjs && node --experimental-strip-types scripts/density.check.mjs && node --experimental-strip-types scripts/styles.check.mjs && node --experimental-strip-types scripts/contrast.check.mjs && node --experimental-strip-types scripts/primitives.check.mjs && node --experimental-strip-types scripts/paper.check.mjs && node --experimental-strip-types scripts/list-item.check.mjs && node --experimental-strip-types scripts/slider.check.mjs && node --experimental-strip-types scripts/input.check.mjs && node --experimental-strip-types scripts/menu.check.mjs && node --experimental-strip-types scripts/guard.check.mjs && node --experimental-strip-types scripts/breakpoints.check.mjs && node --experimental-strip-types scripts/focus-trap.check.mjs && node --experimental-strip-types scripts/select-typeahead.check.mjs && node --experimental-strip-types scripts/select-groups.check.mjs && node --experimental-strip-types scripts/select-multi.check.mjs && node --experimental-strip-types scripts/select-
|
|
11
|
+
"test": "node scripts/no-internal-refs.check.mjs && node scripts/import-case.check.mjs && node --experimental-strip-types scripts/theme-scope.check.mjs && node --experimental-strip-types scripts/style-types.check.mjs && node --experimental-strip-types scripts/style-cache.check.mjs && node --experimental-strip-types scripts/style-variants.check.mjs && node --experimental-strip-types scripts/component-styles.check.mjs && node --experimental-strip-types scripts/interaction-styles.check.mjs && node --experimental-strip-types scripts/resolve-style.check.mjs && node --experimental-strip-types scripts/density.check.mjs && node --experimental-strip-types scripts/styles.check.mjs && node --experimental-strip-types scripts/contrast.check.mjs && node --experimental-strip-types scripts/primitives.check.mjs && node --experimental-strip-types scripts/paper.check.mjs && node --experimental-strip-types scripts/list-item.check.mjs && node --experimental-strip-types scripts/slider.check.mjs && node --experimental-strip-types scripts/input.check.mjs && node --experimental-strip-types scripts/menu.check.mjs && node --experimental-strip-types scripts/guard.check.mjs && node --experimental-strip-types scripts/breakpoints.check.mjs && node --experimental-strip-types scripts/focus-trap.check.mjs && node --experimental-strip-types scripts/select-typeahead.check.mjs && node --experimental-strip-types scripts/select-groups.check.mjs && node --experimental-strip-types scripts/select-multi.check.mjs && node --experimental-strip-types scripts/select-polish.check.mjs && node --experimental-strip-types scripts/reduced-motion.check.mjs && node --experimental-strip-types scripts/card.check.mjs && node --experimental-strip-types scripts/chip.check.mjs && node --experimental-strip-types scripts/badge.check.mjs && node --experimental-strip-types scripts/avatar.check.mjs && node --experimental-strip-types scripts/imageList.check.mjs && node --experimental-strip-types scripts/drawer.check.mjs && node --experimental-strip-types scripts/breadcrumbs.check.mjs && node --experimental-strip-types scripts/pagination.check.mjs && node --experimental-strip-types scripts/stepper.check.mjs && node --experimental-strip-types scripts/accordion.check.mjs && node --experimental-strip-types scripts/snackbar.check.mjs && node --experimental-strip-types scripts/table.check.mjs && node --experimental-strip-types scripts/autocomplete.check.mjs && node --experimental-strip-types scripts/field-loading.check.mjs && node --experimental-strip-types scripts/fab.check.mjs && node --experimental-strip-types scripts/appbar.check.mjs && node --experimental-strip-types scripts/bottom-navigation.check.mjs && node --experimental-strip-types scripts/alert.check.mjs && node --experimental-strip-types scripts/toggle-button.check.mjs && node --experimental-strip-types scripts/link.check.mjs && node --experimental-strip-types scripts/rating.check.mjs && node --experimental-strip-types scripts/stack.check.mjs && node --experimental-strip-types scripts/flex-item.check.mjs && node --experimental-strip-types scripts/grid.check.mjs && node --experimental-strip-types scripts/speed-dial.check.mjs && node --experimental-strip-types scripts/form-text.check.mjs && node --experimental-strip-types scripts/box.check.mjs && node --experimental-strip-types scripts/image-list.check.mjs && node --experimental-strip-types scripts/radio-group.check.mjs && node --experimental-strip-types scripts/container.check.mjs && node --experimental-strip-types scripts/divider.check.mjs && node --experimental-strip-types scripts/markdown.check.mjs && node --experimental-strip-types scripts/switch.check.mjs && node --experimental-strip-types scripts/tabs.check.mjs && node --experimental-strip-types scripts/dialog.check.mjs && node --experimental-strip-types scripts/backdrop.check.mjs && node --experimental-strip-types scripts/cframe-editor.check.mjs && node --experimental-strip-types scripts/enum-picker.check.mjs && node --experimental-strip-types scripts/number-range.check.mjs && node --experimental-strip-types scripts/rect-editor.check.mjs && node --experimental-strip-types scripts/asset-field.check.mjs && node --experimental-strip-types scripts/gradient-editor.check.mjs && node --experimental-strip-types scripts/ray-editor.check.mjs && node --experimental-strip-types scripts/physical-properties.check.mjs && node --experimental-strip-types scripts/brickcolor-picker.check.mjs",
|
|
12
12
|
"prepublishOnly": "pnpm build"
|
|
13
13
|
},
|
|
14
14
|
"keywords": [
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
-- Compiled with roblox-ts v3.0.0
|
|
2
|
-
local SELECT_MENU_SECONDS = 0.12
|
|
3
|
-
local function menuHold(open, reducedMotion)
|
|
4
|
-
if open or reducedMotion == true then
|
|
5
|
-
return 0
|
|
6
|
-
end
|
|
7
|
-
return SELECT_MENU_SECONDS
|
|
8
|
-
end
|
|
9
|
-
return {
|
|
10
|
-
menuHold = menuHold,
|
|
11
|
-
SELECT_MENU_SECONDS = SELECT_MENU_SECONDS,
|
|
12
|
-
}
|