@conveyorhq/arrow-ds 1.55.1 → 1.57.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.
Files changed (69) hide show
  1. package/package.json +1 -1
  2. package/public/components/Appbar/AppbarLogInButton.js +0 -1
  3. package/public/components/Checkbox/Checkbox.js +2 -20
  4. package/public/components/FileUpload/FileUploadDnD.js +1 -1
  5. package/public/components/Icon/Icon.d.ts +2 -0
  6. package/public/components/Icon/Icon.js +4 -0
  7. package/public/components/Icon/svg/BadgeCheck.d.ts +2 -0
  8. package/public/components/Icon/svg/BadgeCheck.js +13 -0
  9. package/public/components/Icon/svg/Folders.d.ts +2 -0
  10. package/public/components/Icon/svg/Folders.js +13 -0
  11. package/public/components/Icon/svg/index.d.ts +2 -0
  12. package/public/components/Icon/svg/index.js +2 -0
  13. package/public/css/styles.css +113 -332
  14. package/public/css/styles.min.css +1 -1
  15. package/public/css/styles.min.css.map +1 -1
  16. package/public/src/style-dictionary/dist/tokens.css +10 -10
  17. package/public/src/style-dictionary/dist/tokens.js +10 -10
  18. package/public/src/style-dictionary/dist/tokens.module.js +10 -10
  19. package/public/style-dictionary/dist/tokens.js +10 -10
  20. package/public/style-dictionary/dist/tokens.module.js +10 -10
  21. package/public/style-dictionary/src/shadow.js +10 -10
  22. package/public/tokens/box-shadow.js +10 -10
  23. package/src/components/Accordion/Accordion.story.mdx +1 -2
  24. package/src/components/Accordion/index.css +1 -9
  25. package/src/components/Appbar/AppbarLogInButton.tsx +0 -1
  26. package/src/components/Appbar/index.css +0 -30
  27. package/src/components/Button/index.css +0 -5
  28. package/src/components/Card/index.css +2 -2
  29. package/src/components/Checkbox/Checkbox.tsx +4 -24
  30. package/src/components/Checkbox/index.css +4 -3
  31. package/src/components/CloseButton/index.css +0 -5
  32. package/src/components/DatePicker/index.css +1 -11
  33. package/src/components/DateRangePicker/index.css +1 -8
  34. package/src/components/FileUpload/FileUploadDnD.tsx +1 -0
  35. package/src/components/FileUpload/index.css +2 -3
  36. package/src/components/Icon/Icon.tsx +6 -0
  37. package/src/components/Icon/svg/BadgeCheck.tsx +13 -0
  38. package/src/components/Icon/svg/Folders.tsx +13 -0
  39. package/src/components/Icon/svg/index.ts +2 -0
  40. package/src/components/Input/brand.css +0 -6
  41. package/src/components/Input/index.css +1 -17
  42. package/src/components/Input/product.css +0 -6
  43. package/src/components/Link/index.css +4 -14
  44. package/src/components/Markdown/index.css +1 -7
  45. package/src/components/Menu/index.css +2 -6
  46. package/src/components/MenuRenderer/MenuRenderer.story.mdx +1 -1
  47. package/src/components/OptionButton/index.css +2 -2
  48. package/src/components/Pagination/index.css +0 -5
  49. package/src/components/Radio/index.css +3 -6
  50. package/src/components/Reference/index.css +1 -7
  51. package/src/components/ScrollSpy/index.css +4 -0
  52. package/src/components/Select/Select.story.mdx +0 -1
  53. package/src/components/Snackbar/index.css +2 -12
  54. package/src/components/Tab/index.css +1 -7
  55. package/src/components/Table/index.css +0 -10
  56. package/src/components/Tag/Tag.story.mdx +1 -1
  57. package/src/components/Tag/index.css +6 -17
  58. package/src/components/Toast/index.css +0 -5
  59. package/src/components/Toggle/index.css +0 -13
  60. package/src/components/Token/Token.story.mdx +2 -2
  61. package/src/components/Token/index.css +2 -9
  62. package/src/components/TopBar/index.css +0 -10
  63. package/src/css/base.css +21 -0
  64. package/src/css/utilities.css +13 -0
  65. package/src/style-dictionary/dist/tokens.css +10 -10
  66. package/src/style-dictionary/dist/tokens.js +10 -10
  67. package/src/style-dictionary/dist/tokens.module.js +10 -10
  68. package/src/style-dictionary/src/shadow.js +11 -10
  69. package/src/tokens/box-shadow.ts +12 -10
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@conveyorhq/arrow-ds",
3
3
  "author": "Conveyor",
