@osrd-project/ui-core 0.0.80 → 0.0.83
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/dist/components/{inputs/Checkbox → Checkbox}/Checkbox.d.ts +3 -3
- package/dist/components/ComboBox/ComboBox.d.ts +34 -0
- package/dist/components/Dialog.d.ts +22 -0
- package/dist/components/SegmentedControl.d.ts +12 -0
- package/dist/components/Select.d.ts +3 -2
- package/dist/components/Table/Table.d.ts +15 -0
- package/dist/components/Table/tableAmbientThemes.d.ts +22 -0
- package/dist/components/{inputs/TextArea.d.ts → TextArea.d.ts} +1 -1
- package/dist/hooks/__tests__/useOutsideClick.spec.d.ts +1 -0
- package/dist/hooks/useOutsideClick.d.ts +1 -1
- package/dist/index.d.ts +18 -14
- package/dist/index.esm.js +321 -135
- package/dist/index.esm.js.map +1 -1
- package/dist/theme.css +436 -258
- package/dist/theme.css.map +1 -1
- package/package.json +11 -10
- package/dist/components/inputs/ComboBox/ComboBox.d.ts +0 -20
- package/dist/components/{buttons/Button.d.ts → Button.d.ts} +0 -0
- package/dist/components/{inputs/Checkbox → Checkbox}/CheckboxList.d.ts +0 -0
- package/dist/components/{inputs/Checkbox → Checkbox}/CheckboxTree.d.ts +1 -1
- package/dist/components/{inputs/Checkbox → Checkbox}/__tests__/utils.spec.d.ts +0 -0
- package/dist/components/{inputs/Checkbox → Checkbox}/index.d.ts +0 -0
- package/dist/components/{inputs/Checkbox → Checkbox}/type.d.ts +0 -0
- package/dist/components/{inputs/Checkbox → Checkbox}/utils.d.ts +0 -0
- package/dist/components/{inputs/ComboBox → ComboBox}/index.d.ts +0 -0
- package/dist/components/{inputs/ComboBox → ComboBox}/useDefaultComboBox.d.ts +0 -0
- package/dist/components/{inputs/datePicker → DatePicker}/Calendar.d.ts +0 -0
- package/dist/components/{inputs/datePicker → DatePicker}/CalendarPicker.d.ts +0 -0
- package/dist/components/{inputs/datePicker → DatePicker}/DatePicker.d.ts +1 -1
- package/dist/components/{inputs/datePicker → DatePicker}/__tests__/useCalendar.spec.d.ts +0 -0
- package/dist/components/{inputs/datePicker → DatePicker}/__tests__/useCalendarPicker.spec.d.ts +0 -0
- package/dist/components/{inputs/datePicker → DatePicker}/__tests__/useDatePicker.spec.d.ts +0 -0
- package/dist/components/{inputs/datePicker → DatePicker}/__tests__/utils.spec.d.ts +0 -0
- package/dist/components/{inputs/datePicker → DatePicker}/index.d.ts +0 -0
- package/dist/components/{inputs/datePicker → DatePicker}/type.d.ts +0 -0
- package/dist/components/{inputs/datePicker → DatePicker}/useCalendar.d.ts +0 -0
- package/dist/components/{inputs/datePicker → DatePicker}/useCalendarPicker.d.ts +0 -0
- package/dist/components/{inputs/datePicker → DatePicker}/useDatePicker.d.ts +1 -1
- /package/dist/components/{inputs/datePicker → DatePicker}/utils.d.ts +0 -0
- /package/dist/components/{inputs/FieldWrapper.d.ts → FieldWrapper.d.ts} +0 -0
- /package/dist/components/{inputs/Hint.d.ts → Hint.d.ts} +0 -0
- /package/dist/components/{inputs/Input.d.ts → Input.d.ts} +0 -0
- /package/dist/components/{Modal.d.ts → InputModal.d.ts} +0 -0
- /package/dist/components/{inputs/InputStatusIcon.d.ts → InputStatusIcon.d.ts} +0 -0
- /package/dist/components/{inputs/Label.d.ts → Label.d.ts} +0 -0
- /package/dist/components/{inputs/PasswordInput.d.ts → PasswordInput.d.ts} +0 -0
- /package/dist/components/{inputs/RadioButton.d.ts → RadioButton.d.ts} +0 -0
- /package/dist/components/{inputs/RadioGroup.d.ts → RadioGroup.d.ts} +0 -0
- /package/dist/components/{inputs/Slider.d.ts → Slider.d.ts} +0 -0
- /package/dist/components/{inputs/StatusMessage.d.ts → StatusMessage.d.ts} +0 -0
- /package/dist/components/{inputs/TimePicker.d.ts → TimePicker.d.ts} +0 -0
- /package/dist/components/{inputs/TokenInput.d.ts → TokenInput.d.ts} +0 -0
- /package/dist/components/{inputs/tolerancePicker → TolerancePicker}/TolerancePicker.d.ts +0 -0
- /package/dist/components/{inputs/tolerancePicker → TolerancePicker}/ToleranceRangeGrid.d.ts +0 -0
- /package/dist/components/{inputs/tolerancePicker → TolerancePicker}/consts.d.ts +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@osrd-project/ui-core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.83",
|
|
4
4
|
"license": "LGPL-3.0-or-later",
|
|
5
5
|
"bugs": "https://github.com/OpenRailAssociation/osrd/issues",
|
|
6
6
|
"repository": {
|
|
@@ -32,23 +32,24 @@
|
|
|
32
32
|
"watch": "rollup -c -w",
|
|
33
33
|
"test": "vitest run",
|
|
34
34
|
"prepublishOnly": "npm run clean && npm run build",
|
|
35
|
-
"lint": "eslint src --max-warnings 0 &&
|
|
36
|
-
"lint:fix": "eslint src --fix &&
|
|
35
|
+
"lint": "eslint src --max-warnings 0 && oxfmt . --check",
|
|
36
|
+
"lint:fix": "eslint src --fix && oxfmt . --write"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
39
|
"react": "^18.0.0 || ^19.1.0"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@osrd-project/ui-icons": "0.0.
|
|
42
|
+
"@osrd-project/ui-icons": "0.0.83",
|
|
43
43
|
"classnames": "^2.5.1"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@tailwindcss/postcss": "^4.
|
|
46
|
+
"@tailwindcss/postcss": "^4.2.4",
|
|
47
47
|
"@testing-library/dom": "^10.1.0",
|
|
48
|
-
"@testing-library/react": "^16.
|
|
49
|
-
"@types/react": "^19.2.
|
|
50
|
-
"@types/react-dom": "^19.2.
|
|
51
|
-
"jsdom": "^
|
|
52
|
-
"tailwindcss": "^4.
|
|
48
|
+
"@testing-library/react": "^16.3.2",
|
|
49
|
+
"@types/react": "^19.2.14",
|
|
50
|
+
"@types/react-dom": "^19.2.3",
|
|
51
|
+
"jsdom": "^28.1.0",
|
|
52
|
+
"tailwindcss": "^4.2.2",
|
|
53
|
+
"vitest": "^4.1.5"
|
|
53
54
|
}
|
|
54
55
|
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import React, { type ReactNode } from 'react';
|
|
2
|
-
import { type InputProps } from '../Input';
|
|
3
|
-
export type ComboBoxProps<T> = Omit<InputProps, 'value'> & {
|
|
4
|
-
value?: T;
|
|
5
|
-
suggestions: Array<T>;
|
|
6
|
-
customLabel?: ReactNode;
|
|
7
|
-
numberOfSuggestionsToShow?: number;
|
|
8
|
-
getSuggestionLabel: (option: T) => string;
|
|
9
|
-
onSelectSuggestion: (option: T | undefined) => void;
|
|
10
|
-
resetSuggestions: () => void;
|
|
11
|
-
testIdPrefix?: string;
|
|
12
|
-
};
|
|
13
|
-
/**
|
|
14
|
-
* ComboBox component
|
|
15
|
-
*
|
|
16
|
-
* You can use the hook useDefaultComboBox to get the default behavior.
|
|
17
|
-
* See the stories.
|
|
18
|
-
*/
|
|
19
|
-
declare const ComboBox: <T>({ suggestions, customLabel, numberOfSuggestionsToShow, value, small, getSuggestionLabel, onChange, onSelectSuggestion, resetSuggestions, testIdPrefix, ...inputProps }: ComboBoxProps<T>) => React.JSX.Element;
|
|
20
|
-
export default ComboBox;
|
|
File without changes
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type CheckboxTreeItem } from './type';
|
|
3
2
|
import { type FieldWrapperProps } from '../FieldWrapper';
|
|
3
|
+
import { type CheckboxTreeItem } from './type';
|
|
4
4
|
export type CheckboxesTreeProps = Omit<FieldWrapperProps, 'children'> & {
|
|
5
5
|
readOnly?: boolean;
|
|
6
6
|
items: CheckboxTreeItem[];
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type CalendarSlot } from '.';
|
|
3
|
-
import { type CalendarPickerPublicProps } from './CalendarPicker';
|
|
4
3
|
import { type InputProps } from '../Input';
|
|
4
|
+
import { type CalendarPickerPublicProps } from './CalendarPicker';
|
|
5
5
|
type BaseDatePickerProps = {
|
|
6
6
|
selectableSlot?: CalendarSlot;
|
|
7
7
|
inputProps: InputProps;
|
|
File without changes
|
package/dist/components/{inputs/datePicker → DatePicker}/__tests__/useCalendarPicker.spec.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { DatePickerProps } from './DatePicker';
|
|
2
1
|
import type { StatusWithMessage } from '../StatusMessage';
|
|
2
|
+
import type { DatePickerProps } from './DatePicker';
|
|
3
3
|
export default function useDatePicker(datePickerProps: DatePickerProps): {
|
|
4
4
|
showPicker: boolean;
|
|
5
5
|
inputValue: string;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|