@carto/meridian-ds 0.1.1-alpha.1 → 0.1.1-alpha.3
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/Alert-DyuvFDkP.cjs +4 -0
- package/dist/Alert-_PI5QbXW.js +127 -0
- package/dist/TablePaginationActions-B7ycFqaM.cjs +9 -0
- package/dist/{Alert-BawVDNyY.js → TablePaginationActions-OJyfVTms.js} +730 -311
- package/dist/components/index.cjs +1 -1
- package/dist/components/index.js +31 -31
- package/dist/theme/index.cjs +1 -1
- package/dist/theme/index.js +25 -23
- package/dist/types/components/atoms/Button.d.ts +2 -5
- package/dist/types/components/atoms/Button.d.ts.map +1 -1
- package/dist/types/components/atoms/PasswordField.d.ts +1 -2
- package/dist/types/components/atoms/PasswordField.d.ts.map +1 -1
- package/dist/types/components/atoms/SelectField.d.ts +5 -4
- package/dist/types/components/atoms/SelectField.d.ts.map +1 -1
- package/dist/types/components/atoms/Typography.d.ts +1 -6
- package/dist/types/components/atoms/Typography.d.ts.map +1 -1
- package/dist/types/components/molecules/Alert.d.ts +1 -7
- package/dist/types/components/molecules/Alert.d.ts.map +1 -1
- package/dist/types/components/molecules/Autocomplete.d.ts +5 -6
- package/dist/types/components/molecules/Autocomplete.d.ts.map +1 -1
- package/dist/types/components/molecules/MultipleSelectField/MultipleSelectField.d.ts +1 -10
- package/dist/types/components/molecules/MultipleSelectField/MultipleSelectField.d.ts.map +1 -1
- package/dist/types/theme/carto-theme.d.ts +3 -3
- package/dist/types/theme/sections/components/buttons.d.ts.map +1 -1
- package/dist/types/theme/sections/components/data-display.d.ts.map +1 -1
- package/dist/types/theme/sections/typography.d.ts +3 -3
- package/dist/types/widgets/CategoryWidgetUI/CategoryWidgetUI.styled.d.ts +8 -13
- package/dist/types/widgets/CategoryWidgetUI/CategoryWidgetUI.styled.d.ts.map +1 -1
- package/dist/types/widgets/SkeletonWidgets.d.ts +4 -4
- package/dist/types/widgets/TableWidgetUI/TableWidgetUI.d.ts +4 -1
- package/dist/types/widgets/TableWidgetUI/TableWidgetUI.d.ts.map +1 -1
- package/dist/types/widgets/TimeSeriesWidgetUI/TimeSeriesWidgetUI.d.ts.map +1 -1
- package/dist/types/widgets/TimeSeriesWidgetUI/components/TimeSeriesChart.d.ts +2 -1
- package/dist/types/widgets/TimeSeriesWidgetUI/components/TimeSeriesChart.d.ts.map +1 -1
- package/dist/types/widgets/legend/LegendWidgetUI.styles.d.ts +1 -1
- package/dist/widgets/index.cjs +10 -10
- package/dist/widgets/index.js +1260 -1255
- package/package.json +1 -1
- package/dist/Alert-CrvY-jFA.cjs +0 -4
- package/dist/theme-constants-DL1946wP.js +0 -544
- package/dist/theme-constants-PqPZ2w1q.cjs +0 -9
|
@@ -4,6 +4,7 @@ export type TableColumn = {
|
|
|
4
4
|
headerName?: string;
|
|
5
5
|
align?: TableCellProps['align'];
|
|
6
6
|
component?: (value: unknown) => JSX.Element;
|
|
7
|
+
formatter?: (value: unknown) => string;
|
|
7
8
|
};
|
|
8
9
|
export type TableWidgetUIProps<T extends Record<string, unknown> = Record<string, unknown>> = {
|
|
9
10
|
columns: TableColumn[];
|
|
@@ -21,10 +22,12 @@ export type TableWidgetUIProps<T extends Record<string, unknown> = Record<string
|
|
|
21
22
|
rowsPerPageOptions?: number[];
|
|
22
23
|
onSetRowsPerPage?: (rowsPerPage: number) => void;
|
|
23
24
|
onRowClick?: (row: T) => void;
|
|
25
|
+
onRowMouseEnter?: (row: T) => void;
|
|
26
|
+
onRowMouseLeave?: (row: T) => void;
|
|
24
27
|
height?: number | string;
|
|
25
28
|
dense?: boolean;
|
|
26
29
|
isLoading?: boolean;
|
|
27
30
|
lastPageTooltip?: string;
|
|
28
31
|
};
|
|
29
|
-
export default function TableWidgetUI<T extends Record<string, unknown> = Record<string, unknown>>({ columns, rows, sorting, sortBy, sortDirection, onSetSortBy, onSetSortDirection, pagination, totalCount, page, onSetPage, rowsPerPage, rowsPerPageOptions, onSetRowsPerPage, onRowClick, height, dense, isLoading, lastPageTooltip, }: TableWidgetUIProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
export default function TableWidgetUI<T extends Record<string, unknown> = Record<string, unknown>>({ columns, rows, sorting, sortBy, sortDirection, onSetSortBy, onSetSortDirection, pagination, totalCount, page, onSetPage, rowsPerPage, rowsPerPageOptions, onSetRowsPerPage, onRowClick, onRowMouseEnter, onRowMouseLeave, height, dense, isLoading, lastPageTooltip, }: TableWidgetUIProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
30
33
|
//# sourceMappingURL=TableWidgetUI.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableWidgetUI.d.ts","sourceRoot":"","sources":["../../../../src/widgets/TableWidgetUI/TableWidgetUI.tsx"],"names":[],"mappings":"AAEA,OAAO,EAWL,cAAc,EACf,MAAM,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"TableWidgetUI.d.ts","sourceRoot":"","sources":["../../../../src/widgets/TableWidgetUI/TableWidgetUI.tsx"],"names":[],"mappings":"AAEA,OAAO,EAWL,cAAc,EACf,MAAM,eAAe,CAAA;AA2CtB,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,EAAE,MAAM,CAAA;IACb,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,KAAK,CAAC,EAAE,cAAc,CAAC,OAAO,CAAC,CAAA;IAC/B,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,GAAG,CAAC,OAAO,CAAA;IAC3C,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,MAAM,CAAA;CACvC,CAAA;AAED,MAAM,MAAM,kBAAkB,CAC5B,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IACzD;IACF,OAAO,EAAE,WAAW,EAAE,CAAA;IACtB,IAAI,EAAE,CAAC,EAAE,CAAA;IACT,OAAO,C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,EAChC,gBAA2B,EAC3B,UAAqB,EACrB,eAAe,EACf,eAAe,EACf,MAAM,EACN,KAAa,EACb,SAAS,EACT,eAAe,GAChB,EAAE,kBAAkB,CAAC,CAAC,CAAC,2CA4GvB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TimeSeriesWidgetUI.d.ts","sourceRoot":"","sources":["../../../../src/widgets/TimeSeriesWidgetUI/TimeSeriesWidgetUI.tsx"],"names":[],"mappings":"AAUA,OAAO,EAKL,uBAAuB,EAGxB,MAAM,mBAAmB,CAAA;AAS1B,iBAAS,kBAAkB,CAAC,EAC1B,IAAmD,EACnD,
|
|
1
|
+
{"version":3,"file":"TimeSeriesWidgetUI.d.ts","sourceRoot":"","sources":["../../../../src/widgets/TimeSeriesWidgetUI/TimeSeriesWidgetUI.tsx"],"names":[],"mappings":"AAUA,OAAO,EAKL,uBAAuB,EAGxB,MAAM,mBAAmB,CAAA;AAS1B,iBAAS,kBAAkB,CAAC,EAC1B,IAAmD,EACnD,UAAU,EACV,QAAQ,EACR,cAAkB,EAClB,SAAwC,EACxC,mBAAmB,EACnB,OAAc,EACd,gBAA0C,EAC1C,SAAqD,EACrD,MAAM,EACN,SAAS,EACT,YAAmB,EACnB,SAAgB,EAChB,UAAiB,EACjB,gBAAgB,EAChB,UAAU,EACV,gBAAgB,EAChB,kBAAkB,EAClB,kBAAkB,EAClB,0BAA0B,EAC1B,SAAiB,EACjB,MAAM,EACN,QAAgB,EAChB,OAAO,EACP,MAAM,EACN,SAAiB,EACjB,OAAwD,EACxD,UAAU,EACV,SAAmB,GACpB,EAAE,uBAAuB,2CA4EzB;AAED,eAAe,kBAAkB,CAAA"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { TimeSeriesWidgetUIProps } from '../timeSeriesUtils';
|
|
2
2
|
export declare const CHART_HEIGHT_DEFAULT: number;
|
|
3
3
|
export declare const CHART_HEIGHT_FITHEIGHT = "100%";
|
|
4
|
-
export default function TimeSeriesChart({ chartType, formatter, timeAxisSplitNumber, tooltip, tooltipFormatter, data, series, categories, height: heightProp, fitHeight, animation, filterable, selectedCategories, onCategoryClick, yAxisType, }: Required<Pick<TimeSeriesWidgetUIProps, 'chartType' | 'formatter' | 'tooltip' | 'tooltipFormatter' | 'data' | '
|
|
4
|
+
export default function TimeSeriesChart({ chartType, formatter, timeAxisSplitNumber, tooltip, tooltipFormatter, data, series, categories, height: heightProp, fitHeight, animation, filterable, selectedCategories, onCategoryClick, yAxisType, }: Required<Pick<TimeSeriesWidgetUIProps, 'chartType' | 'formatter' | 'tooltip' | 'tooltipFormatter' | 'data' | 'selectedCategories' | 'fitHeight' | 'animation' | 'filterable' | 'yAxisType'>> & {
|
|
5
|
+
categories?: string[];
|
|
5
6
|
timeAxisSplitNumber?: number;
|
|
6
7
|
height?: string;
|
|
7
8
|
onCategoryClick?: (category: string) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TimeSeriesChart.d.ts","sourceRoot":"","sources":["../../../../../src/widgets/TimeSeriesWidgetUI/components/TimeSeriesChart.tsx"],"names":[],"mappings":"AAcA,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAA;AAI5D,eAAO,MAAM,oBAAoB,QAAe,CAAA;AAChD,eAAO,MAAM,sBAAsB,SAAS,CAAA;AAM5C,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EACtC,SAAS,EACT,SAAS,EACT,mBAAmB,EACnB,OAAO,EACP,gBAAgB,EAChB,IAAI,EACJ,MAAM,EACN,UAAU,EACV,MAAM,EAAE,UAAU,EAClB,SAAS,EACT,SAAS,EACT,UAAU,EACV,kBAAkB,EAClB,eAAe,EACf,SAAS,GACV,EAAE,QAAQ,CACT,IAAI,CACF,uBAAuB,EACrB,WAAW,GACX,WAAW,GACX,SAAS,GACT,kBAAkB,GAClB,MAAM,GACN,
|
|
1
|
+
{"version":3,"file":"TimeSeriesChart.d.ts","sourceRoot":"","sources":["../../../../../src/widgets/TimeSeriesWidgetUI/components/TimeSeriesChart.tsx"],"names":[],"mappings":"AAcA,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAA;AAI5D,eAAO,MAAM,oBAAoB,QAAe,CAAA;AAChD,eAAO,MAAM,sBAAsB,SAAS,CAAA;AAM5C,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EACtC,SAAS,EACT,SAAS,EACT,mBAAmB,EACnB,OAAO,EACP,gBAAgB,EAChB,IAAI,EACJ,MAAM,EACN,UAAU,EACV,MAAM,EAAE,UAAU,EAClB,SAAS,EACT,SAAS,EACT,UAAU,EACV,kBAAkB,EAClB,eAAe,EACf,SAAS,GACV,EAAE,QAAQ,CACT,IAAI,CACF,uBAAuB,EACrB,WAAW,GACX,WAAW,GACX,SAAS,GACT,kBAAkB,GAClB,MAAM,GACN,oBAAoB,GACpB,WAAW,GACX,WAAW,GACX,YAAY,GACZ,WAAW,CACd,CACF,GAAG;IACF,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,eAAe,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAA;IAC5C,MAAM,EAAE;QACN,IAAI,EAAE,MAAM,EAAE,EAAE,CAAA;QAChB,KAAK,EAAE,MAAM,CAAA;QACb,IAAI,EAAE,MAAM,CAAA;KACb,EAAE,CAAA;CACJ,2CAkSA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const LEGEND_WIDTH = 240;
|
|
2
2
|
export declare const LegendRoot: import('@emotion/styled').StyledComponent<import('@mui/material').PaperOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
3
|
ref?: ((instance: HTMLDivElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLDivElement> | null | undefined;
|
|
4
|
-
}, "
|
|
4
|
+
}, "style" | "className" | "classes" | "children" | "sx" | "variant" | "elevation" | "square"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
|
|
5
5
|
component?: import('react').ElementType;
|
|
6
6
|
} & {
|
|
7
7
|
collapsed: boolean;
|