4
4
  "license": "MIT",
5
- "version": "1.55.1",
5
+ "version": "1.57.0",
6
6
  "description": "Arrow Design System",
7
7
  "repository": "https://github.com/conveyor/arrow-ds",
8
8
  "publishConfig": {
@@ -20,7 +20,6 @@ const AppbarLogInButton = (props) => {
20
20
  "hover:text-white",
21
21
  "focus:text-white",
22
22
  "focus:bg-gray-800",
23
- "focus:outline-none",
24
23
  ]), noStyles: true }, rest), "Log in"));
25
24
  };
26
25
  exports.AppbarLogInButton = AppbarLogInButton;
@@ -42,34 +42,16 @@ const CheckboxGroup = (props) => {
42
42
  return react_1.default.createElement(Stack_1.Stack, Object.assign({ orientation: orientation }, rest));
43
43
  };
44
44
  const Checkbox = ({ checked, children, className, disabled = false, id: idProp, label, onBlur, onChange = () => { }, onClick, onFocus, hideRequiredStyles = true, isRequired = undefined, tabIndex, theme: themeProp, ...rest }) => {
45
- const [hasFocus, setHasFocus] = react_1.useState(false);
46
45
  const { isRequired: isRequiredContext, theme: themeContext } = react_1.useContext(FormGroupContext_1.FormGroupContext);
47
46
  const fallbackId = `checkbox:${auto_id_1.useId()}`;
48
47
  const id = isUndefined_1.default(idProp) ? fallbackId : idProp;
49
48
  const theme = themeProp || themeContext;
50
- const classes = classnames_1.default([
51
- bem_1.bem(cn),
52
- { "is-disabled": disabled },
53
- { "is-focused": hasFocus },
54
- className,
55
- ]);
49
+ const classes = classnames_1.default([bem_1.bem(cn), { "is-disabled": disabled }, className]);
56
50
  const handleClick = (event) => {
57
51
  if (!disabled && onClick) {
58
52
  onClick(event);
59
53
  }
60
54
  };
61
- const handleFocus = (event) => {
62
- setHasFocus(true);
63
- if (onFocus) {
64
- onFocus(event);
65
- }
66
- };
67
- const handleBlur = (event) => {
68
- setHasFocus(false);
69
- if (onBlur) {
70
- onBlur(event);
71
- }
72
- };
73
55
  let calculatedRequired = false;
74
56
  if (isRequired !== undefined) {
75
57
  calculatedRequired = isRequired;
@@ -78,7 +60,7 @@ const Checkbox = ({ checked, children, className, disabled = false, id: idProp,
78
60
  calculatedRequired = isRequiredContext;
79
61
  }
80
62
  const bareCheckbox = (react_1.default.createElement(Box_1.Box, { className: bem_1.bem(cn, { e: "BoxWrapper" }) },
81
- react_1.default.createElement(Input_1.Input, Object.assign({ "aria-checked": checked ? "true" : "false", checked: checked, className: bem_1.bem(cn, { e: "Input" }), disabled: disabled, id: id, onChange: onChange, type: "checkbox", onFocus: handleFocus, onBlur: handleBlur, onClick: label ? handleClick : undefined, tabIndex: tabIndex }, rest)),
63
+ react_1.default.createElement(Input_1.Input, Object.assign({ "aria-checked": checked ? "true" : "false", checked: checked, className: bem_1.bem(cn, { e: "Input" }), disabled: disabled, id: id, onChange: onChange, type: "checkbox", onFocus: onFocus, onBlur: onBlur, onClick: label ? handleClick : undefined, tabIndex: tabIndex }, rest)),
82
64
  react_1.default.createElement(Box_1.Box, { className: classnames_1.default(bem_1.bem(cn, { e: "Box" }), bem_1.bem(cn, { e: "Box", m: theme }), checked && bem_1.bem(cn, { e: "Box", m: "checked" })) }),
83
65
  checked && (react_1.default.createElement(Icon_1.Icon, { className: classnames_1.default(bem_1.bem(cn, { e: "Check" }), bem_1.bem(cn, { e: "Check", m: theme })), icon: Icon_1.ICON_TYPE.CHECK }))));
84
66
  const checkboxWithLabel = label || children ? (react_1.default.createElement(Label_1.Label, { className: bem_1.bem(cn, { e: "Label" }), isRequired: calculatedRequired && !hideRequiredStyles },
@@ -138,7 +138,7 @@ const FileUploadInput = ({ inputProps, buttonProps, className, accept, label = "
138
138
  }, [value, multiple]);
139
139
  return (react_1.default.createElement("label", Object.assign({ ref: drop, htmlFor: id, className: classnames_1.default(cn(), isActive && cn({ m: "active" }), className) }, labelRest),
140
140
  react_1.default.createElement("input", Object.assign({ className: classnames_1.default(cn({ e: "input" }), inputClassName), ref: inputRef, type: "file", id: id, multiple: props.multiple, accept: accept }, inputRest, { onChange: handleInputChange })),
141
- react_1.default.createElement(Button_1.Button, Object.assign({ className: classnames_1.default(cn({ e: "button" })), as: "div", variant: Button_1.BUTTON_VARIANT.SECONDARY }, buttonProps), label),
141
+ react_1.default.createElement(Button_1.Button, Object.assign({ className: classnames_1.default(cn({ e: "button" })), as: "div", variant: Button_1.BUTTON_VARIANT.SECONDARY, tabIndex: -1 }, buttonProps), label),
142
142
  errorText && (react_1.default.createElement(Truncate_1.Truncate, { className: cn({ e: "truncate" }) },
143
143
  react_1.default.createElement(Text_1.Text, { as: "span", className: cn({ e: "error" }) }, errorText))),
144
144
  !hideFileLabel && (react_1.default.createElement(Truncate_1.Truncate, { className: cn({ e: "truncate" }) },
@@ -3,8 +3,10 @@ import { FlipProp } from "@fortawesome/fontawesome-svg-core";
3
3
  import { STATUS_VARIANT } from "../../types";
4
4
  export declare enum CUSTOM_ICON_TYPE {
5
5
  ARROW_TO_BOTTOM = "arrow-to-bottom",
6
+ BADGE_CHECK = "badge-check",
6
7
  COMMENT_ALT_CHECK = "comment-alt-check",
7
8
  DIALOG_CHECK = "dialog-check",
9
+ FOLDERS = "folders",
8
10
  SCROLL = "scroll",
9
11
  SPARKLE = "sparkle",
10
12
  TRIANGLE_DOWN = "triangle-down",
@@ -154,8 +154,10 @@ fontawesome_svg_core_1.library.add(faArchive_1.faArchive, faArrowDown_1.faArrowD
154
154
  var CUSTOM_ICON_TYPE;
155
155
  (function (CUSTOM_ICON_TYPE) {
156
156
  CUSTOM_ICON_TYPE["ARROW_TO_BOTTOM"] = "arrow-to-bottom";
157
+ CUSTOM_ICON_TYPE["BADGE_CHECK"] = "badge-check";
157
158
  CUSTOM_ICON_TYPE["COMMENT_ALT_CHECK"] = "comment-alt-check";
158
159
  CUSTOM_ICON_TYPE["DIALOG_CHECK"] = "dialog-check";
160
+ CUSTOM_ICON_TYPE["FOLDERS"] = "folders";
159
161
  CUSTOM_ICON_TYPE["SCROLL"] = "scroll";
160
162
  CUSTOM_ICON_TYPE["SPARKLE"] = "sparkle";
161
163
  CUSTOM_ICON_TYPE["TRIANGLE_DOWN"] = "triangle-down";
@@ -163,8 +165,10 @@ var CUSTOM_ICON_TYPE;
163
165
  })(CUSTOM_ICON_TYPE = exports.CUSTOM_ICON_TYPE || (exports.CUSTOM_ICON_TYPE = {}));
164
166
  const CustomIcons = {
165
167
  [CUSTOM_ICON_TYPE.ARROW_TO_BOTTOM]: svg_1.ArrowToBottom,
168
+ [CUSTOM_ICON_TYPE.BADGE_CHECK]: svg_1.BadgeCheck,
166
169
  [CUSTOM_ICON_TYPE.COMMENT_ALT_CHECK]: svg_1.CommentAltCheck,
167
170
  [CUSTOM_ICON_TYPE.DIALOG_CHECK]: svg_1.DialogCheck,
171
+ [CUSTOM_ICON_TYPE.FOLDERS]: svg_1.Folders,
168
172
  [CUSTOM_ICON_TYPE.SCROLL]: svg_1.Scroll,
169
173
  [CUSTOM_ICON_TYPE.SPARKLE]: svg_1.Sparkle,
170
174
  [CUSTOM_ICON_TYPE.TRIANGLE_DOWN]: svg_1.TriangleDown,
@@ -0,0 +1,2 @@
1
+ import { SvgProps } from "../../Svg";
2
+ export declare const BadgeCheck: (props: SvgProps) => JSX.Element;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.BadgeCheck = void 0;
7
+ const react_1 = __importDefault(require("react"));
8
+ const Svg_1 = require("../../Svg");
9
+ const BadgeCheck = (props) => {
10
+ return (react_1.default.createElement(Svg_1.Svg, Object.assign({ width: "15", height: "15", viewBox: "0 0 15 15", fill: "none" }, props),
11
+ react_1.default.createElement("path", { d: "M14.5 7.75C14.5 6.73828 13.8438 5.86328 12.9141 5.50781C13.3242 4.63281 13.1602 3.53906 12.4492 2.80078C11.7109 2.08984 10.6172 1.92578 9.74219 2.33594C9.38672 1.40625 8.51172 0.75 7.5 0.75C6.46094 0.75 5.58594 1.40625 5.23047 2.33594C4.35547 1.92578 3.26172 2.08984 2.55078 2.80078C1.8125 3.53906 1.64844 4.63281 2.05859 5.50781C1.12891 5.86328 0.5 6.73828 0.5 7.75C0.5 8.78906 1.12891 9.66406 2.05859 10.0195C1.64844 10.8945 1.8125 11.9883 2.55078 12.6992C3.26172 13.4375 4.35547 13.6016 5.23047 13.1914C5.58594 14.1211 6.46094 14.75 7.5 14.75C8.51172 14.75 9.38672 14.1211 9.74219 13.1914C10.6445 13.6016 11.7109 13.4375 12.4492 12.6992C13.1602 11.9883 13.3242 10.8945 12.9141 10.0195C13.8438 9.66406 14.5 8.78906 14.5 7.75ZM10.5352 6.54688L6.95312 10.1016C6.81641 10.2383 6.625 10.2109 6.51562 10.1016L4.4375 8.02344C4.32812 7.91406 4.32812 7.72266 4.4375 7.58594L5.14844 6.875C5.28516 6.76562 5.47656 6.76562 5.58594 6.90234L6.73438 8.05078L9.38672 5.42578C9.52344 5.28906 9.71484 5.28906 9.82422 5.42578L10.5352 6.13672C10.6445 6.24609 10.6445 6.4375 10.5352 6.54688Z", fill: "currentColor" })));
12
+ };
13
+ exports.BadgeCheck = BadgeCheck;
@@ -0,0 +1,2 @@
1
+ import { SvgProps } from "../../Svg";
2
+ export declare const Folders: (props: SvgProps) => JSX.Element;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.Folders = void 0;
7
+ const react_1 = __importDefault(require("react"));
8
+ const Svg_1 = require("../../Svg");
9
+ const Folders = (props) => {
10
+ return (react_1.default.createElement(Svg_1.Svg, Object.assign({ width: "18", height: "15", viewBox: "0 0 18 15", fill: "none" }, props),
11
+ react_1.default.createElement("path", { d: "M2.625 9.4375V3.75H1.3125C0.574219 3.75 0 4.35156 0 5.0625V12.9375C0 13.6758 0.574219 14.25 1.3125 14.25H12.6875C13.3984 14.25 14 13.6758 14 12.9375V11.625H4.8125C3.58203 11.625 2.625 10.668 2.625 9.4375ZM16.1875 2H10.9375L9.1875 0.25H4.8125C4.07422 0.25 3.5 0.851562 3.5 1.5625V9.4375C3.5 10.1758 4.07422 10.75 4.8125 10.75H16.1875C16.8984 10.75 17.5 10.1758 17.5 9.4375V3.3125C17.5 2.60156 16.8984 2 16.1875 2Z", fill: "currentColor" })));
12
+ };
13
+ exports.Folders = Folders;
@@ -1,6 +1,8 @@
1
1
  export * from "./ArrowToBottom";
2
+ export * from "./BadgeCheck";
2
3
  export * from "./CommentAltCheck";
3
4
  export * from "./DialogCheck";
5
+ export * from "./Folders";
4
6
  export * from "./Scroll";
5
7
  export * from "./Sparkle";
6
8
  export * from "./Triangle";
@@ -11,8 +11,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
11
11
  };
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
13
  __exportStar(require("./ArrowToBottom"), exports);
14
+ __exportStar(require("./BadgeCheck"), exports);
14
15
  __exportStar(require("./CommentAltCheck"), exports);
15
16
  __exportStar(require("./DialogCheck"), exports);
17
+ __exportStar(require("./Folders"), exports);
16
18
  __exportStar(require("./Scroll"), exports);
17
19
  __exportStar(require("./Sparkle"), exports);
18
20
  __exportStar(require("./Triangle"), exports);