@sinco/react 1.0.16-rc.0 → 1.0.16-rc.2

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/index.js CHANGED
@@ -6503,6 +6503,150 @@ const getOverlayAlpha = elevation => {
6503
6503
  };
6504
6504
  var getOverlayAlpha$1 = getOverlayAlpha;
6505
6505
 
6506
+ const palette = {
6507
+ primary: {
6508
+ 50: "#E4ECF4",
6509
+ 100: "#BCD0E3",
6510
+ 200: "#8FB1D0",
6511
+ 300: "#6392BD",
6512
+ light: "#417AAE",
6513
+ main: "#2063A0",
6514
+ 600: "#1C5B98",
6515
+ 700: "#18518E",
6516
+ 800: "#134784",
6517
+ dark: "#0B3573",
6518
+ A100: "#A5C5FF",
6519
+ A200: "#72A4FF",
6520
+ A400: "#3F83FF",
6521
+ A700: "#2572FF",
6522
+ contrastText: "#ffffff"
6523
+ },
6524
+ secondary: {
6525
+ 50: "#E0F7FA",
6526
+ 100: "#B3EBF2",
6527
+ 200: "#80DEEA",
6528
+ 300: "#4DD0E1",
6529
+ light: "#26C6DA",
6530
+ main: "#00BCD4",
6531
+ 600: "#00B6CF",
6532
+ 700: "#00ADC9",
6533
+ 800: "#00A5C3",
6534
+ dark: "#0097B9",
6535
+ A100: "#E2F9FF",
6536
+ A200: "#AFEEFF",
6537
+ A400: "#7CE3FF",
6538
+ A700: "#63DDFF",
6539
+ contrastText: "#ffffff"
6540
+ },
6541
+ error: {
6542
+ 50: "#F9E8E8",
6543
+ 100: "#F1C7C7",
6544
+ 200: "#E8A1A1",
6545
+ 300: "#DF7B7B",
6546
+ light: "#D85F5F",
6547
+ main: "#D14343",
6548
+ 600: "#CC3D3D",
6549
+ 700: "#C63434",
6550
+ 800: "#C02C2C",
6551
+ dark: "#B51E1E",
6552
+ A100: "#FFECEC",
6553
+ A200: "#FFB9B9",
6554
+ A400: "#FF8686",
6555
+ A700: "#FF6D6D",
6556
+ contrastText: "#ffffff"
6557
+ },
6558
+ warning: {
6559
+ 50: "#FFF0E0",
6560
+ 100: "#FEDAB3",
6561
+ 200: "#FDC280",
6562
+ 300: "#FCAA4D",
6563
+ light: "#FC9726",
6564
+ main: "#FB8500",
6565
+ 600: "#FA7D00",
6566
+ 700: "#FA7200",
6567
+ 800: "#F96800",
6568
+ dark: "#F85500",
6569
+ A100: "#FFFFFF",
6570
+ A200: "#FFF1EB",
6571
+ A400: "#FFCCB8",
6572
+ A700: "#FFBA9F",
6573
+ contrastText: "#ffffff"
6574
+ },
6575
+ info: {
6576
+ 50: "#E6F3F8",
6577
+ 100: "#C0E2EE",
6578
+ 200: "#96CFE2",
6579
+ 300: "#6CBCD6",
6580
+ light: "#4DADCE",
6581
+ main: "#2D9FC5",
6582
+ 600: "#2897BF",
6583
+ 700: "#228DB8",
6584
+ 800: "#1C83B0",
6585
+ dark: "#1172A3",
6586
+ A100: "#D4EFFF",
6587
+ A200: "#A1DCFF",
6588
+ A400: "#6ECAFF",
6589
+ A700: "#54C1FF",
6590
+ contrastText: "#ffffff"
6591
+ },
6592
+ success: {
6593
+ 50: "#F2F9E7",
6594
+ 100: "#DDEFC4",
6595
+ 200: "#C7E49D",
6596
+ 300: "#B1D975",
6597
+ light: "#A0D158",
6598
+ main: "#8FC93A",
6599
+ 600: "#87C334",
6600
+ 700: "#7CBC2C",
6601
+ 800: "#72B525",
6602
+ dark: "#60A918",
6603
+ A100: "#EDFFDE",
6604
+ A200: "#D2FFAB",
6605
+ A400: "#B6FF78",
6606
+ A700: "#A9FF5E",
6607
+ contrastText: "#ffffff"
6608
+ },
6609
+ grey: {
6610
+ 50: "#F7F7F8",
6611
+ 100: "#EAEBEC",
6612
+ 200: "#DCDEE0",
6613
+ 300: "#CED1D4",
6614
+ 400: "#C4C7CA",
6615
+ 500: "#B9BDC1",
6616
+ 600: "#B2B7BB",
6617
+ 700: "#AAAEB3",
6618
+ 800: "#A2A6AB",
6619
+ 900: "#93989E",
6620
+ A100: "#FFFFFF",
6621
+ A200: "#FFFFFF",
6622
+ A400: "#D4EAFF",
6623
+ A700: "#BBDDFF"
6624
+ },
6625
+ text: {
6626
+ primary: "#101840de",
6627
+ secondary: "#10184099",
6628
+ disabled: "#10184061"
6629
+ },
6630
+ action: {
6631
+ active: "#1018408a",
6632
+ hover: "#10184066",
6633
+ selected: "#101840cc",
6634
+ disabled: "#10184042",
6635
+ disabledBackground: "#1018401f",
6636
+ focus: "#1018401f"
6637
+ },
6638
+ background: {
6639
+ default: "#f5f5f5",
6640
+ paper: "#fff"
6641
+ },
6642
+ common: {
6643
+ black: "#000",
6644
+ white: "#fff"
6645
+ },
6646
+ divider: "#0000001f"
6647
+ };
6648
+
6649
+ var _palette$grey, _palette$action;
6506
6650
  const components = {
6507
6651
  MuiDataGrid: {
6508
6652
  defaultProps: {
@@ -6674,7 +6818,20 @@ const components = {
6674
6818
  sizeMedium: {
6675
6819
  height: 24
6676
6820
  },
6821
+ filled: {
6822
+ backgroundColor: (_palette$grey = palette.grey) == null ? void 0 : _palette$grey[100]
6823
+ },
6824
+ icon: {
6825
+ color: (_palette$action = palette.action) == null ? void 0 : _palette$action.active,
6826
+ opacity: "26%"
6827
+ },
6677
6828
  root: {
6829
+ fontFamily: "Roboto",
6830
+ fontSize: "10px",
6831
+ fontStyle: "normal",
6832
+ fontWeight: 400,
6833
+ lineHeight: "10px",
6834
+ letterSpacing: "0.15px",
6678
6835
  height: "inherit",
6679
6836
  borderRadius: 4,
6680
6837
  ".MuiChip-deleteIconXsmall": {
@@ -7040,149 +7197,6 @@ const components = {
7040
7197
  }
7041
7198
  };
7042
7199
 
7043
- const palette = {
7044
- primary: {
7045
- 50: "#E4ECF4",
7046
- 100: "#BCD0E3",
7047
- 200: "#8FB1D0",
7048
- 300: "#6392BD",
7049
- light: "#417AAE",
7050
- main: "#2063A0",
7051
- 600: "#1C5B98",
7052
- 700: "#18518E",
7053
- 800: "#134784",
7054
- dark: "#0B3573",
7055
- A100: "#A5C5FF",
7056
- A200: "#72A4FF",
7057
- A400: "#3F83FF",
7058
- A700: "#2572FF",
7059
- contrastText: "#ffffff"
7060
- },
7061
- secondary: {
7062
- 50: "#E0F7FA",
7063
- 100: "#B3EBF2",
7064
- 200: "#80DEEA",
7065
- 300: "#4DD0E1",
7066
- light: "#26C6DA",
7067
- main: "#00BCD4",
7068
- 600: "#00B6CF",
7069
- 700: "#00ADC9",
7070
- 800: "#00A5C3",
7071
- dark: "#0097B9",
7072
- A100: "#E2F9FF",
7073
- A200: "#AFEEFF",
7074
- A400: "#7CE3FF",
7075
- A700: "#63DDFF",
7076
- contrastText: "#ffffff"
7077
- },
7078
- error: {
7079
- 50: "#F9E8E8",
7080
- 100: "#F1C7C7",
7081
- 200: "#E8A1A1",
7082
- 300: "#DF7B7B",
7083
- light: "#D85F5F",
7084
- main: "#D14343",
7085
- 600: "#CC3D3D",
7086
- 700: "#C63434",
7087
- 800: "#C02C2C",
7088
- dark: "#B51E1E",
7089
- A100: "#FFECEC",
7090
- A200: "#FFB9B9",
7091
- A400: "#FF8686",
7092
- A700: "#FF6D6D",
7093
- contrastText: "#ffffff"
7094
- },
7095
- warning: {
7096
- 50: "#FFF0E0",
7097
- 100: "#FEDAB3",
7098
- 200: "#FDC280",
7099
- 300: "#FCAA4D",
7100
- light: "#FC9726",
7101
- main: "#FB8500",
7102
- 600: "#FA7D00",
7103
- 700: "#FA7200",
7104
- 800: "#F96800",
7105
- dark: "#F85500",
7106
- A100: "#FFFFFF",
7107
- A200: "#FFF1EB",
7108
- A400: "#FFCCB8",
7109
- A700: "#FFBA9F",
7110
- contrastText: "#ffffff"
7111
- },
7112
- info: {
7113
- 50: "#E6F3F8",
7114
- 100: "#C0E2EE",
7115
- 200: "#96CFE2",
7116
- 300: "#6CBCD6",
7117
- light: "#4DADCE",
7118
- main: "#2D9FC5",
7119
- 600: "#2897BF",
7120
- 700: "#228DB8",
7121
- 800: "#1C83B0",
7122
- dark: "#1172A3",
7123
- A100: "#D4EFFF",
7124
- A200: "#A1DCFF",
7125
- A400: "#6ECAFF",
7126
- A700: "#54C1FF",
7127
- contrastText: "#ffffff"
7128
- },
7129
- success: {
7130
- 50: "#F2F9E7",
7131
- 100: "#DDEFC4",
7132
- 200: "#C7E49D",
7133
- 300: "#B1D975",
7134
- light: "#A0D158",
7135
- main: "#8FC93A",
7136
- 600: "#87C334",
7137
- 700: "#7CBC2C",
7138
- 800: "#72B525",
7139
- dark: "#60A918",
7140
- A100: "#EDFFDE",
7141
- A200: "#D2FFAB",
7142
- A400: "#B6FF78",
7143
- A700: "#A9FF5E",
7144
- contrastText: "#ffffff"
7145
- },
7146
- grey: {
7147
- 50: "#F7F7F8",
7148
- 100: "#EAEBEC",
7149
- 200: "#DCDEE0",
7150
- 300: "#CED1D4",
7151
- 400: "#C4C7CA",
7152
- 500: "#B9BDC1",
7153
- 600: "#B2B7BB",
7154
- 700: "#AAAEB3",
7155
- 800: "#A2A6AB",
7156
- 900: "#93989E",
7157
- A100: "#FFFFFF",
7158
- A200: "#FFFFFF",
7159
- A400: "#D4EAFF",
7160
- A700: "#BBDDFF"
7161
- },
7162
- text: {
7163
- primary: "#101840de",
7164
- secondary: "#10184099",
7165
- disabled: "#10184061"
7166
- },
7167
- action: {
7168
- active: "#0a12288a",
7169
- hover: "#0a122866",
7170
- selected: "#0a1228cc",
7171
- disabled: "#10184042",
7172
- disabledBackground: "#1018401f",
7173
- focus: "#1018401f"
7174
- },
7175
- background: {
7176
- default: "#f5f5f5",
7177
- paper: "#fff"
7178
- },
7179
- common: {
7180
- black: "#000",
7181
- white: "#fff"
7182
- },
7183
- divider: "#0000001f"
7184
- };
7185
-
7186
7200
  const breakpoints = createBreakpoints({
7187
7201
  values: {
7188
7202
  xs: 0,
@@ -13565,7 +13579,7 @@ const DefaultIcon = ({
13565
13579
  xlinkHref: `${emptyStateIcons}#${EmptyStateImageUrls[_state]}`
13566
13580
  }));
13567
13581
  };
13568
- const EmptyStateComponent = ({
13582
+ const EmptyState = ({
13569
13583
  state,
13570
13584
  title,
13571
13585
  subtitle,
@@ -14254,7 +14268,7 @@ const useProgress = timeProgress => {
14254
14268
  };
14255
14269
  };
14256
14270
 
14257
- const ToastNotificationComponent = toast => {
14271
+ const ToastNotification = toast => {
14258
14272
  const [stateOptions, setStateOptions] = useState(true);
14259
14273
  const [stateToast, setStateToast] = useState(true);
14260
14274
  const timeProgress = toast.time || 10;
@@ -14386,7 +14400,7 @@ function PageHeaderWraps({
14386
14400
  }
14387
14401
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, item);
14388
14402
  }
14389
- const PageHeaderComponent = ({
14403
+ const PageHeader = ({
14390
14404
  title,
14391
14405
  subtitle,
14392
14406
  actions,
@@ -19934,4 +19948,4 @@ const useDynamicColor = url => {
19934
19948
  };
19935
19949
  };
19936
19950
 
19937
- export { AdproSincoTheme, DrawerComponent as Drawer, DrawerComponent, DynamicColor, EmptyStateComponent as EmptyState, EmptyStateComponent, EmptyStateImageUrls, FooterAction, PageHeaderComponent as PageHeader, PageHeaderComponent, PageHeaderWraps, SincoTheme, ToastNotificationComponent as ToastNotification, ToastNotificationComponent, useDynamicColor };
19951
+ export { AdproSincoTheme, DrawerComponent as Drawer, DrawerComponent, DynamicColor, EmptyState, EmptyStateImageUrls, FooterAction, PageHeader, PageHeaderWraps, SincoTheme, ToastNotification, useDynamicColor };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sinco/react",
3
- "version": "1.0.16-rc.0",
3
+ "version": "1.0.16-rc.2",
4
4
  "description": "package for the configuration of mui react sinco",
5
5
  "private": false,
6
6
  "license": "MIT",
@@ -10,5 +10,4 @@ export interface EmptyStateProperties {
10
10
  iconStyle?: React.CSSProperties;
11
11
  containerHeight?: string;
12
12
  }
13
- export declare const EmptyStateComponent: ({ state, title, subtitle, actions, containerHeight, iconStyle, icon, }: EmptyStateProperties) => JSX.Element;
14
- export { EmptyStateComponent as EmptyState };
13
+ export declare const EmptyState: ({ state, title, subtitle, actions, containerHeight, iconStyle, icon, }: EmptyStateProperties) => JSX.Element;
@@ -12,5 +12,4 @@ export declare function PageHeaderWraps({ item, color, variant, }: {
12
12
  color: string;
13
13
  variant: Variant;
14
14
  }): JSX.Element;
15
- export declare const PageHeaderComponent: ({ title, subtitle, actions, buttonBack, fixed, }: PageheaderProperties) => JSX.Element;
16
- export { PageHeaderComponent as PageHeader };
15
+ export declare const PageHeader: ({ title, subtitle, actions, buttonBack, fixed, }: PageheaderProperties) => JSX.Element;
@@ -9,5 +9,4 @@ export interface ToastBaseProperties {
9
9
  actions?: React.ReactNode;
10
10
  seeMore?: boolean;
11
11
  }
12
- export declare const ToastNotificationComponent: (toast: ToastBaseProperties) => JSX.Element;
13
- export { ToastNotificationComponent as ToastNotification };
12
+ export declare const ToastNotification: (toast: ToastBaseProperties) => JSX.Element;