reburn-ui 0.2.1 → 0.3.1
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/core/MantineProvider/color-functions/get-contrast-color.svelte.js +1 -1
- package/dist/core/MantineProvider/color-functions/index.d.ts +1 -1
- package/dist/core/MantineProvider/color-functions/index.js +1 -1
- package/dist/core/MantineProvider/color-functions/parse-theme-color.svelte.js +1 -1
- package/dist/core/MantineProvider/theme.svelte.js +1 -1
- package/dist/core/MantineProvider/theme.types.d.ts +5 -6
- package/dist/core/charts/ChartRoot/ChartContext.svelte.d.ts +64 -0
- package/dist/core/charts/ChartRoot/ChartContext.svelte.js +56 -0
- package/dist/core/charts/ChartRoot/ChartRoot.svelte +238 -0
- package/dist/core/charts/ChartRoot/ChartRoot.svelte.d.ts +87 -0
- package/dist/core/charts/ChartRoot/ChartXGrid.svelte +32 -0
- package/dist/core/charts/ChartRoot/ChartXGrid.svelte.d.ts +18 -0
- package/dist/core/charts/ChartRoot/ChartXLabels.svelte +26 -0
- package/dist/core/charts/ChartRoot/ChartXLabels.svelte.d.ts +18 -0
- package/dist/core/charts/ChartRoot/ChartYGrid.svelte +32 -0
- package/dist/core/charts/ChartRoot/ChartYGrid.svelte.d.ts +18 -0
- package/dist/core/charts/ChartRoot/ChartYLabels.svelte +31 -0
- package/dist/core/charts/ChartRoot/ChartYLabels.svelte.d.ts +18 -0
- package/dist/core/charts/ChartRoot/tickLabels.d.ts +8 -0
- package/dist/core/charts/ChartRoot/tickLabels.js +21 -0
- package/dist/core/charts/ChartTooltip/ChartTooltip.svelte +260 -0
- package/dist/core/charts/ChartTooltip/ChartTooltip.svelte.d.ts +34 -0
- package/dist/core/charts/ChartTooltip/ChartTooltipData.svelte +47 -0
- package/dist/core/charts/ChartTooltip/ChartTooltipData.svelte.d.ts +29 -0
- package/dist/core/charts/ChartTooltip/utils/findClosestElement.d.ts +2 -0
- package/dist/core/charts/ChartTooltip/utils/findClosestElement.js +21 -0
- package/dist/core/charts/ChartTooltip/utils/getTooltipPosition.d.ts +9 -0
- package/dist/core/charts/ChartTooltip/utils/getTooltipPosition.js +6 -0
- package/dist/core/charts/CompositeChart/CompositeChart.svelte +82 -0
- package/dist/core/charts/CompositeChart/CompositeChart.svelte.d.ts +60 -0
- package/dist/core/charts/LineChart/LineChart.svelte +30 -321
- package/dist/core/charts/LineChart/LineChart.svelte.d.ts +16 -64
- package/dist/core/charts/LineChart/LineChartInner.svelte +66 -0
- package/dist/core/charts/LineChart/LineChartInner.svelte.d.ts +34 -0
- package/dist/core/charts/ScatterChart/ScatterChart.svelte +33 -0
- package/dist/core/charts/ScatterChart/ScatterChart.svelte.d.ts +39 -0
- package/dist/core/charts/ScatterChart/ScatterChartInner.svelte +67 -0
- package/dist/core/charts/ScatterChart/ScatterChartInner.svelte.d.ts +32 -0
- package/dist/core/charts/d3/array/tick.d.ts +1 -0
- package/dist/core/charts/d3/array/tick.js +66 -0
- package/dist/core/charts/d3/scale/scaleLinear.d.ts +4 -0
- package/dist/core/charts/d3/scale/scaleLinear.js +14 -0
- package/dist/core/charts/d3/shape/curve/curveLinear.d.ts +2 -0
- package/dist/core/charts/d3/shape/curve/curveLinear.js +16 -0
- package/dist/core/charts/d3/shape/line.d.ts +7 -0
- package/dist/core/charts/d3/shape/line.js +6 -0
- package/dist/core/charts/d3/shape/toFixed.d.ts +1 -0
- package/dist/core/charts/d3/shape/toFixed.js +7 -0
- package/dist/core/charts/d3/shape/withPath.d.ts +1 -0
- package/dist/core/charts/d3/shape/withPath.js +18 -0
- package/dist/core/charts/index.d.ts +5 -0
- package/dist/core/charts/index.js +5 -0
- package/dist/core/charts/types.d.ts +10 -0
- package/dist/core/charts/utils/minMaxObject.d.ts +6 -0
- package/dist/core/charts/utils/minMaxObject.js +26 -0
- package/dist/core/components/Badge/Badge.svelte +1 -1
- package/dist/core/components/Burger/Burger.svelte +1 -1
- package/dist/core/components/Checkbox/Checkbox.svelte +1 -1
- package/dist/core/components/Checkbox/CheckboxCard/CheckboxCard.svelte +8 -6
- package/dist/core/components/Checkbox/CheckboxIndicator.svelte +4 -1
- package/dist/core/components/ColorPicker/ColorSlider.svelte +10 -14
- package/dist/core/components/ColorPicker/Saturation.svelte +8 -4
- package/dist/core/components/ColorPicker/converters/index.d.ts +2 -2
- package/dist/core/components/ColorPicker/converters/index.js +2 -2
- package/dist/core/components/Combobox/ComboboxChevron.svelte +4 -3
- package/dist/core/components/Combobox/ComboboxDropdown.svelte +0 -3
- package/dist/core/components/Dropzone/Dropzone.svelte +396 -0
- package/dist/core/components/Dropzone/Dropzone.svelte.d.ts +104 -0
- package/dist/core/components/Dropzone/DropzoneContext.svelte.js +3 -0
- package/dist/core/components/Dropzone/index.d.ts +3 -0
- package/dist/core/components/Dropzone/index.js +2 -0
- package/dist/core/components/Dropzone/mime-types.d.ts +30 -0
- package/dist/core/components/Dropzone/mime-types.js +41 -0
- package/dist/core/components/Dropzone/utils/acceptPropAsAccaptAttr.d.ts +5 -0
- package/dist/core/components/Dropzone/utils/acceptPropAsAccaptAttr.js +21 -0
- package/dist/core/components/Dropzone/utils/fromEvent.d.ts +6 -0
- package/dist/core/components/Dropzone/utils/fromEvent.js +45 -0
- package/dist/core/components/Dropzone/utils/getAllFilesAccepted.d.ts +35 -0
- package/dist/core/components/Dropzone/utils/getAllFilesAccepted.js +69 -0
- package/dist/core/components/Dropzone/utils/isEvtWithFiles.d.ts +1 -0
- package/dist/core/components/Dropzone/utils/isEvtWithFiles.js +8 -0
- package/dist/core/components/Dropzone/utils/isExt.d.ts +4 -0
- package/dist/core/components/Dropzone/utils/isExt.js +6 -0
- package/dist/core/components/Dropzone/utils/isMIMEType.d.ts +6 -0
- package/dist/core/components/Dropzone/utils/isMIMEType.js +8 -0
- package/dist/core/components/Dropzone/utils/isPropagationStopped.d.ts +1 -0
- package/dist/core/components/Dropzone/utils/isPropagationStopped.js +12 -0
- package/dist/core/components/Fieldset/Fieldset.svelte +76 -0
- package/dist/core/components/Fieldset/Fieldset.svelte.d.ts +15 -0
- package/dist/core/components/Floating/CreateFloating.svelte.js +0 -5
- package/dist/core/components/Group/Group.svelte +4 -9
- package/dist/core/components/Input/Input.svelte.d.ts +2 -2
- package/dist/core/components/InputBase/InputBase.svelte.d.ts +2 -2
- package/dist/core/components/Loader/Loader.svelte +1 -1
- package/dist/core/components/LoadingOverlay/LoadingOverlay.svelte +72 -0
- package/dist/core/components/LoadingOverlay/LoadingOverlay.svelte.d.ts +19 -0
- package/dist/core/components/Modal/ModalContent.svelte +4 -2
- package/dist/core/components/NavLink/NavLink.svelte +4 -3
- package/dist/core/components/Notification/Notification.svelte +5 -4
- package/dist/core/components/Pill/Pill.svelte +172 -0
- package/dist/core/components/Pill/Pill.svelte.d.ts +23 -0
- package/dist/core/components/Pill/PillGroup.svelte +47 -0
- package/dist/core/components/Pill/PillGroup.svelte.d.ts +13 -0
- package/dist/core/components/Pill/PillGroupContext.svelte.d.ts +15 -0
- package/dist/core/components/Pill/PillGroupContext.svelte.js +13 -0
- package/dist/core/components/Pill/index.d.ts +8 -0
- package/dist/core/components/Pill/index.js +5 -0
- package/dist/core/components/Progress/ProgressSection.svelte +3 -1
- package/dist/core/components/SegmentedControl/SegmentedControl.svelte +18 -7
- package/dist/core/components/Select/Select.svelte.d.ts +1 -1
- package/dist/core/components/Slider/SliderRoot.svelte +5 -1
- package/dist/core/components/Slider/Thumb.svelte +5 -1
- package/dist/core/components/Slider/Track.svelte +16 -6
- package/dist/core/components/Switch/Switch.svelte +1 -1
- package/dist/core/components/Table/Table.svelte +10 -12
- package/dist/core/components/Table/Table.svelte.d.ts +4 -1
- package/dist/core/components/Table/TableContext.svelte.d.ts +2 -0
- package/dist/core/components/Table/TableContext.svelte.js +1 -0
- package/dist/core/components/Table/TableTh.svelte +10 -1
- package/dist/core/components/Table/getTableDataAttr.d.ts +1 -0
- package/dist/core/components/Table/getTableDataAttr.js +3 -0
- package/dist/core/components/index.d.ts +4 -0
- package/dist/core/components/index.js +4 -0
- package/dist/core/hooks/use-id.d.ts +1 -0
- package/dist/core/hooks/use-id.js +4 -0
- package/dist/core/utils/get-default-z-index.d.ts +1 -1
- package/package.json +11 -9
- package/dist/core/charts/LineChart/LineChart.types.js +0 -1
- package/dist/core/charts/LineChart/types.d.ts +0 -68
- /package/dist/core/MantineProvider/color-functions/{get-primary-shade.d.ts → get-primary-shade.svelte.d.ts} +0 -0
- /package/dist/core/MantineProvider/color-functions/{get-primary-shade.js → get-primary-shade.svelte.js} +0 -0
- /package/dist/core/charts/{LineChart/types.js → types.js} +0 -0
- /package/dist/core/{charts/LineChart/LineChart.types.d.ts → components/Dropzone/DropzoneContext.svelte.d.ts} +0 -0
|
@@ -11,6 +11,8 @@ export { default as ColorSwatch } from './ColorSwatch/ColorSwatch.svelte';
|
|
|
11
11
|
export { ComboboxStore } from './Combobox/ComboboxStore.svelte.js';
|
|
12
12
|
export { default as Combobox } from './Combobox/index.js';
|
|
13
13
|
export { default as CopyButton } from './CopyButton/CopyButton.svelte';
|
|
14
|
+
export * from './Dropzone/index.js';
|
|
15
|
+
export { default as Fieldset } from './Fieldset/Fieldset.svelte';
|
|
14
16
|
export * from './Floating/index.js';
|
|
15
17
|
export { default as FloatingIndicator } from './FloatingIndicator/FloatingIndicator.svelte';
|
|
16
18
|
export { default as Group } from './Group/Group.svelte';
|
|
@@ -18,11 +20,13 @@ export { default as InlineInput } from './InlineInput/InlineInput.svelte';
|
|
|
18
20
|
export { default as Input } from './Input/index.js';
|
|
19
21
|
export { default as InputBase } from './InputBase/InputBase.svelte';
|
|
20
22
|
export { default as Loader } from './Loader/Loader.svelte';
|
|
23
|
+
export { default as LoadingOverlay } from './LoadingOverlay/LoadingOverlay.svelte';
|
|
21
24
|
export { default as Modal } from './Modal/index.js';
|
|
22
25
|
export { default as NavLink } from './NavLink/NavLink.svelte';
|
|
23
26
|
export { default as Notification } from './Notification/Notification.svelte';
|
|
24
27
|
export { default as Overlay } from './Overlay/Overlay.svelte';
|
|
25
28
|
export { default as Paper } from './Paper/Paper.svelte';
|
|
29
|
+
export { default as Pill } from './Pill/index.js';
|
|
26
30
|
export { default as Popover } from './Popover/index.js';
|
|
27
31
|
export { default as Portal } from './Portal/Portal.svelte';
|
|
28
32
|
export { default as Progress } from './Progress/index.js';
|
|
@@ -11,6 +11,8 @@ export { default as ColorSwatch } from './ColorSwatch/ColorSwatch.svelte';
|
|
|
11
11
|
export { ComboboxStore } from './Combobox/ComboboxStore.svelte.js';
|
|
12
12
|
export { default as Combobox } from './Combobox/index.js';
|
|
13
13
|
export { default as CopyButton } from './CopyButton/CopyButton.svelte';
|
|
14
|
+
export * from './Dropzone/index.js';
|
|
15
|
+
export { default as Fieldset } from './Fieldset/Fieldset.svelte';
|
|
14
16
|
export * from './Floating/index.js';
|
|
15
17
|
export { default as FloatingIndicator } from './FloatingIndicator/FloatingIndicator.svelte';
|
|
16
18
|
export { default as Group } from './Group/Group.svelte';
|
|
@@ -18,11 +20,13 @@ export { default as InlineInput } from './InlineInput/InlineInput.svelte';
|
|
|
18
20
|
export { default as Input } from './Input/index.js';
|
|
19
21
|
export { default as InputBase } from './InputBase/InputBase.svelte';
|
|
20
22
|
export { default as Loader } from './Loader/Loader.svelte';
|
|
23
|
+
export { default as LoadingOverlay } from './LoadingOverlay/LoadingOverlay.svelte';
|
|
21
24
|
export { default as Modal } from './Modal/index.js';
|
|
22
25
|
export { default as NavLink } from './NavLink/NavLink.svelte';
|
|
23
26
|
export { default as Notification } from './Notification/Notification.svelte';
|
|
24
27
|
export { default as Overlay } from './Overlay/Overlay.svelte';
|
|
25
28
|
export { default as Paper } from './Paper/Paper.svelte';
|
|
29
|
+
export { default as Pill } from './Pill/index.js';
|
|
26
30
|
export { default as Popover } from './Popover/index.js';
|
|
27
31
|
export { default as Portal } from './Portal/Portal.svelte';
|
|
28
32
|
export { default as Progress } from './Progress/index.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useId(): string;
|
|
@@ -5,5 +5,5 @@ declare const elevations: {
|
|
|
5
5
|
readonly overlay: 400;
|
|
6
6
|
readonly max: 9999;
|
|
7
7
|
};
|
|
8
|
-
export declare function getDefaultZIndex(level: keyof typeof elevations): 100 | 200 |
|
|
8
|
+
export declare function getDefaultZIndex(level: keyof typeof elevations): 100 | 200 | 300 | 400 | 9999;
|
|
9
9
|
export {};
|
package/package.json
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "reburn-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"analyze": "ANALYZE=true
|
|
7
|
+
"analyze": "ANALYZE=true bun run build",
|
|
8
8
|
"dev": "LOCAL_REBURN_UI_INSTALLED=true vite dev",
|
|
9
9
|
"build": "LOCAL_REBURN_UI_INSTALLED=true vite build",
|
|
10
10
|
"preview": "vite preview",
|
|
11
11
|
"prepare": "svelte-kit sync || echo ''",
|
|
12
12
|
"prepack": "LOCAL_REBURN_UI_INSTALLED=true bun vite build && bun svelte-kit sync && bun svelte-package && bun publint",
|
|
13
|
-
"transform-css-files": "bun run scripts/transform-css-files.ts"
|
|
13
|
+
"transform-css-files": "bun run scripts/transform-css-files.ts",
|
|
14
|
+
"lint": "eslint ."
|
|
14
15
|
},
|
|
15
16
|
"files": [
|
|
16
17
|
"dist",
|
|
@@ -49,14 +50,15 @@
|
|
|
49
50
|
"svelte": "^5.29.0"
|
|
50
51
|
},
|
|
51
52
|
"dependencies": {
|
|
52
|
-
"@floating-ui/dom": "^1.7.
|
|
53
|
-
"@iconify/json": "^2.2.
|
|
53
|
+
"@floating-ui/dom": "^1.7.3",
|
|
54
|
+
"@iconify/json": "^2.2.365",
|
|
54
55
|
"@iconify/tools": "^4.1.2",
|
|
55
56
|
"@iconify/types": "^2.0.0",
|
|
56
57
|
"@iconify/utils": "^2.3.0",
|
|
58
|
+
"attr-accept": "^2.2.5",
|
|
57
59
|
"d3": "^7.9.0",
|
|
58
60
|
"dayjs": "^1.11.13",
|
|
59
|
-
"es-toolkit": "^1.39.
|
|
61
|
+
"es-toolkit": "^1.39.8",
|
|
60
62
|
"nanoid": "^5",
|
|
61
63
|
"svelte-parse-markup": "^0.1.5",
|
|
62
64
|
"type-fest": "^4.41.0"
|
|
@@ -65,7 +67,7 @@
|
|
|
65
67
|
"@eslint/compat": "^1.3.1",
|
|
66
68
|
"@eslint/js": "^9.32.0",
|
|
67
69
|
"@sveltejs/adapter-auto": "^6.0.1",
|
|
68
|
-
"@sveltejs/kit": "^2.
|
|
70
|
+
"@sveltejs/kit": "^2.27.0",
|
|
69
71
|
"@sveltejs/package": "^2.4.0",
|
|
70
72
|
"@sveltejs/vite-plugin-svelte": "^6.1.0",
|
|
71
73
|
"@types/bun": "^1.2.19",
|
|
@@ -82,9 +84,9 @@
|
|
|
82
84
|
"publint": "^0.3.12",
|
|
83
85
|
"sass-embedded": "^1.89.2",
|
|
84
86
|
"sonda": "^0.9.0",
|
|
85
|
-
"svelte": "^5.
|
|
87
|
+
"svelte": "^5.37.2",
|
|
86
88
|
"svelte-check": "^4.3.0",
|
|
87
|
-
"typescript": "^5.
|
|
89
|
+
"typescript": "^5.9.2",
|
|
88
90
|
"typescript-eslint": "^8.38.0",
|
|
89
91
|
"vite": "^7.0.6"
|
|
90
92
|
},
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import type { MantineColor } from '../../MantineProvider/theme.types.js';
|
|
2
|
-
export interface ChartReferenceLineProps extends Omit<ReferenceLineProps, 'ref' | 'label'> {
|
|
3
|
-
color?: MantineColor;
|
|
4
|
-
label?: string;
|
|
5
|
-
labelPosition?: LabelProps['position'];
|
|
6
|
-
}
|
|
7
|
-
export interface ChartSeries {
|
|
8
|
-
name: string;
|
|
9
|
-
color?: MantineColor;
|
|
10
|
-
label?: string;
|
|
11
|
-
yAxisId?: string;
|
|
12
|
-
}
|
|
13
|
-
export type BaseChartStylesNames = 'root' | 'container' | 'axis' | 'grid' | 'referenceLine' | 'axisLabel';
|
|
14
|
-
export type ChartData = Record<string, any>[];
|
|
15
|
-
export interface GridChartBaseProps {
|
|
16
|
-
/** Data used to display chart */
|
|
17
|
-
data: ChartData;
|
|
18
|
-
/** Key of the `data` object for x-axis values */
|
|
19
|
-
dataKey: string;
|
|
20
|
-
/** Reference lines that should be displayed on the chart */
|
|
21
|
-
referenceLines?: ChartReferenceLineProps[];
|
|
22
|
-
/** Determines whether x-axis should be displayed, `true` by default */
|
|
23
|
-
withXAxis?: boolean;
|
|
24
|
-
/** Determines whether y-axis should be displayed, `true` by default */
|
|
25
|
-
withYAxis?: boolean;
|
|
26
|
-
/** Props passed down to the `XAxis` recharts component */
|
|
27
|
-
xAxisProps?: Omit<XAxisProps, 'ref'>;
|
|
28
|
-
/** Props passed down to the `YAxis` recharts component */
|
|
29
|
-
yAxisProps?: Omit<YAxisProps, 'ref'>;
|
|
30
|
-
/** Props passed down to the `YAxis` recharts component rendered on the right side */
|
|
31
|
-
rightYAxisProps?: Omit<YAxisProps, 'ref'>;
|
|
32
|
-
/** Props passed down to the `CartesianGrid` component */
|
|
33
|
-
gridProps?: Omit<CartesianGridProps, 'ref'>;
|
|
34
|
-
/** Specifies which axis should have tick line, `'y'` by default */
|
|
35
|
-
tickLine?: 'x' | 'y' | 'xy' | 'none';
|
|
36
|
-
/** Dash array for the grid lines and cursor, `'5 5'` by default */
|
|
37
|
-
strokeDasharray?: string | number;
|
|
38
|
-
/** Specifies which lines should be displayed in the grid, `'x'` by default */
|
|
39
|
-
gridAxis?: 'x' | 'y' | 'xy' | 'none';
|
|
40
|
-
/** Unit displayed next to each tick in y-axis */
|
|
41
|
-
unit?: string;
|
|
42
|
-
/** Tooltip position animation duration in ms, `0` by default */
|
|
43
|
-
tooltipAnimationDuration?: number;
|
|
44
|
-
/** Props passed down to the `Legend` component */
|
|
45
|
-
legendProps?: Omit<LegendProps, 'ref'>;
|
|
46
|
-
/** Props passed down to the `Tooltip` component */
|
|
47
|
-
tooltipProps?: Omit<TooltipProps<any, any>, 'ref'>;
|
|
48
|
-
/** Determines whether chart legend should be displayed, `false` by default */
|
|
49
|
-
withLegend?: boolean;
|
|
50
|
-
/** Determines whether chart tooltip should be displayed, `true` by default */
|
|
51
|
-
withTooltip?: boolean;
|
|
52
|
-
/** Color of the text displayed inside the chart, `'dimmed'` by default */
|
|
53
|
-
textColor?: MantineColor;
|
|
54
|
-
/** Color of the grid and cursor lines, by default depends on color scheme */
|
|
55
|
-
gridColor?: MantineColor;
|
|
56
|
-
/** Chart orientation, `'horizontal'` by default */
|
|
57
|
-
orientation?: 'horizontal' | 'vertical';
|
|
58
|
-
/** A function to format values on Y axis and inside the tooltip */
|
|
59
|
-
valueFormatter?: (value: number) => string;
|
|
60
|
-
/** A label to display below the x-axis */
|
|
61
|
-
xAxisLabel?: string;
|
|
62
|
-
/** A label to display next to the y-axis */
|
|
63
|
-
yAxisLabel?: string;
|
|
64
|
-
/** A label to display next to the right y-axis */
|
|
65
|
-
rightYAxisLabel?: string;
|
|
66
|
-
/** Determines whether additional y-axis should be displayed on the right side of the chart, `false` by default */
|
|
67
|
-
withRightYAxis?: boolean;
|
|
68
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|