cozy-ui 136.2.1 → 136.3.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cozy-ui",
3
- "version": "136.2.1",
3
+ "version": "136.3.0",
4
4
  "description": "Cozy apps UI SDK",
5
5
  "main": "./index.js",
6
6
  "bin": {
@@ -4,6 +4,7 @@ import React from 'react'
4
4
 
5
5
  import styles from './styles.styl'
6
6
  import Icon from '../Icon'
7
+ import AITextIcon from '../Icons/AiText'
7
8
  import CalendarAppIcon from '../Icons/CalendarApp'
8
9
  import CalendarTextIcon from '../Icons/CalendarText'
9
10
  import ChatIcon from '../Icons/Chat'
@@ -68,6 +69,10 @@ const SLUG_TO_ICONS = {
68
69
  home: {
69
70
  icon: TwakeWorkplaceIcon,
70
71
  text: WorkplaceTextIcon
72
+ },
73
+ assistant: {
74
+ icon: null,
75
+ text: AITextIcon
71
76
  }
72
77
  }
73
78
 
@@ -723,6 +723,7 @@ import DemoProvider from 'cozy-ui/docs/components/DemoProvider'
723
723
  import cx from 'classnames'
724
724
 
725
725
  import AccountIcon from 'cozy-ui/transpiled/react/Icons/Account'
726
+ import AITextIcon from 'cozy-ui/transpiled/react/Icons/AiText'
726
727
  import AssistantColorIcon from 'cozy-ui/transpiled/react/Icons/AssistantColor'
727
728
  import BottomSelectIcon from 'cozy-ui/transpiled/react/Icons/BottomSelect'
728
729
  import CreditCardLargeIcon from 'cozy-ui/transpiled/react/Icons/CreditCardLarge'
@@ -779,6 +780,7 @@ import TwakeWorkplace from 'cozy-ui/transpiled/react/Icons/TwakeWorkplace'
779
780
 
780
781
  const icons = [
781
782
  AccountIcon,
783
+ AITextIcon,
782
784
  AssistantColorIcon,
783
785
  BottomSelectIcon,
784
786
  ChatIcon,
@@ -1056,7 +1058,7 @@ import Typography from 'cozy-ui/transpiled/react/Typography'
1056
1058
  import Grid from 'cozy-ui/transpiled/react/Grid'
1057
1059
  import Sprite from 'cozy-ui/transpiled/react/Icon/Sprite'
1058
1060
 
1059
- const availableIcons = ['account', 'assistant-color', 'bottom-select', 'check-white', 'cloud-broken', 'contacts', 'cozy-authentification', 'cozy-logo', 'cozy-upgrade', 'credit-card-large', 'dash-white', 'device-browser', 'device-laptop', 'device-phone', 'device-tablet', 'file-type-audio', 'file-type-banking-account' , 'file-type-bin', 'file-type-code', 'file-type-files', 'file-type-folder', 'file-type-server', 'file-type-shared-drive', 'file-type-shared-drive-grey', 'file-type-image', 'file-type-note', 'file-type-pdf', 'file-type-sheet', 'file-type-slide', 'file-type-text', 'file-type-video', 'file-type-zip', 'forbidden-sign', 'google', 'keychain', 'logout-large', 'papers', 'only-office', 'store', 'top-select', 'trash-duotone', 'cozy'];
1061
+ const availableIcons = ['account', 'ai-text', 'assistant-color', 'bottom-select', 'check-white', 'cloud-broken', 'contacts', 'cozy-authentification', 'cozy-logo', 'cozy-upgrade', 'credit-card-large', 'dash-white', 'device-browser', 'device-laptop', 'device-phone', 'device-tablet', 'file-type-audio', 'file-type-banking-account' , 'file-type-bin', 'file-type-code', 'file-type-files', 'file-type-folder', 'file-type-server', 'file-type-shared-drive', 'file-type-shared-drive-grey', 'file-type-image', 'file-type-note', 'file-type-pdf', 'file-type-sheet', 'file-type-slide', 'file-type-text', 'file-type-video', 'file-type-zip', 'forbidden-sign', 'google', 'keychain', 'logout-large', 'papers', 'only-office', 'store', 'top-select', 'trash-duotone', 'cozy'];
1060
1062
 
1061
1063
  <Grid container spacing={2}>
1062
1064
  <Sprite />
@@ -0,0 +1,15 @@
1
+ // Automatically created, please run `scripts/generate-svgr-icon.sh assets/icons/illus/ai-text.svg` to regenerate;
2
+ import React from 'react'
3
+
4
+ function SvgAiText(props) {
5
+ return (
6
+ <svg viewBox="0 0 27 22" fill="none" {...props}>
7
+ <path
8
+ d="M4.169 21.561h-4.17L7.592 0h4.821l7.602 21.561h-4.17l-5.758-17.14h-.169L4.17 21.562zm.137-8.454h11.37v3.138H4.306v-3.138zM26.759 0v21.561h-3.905V0h3.905z"
9
+ fill="#97A3B7"
10
+ />
11
+ </svg>
12
+ )
13
+ }
14
+
15
+ export default SvgAiText
@@ -538,6 +538,9 @@ export const makeLightNormalOverrides = theme => ({
538
538
  },
539
539
  MuiTableRow: {
540
540
  root: {
541
+ '&.new': {
542
+ backgroundColor: theme.palette.action.hover
543
+ },
541
544
  '&.disabled': {
542
545
  cursor: 'pointer',
543
546
  pointerEvents: 'none',
@@ -86,9 +86,10 @@ const TableRow = ({ item, context, componentsProps, ...props }) => {
86
86
  <TableRowClassic
87
87
  {...props}
88
88
  ref={node => dragRef(dropRef(node))}
89
- selected={isSelected || dropCollect.isOver || isNew}
89
+ selected={isSelected || dropCollect.isOver}
90
90
  className={cx(
91
- dragCollect.isDragging ? 'virtualized u-o-50' : 'virtualized'
91
+ dragCollect.isDragging ? 'virtualized u-o-50' : 'virtualized',
92
+ { new: isNew }
92
93
  )}
93
94
  disabled={isDisabled}
94
95
  hover
@@ -40,5 +40,3 @@ $selectionbar
40
40
  bottom 0
41
41
  box-sizing content-box
42
42
  height 3rem
43
- // iPhone X environment tweak
44
- padding-bottom env(safe-area-inset-bottom)
@@ -73,12 +73,6 @@ $app-main
73
73
  overflow hidden
74
74
  height 100%
75
75
 
76
- +medium-screen() // mobile + tablet
77
- // iPhone X environment tweak
78
- padding-left env(safe-area-inset-left)
79
- padding-right env(safe-area-inset-right)
80
- padding-bottom env(safe-area-inset-bottom)
81
-
82
76
  &-topbar
83
77
  // this pseudo-element is "ghost" element replacing bar
84
78
  &:before
@@ -12,6 +12,7 @@ var styles = {
12
12
  "c-apptitle-home-icon": "styles__c-apptitle-home-icon___1xJsd"
13
13
  };
14
14
  import Icon from "cozy-ui/transpiled/react/Icon";
15
+ import AITextIcon from "cozy-ui/transpiled/react/Icons/AiText";
15
16
  import CalendarAppIcon from "cozy-ui/transpiled/react/Icons/CalendarApp";
16
17
  import CalendarTextIcon from "cozy-ui/transpiled/react/Icons/CalendarText";
17
18
  import ChatIcon from "cozy-ui/transpiled/react/Icons/Chat";
@@ -75,6 +76,10 @@ var SLUG_TO_ICONS = {
75
76
  home: {
76
77
  icon: TwakeWorkplaceIcon,
77
78
  text: WorkplaceTextIcon
79
+ },
80
+ assistant: {
81
+ icon: null,
82
+ text: AITextIcon
78
83
  }
79
84
  };
80
85