@conveyorhq/arrow-ds 1.30.2 → 1.30.3

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
@@ -2,7 +2,7 @@
2
2
  "name": "@conveyorhq/arrow-ds",
3
3
  "author": "Conveyor",
4
4
  "license": "MIT",
5
- "version": "1.30.2",
5
+ "version": "1.30.3",
6
6
  "description": "Arrow Design System",
7
7
  "repository": "https://github.com/conveyor/arrow-ds",
8
8
  "publishConfig": {
@@ -56,7 +56,7 @@
56
56
  "build:css": "yarn run postcss -c postcss.config.js -o public/css/styles.css src/css/styles.css",
57
57
  "build:copy-files": "yarn run build:copy-svg && yarn run build:copy-style-dictionary",
58
58
  "build:copy-svg": "copyfiles -u 1 src/**/*.svg public/",
59
- "build:copy-style-dictionary": "copyfiles style-dictionary/**/* style-dictionary/tailwind.config.js public/",
59
+ "build:copy-style-dictionary": "copyfiles style-dictionary/dist/* style-dictionary/tailwind.config.js public/",
60
60
  "minify:css": "csso public/css/styles.css --output public/css/styles.min.css --comments none --source-map file",
61
61
  "storybook": "yarn run build && start-storybook --docs -p 9002 -c .storybook -s .storybook",
62
62
  "build-storybook": "yarn run build && build-storybook --docs -c .storybook -s .storybook -o storybook-static",
@@ -69,7 +69,7 @@ exports.Button = react_1.forwardRef(({ as: Component = "button", children, class
69
69
  const isDisabled = disabled || isLoading;
70
70
  const themeContext = react_1.useContext(contexts_1.ThemeContext);
71
71
  const theme = themeProp || themeContext;
72
- const buttonClassNames = classnames_1.default(bem_1.bem(cn), bem_1.bem(cn, { m: variant }), bem_1.bem(cn, { m: theme }), block ? ["flex", "w-full"] : "inline-flex", getButtonSizeClasses(size, icon, children), depressed && bem_1.bem(cn, { m: "depressed" }), isDisabled ? ["opacity-50", "pointer-events-none"] : "", className);
72
+ const buttonClassNames = classnames_1.default(bem_1.bem(cn), bem_1.bem(cn, { m: variant }), bem_1.bem(cn, { m: theme }), block && bem_1.bem(cn, { m: "block" }), getButtonSizeClasses(size, icon, children), depressed && bem_1.bem(cn, { m: "depressed" }), isDisabled && bem_1.bem(cn, { m: "disabled" }), className);
73
73
  const iconClassNames = classnames_1.default(bem_1.bem(cn, { e: "icon" }), children && bem_1.bem(cn, { e: "icon", m: iconPosition }), isLoading && bem_1.bem(cn, { e: "icon", m: "invisible" }));
74
74
  const iconProps = icon
75
75
  ? {
@@ -85,7 +85,7 @@ exports.Button = react_1.forwardRef(({ as: Component = "button", children, class
85
85
  type = "button";
86
86
  }
87
87
  const propsIfLink = Component === Link_1.Link ? { noStyles: true } : {};
88
- return (react_1.default.createElement(Component, Object.assign({ type: type, className: buttonClassNames, disabled: disabled, ref: ref }, propsIfLink, rest),
88
+ return (react_1.default.createElement(Component, Object.assign({ type: type, className: buttonClassNames, disabled: isDisabled, ref: ref }, propsIfLink, rest),
89
89
  icon && iconProps && iconPosition === BUTTON_ICON_POSITION.LEFT && (react_1.default.createElement(Icon_1.Icon, Object.assign({}, iconProps))),
90
90
  react_1.default.createElement("span", { className: classnames_1.default(bem_1.bem(cn, { e: "content" }), isLoading && bem_1.bem(cn, { e: "content", m: "invisible" })) }, children),
91
91
  icon && iconProps && iconPosition === BUTTON_ICON_POSITION.RIGHT && (react_1.default.createElement(Icon_1.Icon, Object.assign({}, iconProps))),
@@ -28,7 +28,6 @@ const classnames_1 = __importDefault(require("classnames"));
28
28
  const react_focus_lock_1 = __importDefault(require("react-focus-lock"));
29
29
  const react_remove_scroll_1 = require("react-remove-scroll");
30
30
  const Box_1 = require("../Box");
31
- const Fixed_1 = require("../Fixed");
32
31
  const Flex_1 = require("../Flex");
33
32
  const Portal_1 = require("../Portal");
34
33
  const Description_1 = require("../Description");
@@ -76,7 +75,7 @@ const ModalFooterMultiStep = ({ steps, currentStep, leftButtonLabel, rightButton
76
75
  react_1.default.createElement(Flex_1.Flex, { className: bem_1.bem(cn, { e: "buttonLabels" }) },
77
76
  react_1.default.createElement(Box_1.Box, { className: bem_1.bem(cn, { e: "buttonLabel", m: "left" }) }, leftButtonLabel),
78
77
  react_1.default.createElement(Box_1.Box, { className: bem_1.bem(cn, { e: "buttonLabel", m: "right" }) }, rightButtonLabel)),
79
- react_1.default.createElement(Box_1.Box, { className: "relative" },
78
+ react_1.default.createElement(Box_1.Box, { className: bem_1.bem(cn, { e: "progressDots-container" }) },
80
79
  children,
81
80
  react_1.default.createElement(Flex_1.Flex, { className: bem_1.bem(cn, { e: "progressDots" }) },
82
81
  react_1.default.createElement(Stack_1.Stack, { spacing: 5 }, [...new Array(steps).keys()].map((dot, index) => (react_1.default.createElement(Box_1.Box, { key: dot, className: classnames_1.default([
@@ -109,7 +108,7 @@ const Modal = (props) => {
109
108
  react_1.default.createElement(Portal_1.Portal, null,
110
109
  react_1.default.createElement(react_focus_lock_1.default, { autoFocus: autoFocus, returnFocus: true },
111
110
  react_1.default.createElement(react_remove_scroll_1.RemoveScroll, null,
112
- react_1.default.createElement(Fixed_1.Fixed, { className: bem_1.bem(`${cn}Container`) },
111
+ react_1.default.createElement(Box_1.Box, { className: bem_1.bem(`${cn}Container`) },
113
112
  react_1.default.createElement(Box_1.Box, Object.assign({ ref: modalElement, className: classnames_1.default([
114
113
  bem_1.bem(cn),
115
114
  bem_1.bem(cn, { m: size }),
@@ -1815,6 +1815,7 @@ override built-in Image component classes */
1815
1815
 
1816
1816
  .ads-Button {
1817
1817
  position: relative;
1818
+ display: inline-flex;
1818
1819
  align-items: center;
1819
1820
  justify-content: center;
1820
1821
  border-width: 1px;
@@ -1851,6 +1852,16 @@ override built-in Image component classes */
1851
1852
  margin: auto;
1852
1853
  }
1853
1854
 
1855
+ .ads-Button--block {
1856
+ display: flex;
1857
+ width: 100%;
1858
+ }
1859
+
1860
+ .ads-Button--disabled {
1861
+ pointer-events: none;
1862
+ opacity: 0.5;
1863
+ }
1864
+
1854
1865
  /* Button.Group */
1855
1866
 
1856
1867
  .ads-ButtonGroup {
@@ -4440,6 +4451,7 @@ override built-in Image component classes */
4440
4451
  }
4441
4452
 
4442
4453
  .ads-ModalContainer {
4454
+ position: fixed;
4443
4455
  top: 0;
4444
4456
  left: 0;
4445
4457
  z-index: 900;
@@ -4540,11 +4552,11 @@ override built-in Image component classes */
4540
4552
  display: flex;
4541
4553
  flex-direction: column;
4542
4554
  justify-content: space-between;
4555
+ overflow-y: auto;
4543
4556
 
4544
4557
  max-height: calc(
4545
4558
  var(--modal-max-height) - 60px - 80px
4546
4559
  );
4547
- overflow-y: auto;
4548
4560
  }
4549
4561
 
4550
4562
  .ads-Modal-body--padded {
@@ -4554,6 +4566,10 @@ override built-in Image component classes */
4554
4566
  padding-bottom: 16px;
4555
4567
  }
4556
4568
 
4569
+ .ads-Modal-progressDots-container {
4570
+ position: relative;
4571
+ }
4572
+
4557
4573
  .ads-Modal-progressDots {
4558
4574
  pointer-events: none;
4559
4575
  position: absolute;
@@ -7687,10 +7703,6 @@ override built-in Image component classes */
7687
7703
  width: 1px;
7688
7704
  }
7689
7705
 
7690
- .pointer-events-none {
7691
- pointer-events: none;
7692
- }
7693
-
7694
7706
  .visible {
7695
7707
  visibility: visible;
7696
7708
  }
@@ -8629,10 +8641,6 @@ override built-in Image component classes */
8629
8641
  -moz-osx-font-smoothing: grayscale;
8630
8642
  }
8631
8643
 
8632
- .opacity-50 {
8633
- opacity: 0.5;
8634
- }
8635
-
8636
8644
  .opacity-40 {
8637
8645
  opacity: 0.4;
8638
8646
  }