@scality/core-ui 0.139.0 → 0.141.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,8 @@ export declare const iconTable: {
|
|
|
123
123
|
DarkMode: string;
|
|
124
124
|
News: string;
|
|
125
125
|
Ring: string;
|
|
126
|
+
Stop: string;
|
|
127
|
+
Play: string;
|
|
126
128
|
};
|
|
127
129
|
export declare const customIcons: {
|
|
128
130
|
'Remote-user': ({ ariaLabel, color, size }: {
|
|
@@ -145,7 +147,7 @@ type Props = {
|
|
|
145
147
|
ariaLabel?: string;
|
|
146
148
|
withWrapper?: boolean;
|
|
147
149
|
style?: CSSProperties;
|
|
148
|
-
onClick?: () => void;
|
|
150
|
+
onClick?: (event: MouseEvent) => void;
|
|
149
151
|
};
|
|
150
152
|
export declare const IconWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
151
153
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4HrB,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,8 @@ export const iconTable = {
|
|
|
135
135
|
DarkMode: 'fas faMoon',
|
|
136
136
|
News: 'fas faBullhorn',
|
|
137
137
|
Ring: 'fas faRing',
|
|
138
|
+
Stop: 'fas faStop',
|
|
139
|
+
Play: 'fas faPlay',
|
|
138
140
|
};
|
|
139
141
|
|
|
140
142
|
const getColor = (color: string | undefined): string => {
|
|
@@ -203,7 +205,7 @@ type Props = {
|
|
|
203
205
|
ariaLabel?: string;
|
|
204
206
|
withWrapper?: boolean;
|
|
205
207
|
style?: CSSProperties;
|
|
206
|
-
onClick?: () => void;
|
|
208
|
+
onClick?: (event: MouseEvent) => void;
|
|
207
209
|
};
|
|
208
210
|
|
|
209
211
|
const DelayedFallback = ({
|
package/stories/icons.mdx
CHANGED
|
@@ -93,6 +93,8 @@ 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 |
|
|
97
|
+
| <i className="fas fa-play fa-3x" /> | Play | Status | FA | play | `<i className="fas fa-play" />` | solid Style (fas) | yes | Upload play |
|
|
96
98
|
| <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
99
|
| <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
100
|
| <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 |
|