Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@
"cross-env": "10.1.0",
"cz-conventional-changelog": "3.3.0",
"date-fns": "4.1.0",
"esbuild-plugin-browserslist": "2.0.0",
"eslint": "9.39.1",
"eslint-plugin-oxlint": "1.31.0",
"eslint-plugin-storybook": "9.1.16",
Expand Down Expand Up @@ -177,7 +176,7 @@
"tsx": "4.21.0",
"turbo": "2.6.1",
"typescript": "5.9.3",
"vite": "7.2.6",
"vite": "8.0.0-beta.0",
"vitest": "3.2.4",
"vitest-canvas-mock": "0.3.3",
"vitest-localstorage-mock": "0.1.2",
Expand Down
1 change: 1 addition & 0 deletions packages/form/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
"@types/final-form-focus": "1.1.7",
"@types/react": "19.2.7",
"@types/react-dom": "19.2.3",
"@ultraviolet/config": "workspace:*",
"@ultraviolet/ui": "workspace:*",
"@utils/test": "workspace:*",
"react": "19.2.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,13 @@ import { useController } from 'react-hook-form'
import { useErrors } from '../../providers'
import type { BaseFieldProps } from '../../types'

type SelectableCardGroupProps = ComponentProps<typeof SelectableCardGroup>

type SelectableCardGroupFieldProps<
TFieldValues extends FieldValues,
TFieldName extends FieldPath<TFieldValues>,
> = BaseFieldProps<TFieldValues, TFieldName> &
Omit<
ComponentProps<typeof SelectableCardGroup>,
'name' | 'onChange' | 'value'
>
Omit<SelectableCardGroupProps, 'name' | 'onChange' | 'value'>

export const SelectableCardGroupField = <
TFieldValues extends FieldValues,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { SelectableCardGroupField } from './SelectableCardGroupField'
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,26 @@ import { useController } from 'react-hook-form'
import { useErrors } from '../../providers'
import type { BaseFieldProps } from '../../types'

type SelectableCardOptionGroupUI = typeof SelectableCardOptionGroup

type SelectableCardOptionGroupFieldProps<
TFieldValues extends FieldValues,
TFieldName extends FieldPath<TFieldValues>,
> = Omit<
ComponentProps<typeof SelectableCardOptionGroup>,
ComponentProps<SelectableCardOptionGroupUI>,
'onChange' | 'onChangeOption'
> &
Partial<
Pick<
ComponentProps<typeof SelectableCardOptionGroup>,
ComponentProps<SelectableCardOptionGroupUI>,
'onChangeOption' | 'onChange'
>
> &
Omit<BaseFieldProps<TFieldValues, TFieldName>, 'label'> & {
optionName?: string
}

