@scality/core-ui 0.139.0 → 0.140.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.
|
@@ -123,6 +123,7 @@ export declare const iconTable: {
|
|
|
123
123
|
DarkMode: string;
|
|
124
124
|
News: string;
|
|
125
125
|
Ring: string;
|
|
126
|
+
Stop: string;
|
|
126
127
|
};
|
|
127
128
|
export declare const customIcons: {
|
|
128
129
|
'Remote-user': ({ ariaLabel, color, size }: {
|
|
@@ -145,7 +146,7 @@ type Props = {
|
|
|
145
146
|
ariaLabel?: string;
|
|
146
147
|
withWrapper?: boolean;
|
|
147
148
|
style?: CSSProperties;
|
|
148
|
-
onClick?: () => void;
|
|
149
|
+
onClick?: (event: MouseEvent) => void;
|
|
149
150
|
};
|
|
150
151
|
export declare const IconWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
151
152
|
size: SizeProp;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Icon.component.d.ts","sourceRoot":"","sources":["../../../src/lib/components/icon/Icon.component.tsx"],"names":[],"mappings":"AAAA,OAAc,EACZ,aAAa,EAKd,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAIhD,OAAO,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AAG7D,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"Icon.component.d.ts","sourceRoot":"","sources":["../../../src/lib/components/icon/Icon.component.tsx"],"names":[],"mappings":"AAAA,OAAc,EACZ,aAAa,EAKd,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAIhD,OAAO,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AAG7D,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2HrB,CAAC;AASF,eAAO,MAAM,WAAW;;;;;;;;;;;CAqCvB,CAAC;AAaF,MAAM,MAAM,QAAQ,GAAG,MAAM,OAAO,SAAS,GAAG,MAAM,OAAO,WAAW,CAAC;AACzE,MAAM,MAAM,SAAS,GAAG,MAAM,WAAW,CAAC;AAC1C,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,KAAK,CAAC,EAAE,SAAS,GAAG,aAAa,CAAC,OAAO,CAAC,CAAC;IAC3C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAC;CACvC,CAAC;AAiBF,eAAO,MAAM,WAAW;UAAsB,QAAQ;SAiCrD,CAAC;AAuEF,iBAAS,IAAI,CAAC,EAAE,WAAW,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,eAU7C;AAED,OAAO,EAAE,IAAI,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -135,6 +135,7 @@ export const iconTable = {
|
|
|
135
135
|
DarkMode: 'fas faMoon',
|
|
136
136
|
News: 'fas faBullhorn',
|
|
137
137
|
Ring: 'fas faRing',
|
|
138
|
+
Stop: 'fas faStop',
|
|
138
139
|
};
|
|
139
140
|
|
|
140
141
|
const getColor = (color: string | undefined): string => {
|
|
@@ -203,7 +204,7 @@ type Props = {
|
|
|
203
204
|
ariaLabel?: string;
|
|
204
205
|
withWrapper?: boolean;
|
|
205
206
|
style?: CSSProperties;
|
|
206
|
-
onClick?: () => void;
|
|
207
|
+
onClick?: (event: MouseEvent) => void;
|
|
207
208
|
};
|
|
208
209
|
|
|
209
210
|
const DelayedFallback = ({
|
package/stories/icons.mdx
CHANGED
|
@@ -93,6 +93,7 @@ When next to a text, the icon and the text should have the same size.
|
|
|
93
93
|
| <i className="fas fa-sign-out-alt fa-3x" /> | Log-out | Menu | FA | sign-out-alt | `<i className="fas fa-sign-out-alt" />` | solid Style (fas) | yes | Log out action |
|
|
94
94
|
| <i className="far fa-hourglass fa-3x" /> | Hourglass | Status | FA | hourglass | `<i className="far fa-hourglass" />` | regular Style (far) | ? | Workflow delayed |
|
|
95
95
|
| <i className="fas fa-pause fa-3x" /> | Pause | Status | FA | pause | `<i className="fas fa-pause" />` | solid Style (fas) | yes | Workflow paused |
|
|
96
|
+
| <i className="fas fa-stop fa-3x" /> | Stop | Status | FA | stop | `<i className="fas fa-stop" />` | solid Style (fas) | yes | Upload stop |
|
|
96
97
|
| <i className="fas fa-level-up-alt fa-3x" /> | Upgrade | Button-action | FA | level-up-alt | `<i className="fas fa-level-up-alt" />` | solid Style (fas) | yes | Upgrade version |
|
|
97
98
|
| <i className="fas fa-expand-alt fa-3x" /> | Expansion | Button-action | FA | expand-alt | `<i className="fas fa-expand-alt" />` | solid Style (fas) | yes | Expand with no rebalancing |
|
|
98
99
|
| <i className="fas fa-balance-scale fa-3x" /> | Rebalance | Button-action | FA | balance-scale | `<i className="fas fa-balance-scale" />` | solid Style (fas) | yes | Expand with rebalancing |
|