@mparticle/aquarium 1.4.2 → 1.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/dist/index.d.ts CHANGED
@@ -13,6 +13,7 @@ import { CardProps } from 'antd';
13
13
  import { CarouselProps } from 'antd';
14
14
  import { CascaderPanelProps } from 'antd/es/cascader/Panel';
15
15
  import { CascaderProps } from 'antd';
16
+ import { CheckableTagProps as CheckableTagProps_2 } from 'antd/lib/tag';
16
17
  import { CheckboxGroupProps } from 'antd/es/checkbox';
17
18
  import { CheckboxProps } from 'antd';
18
19
  import { CheckboxRef } from 'rc-checkbox';
@@ -38,6 +39,7 @@ import { ForwardRefExoticComponent } from 'react';
38
39
  import { Grid } from 'antd';
39
40
  import { GroupProps } from 'antd/es/input';
40
41
  import { ColProps as IColProps } from 'antd';
42
+ import { IconProp } from '@fortawesome/fontawesome-svg-core';
41
43
  import { ImageProps } from 'antd';
42
44
  import { IModalProps as IModalProps_2 } from '../../../../../../../../../src/components/feedback/Modal/Modal';
43
45
  import { InputNumberProps } from 'antd';
@@ -134,6 +136,8 @@ export declare const Cascader: {
134
136
  SHOW_CHILD: "SHOW_CHILD";
135
137
  };
136
138
 
