orcs-design-system 3.1.17 → 3.1.19

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.
@@ -135,7 +135,8 @@ export var ActionsMenuBody = function ActionsMenuBody(_ref) {
135
135
  menuWidth = _ref.menuWidth,
136
136
  customTriggerComponent = _ref.customTriggerComponent,
137
137
  children = _ref.children,
138
- ariaLabel = _ref.ariaLabel,
138
+ _ref$ariaLabel = _ref.ariaLabel,
139
+ ariaLabel = _ref$ariaLabel === void 0 ? "Options Menu" : _ref$ariaLabel,
139
140
  props = _objectWithoutProperties(_ref, _excluded2);
140
141
  var _useState = useState({
141
142
  menuLeftPosition: menuLeftPosition,
@@ -363,6 +364,17 @@ ActionsMenuBody.__docgenInfo = {
363
364
  "methods": [],
364
365
  "displayName": "ActionsMenuBody",
365
366
  "props": {
367
+ "ariaLabel": {
368
+ "defaultValue": {
369
+ "value": "\"Options Menu\"",
370
+ "computed": false
371
+ },
372
+ "description": "",
373
+ "type": {
374
+ "name": "string"
375
+ },
376
+ "required": false
377
+ },
366
378
  "onToggle": {
367
379
  "description": "",
368
380
  "type": {
@@ -440,13 +452,6 @@ ActionsMenuBody.__docgenInfo = {
440
452
  "name": "object"
441
453
  },
442
454
  "required": false
443
- },
444
- "ariaLabel": {
445
- "description": "",
446
- "type": {
447
- "name": "string"
448
- },
449
- "required": false
450
455
  }
451
456
  }
452
457
  };
@@ -14,7 +14,7 @@ export var defaultAvatar = function defaultAvatar() {
14
14
  title: "Ayden Lundgre",
15
15
  initials: "AL",
16
16
  subtitle: "Senior Business Analyst",
17
- image: "https://uploads-ssl.webflow.com/5f4852427e784b4cada3e0d0/65389e85f6932722401c73ad_ethan.png"
17
+ image: "https://api.dicebear.com/7.x/personas/svg?seed=aydos"
18
18
  });
19
19
  };
20
20
  defaultAvatar.storyName = "Default";
@@ -37,7 +37,7 @@ export var imageOnly = function imageOnly() {
37
37
  return /*#__PURE__*/React.createElement(Spacer, {
38
38
  my: 4
39
39
  }, /*#__PURE__*/React.createElement(Avatar, {
40
- image: "https://uploads-ssl.webflow.com/5f4852427e784b4cada3e0d0/65389e85f6932722401c73ad_ethan.png",
40
+ image: "https://api.dicebear.com/7.x/personas/svg?seed=aydos",
41
41
  imageAlt: "Ayden Lundgre"
42
42
  }));
43
43
  };
@@ -58,7 +58,7 @@ export var nameLink = function nameLink() {
58
58
  }, "Ayden Lundgre"),
59
59
  subtitle: "Senior Business Analyst",
60
60
  initials: "AL",
61
- image: "https://uploads-ssl.webflow.com/5f4852427e784b4cada3e0d0/65389e85f6932722401c73ad_ethan.png",
61
+ image: "https://api.dicebear.com/7.x/personas/svg?seed=aydos",
62
62
  imageAlt: "Ayden Lundgre"
63
63
  });
64
64
  };
