cozy-ui 113.0.0 → 113.2.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/CHANGELOG.md CHANGED
@@ -1,3 +1,22 @@
1
+ # [113.2.0](https://github.com/cozy/cozy-ui/compare/v113.1.0...v113.2.0) (2024-11-14)
2
+
3
+
4
+ ### Features
5
+
6
+ * Add server icon ([88b8161](https://github.com/cozy/cozy-ui/commit/88b8161))
7
+
8
+ # [113.1.0](https://github.com/cozy/cozy-ui/compare/v113.0.0...v113.1.0) (2024-11-07)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **ShortcutTile:** Use relative import ([df81357](https://github.com/cozy/cozy-ui/commit/df81357))
14
+
15
+
16
+ ### Features
17
+
18
+ * **Typography:** Add types ([94c9ae6](https://github.com/cozy/cozy-ui/commit/94c9ae6))
19
+
1
20
  # [113.0.0](https://github.com/cozy/cozy-ui/compare/v112.3.0...v113.0.0) (2024-11-06)
2
21
 
3
22
 
@@ -0,0 +1 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0 2a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V2Zm5 1.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0ZM0 11a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-3Zm5 1.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Z"/></svg>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cozy-ui",
3
- "version": "113.0.0",
3
+ "version": "113.2.0",
4
4
  "description": "Cozy apps UI SDK",
5
5
  "main": "./index.js",
6
6
  "bin": {
@@ -276,6 +276,7 @@ import Safe from 'cozy-ui/transpiled/react/Icons/Safe'
276
276
  import School from 'cozy-ui/transpiled/react/Icons/School'
277
277
  import Scooter from 'cozy-ui/transpiled/react/Icons/Scooter'
278
278
  import SelectAll from 'cozy-ui/transpiled/react/Icons/SelectAll'
279
+ import Server from 'cozy-ui/transpiled/react/Icons/Server'
279
280
  import Setting from 'cozy-ui/transpiled/react/Icons/Setting'
280
281
  import Share from 'cozy-ui/transpiled/react/Icons/Share'
281
282
  import ShareCircle from 'cozy-ui/transpiled/react/Icons/ShareCircle'
@@ -540,6 +541,7 @@ const icons = [
540
541
  School,
541
542
  Scooter,
542
543
  SelectAll,
544
+ Server,
543
545
  Setting,
544
546
  Share,
545
547
  ShareCircle,
@@ -927,7 +929,7 @@ import Typography from 'cozy-ui/transpiled/react/Typography'
927
929
 
928
930
  const colors = ['#297EF2', '#08b442', '#B449E7', '#F52D2D', '#FF962F']
929
931
  let i = 0
930
- const availableIcons = ['album-add','album-remove','album','answer','apple','archive','arrowUp','attachment','attention','bank-check','bank','banking-add','banking','bell','benefit','bike','bill','bottom','browser-brave','browser-chrome','browser-duckduckgo','browser-edge','browser-edge-chromium','browser-firefox','browser-ie','browser-opera','browser-safari','burger','bus','calendar','camera','car','carbonCopy','carpooling','categories','certified','check-circle','check-list','check-square','check','checkbox','chess','child','circle-filled','clock','clock-outline','cloud-happy','cloud','collect','cocktail','comment','company','compare','compass','connector','contract','contrast','copy','cozy-circle','cozy-laugh', 'cozy-lock', 'cozy-text', 'cozy-release', 'credit-card-add','credit-card','credit','crop','cross-circle-outline','cross-circle','cross-medium','cross-small','cross','cube','dash','dashboard','data-control','debit','devices','dots','down','download','drawing-arrow-up','dropdown-close','dropdown-open','dropdown','dropup','electric-bike','electric-car','electric-scooter','email-notification','email','eu','euro','exchange','eye-closed','eye','face-id','file-add','file-duotone','file-new','file-none','file-outline','file','filter','fingerprint','fitness','flag-outlined','flag','flash-auto','flashlight','folder-add','folder-moveto','folder','forbidden','from-user','gear','globe','gouv','graph-circle','grid','group-list','groups','growth','hand','heart','help','help-outlined','history','home','hourglass','image','info-outlined','info','justice','key','label-outlined','laudry','laptop','left','library','lightbulb','lightning','link-out','link','list','list-min','location','lock', 'lock-screen', 'logout','magic-trick','magnet','magnifier','merge','moped','mosaic-min','motorcycle','mountain','movement-in','movement-out','mouvement','moveto','multi-files','music','new','next','note','notification-email','offline','online', 'openapp', 'openwith','palette','paper','paperplane','password','pen','people','percent-circle','percent','personal-data','phone-download','phone-upload','phone','pie-chart','pin','plane','plus-small','plus', 'pop-inside', 'previous','printer','qualify','radio-checked','radio-unchecked','refresh','relationship','remboursement','rename','repare','reply','restaurant','restore-straight','restore','right','rise','rotate-left','rotate-right','sad-cozy','safe','school','scooter','select-all','setting','share-circle','share','shield','shop','sound','spinner','sport-bag','stack','star','star-outline','stats','stop', 'subway', 'support', 'swap', 'sync-cozy','sync','tab','tag','target','task','team','telecom','telephone','text-info','to-the-cloud','top','train','tram','trash','trophy', 'uncloud', 'unknow','unlink','unlock','up','upload','videos','walk','wallet-add','wallet-new','wallet','warn','warning-circle','warning','water','wrench-circle','work']
932
+ const availableIcons = ['album-add','album-remove','album','answer','apple','archive','arrowUp','attachment','attention','bank-check','bank','banking-add','banking','bell','benefit','bike','bill','bottom','browser-brave','browser-chrome','browser-duckduckgo','browser-edge','browser-edge-chromium','browser-firefox','browser-ie','browser-opera','browser-safari','burger','bus','calendar','camera','car','carbonCopy','carpooling','categories','certified','check-circle','check-list','check-square','check','checkbox','chess','child','circle-filled','clock','clock-outline','cloud-happy','cloud','collect','cocktail','comment','company','compare','compass','connector','contract','contrast','copy','cozy-circle','cozy-laugh', 'cozy-lock', 'cozy-text', 'cozy-release', 'credit-card-add','credit-card','credit','crop','cross-circle-outline','cross-circle','cross-medium','cross-small','cross','cube','dash','dashboard','data-control','debit','devices','dots','down','download','drawing-arrow-up','dropdown-close','dropdown-open','dropdown','dropup','electric-bike','electric-car','electric-scooter','email-notification','email','eu','euro','exchange','eye-closed','eye','face-id','file-add','file-duotone','file-new','file-none','file-outline','file','filter','fingerprint','fitness','flag-outlined','flag','flash-auto','flashlight','folder-add','folder-moveto','folder','forbidden','from-user','gear','globe','gouv','graph-circle','grid','group-list','groups','growth','hand','heart','help','help-outlined','history','home','hourglass','image','info-outlined','info','justice','key','label-outlined','laudry','laptop','left','library','lightbulb','lightning','link-out','link','list','list-min','location','lock', 'lock-screen', 'logout','magic-trick','magnet','magnifier','merge','moped','mosaic-min','motorcycle','mountain','movement-in','movement-out','mouvement','moveto','multi-files','music','new','next','note','notification-email','offline','online', 'openapp', 'openwith','palette','paper','paperplane','password','pen','people','percent-circle','percent','personal-data','phone-download','phone-upload','phone','pie-chart','pin','plane','plus-small','plus', 'pop-inside', 'previous','printer','qualify','radio-checked','radio-unchecked','refresh','relationship','remboursement','rename','repare','reply','restaurant','restore-straight','restore','right','rise','rotate-left','rotate-right','sad-cozy','safe','school','scooter','select-all','server','setting','share-circle','share','shield','shop','sound','spinner','sport-bag','stack','star','star-outline','stats','stop', 'subway', 'support', 'swap', 'sync-cozy','sync','tab','tag','target','task','team','telecom','telephone','text-info','to-the-cloud','top','train','tram','trash','trophy', 'uncloud', 'unknow','unlink','unlock','up','upload','videos','walk','wallet-add','wallet-new','wallet','warn','warning-circle','warning','water','wrench-circle','work']
931
933
  ;
932
934
  <div style={{ fontSize: '2rem', display: 'grid', gridTemplateColumns: 'repeat(6, 1fr)' }}>
933
935
  <Sprite />
@@ -0,0 +1,16 @@
1
+ // Automatically created, please run `scripts/generate-svgr-icon.sh assets/icons/ui/server.svg` to regenerate;
2
+ import React from 'react'
3
+
4
+ function SvgServer(props) {
5
+ return (
6
+ <svg viewBox="0 0 16 16" {...props}>
7
+ <path
8
+ fillRule="evenodd"
9
+ clipRule="evenodd"
10
+ d="M0 2a2 2 0 012-2h12a2 2 0 012 2v3a2 2 0 01-2 2H2a2 2 0 01-2-2V2zm5 1.5a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0zM0 11a2 2 0 012-2h12a2 2 0 012 2v3a2 2 0 01-2 2H2a2 2 0 01-2-2v-3zm5 1.5a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0z"
11
+ />
12
+ </svg>
13
+ )
14
+ }
15
+
16
+ export default SvgServer
@@ -1,13 +1,11 @@
1
1
  import React from 'react'
2
2
 
3
3
  import { IOCozyFile } from 'cozy-client/types/types'
4
- // @ts-expect-error - The following component is not typed
5
- import { nameToColor } from 'cozy-ui/react/Avatar/helpers'
6
- // @ts-expect-error - The following component is not typed
7
- import Typography from 'cozy-ui/react/Typography'
8
4
 
9
5
  import styles from '../AppTile/styles.styl'
6
+ import { nameToColor } from '../Avatar/helpers'
10
7
  import { TileIcon } from '../Tile'
8
+ import Typography from '../Typography'
11
9
  import { makeStyles } from '../styles'
12
10
 
13
11
  interface ShortcutTileProps {
@@ -1,6 +1,16 @@
1
1
  import MuiTypography from '@material-ui/core/Typography'
2
2
  import React, { forwardRef } from 'react'
3
3
 
4
+ /**
5
+ * @typedef TypographyPropTypes
6
+ * @property {string} [color] - The color of the text.
7
+ * @property {string} [variant] - The variant of the text.
8
+ * @property {React.ReactNode} children - The content of the component.
9
+ */
10
+
11
+ /**
12
+ * @type React.ForwardRefRenderFunction<HTMLDivElement, TypographyPropTypes & MuiTypography>
13
+ */
4
14
  const Typography = forwardRef(({ color, variant, children, ...props }, ref) => {
5
15
  const madeColor =
6
16
  color || (variant === 'caption' ? 'textSecondary' : 'textPrimary')
@@ -0,0 +1 @@
1
+ export function nameToColor(name?: string): string;