139
+ declare type CheckableTagProps = CheckableTagProps_2 & ITagProps;
140
+
137
141
  export declare const Checkbox: {
138
142
  (props: ICheckboxProps): JSX_2.Element;
139
143
  Group: <T extends CheckboxValueType = CheckboxValueType>(props: CheckboxGroupProps<T> & RefAttributes<HTMLDivElement>) => ReactElement<any, string | JSXElementConstructor<any>>;
@@ -223,6 +227,8 @@ export declare interface IColorPickerProps extends ColorPickerProps {
223
227
 
224
228
  export { IColProps }
225
229
 
230
+ export declare const Icon: (props: IIconProps) => JSX_2.Element;
231
+
226
232
  export declare interface IConfigProviderProps extends ConfigProviderProps {
227
233
  }
228
234
 
@@ -254,6 +260,10 @@ export declare interface IFormProps extends FormProps {
254
260
  children: React.ReactNode;
255
261
  }
256
262
 
263
+ export declare interface IIconProps {
264
+ icon: IconProp;
265
+ }
266
+
257
267
  export declare interface IImageProps extends ImageProps {
258
268
  }
259
269
 
@@ -269,9 +279,9 @@ export declare interface ILayoutProps extends LayoutProps {
269
279
  export declare interface IListProps extends ListProps {
270
280
  }
271
281
 
272
- export declare interface ILoadingModalProps<Data> extends Omit<IModalProps_2, "children"> {
273
- fetchData(): Promise<Data>;
274
- children(initData: Data): React.ReactNode;
282
+ export declare interface ILoadingModalProps<Data> extends Omit<IModalProps_2, 'children'> {
283
+ fetchData: () => Promise<Data>;
284
+ children: (initData: Data) => React.ReactNode;
275
285
  }
276
286
 
277
287
  declare const Image_2: (props: IImageProps) => JSX_2.Element;
@@ -337,7 +347,7 @@ export declare interface ISegmentedProps extends SegmentedProps {
337
347
  export declare interface ISelectProps<ValueType = any, OptionType extends BaseOptionType | DefaultOptionType = DefaultOptionType> extends SelectProps<ValueType, OptionType> {
338
348
  }
339
349
 
340
- export declare interface ISkeletonProps extends Omit<SkeletonProps, "active"> {
350
+ export declare interface ISkeletonProps extends Omit<SkeletonProps, 'active'> {
341
351
  }
342
352
 
343
353
  export declare type ISliderProps = SliderSingleProps | SliderRangeProps;
@@ -463,7 +473,10 @@ export declare const Table: (props: ITableProps) => JSX_2.Element;
463
473
 
464
474
  export declare const Tabs: (props: ITabsProps) => JSX_2.Element;
465
475
 
466
- export declare const Tag: (props: ITagProps) => JSX_2.Element;
476
+ export declare const Tag: {
477
+ (props: ITagProps): JSX_2.Element;
478
+ CheckableTag: (props: CheckableTagProps) => JSX_2.Element;
479
+ };
467
480
 
468
481
  export declare const Timeline: (props: ITimelineProps) => JSX_2.Element;
469
482
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mparticle/aquarium",
3
- "version": "1.4.2",
3
+ "version": "1.6.0",
4
4
  "description": "mParticle Component Library",
5
5
  "license": "Apache-2.0",
6
6
  "keywords": [
@@ -16,18 +16,18 @@
16
16
  "main": "dist/aquarium.mjs",
17
17
  "files": [
18
18
  "dist/aquarium.mjs",
19
- "dist/index.d.ts"
19
+ "dist/index.d.ts",
20
+ "dist/_variables.css"
20
21
  ],
21
22
  "dependencies": {
22
23
  "@fortawesome/fontawesome-svg-core": "6.5.1",
23
24
  "@fortawesome/free-solid-svg-icons": "6.5.1",
24
- "@fortawesome/react-fontawesome": "0.2.0",
25
- "typescript": "5.3.3"
25
+ "@fortawesome/react-fontawesome": "0.2.0"
26
26
  },
27
27
  "peerDependencies": {
28
- "antd": "5.13.2",
29
- "react": "18.2.0",
30
- "react-dom": "18.2.0"
28
+ "antd": "<=5.13.2",
29
+ "react": "<=17.0.2",
30
+ "react-dom": "<=17.0.2"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@storybook/addon-essentials": "7.6.10",
@@ -42,10 +42,26 @@
42
42
  "@storybook/test": "7.6.10",
43
43
  "@storybook/test-runner": "0.16.0",
44
44
  "@storybook/testing-library": "0.2.2",
45
+ "@typescript-eslint/eslint-plugin": "6.19.0",
45
46
  "@vitejs/plugin-react": "4.2.1",
46
47
  "concurrently": "8.2.2",
48
+ "eslint": "8.56.0",
49
+ "eslint-config-prettier": "9.1.0",
50
+ "eslint-config-standard-with-typescript": "43.0.0",
51
+ "eslint-plugin-import": "2.29.1",
52
+ "eslint-plugin-n": "16.6.2",
53
+ "eslint-plugin-promise": "6.1.1",
54
+ "eslint-plugin-react": "7.33.2",
55
+ "eslint-plugin-react-hooks": "4.6.0",
47
56
  "http-server": "14.1.1",
57
+ "husky": "8.0.3",
58
+ "prettier": "3.1.1",
48
59
  "storybook": "7.6.10",
60
+ "stylelint": "16.2.0",
61
+ "stylelint-config-recommended": "14.0.0",
62
+ "stylelint-config-standard": "36.0.0",
63
+ "stylelint-no-indistinguishable-colors": "2.1.0",
64
+ "typescript": "5.3.3",
49
65
  "vite": "5.0.12",
50
66
  "vite-plugin-dts": "3.7.1",
51
67
  "wait-on": "7.2.0"
@@ -56,10 +72,24 @@
56
72
  "@swc/core-linux-x64-musl": "1.3.104"
57
73
  },
58
74
  "scripts": {
75
+ "prepare": "husky install",
76
+ "start": "npm run storybook",
59
77
  "storybook": "storybook dev -p 6006",
60
78
  "test-storybook": "test-storybook",
61
79
  "test-storybook:ci": "concurrently -k -s first -n \"SB,TEST\" -c \"magenta,blue\" \"npm run build-storybook --quiet && NODE_NO_WARNINGS=1 npx http-server storybook-static --port 6006 --silent\" \"wait-on tcp:127.0.0.1:6006 && npm run test-storybook\"",
62
80
  "build-dist": "sh ./scripts/build-dist.sh",
63
- "build-storybook": "storybook build"
81
+ "build-storybook": "storybook build",
82
+ "lint": "concurrently \"eslint --ext .ts,.tsx \"src/**/*.{ts,tsx}\"\" \"stylelint \"**/*.css\"\"",
83
+ "lint:fix": "concurrently \"eslint --ext .ts,.tsx \"src/**/*.{ts,tsx}\" --quiet --fix\" \"stylelint \"**/*.css\" --fix\"",
84
+ "tokens-to-css": "npx style-dictionary build --config ./style-dictionary.json"
85
+ },
86
+ "lint-staged": {
87
+ "*.{ts,tsx,css}": [
88
+ "npm run lint:fix",
89
+ "prettier --write"
90
+ ],
91
+ "*.{json,yml,md}": [
92
+ "prettier --write"
93
+ ]
64
94
  }
65
95
  }