@@ -76,7 +76,7 @@ export var small = function small() {
76
76
  title: "Ayden Lundgre",
77
77
  subtitle: "Senior Business Analyst",
78
78
  initials: "AL",
79
- image: "https://uploads-ssl.webflow.com/5f4852427e784b4cada3e0d0/65389e85f6932722401c73ad_ethan.png"
79
+ image: "https://api.dicebear.com/7.x/personas/svg?seed=aydos"
80
80
  }), /*#__PURE__*/React.createElement(Avatar, {
81
81
  sizing: "small",
82
82
  title: /*#__PURE__*/React.createElement(StyledLink, {
@@ -85,7 +85,7 @@ export var small = function small() {
85
85
  subtitle: "Senior Business Analyst",
86
86
  imageAlt: "Avatar for Ayden Lundgre",
87
87
  initials: "AL",
88
- image: "https://uploads-ssl.webflow.com/5f4852427e784b4cada3e0d0/65389e85f6932722401c73ad_ethan.png"
88
+ image: "https://api.dicebear.com/7.x/personas/svg?seed=aydos"
89
89
  }));
90
90
  };
91
91
  small.storyName = "Small";
@@ -103,7 +103,7 @@ export var large = function large() {
103
103
  title: "Ayden Lundgre",
104
104
  subtitle: "Senior Business Analyst",
105
105
  initials: "AL",
106
- image: "https://uploads-ssl.webflow.com/5f4852427e784b4cada3e0d0/65389e85f6932722401c73ad_ethan.png"
106
+ image: "https://api.dicebear.com/7.x/personas/svg?seed=aydos"
107
107
  }), /*#__PURE__*/React.createElement(Avatar, {
108
108
  sizing: "large",
109
109
  title: /*#__PURE__*/React.createElement(StyledLink, {
@@ -112,7 +112,7 @@ export var large = function large() {
112
112
  subtitle: "Senior Business Analyst",
113
113
  imageAlt: "Avatar for Ayden Lundgre",
114
114
  initials: "AL",
115
- image: "https://uploads-ssl.webflow.com/5f4852427e784b4cada3e0d0/65389e85f6932722401c73ad_ethan.png"
115
+ image: "https://api.dicebear.com/7.x/personas/svg?seed=aydos"
116
116
  }));
117
117
  };
118
118
  large.storyName = "Large";
@@ -138,7 +138,7 @@ export var subtitleContent = function subtitleContent() {
138
138
  }, "Ayden Lundgre"),
139
139
  imageAlt: "Avatar for Ayden Lundgre",
140
140
  initials: "AL",
141
- image: "https://uploads-ssl.webflow.com/5f4852427e784b4cada3e0d0/65389e85f6932722401c73ad_ethan.png",
141
+ image: "https://api.dicebear.com/7.x/personas/svg?seed=aydos",
142
142
  subtitleContent: /*#__PURE__*/React.createElement(Badge, {
143
143
  mt: "xs"
144
144
  }, "Senior Business Analyst")
@@ -148,7 +148,7 @@ export var subtitleContent = function subtitleContent() {
148
148
  href: "#"
149
149
  }, "Ayden Lundgre"),
150
150
  initials: "AL",
151
- image: "https://uploads-ssl.webflow.com/5f4852427e784b4cada3e0d0/65389e85f6932722401c73ad_ethan.png",
151
+ image: "https://api.dicebear.com/7.x/personas/svg?seed=aydos",
152
152
  imageAlt: "Avatar for Ayden Lundgre",
153
153
  subtitleContent: /*#__PURE__*/React.createElement(Flex, {
154
154
  flexWrap: "wrap"
@@ -170,7 +170,7 @@ export var localTime = function localTime() {
170
170
  href: "#"
171
171
  }, "Ayden Lundgre"),
172
172
  initials: "AL",
173
- image: "https://uploads-ssl.webflow.com/5f4852427e784b4cada3e0d0/65389e85f6932722401c73ad_ethan.png",
173
+ image: "https://api.dicebear.com/7.x/personas/svg?seed=aydos",
174
174
  imageAlt: "Avatar for Ayden Lundgre",
175
175
  subtitleContent: /*#__PURE__*/React.createElement(Badge, {
176
176
  mt: "xs"
@@ -190,7 +190,7 @@ export var inverted = function inverted() {
190
190
  title: "Ayden Lundgre",
191
191
  subtitle: "Senior Business Analyst",
192
192
  initials: "AL",
193
- image: "https://uploads-ssl.webflow.com/5f4852427e784b4cada3e0d0/65389e85f6932722401c73ad_ethan.png"
193
+ image: "https://api.dicebear.com/7.x/personas/svg?seed=aydos"
194
194
  }), /*#__PURE__*/React.createElement(Avatar, {
195
195
  type: "inverted",
196
196
  title: /*#__PURE__*/React.createElement(StyledLink, {
@@ -198,7 +198,7 @@ export var inverted = function inverted() {
198
198
  }, "Ayden Lundgre"),
199
199
  subtitle: "Senior Business Analyst",
200
200
  initials: "AL",
201
- image: "https://uploads-ssl.webflow.com/5f4852427e784b4cada3e0d0/65389e85f6932722401c73ad_ethan.png",
201
+ image: "https://api.dicebear.com/7.x/personas/svg?seed=aydos",
202
202
  imageAlt: "Avatar for Ayden Lundgre"
203
203
  }), /*#__PURE__*/React.createElement(Avatar, {
204
204
  type: "inverted",
@@ -216,7 +216,7 @@ export var inverted = function inverted() {
216
216
  }, "Ayden Lundgre"),
217
217
  subtitle: "Senior Business Analyst",
218
218
  initials: "AL",
219
- image: "https://uploads-ssl.webflow.com/5f4852427e784b4cada3e0d0/65389e85f6932722401c73ad_ethan.png",
219
+ image: "https://api.dicebear.com/7.x/personas/svg?seed=aydos",
220
220
  imageAlt: "Avatar for Ayden Lundgre"
221
221
  })));