export const SelectableCardOptionGroupField = <
const SelectableCardOptionGroupField = <
TFieldValues extends FieldValues,
TFieldName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>,
>({
Expand Down Expand Up @@ -88,3 +90,5 @@ export const SelectableCardOptionGroupField = <
}

SelectableCardOptionGroupField.Option = SelectableCardOptionGroup.Option

export { SelectableCardOptionGroupField }
9 changes: 3 additions & 6 deletions packages/form/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
{
"extends": "./tsconfig.json",
"extends": "@ultraviolet/config/tsconfig/build.json",
"include": ["src"],
"compilerOptions": {
"noEmit": false,
"emitDeclarationOnly": true,
"declaration": true,
"rootDir": "src",
"outDir": "dist",
"skipLibCheck": true
"outDir": "dist"
},
"exclude": [
"*.config.ts",
Expand Down
5 changes: 3 additions & 2 deletions packages/form/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"extends": "../../tsconfig.json",
"extends": "@ultraviolet/config/tsconfig/base.json",
"compilerOptions": {
"baseUrl": "."
"rootDir": "src",
"outDir": "dist"
},
"include": ["src", "vitest.setup.ts"],
"exclude": ["node_modules", "coverage", "dist"]
Expand Down
2 changes: 2 additions & 0 deletions packages/icons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,13 @@
"@babel/core": "7.28.5",
"@types/react": "19.2.7",
"@types/react-dom": "19.2.3",

"@utils/test": "workspace:*",
"react": "19.2.0",
"react-dom": "19.2.0"
},
"dependencies": {
"@ultraviolet/config": "workspace:*",
"@ultraviolet/themes": "workspace:*",
"@vanilla-extract/css": "1.17.4",
"@vanilla-extract/dynamic": "2.1.5",
Expand Down
5 changes: 2 additions & 3 deletions packages/icons/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"extends": "./tsconfig.json",
"extends": "@ultraviolet/config/tsconfig/build.json",
"include": ["src"],
"compilerOptions": {
"noEmit": false,
"emitDeclarationOnly": true,
"rootDir": "src",
"outDir": "dist"
},
Expand Down
7 changes: 4 additions & 3 deletions packages/icons/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"extends": "../../tsconfig.json",
"extends": "@ultraviolet/config/tsconfig/base.json",
"include": ["src", "../../global.d.ts"],
"compilerOptions": {
"baseUrl": "."
"rootDir": "src",
"outDir": "dist"
},
"include": ["src", "../../global.d.ts"],
"exclude": ["node_modules", "coverage", "dist"]
}
1 change: 1 addition & 0 deletions packages/illustrations/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@
"devDependencies": {
"@ultraviolet/icons": "workspace:*",
"@ultraviolet/ui": "workspace:*",
"@ultraviolet/config": "workspace:*",
"@utils/test": "workspace:*",
"@vanilla-extract/vite-plugin": "5.1.1",
"react": "19.2.0",
Expand Down
5 changes: 2 additions & 3 deletions packages/illustrations/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"extends": "./tsconfig.json",
"extends": "@ultraviolet/config/tsconfig/build.json",
"include": ["src"],
"compilerOptions": {
"noEmit": false,
"emitDeclarationOnly": true,
"rootDir": "src",
"outDir": "dist"
},
Expand Down
5 changes: 1 addition & 4 deletions packages/illustrations/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"baseUrl": "."
},
"extends": "@ultraviolet/config/tsconfig/base.json",
"include": ["src", "../../global.d.ts"],
"exclude": ["node_modules", "coverage", "dist"]
}
1 change: 1 addition & 0 deletions packages/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
"devDependencies": {
"@ultraviolet/themes": "workspace:*",
"@ultraviolet/ui": "workspace:*",
"@ultraviolet/config": "workspace:*",
"next": "16.0.7",
"react": "19.2.0",
"react-dom": "19.2.0"
Expand Down
5 changes: 2 additions & 3 deletions packages/nextjs/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"extends": "./tsconfig.json",
"extends": "@ultraviolet/config/tsconfig/build.json",
"include": ["src"],
"compilerOptions": {
"noEmit": false,
"emitDeclarationOnly": true,
"rootDir": "src",
"outDir": "dist"
},
Expand Down
5 changes: 3 additions & 2 deletions packages/nextjs/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"extends": "../../tsconfig.json",
"extends": "@ultraviolet/config/tsconfig/base.json",
"compilerOptions": {
"baseUrl": "."
"rootDir": "src",
"outDir": "dist"
},
"include": ["src", "../../global.d.ts"],
"exclude": ["node_modules", "coverage", "dist"]
Expand Down
1 change: 1 addition & 0 deletions packages/plus/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
"@babel/core": "7.28.5",
"@types/react": "19.2.7",
"@types/react-dom": "19.2.3",
"@ultraviolet/config": "workspace:*",
"@ultraviolet/illustrations": "workspace:*",
"@ultraviolet/ui": "workspace:*",
"@utils/test": "workspace:*",
Expand Down
5 changes: 2 additions & 3 deletions packages/plus/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"extends": "./tsconfig.json",
"extends": "@ultraviolet/config/tsconfig/build.json",
"include": ["src"],
"compilerOptions": {
"noEmit": false,
"emitDeclarationOnly": true,
"rootDir": "src",
"outDir": "dist"
},
Expand Down
8 changes: 0 additions & 8 deletions packages/plus/tsconfig.json

This file was deleted.

1 change: 1 addition & 0 deletions packages/themes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
"@vanilla-extract/dynamic": "2.1.5"
},
"devDependencies": {
"@ultraviolet/config": "workspace:*",
"react": "19.2.0",
"react-dom": "19.2.0"
}
Expand Down
5 changes: 2 additions & 3 deletions packages/themes/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"extends": "./tsconfig.json",
"extends": "@ultraviolet/config/tsconfig/build.json",
"include": ["src"],
"compilerOptions": {
"noEmit": false,
"emitDeclarationOnly": true,
"rootDir": "src",
"outDir": "dist"
},
Expand Down
5 changes: 3 additions & 2 deletions packages/themes/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"extends": "../../tsconfig.json",
"extends": "@ultraviolet/config/tsconfig/base.json",
"compilerOptions": {
"baseUrl": "."
"rootDir": "src",
"outDir": "dist"
},
"include": ["src"],
"exclude": ["node_modules", "coverage", "dist"]
Expand Down
1 change: 1 addition & 0 deletions packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
"react-dom": "18.x || 19.x"
},
"devDependencies": {
"@ultraviolet/config": "workspace:*",
"@babel/core": "7.28.5",
"@types/react": "19.2.7",
"@types/react-dom": "19.2.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/components/Chip/ChipIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import * as Icon from '@ultraviolet/icons'
import type { RefObject } from 'react'
import { useContext } from 'react'
import type { PascalToCamelCaseWithoutSuffix } from 'src/types'
import type { PascalToCamelCaseWithoutSuffix } from '../../types'
import { ChipContext } from './ChipContext'
import { buttonContainer } from './styles.css'

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { SelectableCardOptionGroup } from './SelectableCardOptionGroup'
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ export const DoubleSlider = ({
onFocus={onFocus}
step={step}
style={assignInlineVars({
[leftVar]: `calc(${((selectedIndexes[1] - min) * 100) / (max - min)}% - ${THUMB_SIZE / 2}px`,
[leftVar]: `calc(${(((selectedIndexes[1] ?? 0) - min) * 100) / (max - min)}% - ${THUMB_SIZE / 2}px`,
[thumbColor]:
theme.theme === 'light'
? theme.colors.neutral.background
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,9 @@ export const SingleSlider = ({
THUMB_SIZE / 2 -
sliderWidth / 2

const valueToShow = options ? options[selectedIndex]?.value : selectedIndex
const valueToShow = options?.[selectedIndex]
? options[selectedIndex].value
: selectedIndex

return (
<Stack direction={direction} gap={1} justifyContent="left">
Expand Down
4 changes: 3 additions & 1 deletion packages/ui/src/components/Table/Row.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,9 @@ export const Row = ({
}
disabled={!!selectDisabled}
name="table-select-checkbox"
onChange={() => handleOnChange(id, selectedRowIds[id])}
onChange={() =>
handleOnChange(id, selectedRowIds[id] ?? false)
}
ref={checkboxRowRef}
value={id}
/>
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/components/Text/style.css.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { theme } from '@ultraviolet/themes'
import type { RecipeVariants } from '@vanilla-extract/recipes'
import { recipe } from '@vanilla-extract/recipes'
import type { ExtendedColor } from 'src/theme'
import type { ExtendedColor } from '../../theme'
import { typography } from '../../theme'
import { PROMINENCES } from './constants'
import capitalize from '../../utils/capitalize'
Expand Down
5 changes: 2 additions & 3 deletions packages/ui/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"extends": "./tsconfig.json",
"extends": "@ultraviolet/config/tsconfig/build.json",
"include": ["src"],
"compilerOptions": {
"noEmit": false,
"emitDeclarationOnly": true,
"rootDir": "src",
"outDir": "dist"
},
Expand Down
5 changes: 3 additions & 2 deletions packages/ui/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"extends": "../../tsconfig.json",
"extends": "@ultraviolet/config/tsconfig/build.json",
"compilerOptions": {
"baseUrl": "."
"rootDir": "src",
"outDir": "dist"
},
"include": ["src", "../../global.d.ts", "vitest.setup.ts"],
"exclude": ["node_modules", "coverage", "dist"]
Expand Down
Loading
Loading