@sinco/react 1.1.2-rc.44 → 1.1.2-rc.47
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.esm.js
    CHANGED
    
    | @@ -13234,16 +13234,19 @@ var EmptyStateImageUrls = { | |
| 13234 13234 | 
             
              search: 'search'
         | 
| 13235 13235 | 
             
            };
         | 
| 13236 13236 | 
             
            var DefaultIcon = function DefaultIcon(_ref) {
         | 
| 13237 | 
            -
              var _ref$ | 
| 13237 | 
            +
              var _ref$state = _ref.state,
         | 
| 13238 | 
            +
                state = _ref$state === void 0 ? 'create' : _ref$state,
         | 
| 13239 | 
            +
                _ref$iconStyle = _ref.iconStyle,
         | 
| 13238 13240 | 
             
                iconStyle = _ref$iconStyle === void 0 ? {
         | 
| 13239 13241 | 
             
                  width: '210px',
         | 
| 13240 13242 | 
             
                  height: '185px'
         | 
| 13241 13243 | 
             
                } : _ref$iconStyle;
         | 
| 13244 | 
            +
              var svgPath = "".concat(emptyStateIcons, "#").concat(EmptyStateImageUrls[state]);
         | 
| 13242 13245 | 
             
              return React__default.createElement("svg", {
         | 
| 13243 13246 | 
             
                "data-testid": "empty-state-icon",
         | 
| 13244 13247 | 
             
                style: iconStyle
         | 
| 13245 13248 | 
             
              }, React__default.createElement("use", {
         | 
| 13246 | 
            -
                xlinkHref:  | 
| 13249 | 
            +
                xlinkHref: svgPath
         | 
| 13247 13250 | 
             
              }));
         | 
| 13248 13251 | 
             
            };
         | 
| 13249 13252 | 
             
            var EmptyState = function EmptyState(_ref2) {
         | 
    
        package/package.json
    CHANGED
    
    
| @@ -1,5 +1,6 @@ | |
| 1 1 | 
             
            import React, { ReactNode } from 'react';
         | 
| 2 2 | 
             
            export type EmptyStateStates = 'create' | 'error' | 'noResult' | 'search';
         | 
| 3 | 
            +
            export declare const EmptyStateImageUrls: Record<EmptyStateStates, string>;
         | 
| 3 4 | 
             
            export interface EmptyStateProperties {
         | 
| 4 5 | 
             
                icon?: ReactNode;
         | 
| 5 6 | 
             
                state?: EmptyStateStates;
         | 
| @@ -9,5 +10,4 @@ export interface EmptyStateProperties { | |
| 9 10 | 
             
                iconStyle?: React.CSSProperties;
         | 
| 10 11 | 
             
                containerHeight?: string;
         | 
| 11 12 | 
             
            }
         | 
| 12 | 
            -
            export declare const EmptyStateImageUrls: Record<EmptyStateStates, string>;
         | 
| 13 13 | 
             
            export declare const EmptyState: ({ state, title, subtitle, actions, containerHeight, iconStyle, icon, }: EmptyStateProperties) => React.JSX.Element;
         |