222
222
  };
@@ -111,18 +111,21 @@ export var iconOnly = function iconOnly() {
111
111
  }, /*#__PURE__*/React.createElement(Button, {
112
112
  small: true,
113
113
  iconOnly: true,
114
- p: "s"
114
+ p: "s",
115
+ "aria-label": "Show calendar"
115
116
  }, /*#__PURE__*/React.createElement(Icon, {
116
117
  icon: ["far", "calendar-alt"]
117
118
  })), /*#__PURE__*/React.createElement(Button, {
118
119
  iconOnly: true,
119
- p: "s"
120
+ p: "s",
121
+ "aria-label": "Show calendar"
120
122
  }, /*#__PURE__*/React.createElement(Icon, {
121
123
  icon: ["far", "calendar-alt"]
122
124
  })), /*#__PURE__*/React.createElement(Button, {
123
125
  large: true,
124
126
  iconOnly: true,
125
- p: "s"
127
+ p: "s",
128
+ "aria-label": "Show calendar"
126
129
  }, /*#__PURE__*/React.createElement(Icon, {
127
130
  icon: ["far", "calendar-alt"]
128
131
  })), /*#__PURE__*/React.createElement(Flex, {
@@ -135,7 +138,8 @@ export var iconOnly = function iconOnly() {
135
138
  variant: "success",
136
139
  onClick: action("clicked"),
137
140
  width: "33px",
138
- height: "32px"
141
+ height: "32px",
142
+ "aria-label": "Confirm"
139
143
  }, /*#__PURE__*/React.createElement(Icon, {
140
144
  icon: ["fas", "check"]
141
145
  })), /*#__PURE__*/React.createElement(Button, {
@@ -143,7 +147,8 @@ export var iconOnly = function iconOnly() {
143
147
  variant: "successAlternate",
144
148
  onClick: action("clicked"),
145
149
  width: "33px",
146
- height: "32px"
150
+ height: "32px",
151
+ "aria-label": "Confirm"
147
152
  }, /*#__PURE__*/React.createElement(Icon, {
148
153
  icon: ["fas", "check"]
149
154
  })), /*#__PURE__*/React.createElement(Button, {
@@ -151,7 +156,8 @@ export var iconOnly = function iconOnly() {
151
156
  variant: "danger",
152
157
  onClick: action("clicked"),
153
158
  width: "33px",
154
- height: "32px"
159
+ height: "32px",
160
+ "aria-label": "Cancel"
155
161
  }, /*#__PURE__*/React.createElement(Icon, {
156
162
  icon: ["fas", "times"]
157
163
  })), /*#__PURE__*/React.createElement(Button, {
@@ -159,7 +165,8 @@ export var iconOnly = function iconOnly() {
159
165
  variant: "dangerAlternate",
160
166
  onClick: action("clicked"),
161
167
  width: "33px",
162
- height: "32px"
168
+ height: "32px",
169
+ "aria-label": "Cancel"
163
170
  }, /*#__PURE__*/React.createElement(Icon, {
164
171
  icon: ["fas", "times"]
165
172
  })))));
@@ -9,7 +9,8 @@ export var defaultHeader = function defaultHeader() {
9
9
  return /*#__PURE__*/React.createElement(HeaderSimple, {
10
10
  appName: "App Name",
11
11
  userName: "Michael",
12
- avatarSource: "https://uploads-ssl.webflow.com/5f4852427e784b4cada3e0d0/65389e85368bfb13dac1205e_harry.png",
12
+ avatarSource: "https://api.dicebear.com/7.x/personas/svg?seed=mike",
13
+ avatarAlt: "Avatar for Michael",
13
14
  currentWorskapce: "Org Design Workspace"
14
15
  });
15
16
  };
@@ -19,7 +20,8 @@ export var headerWithSearch = function headerWithSearch() {
19
20
  variant: "search",
20
21
  appName: "App Name",
21
22
  userName: "Michael",
22
- avatarSource: "https://uploads-ssl.webflow.com/5f4852427e784b4cada3e0d0/65389e85368bfb13dac1205e_harry.png",
23
+ avatarSource: "https://api.dicebear.com/7.x/personas/svg?seed=mike",
24
+ avatarAlt: "Avatar for Michael",
23
25
  currentWorskapce: "Org Design Workspace",
24
26
  searchComponent: /*#__PURE__*/React.createElement(TextInput, {
25
27
  fullWidth: true,
@@ -86,6 +86,7 @@ var HeaderSimple = function HeaderSimple(_ref) {
86
86
  var appName = _ref.appName,
87
87
  userName = _ref.userName,
88
88
  avatarSource = _ref.avatarSource,
89
+ avatarAlt = _ref.avatarAlt,
89
90
  searchComponent = _ref.searchComponent,
90
91
  dataTestId = _ref.dataTestId,
91
92
  variant = _ref.variant,
@@ -113,7 +114,8 @@ var HeaderSimple = function HeaderSimple(_ref) {
113
114
  type: "inverted",
114
115
  sizing: "small",
115
116
  title: userName,
116
- image: avatarSource
117
+ image: avatarSource,
118
+ imageAlt: avatarAlt
117
119
  })));
118
120
  };
119
121
  HeaderSimple.propTypes = {
@@ -127,6 +129,8 @@ HeaderSimple.propTypes = {
127
129
  userName: PropTypes.node,
128
130
  /** Source path for avatar image. */
129
131
  avatarSource: PropTypes.node,
132
+ /** Alt text for avatar image. */
133
+ avatarAlt: PropTypes.string,
130
134
  /** Can specify a component to be used for searching */
131
135
  searchComponent: PropTypes.node,
132
136
  /** Applies the chosen theme to the entire header. */
@@ -178,6 +182,13 @@ HeaderSimple.__docgenInfo = {
178
182
  },
179
183
  "required": false
180
184
  },
185
+ "avatarAlt": {
186
+ "description": "Alt text for avatar image.",
187
+ "type": {
188
+ "name": "string"
189
+ },
190
+ "required": false
191
+ },
181
192
  "searchComponent": {
182
193
  "description": "Can specify a component to be used for searching",
183
194
  "type": {
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
3
3
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
4
4
  var _excluded = ["children", "direction", "width", "textAlign", "text", "inlineBlock", "theme", "variant", "enableSelectAll", "tabIndex"];
5
- import React, { useId, useMemo, useState } from "react";
5
+ import React, { useId, useState } from "react";
6
6
  import PropTypes from "prop-types";
7
7
  import styled, { css, ThemeProvider } from "styled-components";
8
8
  import { space, layout } from "styled-system";
@@ -10,14 +10,13 @@ import { keys } from "lodash";
10
10
  import Icon from "../Icon";
11
11
  import { themeGet } from "@styled-system/theme-get";
12
12
  import { useKeepInView, directions } from "../../hooks/keepInView";
13
- import useIsVisible from "../../hooks/isVisible";
14
13
  var Container = styled.div.withConfig({
15
14
  displayName: "Popover__Container",
16
15
  componentId: "sc-1bwoak-0"
17
16
  })(["", " ", " display:", ";position:relative;&:hover,&:focus-within{.popoverText{opacity:1;z-index:100;visibility:visible;pointer-events:auto;}}"], space, layout, function (props) {
18
17
  return props.inlineBlock ? "inline-block !important" : "block !important";
19
18
  });
20
- var TooltipControl = styled.button.withConfig({
19
+ var TooltipControl = styled.div.withConfig({
21
20
  displayName: "Popover__TooltipControl",
22
21
  componentId: "sc-1bwoak-1"
23
22
  })(["border:none;background:none;padding:0;cursor:help;font-size:1em;transition:", ";&:hover,&:focus{outline:0;color:", ";}"], function (props) {
@@ -87,10 +86,6 @@ export default function Popover(_ref2) {
87
86
  _useState2 = _slicedToArray(_useState, 2),
88
87
  inViewDirection = _useState2[0],
89
88
  setInViewDirection = _useState2[1];
90
- var _useIsVisible = useIsVisible(),
91
- _useIsVisible2 = _slicedToArray(_useIsVisible, 2),
92
- isActive = _useIsVisible2[0],
93
- tooltip = _useIsVisible2[1];
94
89
  var toolTipId = useId();
95
90
  var _useKeepInView = useKeepInView({
96
91
  direction: direction,
@@ -99,13 +94,6 @@ export default function Popover(_ref2) {
99
94
  _useKeepInView2 = _slicedToArray(_useKeepInView, 2),
100
95
  ref = _useKeepInView2[0],
101
96
  setIsShown = _useKeepInView2[1];
102
- var ariaLabel = useMemo(function () {
103
- if (props.ariaLabel) {
104
- return props.ariaLabel;
105
- } else if (typeof text === "string") {
106
- return text;
107
- }
108
- }, [props.ariaLabel, text]);
109
97
  var component = /*#__PURE__*/React.createElement(Container, _extends({
110
98
  inlineBlock: inlineBlock
111
99
  }, props, {
@@ -114,28 +102,23 @@ export default function Popover(_ref2) {
114
102
  },
115
103
  onMouseLeave: function onMouseLeave() {
116
104
  return setIsShown(false);
117
- }
118
- }), variant === "tooltip" && /*#__PURE__*/React.createElement(TooltipControl, {
119
- tabIndex: tabIndex,
120
- "aria-label": ariaLabel,
121
- "aria-expanded": "".concat(isActive),
105
+ },
122
106
  "aria-describedby": toolTipId
107
+ }), variant === "tooltip" && /*#__PURE__*/React.createElement(TooltipControl, {
108
+ tabIndex: tabIndex
123
109
  }, /*#__PURE__*/React.createElement(Icon, {
124
110
  transform: "grow-4",
125
111
  icon: ["fas", "question-circle"]
126
112
  })), !!text && /*#__PURE__*/React.createElement(Text, {
127
113
  ref: ref,
128
- role: "list",
114
+ role: "tooltip",
129
115
  className: "popoverText",
130
116
  textAlign: textAlign,
131
117
  direction: inViewDirection,
132
118
  width: width,
133
- enableSelectAll: enableSelectAll
134
- }, /*#__PURE__*/React.createElement("span", {
135
- id: toolTipId,
136
- role: "listitem",
137
- ref: tooltip
138
- }, text)), children);
119
+ enableSelectAll: enableSelectAll,
120
+ id: toolTipId
121
+ }, text), children);
139
122
  return theme ? /*#__PURE__*/React.createElement(ThemeProvider, {
140
123
  theme: theme
141
124
  }, component) : component;
@@ -100,11 +100,13 @@ export var SpecificHeightSelect = function SpecificHeightSelect() {
100
100
  }, /*#__PURE__*/React.createElement(Select, {
101
101
  height: "30px",
102
102
  padding: "0 8px",
103
- options: options
103
+ options: options,
104
+ "aria-label": "Select label"
104
105
  }), /*#__PURE__*/React.createElement(Select, {
105
106
  height: "56px",
106
107
  padding: "4px 12px",
107
- options: options
108
+ options: options,
109
+ "aria-label": "Select label"
108
110
  })));
109
111
  };
110
112
  defaultSelect.story = {
@@ -113,7 +115,8 @@ defaultSelect.story = {
113
115
  export var multiSelect = function multiSelect() {
114
116
  return /*#__PURE__*/React.createElement(Select, {
115
117
  options: options,
116
- isMulti: true
118
+ isMulti: true,
119
+ "aria-label": "Select label"
117
120
  });
118
121
  };
119
122
  multiSelect.story = {
@@ -159,7 +162,8 @@ export var multiSelectWithFixedOptions = function multiSelectWithFixedOptions()
159
162
  value: selected,
160
163
  isMulti: true,
161
164
  isClearable: false,
162
- onChange: onChange
165
+ onChange: onChange,
166
+ "aria-label": "Select label"
163
167
  });
164
168
  };
165
169
  multiSelectWithFixedOptions.story = {
@@ -175,11 +179,13 @@ export var invertedSelect = function invertedSelect() {
175
179
  mb: "l"
176
180
  }, /*#__PURE__*/React.createElement(Select, {
177
181
  options: options,
178
- inverted: true
182
+ inverted: true,
183
+ "aria-label": "Select label"
179
184
  }), /*#__PURE__*/React.createElement(Select, {
180
185
  options: options,
181
186
  inverted: true,
182
- isMulti: true
187
+ isMulti: true,
188
+ "aria-label": "Select label"
183
189
  })));
184
190
  };
185
191
  invertedSelect.story = {
@@ -188,7 +194,8 @@ invertedSelect.story = {
188
194
  export var withDataIdSelect = function withDataIdSelect() {
189
195
  return /*#__PURE__*/React.createElement(Select, {
190
196
  options: options,
191
- "data-testid": "test-this-component"
197
+ "data-testid": "test-this-component",
198
+ "aria-label": "Select label"
192
199
  });
193
200
  };
194
201
  withDataIdSelect.story = {
@@ -197,7 +204,8 @@ withDataIdSelect.story = {
197
204
  export var withSelectedValueSelect = function withSelectedValueSelect() {
198
205
  return /*#__PURE__*/React.createElement(Select, {
199
206
  options: options,
200
- defaultValue: getOptionByValue(options, "chocolate")
207
+ defaultValue: getOptionByValue(options, "chocolate"),
208
+ "aria-label": "Select label"
201
209
  });
202
210
  };
203
211
  withSelectedValueSelect.storyName = "With Selected Value";
@@ -205,7 +213,8 @@ export var withCreatableSelect = function withCreatableSelect() {
205
213
  return /*#__PURE__*/React.createElement(Select, {
206
214
  options: options,
207
215
  selectType: "creatable",
208
- isMulti: true
216
+ isMulti: true,
217
+ "aria-label": "Select label"
209
218
  });
210
219
  };
211
220
  withCreatableSelect.storyName = "With Creatable";
@@ -213,7 +222,8 @@ export var withAsyncSelect = function withAsyncSelect() {
213
222
  return /*#__PURE__*/React.createElement(Select, {
214
223
  defaultOptions: options,
215
224
  selectType: "async",
216
- isMulti: true
225
+ isMulti: true,
226
+ "aria-label": "Select label"
217
227
  });
218
228
  };
219
229
  withAsyncSelect.storyName = "With Async";
@@ -221,7 +231,8 @@ export var withGroupedOptions = function withGroupedOptions() {
221
231
  return /*#__PURE__*/React.createElement(Select, {
222
232
  options: groupedOptions,
223
233
  isMulti: true,
224
- menuIsOpen: true
234
+ menuIsOpen: true,
235
+ "aria-label": "Select label"
225
236
  });
226
237
  };
227
238
  withGroupedOptions.storyName = "With Grouped Options";
@@ -251,7 +251,7 @@ var Select = /*#__PURE__*/forwardRef(function (props, ref) {
251
251
  fontSize: themeGet("fontSizes.0")({
252
252
  theme: theme
253
253
  }),
254
- color: themeGet("colors.grey")({
254
+ color: themeGet("colors.greyDark")({
255
255
  theme: theme
256
256
  })
257
257
  });
@@ -213,7 +213,7 @@ export var personTag = function personTag() {
213
213
  }, /*#__PURE__*/React.createElement(Tag, {
214
214
  disabled: true,
215
215
  personEntity: {
216
- avatarSrc: "https://uploads-ssl.webflow.com/5f4852427e784b4cada3e0d0/65389e85af9ec00f6c03f592_kai.png"
216
+ avatarSrc: "https://api.dicebear.com/7.x/personas/svg?seed=maxi"
217
217
  }
218
218
  }, "Maximillian Dubois"), /*#__PURE__*/React.createElement(Tag, {
219
219
  disabled: true,
@@ -225,7 +225,7 @@ export var personTag = function personTag() {
225
225
  personEntity: true
226
226
  }, "Maximillian Dubois"), /*#__PURE__*/React.createElement(Tag, {
227
227
  personEntity: {
228
- avatarSrc: "https://uploads-ssl.webflow.com/5f4852427e784b4cada3e0d0/65389e85af9ec00f6c03f592_kai.png"
228
+ avatarSrc: "https://api.dicebear.com/7.x/personas/svg?seed=maxi"
229
229
  }
230
230
  }, "Maximillian Dubois"), /*#__PURE__*/React.createElement(Tag, {
231
231
  personEntity: {
@@ -236,7 +236,7 @@ export var personTag = function personTag() {
236
236
  }, "Maximillian Dubois"), /*#__PURE__*/React.createElement(Tag, {
237
237
  selected: true,
238
238
  personEntity: {
239
- avatarSrc: "https://uploads-ssl.webflow.com/5f4852427e784b4cada3e0d0/65389e85af9ec00f6c03f592_kai.png"
239
+ avatarSrc: "https://api.dicebear.com/7.x/personas/svg?seed=maxi"
240
240
  }
241
241
  }, "Maximillian Dubois"), /*#__PURE__*/React.createElement(Tag, {
242
242
  selected: true,
@@ -250,7 +250,7 @@ export var personTag = function personTag() {
250
250
  selected: true,
251
251
  highlighted: true,
252
252
  personEntity: {
253
- avatarSrc: "https://uploads-ssl.webflow.com/5f4852427e784b4cada3e0d0/65389e85af9ec00f6c03f592_kai.png"
253
+ avatarSrc: "https://api.dicebear.com/7.x/personas/svg?seed=maxi"
254
254
  }
255
255
  }, "Maximillian Dubois"), /*#__PURE__*/React.createElement(Tag, {
256
256
  selected: true,
@@ -271,7 +271,7 @@ export var personTagSmall = function personTagSmall() {
271
271
  small: true,
272
272
  disabled: true,
273
273
  personEntity: {
274
- avatarSrc: "https://uploads-ssl.webflow.com/5f4852427e784b4cada3e0d0/65389e85af9ec00f6c03f592_kai.png"
274
+ avatarSrc: "https://api.dicebear.com/7.x/personas/svg?seed=maxi"
275
275
  }
276
276
  }, "Maximillian Dubois"), /*#__PURE__*/React.createElement(Tag, {
277
277
  small: true,
@@ -286,7 +286,7 @@ export var personTagSmall = function personTagSmall() {
286
286
  }, "Maximillian Dubois"), /*#__PURE__*/React.createElement(Tag, {
287
287
  small: true,
288
288
  personEntity: {
289
- avatarSrc: "https://uploads-ssl.webflow.com/5f4852427e784b4cada3e0d0/65389e85af9ec00f6c03f592_kai.png"
289
+ avatarSrc: "https://api.dicebear.com/7.x/personas/svg?seed=maxi"
290
290
  }
291
291
  }, "Maximillian Dubois"), /*#__PURE__*/React.createElement(Tag, {
292
292
  small: true,
@@ -300,7 +300,7 @@ export var personTagSmall = function personTagSmall() {
300
300
  small: true,
301
301
  selected: true,
302
302
  personEntity: {
303
- avatarSrc: "https://uploads-ssl.webflow.com/5f4852427e784b4cada3e0d0/65389e85af9ec00f6c03f592_kai.png"
303
+ avatarSrc: "https://api.dicebear.com/7.x/personas/svg?seed=maxi"
304
304
  }
305
305
  }, "Maximillian Dubois"), /*#__PURE__*/React.createElement(Tag, {
306
306
  small: true,
@@ -317,7 +317,7 @@ export var personTagSmall = function personTagSmall() {
317
317
  selected: true,
318
318
  highlighted: true,
319
319
  personEntity: {
320
- avatarSrc: "https://uploads-ssl.webflow.com/5f4852427e784b4cada3e0d0/65389e85af9ec00f6c03f592_kai.png"
320
+ avatarSrc: "https://api.dicebear.com/7.x/personas/svg?seed=maxi"
321
321
  }
322
322
  }, "Maximillian Dubois"), /*#__PURE__*/React.createElement(Tag, {
323
323
  small: true,
@@ -100,7 +100,6 @@ export var withIcons = function withIcons() {
100
100
  label: "Phone number",
101
101
  placeholder: "E.g. (03) 9451 1786",
102
102
  iconLeft: ["fas", "phone"],
103
- "aria-hidden-by": "test",
104
103
  "data-testid": "test-id"
105
104
  }), /*#__PURE__*/React.createElement(TextInput, {
106
105
  id: "textInput10",
@@ -1,46 +1,51 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
3
  var _excluded = ["data"];
4
+ /* eslint-disable */
4
5
  import React from "react";
5
6
  import styled from "styled-components";
6
7
  import { css } from "@styled-system/css";
7
8
  import PropTypes from "prop-types";
8
9
  import { themeGet } from "@styled-system/theme-get";
9
10
  import Icon from "../Icon";
10
- import Flex from "../Flex";
11
11
  import Badge from "../Badge";
12
12
  import Checkbox from "../Checkbox";
13
13
  import { Small } from "../Typography";
14
14
  import { Tree } from "react-arborist";
15
- var TreeItemWrapper = styled("div").withConfig({
15
+ var TreeItemWrapper = styled("button").withConfig({
16
16
  displayName: "TreeNav__TreeItemWrapper",
17
17
  componentId: "sc-13iwmeo-0"
18
18
  })(function (props) {
19
19
  return css({
20
+ appearance: "none",
21
+ border: "none",
22
+ fontFamily: "inherit",
23
+ background: "none",
20
24
  padding: "5px",
25
+ width: "100%",
26
+ display: "flex",
27
+ justifyContent: "space-between",
28
+ alignItems: "center",
21
29
  marginRight: "5px",
22
30
  cursor: "pointer",
23
31
  borderRadius: themeGet("radii.2")(props),
24
32
  transition: themeGet("transition.transitionDefault")(props),
25
33
  "&:hover, &:focus": {
34
+ outline: "none",
26
35
  backgroundColor: themeGet("colors.primary10")(props)
27
36
  }
28
37
  });
29
38
  });
30
39
  var Node = function Node(_ref) {
31
40
  var node = _ref.node,
32
- style = _ref.style,
33
- dragHandle = _ref.dragHandle;
41
+ style = _ref.style;
34
42
  /* This node instance can do many things. See the API reference. */
35
43
  return /*#__PURE__*/React.createElement(TreeItemWrapper, {
36
44
  style: style,
37
45
  className: "treeitem-wrapper",
38
- ref: dragHandle,
39
46
  onClick: function onClick() {
40
47
  return node.toggle();
41
48
  }
42
- }, /*#__PURE__*/React.createElement(Flex, {
43
- alignItems: "center"
44
49
  }, node.isLeaf ? /*#__PURE__*/React.createElement(Icon, {
45
50
  icon: ["fas", "chevron-down"],
46
51
  title: "Select item",
@@ -69,7 +74,7 @@ var Node = function Node(_ref) {
69
74
  }), /*#__PURE__*/React.createElement(Small, null, node.data.name), node.data.badgeText && /*#__PURE__*/React.createElement(Badge, {
70
75
  variant: node.data.badgeColour,
71
76
  ml: "auto"
72
- }, node.data.badgeText)));
77
+ }, node.data.badgeText));
73
78
  };
74
79
  Node.propTypes = {
75
80
  isLeaf: PropTypes.bool,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orcs-design-system",
3
- "version": "3.1.17",
3
+ "version": "3.1.19",
4
4
  "engines": {
5
5
  "node": "18.17.1"
6
6
  },