@restio/ui 0.2.0 → 0.2.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/assets/svg/open-dialog.svg +29 -0
- package/dist/components/button/button-types.d.ts +2 -1
- package/dist/components/input/date/date-utils.d.ts +10 -26
- package/dist/components/input/date/use-digit-input.d.ts +18 -0
- package/dist/components/progress-bar/progress-bar-types.d.ts +9 -3
- package/dist/components/progress-bar/stories/progress-bar.stories.d.ts +1 -0
- package/dist/custom-components/layout/layout-renderers.d.ts +8 -8
- package/dist/custom-components/layout/layout-types.d.ts +21 -11
- package/dist/custom-components/layout/layout-utils.d.ts +3 -0
- package/dist/custom-components/layout/layout-utils.test.d.ts +1 -0
- package/dist/custom-components/layout/layout.d.ts +2 -7
- package/dist/custom-components/layout/layout.test.d.ts +1 -0
- package/dist/data-components/assets/finance-asset.d.ts +15 -0
- package/dist/data-components/card-list/card-list.d.ts +0 -3
- package/dist/data-components/cell/cell-registry.d.ts +2 -2
- package/dist/data-components/chart/chart-tooltip/chart-tooltip.d.ts +1 -2
- package/dist/data-components/data-component-utils.d.ts +24 -0
- package/dist/data-components/data-structure/data-structure.d.ts +7 -0
- package/dist/data-components/form/form-types.d.ts +1 -4
- package/dist/data-components/kpi/kpi-types.d.ts +17 -0
- package/dist/data-components/kpi/kpi.d.ts +5 -0
- package/dist/data-components/layout/card-layout-presets.d.ts +12 -0
- package/dist/data-components/layout/finance/finance-layouts.d.ts +18 -0
- package/dist/data-components/layout/finance/kpi-layout-presets.d.ts +35 -0
- package/dist/data-components/layout/finance/stories/finance-card-list.stories.d.ts +16 -0
- package/dist/data-components/switcher/prop-schema/prop-schema-types.d.ts +6 -0
- package/dist/data-components/switcher/prop-schema/prop-schema.d.ts +6 -0
- package/dist/data-components/switcher/switcher-types.d.ts +3 -1
- package/dist/data-components/table-grid/row/table-grid-row-utils.d.ts +2 -5
- package/dist/experimental-components/dashboard-builder/dashboard-builder-types.d.ts +1 -1
- package/dist/index.d.ts +9 -1
- package/dist/restio-ui.cjs.js +89 -61
- package/dist/restio-ui.es.js +10302 -9751
- package/dist/types/global-types.d.ts +5 -0
- package/dist/ui.css +1 -1
- package/package.json +1 -1
- package/dist/data-components/data-structure/data-structure-utils.d.ts +0 -15
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/** Interface for an option in a component */
|
|
1
2
|
export interface Option {
|
|
2
3
|
value: string;
|
|
3
4
|
/** Human-readable label shown in the UI; falls back to `value` when omitted. */
|
|
@@ -12,8 +13,11 @@ export interface Option {
|
|
|
12
13
|
onClick?: (option: Option) => void;
|
|
13
14
|
}
|
|
14
15
|
export type ListItemVariant = "default" | "with-image" | "with-description";
|
|
16
|
+
/** Sizing values */
|
|
15
17
|
export type Size = "extraSmall" | "small" | "default" | "large" | "extraLarge";
|
|
18
|
+
/** Edit mode for interactive cell components */
|
|
16
19
|
export type EditMode = 'click' | 'doubleClick' | 'always' | 'never';
|
|
20
|
+
/** State for component */
|
|
17
21
|
export type State = "base" | "success" | "warning" | "danger" | "info" | "idle";
|
|
18
22
|
export type ChartType = "line" | "bar" | "pie" | "area" | "scatter" | "sankey" | "sparkline" | "geo" | "composed";
|
|
19
23
|
export type ComposedSeriesType = "line" | "bar" | "area" | "scatter";
|
|
@@ -36,6 +40,7 @@ export declare const CellType: {
|
|
|
36
40
|
readonly COLORS: "COLORS";
|
|
37
41
|
readonly SPARKLINE: "SPARKLINE";
|
|
38
42
|
readonly BUTTON_DROPDOWN: "BUTTON_DROPDOWN";
|
|
43
|
+
readonly BUTTON: "BUTTON";
|
|
39
44
|
};
|
|
40
45
|
export type CellType = typeof CellType[keyof typeof CellType];
|
|
41
46
|
/**
|