@up42/up-components 4.5.0 → 4.6.0
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/README.md +8 -0
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/types/components/CodeSnippet/Pre.d.ts +7 -1
- package/dist/cjs/types/components/DataGrid/DataGrid.d.ts +1 -1
- package/dist/cjs/types/components/FormCheckbox/FormCheckbox.d.ts +1 -8
- package/dist/cjs/types/components/FormInput/FormInput.d.ts +1 -3
- package/dist/cjs/types/components/FormRadio/FormRadio.d.ts +1 -10
- package/dist/cjs/types/components/FormSelect/FormSelect.d.ts +1 -7
- package/dist/cjs/types/components/FormSwitch/FormSwitch.d.ts +1 -5
- package/dist/esm/index.js +2 -2
- package/dist/esm/types/components/CodeSnippet/Pre.d.ts +7 -1
- package/dist/esm/types/components/DataGrid/DataGrid.d.ts +1 -1
- package/dist/esm/types/components/FormCheckbox/FormCheckbox.d.ts +1 -8
- package/dist/esm/types/components/FormInput/FormInput.d.ts +1 -3
- package/dist/esm/types/components/FormRadio/FormRadio.d.ts +1 -10
- package/dist/esm/types/components/FormSelect/FormSelect.d.ts +1 -7
- package/dist/esm/types/components/FormSwitch/FormSwitch.d.ts +1 -5
- package/dist/index.d.ts +29 -59
- package/package.json +9 -6
|
@@ -1,2 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
2
|
+
import { SxProps, Theme } from '@mui/material';
|
|
3
|
+
import { StyledComponent } from '@emotion/styled';
|
|
4
|
+
export declare const Pre: StyledComponent<{
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
className?: string;
|
|
7
|
+
sx: SxProps<Theme>;
|
|
8
|
+
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLPreElement>, HTMLPreElement>, object>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DataGridPremiumProps as MuiDataGridProps } from '@mui/x-data-grid-premium';
|
|
2
|
-
export { type GridColDef, type GridRenderCellParams, type GridRowId, type GridRowParams, type GridRowSelectionModel, type GridRowsProp, type GridSortModel, GridRow, GridCell, GridFooter, GridLoadingOverlay, GridNoRowsOverlay, GridPagination, GridRowCount, GridSelectedRowCount, gridColumnDefinitionsSelector, gridColumnVisibilityModelSelector, gridDetailPanelExpandedRowIdsSelector, gridDetailPanelExpandedRowsContentCacheSelector, gridRowsLookupSelector, GRID_DETAIL_PANEL_TOGGLE_COL_DEF, GRID_DETAIL_PANEL_TOGGLE_FIELD, useGridApiContext, useGridApiRef, useGridSelector, } from '@mui/x-data-grid-premium';
|
|
2
|
+
export { type GridColDef, type GridRenderCellParams, type GridRowId, type GridRowParams, type GridRowSelectionModel, type GridRowsProp, type GridSortModel, type GridTreeNodeWithRender, GridRow, GridCell, GridFooter, GridLoadingOverlay, GridNoRowsOverlay, GridPagination, GridRowCount, GridSelectedRowCount, gridColumnDefinitionsSelector, gridColumnVisibilityModelSelector, gridDetailPanelExpandedRowIdsSelector, gridDetailPanelExpandedRowsContentCacheSelector, gridRowsLookupSelector, GRID_DETAIL_PANEL_TOGGLE_COL_DEF, GRID_DETAIL_PANEL_TOGGLE_FIELD, useGridApiContext, useGridApiRef, useGridSelector, } from '@mui/x-data-grid-premium';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { MUIGlobalOmit } from '@global/utils/types';
|
|
5
5
|
export type DataGridProps = MUIGlobalOmit<MuiDataGridProps>;
|
|
@@ -10,11 +10,4 @@ export type FormCheckboxProps = FormBaseProps & CheckboxProps & {
|
|
|
10
10
|
/**
|
|
11
11
|
* Documentation: https://up-components.up42.com/?path=/docs/patterns-form--docs
|
|
12
12
|
*/
|
|
13
|
-
export declare const FormCheckbox: React.ForwardRefExoticComponent<Omit<
|
|
14
|
-
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
15
|
-
}, keyof import("@mui/material/OverridableComponent").CommonProps | keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & Pick<import("@mui/material").StandardTextFieldProps | import("@mui/material").FilledTextFieldProps | import("@mui/material").OutlinedTextFieldProps, "label" | "id" | "disabled" | "required" | "error" | "focused" | "helperText"> & Omit<import("@mui/material").CheckboxProps, "classes" | "tabIndex" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple"> & {
|
|
16
|
-
data: {
|
|
17
|
-
value: string | number;
|
|
18
|
-
label?: React.ReactNode;
|
|
19
|
-
}[];
|
|
20
|
-
}, "ref"> & React.RefAttributes<unknown>>;
|
|
13
|
+
export declare const FormCheckbox: React.ForwardRefExoticComponent<Omit<FormCheckboxProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -5,6 +5,4 @@ export type FormInputProps = FormBaseProps & InputProps;
|
|
|
5
5
|
/**
|
|
6
6
|
* Documentation: https://up-components.up42.com/?path=/docs/patterns-form--docs
|
|
7
7
|
*/
|
|
8
|
-
export declare const FormInput: React.ForwardRefExoticComponent<Omit<
|
|
9
|
-
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
10
|
-
}, keyof import("@mui/material/OverridableComponent").CommonProps | keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & Pick<import("@mui/material").StandardTextFieldProps | import("@mui/material").FilledTextFieldProps | import("@mui/material").OutlinedTextFieldProps, "label" | "id" | "disabled" | "required" | "error" | "focused" | "helperText"> & InputProps, "ref"> & React.RefAttributes<unknown>>;
|
|
8
|
+
export declare const FormInput: React.ForwardRefExoticComponent<Omit<FormInputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -13,13 +13,4 @@ export type FormRadioProps = FormBaseProps & RadioGroupProps & {
|
|
|
13
13
|
/**
|
|
14
14
|
* Documentation: https://up-components.up42.com/?path=/docs/patterns-form--docs
|
|
15
15
|
*/
|
|
16
|
-
export declare const FormRadio: React.ForwardRefExoticComponent<Omit<
|
|
17
|
-
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
18
|
-
}, keyof import("@mui/material/OverridableComponent").CommonProps | keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & Pick<import("@mui/material").StandardTextFieldProps | import("@mui/material").FilledTextFieldProps | import("@mui/material").OutlinedTextFieldProps, "label" | "id" | "disabled" | "required" | "error" | "focused" | "helperText"> & RadioGroupProps & {
|
|
19
|
-
inputRef?: RadioProps['inputRef'];
|
|
20
|
-
data: {
|
|
21
|
-
value: string | number;
|
|
22
|
-
label?: string;
|
|
23
|
-
message?: string;
|
|
24
|
-
}[];
|
|
25
|
-
}, "ref"> & React.RefAttributes<unknown>>;
|
|
16
|
+
export declare const FormRadio: React.ForwardRefExoticComponent<Omit<FormRadioProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -11,11 +11,5 @@ export type FormSelectProps = FormBaseProps & SelectProps<string | number> & {
|
|
|
11
11
|
/**
|
|
12
12
|
* Documentation: https://up-components.up42.com/?path=/docs/patterns-form--docs
|
|
13
13
|
*/
|
|
14
|
-
export declare const FormSelect: React.ForwardRefExoticComponent<Omit<
|
|
15
|
-
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
16
|
-
}, keyof import("@mui/material/OverridableComponent").CommonProps | keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & Pick<import("@mui/material").StandardTextFieldProps | import("@mui/material").FilledTextFieldProps | import("@mui/material").OutlinedTextFieldProps, "label" | "id" | "disabled" | "required" | "error" | "focused" | "helperText"> & Omit<import("@mui/material").SelectProps<string | number>, "variant"> & {
|
|
17
|
-
withBorder?: boolean | undefined;
|
|
18
|
-
} & {
|
|
19
|
-
options: Option[];
|
|
20
|
-
}, "ref"> & React.RefAttributes<unknown>>;
|
|
14
|
+
export declare const FormSelect: React.ForwardRefExoticComponent<Omit<FormSelectProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
21
15
|
export {};
|
|
@@ -8,8 +8,4 @@ export declare const BaseFormSwitch: ({ component, disabled, label, error, formC
|
|
|
8
8
|
/**
|
|
9
9
|
* Documentation: https://up-components.up42.com/?path=/docs/patterns-form--docs
|
|
10
10
|
*/
|
|
11
|
-
export declare const FormSwitch: React.ForwardRefExoticComponent<Omit<
|
|
12
|
-
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
13
|
-
}, keyof import("@mui/material/OverridableComponent").CommonProps | keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & Pick<import("@mui/material").StandardTextFieldProps | import("@mui/material").FilledTextFieldProps | import("@mui/material").OutlinedTextFieldProps, "label" | "id" | "disabled" | "required" | "error" | "focused" | "helperText"> & Omit<import("@mui/material").SwitchProps, "classes" | "tabIndex" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple"> & {
|
|
14
|
-
formControlLabel?: string | undefined;
|
|
15
|
-
}, "ref"> & React.RefAttributes<unknown>>;
|
|
11
|
+
export declare const FormSwitch: React.ForwardRefExoticComponent<Omit<FormSwitchProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
package/dist/index.d.ts
CHANGED
|
@@ -7,8 +7,6 @@ import * as React from 'react';
|
|
|
7
7
|
import React__default, { ReactNode, ElementType } from 'react';
|
|
8
8
|
import { ButtonProps as ButtonProps$1 } from '@mui/material/Button';
|
|
9
9
|
import { TypographyProps as TypographyProps$1 } from '@mui/material/Typography';
|
|
10
|
-
import * as _mui_material_OverridableComponent from '@mui/material/OverridableComponent';
|
|
11
|
-
import * as _mui_system from '@mui/system';
|
|
12
10
|
import { DatePickerProps, DateTimePickerProps } from '@mui/x-date-pickers-pro';
|
|
13
11
|
import dayjs, { Dayjs } from 'dayjs';
|
|
14
12
|
import { DateRangePickerProps } from '@mui/x-date-pickers-pro/DateRangePicker';
|
|
@@ -166,14 +164,7 @@ type FormCheckboxProps = FormBaseProps & CheckboxProps & {
|
|
|
166
164
|
/**
|
|
167
165
|
* Documentation: https://up-components.up42.com/?path=/docs/patterns-form--docs
|
|
168
166
|
*/
|
|
169
|
-
declare const FormCheckbox: React__default.ForwardRefExoticComponent<Omit<
|
|
170
|
-
ref?: ((instance: HTMLDivElement | null) => void) | React__default.RefObject<HTMLDivElement> | null | undefined;
|
|
171
|
-
}, keyof _mui_material_OverridableComponent.CommonProps | keyof _mui_system.BoxOwnProps<_mui_material.Theme>> & Pick<_mui_material.StandardTextFieldProps | _mui_material.FilledTextFieldProps | _mui_material.OutlinedTextFieldProps, "label" | "id" | "disabled" | "required" | "error" | "focused" | "helperText"> & Omit<_mui_material.CheckboxProps, "classes" | "tabIndex" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple"> & {
|
|
172
|
-
data: {
|
|
173
|
-
value: string | number;
|
|
174
|
-
label?: React__default.ReactNode;
|
|
175
|
-
}[];
|
|
176
|
-
}, "ref"> & React__default.RefAttributes<unknown>>;
|
|
167
|
+
declare const FormCheckbox: React__default.ForwardRefExoticComponent<Omit<FormCheckboxProps, "ref"> & React__default.RefAttributes<HTMLInputElement>>;
|
|
177
168
|
|
|
178
169
|
type DatePickerWrapperProps = {
|
|
179
170
|
error?: boolean;
|
|
@@ -259,16 +250,7 @@ type FormRadioProps = FormBaseProps & RadioGroupProps & {
|
|
|
259
250
|
/**
|
|
260
251
|
* Documentation: https://up-components.up42.com/?path=/docs/patterns-form--docs
|
|
261
252
|
*/
|
|
262
|
-
declare const FormRadio: React__default.ForwardRefExoticComponent<Omit<
|
|
263
|
-
ref?: ((instance: HTMLDivElement | null) => void) | React__default.RefObject<HTMLDivElement> | null | undefined;
|
|
264
|
-
}, keyof _mui_material_OverridableComponent.CommonProps | keyof _mui_system.BoxOwnProps<_mui_material.Theme>> & Pick<_mui_material.StandardTextFieldProps | _mui_material.FilledTextFieldProps | _mui_material.OutlinedTextFieldProps, "label" | "id" | "disabled" | "required" | "error" | "focused" | "helperText"> & RadioGroupProps & {
|
|
265
|
-
inputRef?: RadioProps['inputRef'];
|
|
266
|
-
data: {
|
|
267
|
-
value: string | number;
|
|
268
|
-
label?: string;
|
|
269
|
-
message?: string;
|
|
270
|
-
}[];
|
|
271
|
-
}, "ref"> & React__default.RefAttributes<unknown>>;
|
|
253
|
+
declare const FormRadio: React__default.ForwardRefExoticComponent<Omit<FormRadioProps, "ref"> & React__default.RefAttributes<HTMLButtonElement>>;
|
|
272
254
|
|
|
273
255
|
type SwitchProps = MUIGlobalOmit<SwitchProps$1>;
|
|
274
256
|
/**
|
|
@@ -282,11 +264,7 @@ type FormSwitchProps = FormBaseProps & SwitchProps & {
|
|
|
282
264
|
/**
|
|
283
265
|
* Documentation: https://up-components.up42.com/?path=/docs/patterns-form--docs
|
|
284
266
|
*/
|
|
285
|
-
declare const FormSwitch: React__default.ForwardRefExoticComponent<Omit<
|
|
286
|
-
ref?: ((instance: HTMLDivElement | null) => void) | React__default.RefObject<HTMLDivElement> | null | undefined;
|
|
287
|
-
}, keyof _mui_material_OverridableComponent.CommonProps | keyof _mui_system.BoxOwnProps<_mui_material.Theme>> & Pick<_mui_material.StandardTextFieldProps | _mui_material.FilledTextFieldProps | _mui_material.OutlinedTextFieldProps, "label" | "id" | "disabled" | "required" | "error" | "focused" | "helperText"> & Omit<_mui_material.SwitchProps, "classes" | "tabIndex" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple"> & {
|
|
288
|
-
formControlLabel?: string | undefined;
|
|
289
|
-
}, "ref"> & React__default.RefAttributes<unknown>>;
|
|
267
|
+
declare const FormSwitch: React__default.ForwardRefExoticComponent<Omit<FormSwitchProps, "ref"> & React__default.RefAttributes<HTMLInputElement>>;
|
|
290
268
|
|
|
291
269
|
type SelectProps<T extends unknown> = FormBaseProps & Omit<SelectProps$1<T>, 'variant'> & {
|
|
292
270
|
/**
|
|
@@ -310,13 +288,7 @@ type FormSelectProps = FormBaseProps & SelectProps<string | number> & {
|
|
|
310
288
|
/**
|
|
311
289
|
* Documentation: https://up-components.up42.com/?path=/docs/patterns-form--docs
|
|
312
290
|
*/
|
|
313
|
-
declare const FormSelect: React__default.ForwardRefExoticComponent<Omit<
|
|
314
|
-
ref?: ((instance: HTMLDivElement | null) => void) | React__default.RefObject<HTMLDivElement> | null | undefined;
|
|
315
|
-
}, keyof _mui_material_OverridableComponent.CommonProps | keyof _mui_system.BoxOwnProps<_mui_material.Theme>> & Pick<_mui_material.StandardTextFieldProps | _mui_material.FilledTextFieldProps | _mui_material.OutlinedTextFieldProps, "label" | "id" | "disabled" | "required" | "error" | "focused" | "helperText"> & Omit<_mui_material.SelectProps<string | number>, "variant"> & {
|
|
316
|
-
withBorder?: boolean | undefined;
|
|
317
|
-
} & {
|
|
318
|
-
options: Option[];
|
|
319
|
-
}, "ref"> & React__default.RefAttributes<unknown>>;
|
|
291
|
+
declare const FormSelect: React__default.ForwardRefExoticComponent<Omit<FormSelectProps, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
320
292
|
|
|
321
293
|
type InputProps = Omit<TextFieldProps, 'maxRows' | 'minRows' | 'multiline' | 'rows' | 'size' | 'variant'>;
|
|
322
294
|
/**
|
|
@@ -328,9 +300,7 @@ type FormInputProps = FormBaseProps & InputProps;
|
|
|
328
300
|
/**
|
|
329
301
|
* Documentation: https://up-components.up42.com/?path=/docs/patterns-form--docs
|
|
330
302
|
*/
|
|
331
|
-
declare const FormInput: React__default.ForwardRefExoticComponent<Omit<
|
|
332
|
-
ref?: ((instance: HTMLDivElement | null) => void) | React__default.RefObject<HTMLDivElement> | null | undefined;
|
|
333
|
-
}, keyof _mui_material_OverridableComponent.CommonProps | keyof _mui_system.BoxOwnProps<_mui_material.Theme>> & Pick<_mui_material.StandardTextFieldProps | _mui_material.FilledTextFieldProps | _mui_material.OutlinedTextFieldProps, "label" | "id" | "disabled" | "required" | "error" | "focused" | "helperText"> & InputProps, "ref"> & React__default.RefAttributes<unknown>>;
|
|
303
|
+
declare const FormInput: React__default.ForwardRefExoticComponent<Omit<FormInputProps, "ref"> & React__default.RefAttributes<HTMLInputElement>>;
|
|
334
304
|
|
|
335
305
|
type SliderProps = MUIGlobalOmit<Omit<SliderProps$1, 'variant' | 'label'>>;
|
|
336
306
|
/**
|
|
@@ -4680,7 +4650,7 @@ type IconProps = {
|
|
|
4680
4650
|
*/
|
|
4681
4651
|
declare const Icon: ({ name, ...props }: IconProps) => React__default.JSX.Element;
|
|
4682
4652
|
|
|
4683
|
-
var _path$4, _path2$4, _path3$4, _path4$4, _path5$4, _path6$4, _path7$4, _path8$4, _circle, _path9$3,
|
|
4653
|
+
var _path$4, _path2$4, _path3$4, _path4$4, _path5$4, _path6$4, _path7$4, _path8$4, _circle, _path9$3, _path0$3;
|
|
4684
4654
|
function _extends$4() { return _extends$4 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$4.apply(null, arguments); }
|
|
4685
4655
|
var SvgFloppyDisk = function SvgFloppyDisk(props) {
|
|
4686
4656
|
return /*#__PURE__*/React.createElement("svg", _extends$4({
|
|
@@ -4732,14 +4702,14 @@ var SvgFloppyDisk = function SvgFloppyDisk(props) {
|
|
|
4732
4702
|
fill: "#fff",
|
|
4733
4703
|
stroke: "#262A59",
|
|
4734
4704
|
d: "M52.339 49.895h6.323v6.323h-6.323zm-18.178 11.46h3.952v3.952h-3.952z"
|
|
4735
|
-
})),
|
|
4705
|
+
})), _path0$3 || (_path0$3 = /*#__PURE__*/React.createElement("path", {
|
|
4736
4706
|
fill: "#A8AABD",
|
|
4737
4707
|
stroke: "#262A59",
|
|
4738
4708
|
d: "M37.696 72.152a5 5 0 0 1 5-5h25.609a5 5 0 0 1 5 5V74H37.696z"
|
|
4739
4709
|
})));
|
|
4740
4710
|
};
|
|
4741
4711
|
|
|
4742
|
-
var _path$3, _path2$3, _path3$3, _path4$3, _path5$3, _path6$3, _path7$3, _path8$3, _path9$2,
|
|
4712
|
+
var _path$3, _path2$3, _path3$3, _path4$3, _path5$3, _path6$3, _path7$3, _path8$3, _path9$2, _path0$2, _path1$2, _path10$2, _path11$2, _path12$1, _path13$1, _path14, _path15, _path16;
|
|
4743
4713
|
function _extends$3() { return _extends$3 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$3.apply(null, arguments); }
|
|
4744
4714
|
var SvgSatellite = function SvgSatellite(props) {
|
|
4745
4715
|
return /*#__PURE__*/React.createElement("svg", _extends$3({
|
|
@@ -4782,45 +4752,45 @@ var SvgSatellite = function SvgSatellite(props) {
|
|
|
4782
4752
|
})), _path9$2 || (_path9$2 = /*#__PURE__*/React.createElement("path", {
|
|
4783
4753
|
fill: "#fff",
|
|
4784
4754
|
d: "m73.7 58.038 7.359-7.359a2.424 2.424 0 0 0 0-3.429L74.2 40.391a2.424 2.424 0 0 0-3.429 0l-7.362 7.359a1.2 1.2 0 0 0-.355.857v1.567c0 .322-.128.63-.355.858l-1.006 1.006a1.2 1.2 0 0 1-.853.355l-1.564.006c-.32.001-.626.129-.852.354l-7.369 7.354a2.424 2.424 0 0 0 0 3.432l6.855 6.855a2.42 2.42 0 0 0 3.431 0l7.354-7.369a1.2 1.2 0 0 0 .355-.852l.006-1.564c0-.32.129-.627.355-.853l1.006-1.006a1.2 1.2 0 0 1 .857-.355h1.566a1.2 1.2 0 0 0 .86-.357"
|
|
4785
|
-
})),
|
|
4755
|
+
})), _path0$2 || (_path0$2 = /*#__PURE__*/React.createElement("path", {
|
|
4786
4756
|
stroke: "#262A59",
|
|
4787
4757
|
strokeLinecap: "round",
|
|
4788
4758
|
strokeLinejoin: "round",
|
|
4789
4759
|
d: "m73.7 58.038 7.359-7.359a2.424 2.424 0 0 0 0-3.429L74.2 40.391a2.424 2.424 0 0 0-3.429 0l-7.362 7.359a1.2 1.2 0 0 0-.355.857v1.567c0 .322-.128.63-.355.858l-1.006 1.006a1.2 1.2 0 0 1-.853.355l-1.564.006c-.32.001-.626.129-.852.354l-7.369 7.354a2.424 2.424 0 0 0 0 3.432l6.855 6.855a2.42 2.42 0 0 0 3.431 0l7.354-7.369a1.2 1.2 0 0 0 .355-.852l.006-1.564c0-.32.129-.627.355-.853l1.006-1.006a1.2 1.2 0 0 1 .857-.355h1.566a1.2 1.2 0 0 0 .86-.357"
|
|
4790
|
-
})),
|
|
4760
|
+
})), _path1$2 || (_path1$2 = /*#__PURE__*/React.createElement("path", {
|
|
4791
4761
|
fill: "#fff",
|
|
4792
4762
|
d: "M53.231 81.79a8.94 8.94 0 0 0-.894-11.823l-.857-.857a8.94 8.94 0 0 0-11.823-.894 1.208 1.208 0 0 0-.111 1.82L51.411 81.9a1.21 1.21 0 0 0 1.82-.11"
|
|
4793
|
-
})),
|
|
4763
|
+
})), _path10$2 || (_path10$2 = /*#__PURE__*/React.createElement("path", {
|
|
4794
4764
|
stroke: "#262A59",
|
|
4795
4765
|
strokeLinecap: "round",
|
|
4796
4766
|
strokeLinejoin: "round",
|
|
4797
4767
|
d: "M53.231 81.79a8.94 8.94 0 0 0-.894-11.823l-.857-.857a8.94 8.94 0 0 0-11.823-.894 1.208 1.208 0 0 0-.111 1.82L51.411 81.9a1.21 1.21 0 0 0 1.82-.11m-7.753-5.822-2.572 2.572m21.863-24.434 2.572 2.572"
|
|
4798
|
-
})),
|
|
4768
|
+
})), _path11$2 || (_path11$2 = /*#__PURE__*/React.createElement("path", {
|
|
4799
4769
|
fill: "#A8AABD",
|
|
4800
4770
|
stroke: "#262A59",
|
|
4801
4771
|
strokeLinecap: "round",
|
|
4802
4772
|
strokeLinejoin: "round",
|
|
4803
4773
|
d: "m39.906 38.674 9.43-9.431 14.147 14.146-9.43 9.431z"
|
|
4804
|
-
})),
|
|
4774
|
+
})), _path12$1 || (_path12$1 = /*#__PURE__*/React.createElement("path", {
|
|
4805
4775
|
stroke: "#262A59",
|
|
4806
4776
|
strokeLinecap: "round",
|
|
4807
4777
|
strokeLinejoin: "round",
|
|
4808
4778
|
d: "m44.621 33.958 14.146 14.147m0-9.431-9.43 9.431m4.715-14.147-9.431 9.431"
|
|
4809
|
-
})),
|
|
4779
|
+
})), _path13$1 || (_path13$1 = /*#__PURE__*/React.createElement("path", {
|
|
4810
4780
|
fill: "#A8AABD",
|
|
4811
4781
|
d: "M52.337 69.967a3.03 3.03 0 0 0 4.287 0l.429-.429-5.144-5.144-.429.429a3.03 3.03 0 0 0 0 4.287z"
|
|
4812
|
-
})),
|
|
4782
|
+
})), _path14 || (_path14 = /*#__PURE__*/React.createElement("path", {
|
|
4813
4783
|
stroke: "#262A59",
|
|
4814
4784
|
strokeLinecap: "round",
|
|
4815
4785
|
strokeLinejoin: "round",
|
|
4816
4786
|
d: "M52.337 69.967a3.03 3.03 0 0 0 4.287 0l.429-.429-5.144-5.144-.429.429a3.03 3.03 0 0 0 0 4.287zM64.34 46.819l-2.143-2.144m-4.716 9.002-2.143-2.143"
|
|
4817
|
-
})),
|
|
4787
|
+
})), _path15 || (_path15 = /*#__PURE__*/React.createElement("path", {
|
|
4818
4788
|
fill: "#A8AABD",
|
|
4819
4789
|
stroke: "#262A59",
|
|
4820
4790
|
strokeLinecap: "round",
|
|
4821
4791
|
strokeLinejoin: "round",
|
|
4822
4792
|
d: "m68.628 67.395 9.43-9.431L92.205 72.11l-9.431 9.431z"
|
|
4823
|
-
})),
|
|
4793
|
+
})), _path16 || (_path16 = /*#__PURE__*/React.createElement("path", {
|
|
4824
4794
|
stroke: "#262A59",
|
|
4825
4795
|
strokeLinecap: "round",
|
|
4826
4796
|
strokeLinejoin: "round",
|
|
@@ -4828,7 +4798,7 @@ var SvgSatellite = function SvgSatellite(props) {
|
|
|
4828
4798
|
})));
|
|
4829
4799
|
};
|
|
4830
4800
|
|
|
4831
|
-
var _path$2, _path2$2, _path3$2, _path4$2, _path5$2, _path6$2, _path7$2, _path8$2, _path9$1,
|
|
4801
|
+
var _path$2, _path2$2, _path3$2, _path4$2, _path5$2, _path6$2, _path7$2, _path8$2, _path9$1, _path0$1, _path1$1, _path10$1, _path11$1, _path12, _path13;
|
|
4832
4802
|
function _extends$2() { return _extends$2 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$2.apply(null, arguments); }
|
|
4833
4803
|
var SvgRocketFixing = function SvgRocketFixing(props) {
|
|
4834
4804
|
return /*#__PURE__*/React.createElement("svg", _extends$2({
|
|
@@ -4876,36 +4846,36 @@ var SvgRocketFixing = function SvgRocketFixing(props) {
|
|
|
4876
4846
|
strokeLinejoin: "round",
|
|
4877
4847
|
strokeWidth: 1.5,
|
|
4878
4848
|
d: "M35.83 80.536a2.4 2.4 0 0 1-.142-.592l-.286-1.952c-.703-4.783-1.406-9.568-2.217-14.333a10.8 10.8 0 0 1-.133-4.54 3.61 3.61 0 0 1 3.155-2.857 3.62 3.62 0 0 1 3.204 2.846 11 11 0 0 1-.087 4.572c-.832 5.334-1.423 10.703-2.14 16.054-.066.497-.437 1.9-1.203 1.051a.9.9 0 0 1-.15-.25"
|
|
4879
|
-
})),
|
|
4849
|
+
})), _path0$1 || (_path0$1 = /*#__PURE__*/React.createElement("path", {
|
|
4880
4850
|
stroke: "#262A59",
|
|
4881
4851
|
strokeLinecap: "round",
|
|
4882
4852
|
strokeLinejoin: "round",
|
|
4883
4853
|
strokeWidth: 1.5,
|
|
4884
4854
|
d: "M23.904 18.69a21.73 21.73 0 0 0 23.773-.249A34.97 34.97 0 0 0 36.185 3.388a.916.916 0 0 0-1.104.011 34.97 34.97 0 0 0-11.177 15.292"
|
|
4885
|
-
})),
|
|
4855
|
+
})), _path1$1 || (_path1$1 = /*#__PURE__*/React.createElement("path", {
|
|
4886
4856
|
fill: "#A8AABD",
|
|
4887
4857
|
stroke: "#262A59",
|
|
4888
4858
|
strokeLinecap: "round",
|
|
4889
4859
|
strokeLinejoin: "round",
|
|
4890
4860
|
strokeWidth: 1.5,
|
|
4891
4861
|
d: "M28.605 40.185c0 5.664 6.131 9.204 11.036 6.372a7.36 7.36 0 0 0 3.679-6.372c0-5.663-6.132-9.203-11.037-6.371a7.36 7.36 0 0 0-3.678 6.371"
|
|
4892
|
-
})),
|
|
4862
|
+
})), _path10$1 || (_path10$1 = /*#__PURE__*/React.createElement("path", {
|
|
4893
4863
|
fill: "#A8AABD",
|
|
4894
4864
|
d: "M31.602 40.185c-.006 3.357 3.625 5.46 6.535 3.787a4.36 4.36 0 0 0 2.186-3.787c.005-3.356-3.626-5.46-6.535-3.786a4.36 4.36 0 0 0-2.186 3.786"
|
|
4895
|
-
})),
|
|
4865
|
+
})), _path11$1 || (_path11$1 = /*#__PURE__*/React.createElement("path", {
|
|
4896
4866
|
stroke: "#262A59",
|
|
4897
4867
|
strokeLinecap: "round",
|
|
4898
4868
|
strokeLinejoin: "round",
|
|
4899
4869
|
strokeWidth: 1.5,
|
|
4900
4870
|
d: "M31.602 40.185c-.006 3.357 3.625 5.46 6.535 3.787a4.36 4.36 0 0 0 2.186-3.787c.005-3.356-3.626-5.46-6.535-3.786a4.36 4.36 0 0 0-2.186 3.786"
|
|
4901
|
-
})),
|
|
4871
|
+
})), _path12 || (_path12 = /*#__PURE__*/React.createElement("path", {
|
|
4902
4872
|
fill: "#fff",
|
|
4903
4873
|
stroke: "#262A59",
|
|
4904
4874
|
strokeLinecap: "round",
|
|
4905
4875
|
strokeLinejoin: "round",
|
|
4906
4876
|
strokeWidth: 1.5,
|
|
4907
4877
|
d: "M97.531 62.314a4.69 4.69 0 0 1-5.814 3.208l-28.723-8.273a12.54 12.54 0 0 1-13.334 4.298 12.2 12.2 0 0 1-3.846-1.88 10 10 0 0 1-1.002-.801 12.55 12.55 0 0 1-3.547-5.326 1.566 1.566 0 0 1 1.917-2.005l2.832.814 1.095.313 3.358.965c.395.113.82.063 1.178-.138l3.872-2.143a1.555 1.555 0 0 0 .614-2.13l-2.143-3.885a1.53 1.53 0 0 0-.927-.74l-4.248-1.227.589-3.233c.063-.876.076-1.752.076-2.62 7.541-2.273 15.292 2.87 16.128 10.703l28.71 8.283a4.686 4.686 0 0 1 3.215 5.817"
|
|
4908
|
-
})),
|
|
4878
|
+
})), _path13 || (_path13 = /*#__PURE__*/React.createElement("path", {
|
|
4909
4879
|
fill: "#262A59",
|
|
4910
4880
|
d: "M93.013 59.912a1.095 1.095 0 1 0 .957.566 1.1 1.1 0 0 0-.96-.566z"
|
|
4911
4881
|
})));
|
|
@@ -4959,7 +4929,7 @@ var SvgEmailCheck = function SvgEmailCheck(props) {
|
|
|
4959
4929
|
})));
|
|
4960
4930
|
};
|
|
4961
4931
|
|
|
4962
|
-
var _path, _path2, _path3, _path4, _path5, _path6, _path7, _path8, _path9,
|
|
4932
|
+
var _path, _path2, _path3, _path4, _path5, _path6, _path7, _path8, _path9, _path0, _path1, _path10, _path11;
|
|
4963
4933
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
4964
4934
|
var SvgApproveDoc = function SvgApproveDoc(props) {
|
|
4965
4935
|
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
@@ -5003,20 +4973,20 @@ var SvgApproveDoc = function SvgApproveDoc(props) {
|
|
|
5003
4973
|
})), _path9 || (_path9 = /*#__PURE__*/React.createElement("path", {
|
|
5004
4974
|
fill: "#A8AABD",
|
|
5005
4975
|
d: "M56.782 75.171c-.092.241-.27.45-.507.6a1.54 1.54 0 0 1-.814.229H17.543c-.293 0-.578-.08-.815-.23a1.24 1.24 0 0 1-.507-.599L15 72h43z"
|
|
5006
|
-
})),
|
|
4976
|
+
})), _path0 || (_path0 = /*#__PURE__*/React.createElement("path", {
|
|
5007
4977
|
stroke: "#262A59",
|
|
5008
4978
|
strokeLinejoin: "round",
|
|
5009
4979
|
strokeWidth: 1.5,
|
|
5010
4980
|
d: "M59.775 72H14.221c-.324 0-.634-.119-.863-.33a1.09 1.09 0 0 1-.358-.797v-4.355c0-.593.127-1.18.373-1.729a4.5 4.5 0 0 1 1.061-1.466c.455-.42.995-.752 1.589-.98A5.3 5.3 0 0 1 17.896 62h38.208c.643 0 1.28.117 1.873.344.594.227 1.134.56 1.589.98s.815.917 1.061 1.465c.246.549.373 1.136.373 1.73v4.354c0 .148-.032.295-.093.432a1.1 1.1 0 0 1-.266.366 1.2 1.2 0 0 1-.397.244 1.3 1.3 0 0 1-.469.085ZM44.038 42.185H29.962A2.7 2.7 0 0 1 29 42c.735 1.554 2.738 6.984 2.738 20H42.26c0-13.016 2.003-18.446 2.739-20a2.71 2.71 0 0 1-.962.185Z"
|
|
5011
|
-
})),
|
|
4981
|
+
})), _path1 || (_path1 = /*#__PURE__*/React.createElement("path", {
|
|
5012
4982
|
stroke: "#262A59",
|
|
5013
4983
|
strokeLinejoin: "round",
|
|
5014
4984
|
strokeWidth: 1.5,
|
|
5015
4985
|
d: "M56.782 75.171c-.092.241-.27.45-.507.6a1.54 1.54 0 0 1-.814.229H17.543c-.293 0-.578-.08-.815-.23a1.24 1.24 0 0 1-.507-.599L15 72h43zM32 56h11"
|
|
5016
|
-
})),
|
|
4986
|
+
})), _path10 || (_path10 = /*#__PURE__*/React.createElement("path", {
|
|
5017
4987
|
fill: "#fff",
|
|
5018
4988
|
d: "M27 29h20v13H27z"
|
|
5019
|
-
})),
|
|
4989
|
+
})), _path11 || (_path11 = /*#__PURE__*/React.createElement("path", {
|
|
5020
4990
|
stroke: "#262A59",
|
|
5021
4991
|
strokeLinejoin: "round",
|
|
5022
4992
|
strokeWidth: 1.5,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@up42/up-components",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.6.0",
|
|
4
4
|
"description": "UP42 Component Library",
|
|
5
5
|
"author": "Axel Fuhrmann axel.fuhrmann@up42.com",
|
|
6
6
|
"license": "ISC",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
],
|
|
12
12
|
"types": "dist/index.d.ts",
|
|
13
13
|
"scripts": {
|
|
14
|
-
"dev": "
|
|
14
|
+
"dev": "pnpm run storybook",
|
|
15
15
|
"build": "rollup -c --failAfterWarnings",
|
|
16
16
|
"build:watch": "rollup -c -w",
|
|
17
17
|
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js --testPathIgnorePatterns=smoke",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"release:patch": "commit-and-tag-version --release-as patch",
|
|
28
28
|
"prepare": "husky install",
|
|
29
29
|
"format": "prettier --write ./**/*.mdx",
|
|
30
|
-
"build-icons": "node scripts/icons/generate-icons-index.mjs &&
|
|
30
|
+
"build-icons": "node scripts/icons/generate-icons-index.mjs && pnpm run optimize-icons",
|
|
31
31
|
"optimize-icons": "svgo -f src/global/icons"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
"@babel/preset-env": "^7.16.10",
|
|
42
42
|
"@babel/preset-react": "^7.16.7",
|
|
43
43
|
"@babel/preset-typescript": "^7.16.7",
|
|
44
|
+
"@babel/runtime": "^7.27.1",
|
|
44
45
|
"@commitlint/cli": "^17.7.0",
|
|
45
46
|
"@commitlint/config-conventional": "^17.7.0",
|
|
46
47
|
"@emotion/jest": "^11.7.1",
|
|
@@ -57,6 +58,7 @@
|
|
|
57
58
|
"@rollup/plugin-typescript": "^11.1.6",
|
|
58
59
|
"@storybook/addon-a11y": "^8.6.10",
|
|
59
60
|
"@storybook/addon-actions": "^8.6.10",
|
|
61
|
+
"@storybook/addon-docs": "^8.6.14",
|
|
60
62
|
"@storybook/addon-essentials": "^8.6.10",
|
|
61
63
|
"@storybook/addon-links": "^8.6.10",
|
|
62
64
|
"@storybook/addon-mdx-gfm": "^8.6.10",
|
|
@@ -94,6 +96,7 @@
|
|
|
94
96
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
95
97
|
"storybook": "^8.6.10",
|
|
96
98
|
"svgo": "^3.3.2",
|
|
99
|
+
"tslib": "^2.8.1",
|
|
97
100
|
"typescript": "^4.5.4",
|
|
98
101
|
"vite": "^6.2.3",
|
|
99
102
|
"vite-plugin-svgr": "^4.2.0"
|
|
@@ -115,12 +118,12 @@
|
|
|
115
118
|
"homepage": "https://github.com/up42/up-components#readme",
|
|
116
119
|
"access": "private",
|
|
117
120
|
"engines": {
|
|
118
|
-
"node": ">= 22"
|
|
119
|
-
"npm": ">= 8"
|
|
121
|
+
"node": ">= 22"
|
|
120
122
|
},
|
|
121
123
|
"commit-and-tag-version": {
|
|
122
124
|
"skip": {
|
|
123
125
|
"tag": true
|
|
124
126
|
}
|
|
125
|
-
}
|
|
127
|
+
},
|
|
128
|
+
"packageManager": "pnpm@10.10.0+sha512.d615db246fe70f25dcfea6d8d73dee782ce23e2245e3c4f6f888249fb568149318637dca73c2c5c8ef2a4ca0d5657fb9567188bfab47f566d1ee6ce987815c39"
|
|
126
129
|
}
|