@conveyorhq/arrow-ds 1.17.0 → 1.19.2
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 +1 -1
- package/public/components/ConveyorLogo/ConveyorLogo.js +1 -1
- package/public/components/Input/Input.d.ts +1 -0
- package/public/components/Input/Input.js +5 -5
- package/public/components/Loading/Loading.d.ts +3 -2
- package/public/components/Loading/Loading.js +4 -7
- package/public/components/Paragraph/Paragraph.js +3 -7
- package/public/css/styles.css +38 -104
- package/public/css/styles.min.css +1 -1
- package/public/css/styles.min.css.map +1 -1
- package/src/components/ConveyorLogo/ConveyorLogo.tsx +1 -0
- package/src/components/Input/Input.story.mdx +49 -3
- package/src/components/Input/Input.tsx +32 -2
- package/src/components/Input/brand.css +4 -2
- package/src/components/Input/product.css +5 -2
- package/src/components/Loading/Loading.story.mdx +16 -9
- package/src/components/Loading/Loading.tsx +17 -8
- package/src/components/Loading/index.css +1 -67
- package/src/components/Paragraph/Paragraph.story.mdx +16 -2
- package/src/components/Paragraph/Paragraph.tsx +5 -13
- package/src/components/Paragraph/index.css +6 -0
- package/src/css/components.css +1 -0
- package/src/css/utilities/animations.css +13 -0
package/package.json
CHANGED
|
@@ -27,7 +27,7 @@ const ConveyorLogo = ({ height = HEIGHT, monochrome = false, theme = types_1.THE
|
|
|
27
27
|
return tokens_1.colors.brandGreen[400];
|
|
28
28
|
};
|
|
29
29
|
const iconColor = iconColorFunction();
|
|
30
|
-
return (react_1.default.createElement(Svg_1.Svg, Object.assign({ width: variant === "wordmark" ? widthFromHeight(height) : height, height: height, viewBox: variant === "wordmark" ? `0 0 ${WIDTH} ${HEIGHT}` : "0 0 32 32" }, rest),
|
|
30
|
+
return (react_1.default.createElement(Svg_1.Svg, Object.assign({ width: variant === "wordmark" ? widthFromHeight(height) : height, height: height, viewBox: variant === "wordmark" ? `0 0 ${WIDTH} ${HEIGHT}` : "0 0 32 32", className: className }, rest),
|
|
31
31
|
variant === "wordmark" && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
32
32
|
react_1.default.createElement("path", { fill: wordmarkColor[theme], d: "M44.159 22.858c-3.914 0-5.732-3.663-5.732-9.087 0-4.222 1.286-8.388 5.144-8.388 2.796 0 4.389 2.125 5.228 5.088h3.076l-0.28-5.088c-1.789-1.51-4.669-2.349-7.884-2.349-6.626 0-11.91 4.473-11.91 11.603 0 6.263 4.11 10.764 11.938 10.764 3.411 0 6.43-0.783 8.36-2.125l0.503-6.039h-3.048c-1.146 3.774-2.768 5.62-5.396 5.62z" }),
|
|
33
33
|
react_1.default.createElement("path", { fill: wordmarkColor[theme], d: "M62.261 23.361c-1.789 0-2.6-2.88-2.6-6.85 0-3.075 0.419-5.088 2.013-5.088 1.789 0 2.6 2.88 2.6 6.85 0 3.075-0.42 5.088-2.013 5.088zM61.674 25.402c5.116 0 8.779-3.187 8.779-8.276 0-4.362-3.215-7.745-8.192-7.745-5.116 0-8.779 3.187-8.779 8.276 0 4.362 3.215 7.745 8.192 7.745z" }),
|
|
@@ -36,18 +36,18 @@ var INPUT_ICON_POSITION;
|
|
|
36
36
|
INPUT_ICON_POSITION["RIGHT"] = "right";
|
|
37
37
|
})(INPUT_ICON_POSITION = exports.INPUT_ICON_POSITION || (exports.INPUT_ICON_POSITION = {}));
|
|
38
38
|
const cn = "TextInput";
|
|
39
|
-
const Input = react_1.forwardRef(({ as: Component = "input", className, icon, iconPosition = INPUT_ICON_POSITION.LEFT, iconProps = {}, id: idProp, type, variant: variantProp = types_1.STATUS_VARIANT.DEFAULT, theme: themeProp, ...rest }, ref) => {
|
|
39
|
+
const Input = react_1.forwardRef(({ as: Component = "input", className, wrapperClassName, icon, iconPosition = INPUT_ICON_POSITION.LEFT, iconProps = {}, id: idProp, type, variant: variantProp = types_1.STATUS_VARIANT.DEFAULT, theme: themeProp, disabled, ...rest }, ref) => {
|
|
40
40
|
const isTextInput = type !== "radio" && type !== "checkbox";
|
|
41
41
|
const { id: idContext, variant: variantContext, theme: themeContext, } = react_1.useContext(FormGroupContext_1.FormGroupContext);
|
|
42
42
|
const id = idContext || idProp;
|
|
43
43
|
const variant = variantContext || variantProp;
|
|
44
44
|
const theme = themeProp || themeContext;
|
|
45
|
-
const inputClasses = classnames_1.default(isTextInput && bem_1.bem(cn), bem_1.bem(cn, { m: variant }), bem_1.bem(cn, { m: theme }), icon && bem_1.bem(cn, { m: `icon-${iconPosition}` }),
|
|
46
|
-
const wrapperClasses = classnames_1.default(bem_1.bem(cn, { e: "wrapper" }),
|
|
45
|
+
const inputClasses = classnames_1.default(isTextInput && bem_1.bem(cn), bem_1.bem(cn, { m: variant }), bem_1.bem(cn, { m: theme }), disabled && bem_1.bem(cn, { m: "disabled" }), icon && bem_1.bem(cn, { m: `icon-${iconPosition}` }), className);
|
|
46
|
+
const wrapperClasses = classnames_1.default(bem_1.bem(cn, { e: "wrapper" }), wrapperClassName);
|
|
47
47
|
const { className: iconClassName, ...iconPropsRest } = iconProps;
|
|
48
48
|
const iconClasses = classnames_1.default(bem_1.bem(cn, { e: "icon" }), bem_1.bem(cn, { e: "icon", m: iconPosition }), iconClassName);
|
|
49
49
|
return isTextInput && icon ? (react_1.default.createElement(Box_1.Box, { className: wrapperClasses },
|
|
50
|
-
react_1.default.createElement(Component, Object.assign({ ref: ref, className: inputClasses, id: id, type: type }, rest)),
|
|
51
|
-
react_1.default.createElement(Icon_1.Icon, Object.assign({ icon: icon, className: iconClasses }, iconPropsRest)))) : (react_1.default.createElement(Component, Object.assign({ ref: ref, className: inputClasses, id: id, type: type }, rest)));
|
|
50
|
+
react_1.default.createElement(Component, Object.assign({ ref: ref, className: inputClasses, id: id, type: type, disabled: disabled }, rest)),
|
|
51
|
+
react_1.default.createElement(Icon_1.Icon, Object.assign({ icon: icon, className: iconClasses }, iconPropsRest)))) : (react_1.default.createElement(Component, Object.assign({ ref: ref, className: inputClasses, id: id, type: type, disabled: disabled }, rest)));
|
|
52
52
|
});
|
|
53
53
|
exports.Input = Input;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare
|
|
1
|
+
import { ConveyorLogoProps } from "../ConveyorLogo";
|
|
2
|
+
export declare type LoadingProps = Omit<ConveyorLogoProps, "variant">;
|
|
3
|
+
export declare const Loading: ({ theme, height, className, ...rest }: LoadingProps) => JSX.Element;
|
|
@@ -6,14 +6,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.Loading = void 0;
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
8
|
const classnames_1 = __importDefault(require("classnames"));
|
|
9
|
-
const Box_1 = require("../Box");
|
|
10
9
|
const bem_1 = require("../../utilities/bem");
|
|
10
|
+
const types_1 = require("../../types");
|
|
11
|
+
const ConveyorLogo_1 = require("../ConveyorLogo");
|
|
11
12
|
const cn = "Loading";
|
|
12
|
-
const Loading = ({ className, ...rest }) => {
|
|
13
|
-
return (react_1.default.createElement(
|
|
14
|
-
react_1.default.createElement(Box_1.Box, null),
|
|
15
|
-
react_1.default.createElement(Box_1.Box, null),
|
|
16
|
-
react_1.default.createElement(Box_1.Box, null),
|
|
17
|
-
react_1.default.createElement(Box_1.Box, null)));
|
|
13
|
+
const Loading = ({ theme = types_1.THEME.BRAND, height = 40, className, ...rest }) => {
|
|
14
|
+
return (react_1.default.createElement(ConveyorLogo_1.ConveyorLogo, Object.assign({ className: classnames_1.default(bem_1.bem(cn), className), variant: "icon", height: height, theme: theme }, rest)));
|
|
18
15
|
};
|
|
19
16
|
exports.Loading = Loading;
|
|
@@ -7,14 +7,10 @@ exports.Paragraph = void 0;
|
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
8
|
const classnames_1 = __importDefault(require("classnames"));
|
|
9
9
|
const Text_1 = require("../Text");
|
|
10
|
+
const bem_1 = require("../../utilities/bem");
|
|
11
|
+
const cn = bem_1.bemHOF("Paragraph");
|
|
10
12
|
const Paragraph = (props) => {
|
|
11
13
|
const { className, ...rest } = props;
|
|
12
|
-
return
|
|
13
|
-
"text-body",
|
|
14
|
-
"text-gray-700",
|
|
15
|
-
"leading-normal",
|
|
16
|
-
"my-6",
|
|
17
|
-
className,
|
|
18
|
-
]) })));
|
|
14
|
+
return react_1.default.createElement(Text_1.Text, Object.assign({ className: classnames_1.default([cn(), className]) }, rest));
|
|
19
15
|
};
|
|
20
16
|
exports.Paragraph = Paragraph;
|
package/public/css/styles.css
CHANGED
|
@@ -3982,7 +3982,10 @@ override built-in Image component classes */
|
|
|
3982
3982
|
color: rgba(185, 200, 210, var(--tw-text-opacity));
|
|
3983
3983
|
}
|
|
3984
3984
|
|
|
3985
|
-
.ads-TextInput--brand
|
|
3985
|
+
.ads-TextInput--brand.ads-TextInput--disabled {
|
|
3986
|
+
--tw-bg-opacity: 1;
|
|
3987
|
+
background-color: rgba(0, 27, 40, var(--tw-bg-opacity));
|
|
3988
|
+
border-color: transparent;
|
|
3986
3989
|
--tw-text-opacity: 1;
|
|
3987
3990
|
color: rgba(134, 163, 181, var(--tw-text-opacity));
|
|
3988
3991
|
}
|
|
@@ -4015,11 +4018,16 @@ override built-in Image component classes */
|
|
|
4015
4018
|
color: rgba(134, 163, 181, var(--tw-text-opacity));
|
|
4016
4019
|
}
|
|
4017
4020
|
|
|
4018
|
-
|
|
4021
|
+
/* Not using :disabled pseudo-class here for specificity reasons */
|
|
4022
|
+
|
|
4023
|
+
/* Not qualifying with the --product modifier for specificity reasons */
|
|
4024
|
+
|
|
4025
|
+
.ads-TextInput--disabled {
|
|
4019
4026
|
--tw-bg-opacity: 1;
|
|
4020
4027
|
background-color: rgba(244, 247, 249, var(--tw-bg-opacity));
|
|
4021
4028
|
--tw-border-opacity: 1;
|
|
4022
4029
|
border-color: rgba(222, 231, 238, var(--tw-border-opacity));
|
|
4030
|
+
cursor: not-allowed;
|
|
4023
4031
|
--tw-text-opacity: 1;
|
|
4024
4032
|
color: rgba(71, 104, 125, var(--tw-text-opacity));
|
|
4025
4033
|
}
|
|
@@ -4228,108 +4236,8 @@ override built-in Image component classes */
|
|
|
4228
4236
|
}
|
|
4229
4237
|
|
|
4230
4238
|
.ads-Loading {
|
|
4231
|
-
|
|
4232
|
-
|
|
4233
|
-
--tw-text-opacity: 1;
|
|
4234
|
-
color: rgba(32, 65, 86, var(--tw-text-opacity));
|
|
4235
|
-
width: 40px;
|
|
4236
|
-
}
|
|
4237
|
-
|
|
4238
|
-
.ads-Loading > div {
|
|
4239
|
-
float: left;
|
|
4240
|
-
position: relative;
|
|
4241
|
-
width: 50%;
|
|
4242
|
-
height: 50%;
|
|
4243
|
-
}
|
|
4244
|
-
|
|
4245
|
-
.ads-Loading > div::before {
|
|
4246
|
-
height: 100%;
|
|
4247
|
-
position: absolute;
|
|
4248
|
-
top: 0px;
|
|
4249
|
-
left: 0px;
|
|
4250
|
-
width: 100%;
|
|
4251
|
-
-webkit-animation: fold 2.4s infinite linear both;
|
|
4252
|
-
animation: fold 2.4s infinite linear both;
|
|
4253
|
-
background-color: currentColor;
|
|
4254
|
-
content: "";
|
|
4255
|
-
-webkit-transform-origin: 100% 100%;
|
|
4256
|
-
transform-origin: 100% 100%;
|
|
4257
|
-
}
|
|
4258
|
-
|
|
4259
|
-
.ads-Loading > div:nth-child(2) {
|
|
4260
|
-
-webkit-transform: rotateZ(90deg);
|
|
4261
|
-
transform: rotateZ(90deg);
|
|
4262
|
-
}
|
|
4263
|
-
|
|
4264
|
-
.ads-Loading > div:nth-child(4) {
|
|
4265
|
-
-webkit-transform: rotateZ(180deg);
|
|
4266
|
-
transform: rotateZ(180deg);
|
|
4267
|
-
}
|
|
4268
|
-
|
|
4269
|
-
.ads-Loading > div:nth-child(3) {
|
|
4270
|
-
-webkit-transform: rotateZ(270deg);
|
|
4271
|
-
transform: rotateZ(270deg);
|
|
4272
|
-
}
|
|
4273
|
-
|
|
4274
|
-
.ads-Loading > div:nth-child(2)::before {
|
|
4275
|
-
-webkit-animation-delay: 0.3s;
|
|
4276
|
-
animation-delay: 0.3s;
|
|
4277
|
-
}
|
|
4278
|
-
|
|
4279
|
-
.ads-Loading > div:nth-child(4)::before {
|
|
4280
|
-
-webkit-animation-delay: 0.6s;
|
|
4281
|
-
animation-delay: 0.6s;
|
|
4282
|
-
}
|
|
4283
|
-
|
|
4284
|
-
.ads-Loading > div:nth-child(3)::before {
|
|
4285
|
-
-webkit-animation-delay: 0.9s;
|
|
4286
|
-
animation-delay: 0.9s;
|
|
4287
|
-
}
|
|
4288
|
-
|
|
4289
|
-
@-webkit-keyframes fold {
|
|
4290
|
-
0%,
|
|
4291
|
-
10% {
|
|
4292
|
-
-webkit-transform: perspective(140px) rotateX(-180deg);
|
|
4293
|
-
transform: perspective(140px) rotateX(-180deg);
|
|
4294
|
-
opacity: 0;
|
|
4295
|
-
}
|
|
4296
|
-
|
|
4297
|
-
25%,
|
|
4298
|
-
75% {
|
|
4299
|
-
-webkit-transform: perspective(140px) rotateX(0deg);
|
|
4300
|
-
transform: perspective(140px) rotateX(0deg);
|
|
4301
|
-
opacity: 1;
|
|
4302
|
-
}
|
|
4303
|
-
|
|
4304
|
-
90%,
|
|
4305
|
-
100% {
|
|
4306
|
-
-webkit-transform: perspective(140px) rotateY(180deg);
|
|
4307
|
-
transform: perspective(140px) rotateY(180deg);
|
|
4308
|
-
opacity: 0;
|
|
4309
|
-
}
|
|
4310
|
-
}
|
|
4311
|
-
|
|
4312
|
-
@keyframes fold {
|
|
4313
|
-
0%,
|
|
4314
|
-
10% {
|
|
4315
|
-
-webkit-transform: perspective(140px) rotateX(-180deg);
|
|
4316
|
-
transform: perspective(140px) rotateX(-180deg);
|
|
4317
|
-
opacity: 0;
|
|
4318
|
-
}
|
|
4319
|
-
|
|
4320
|
-
25%,
|
|
4321
|
-
75% {
|
|
4322
|
-
-webkit-transform: perspective(140px) rotateX(0deg);
|
|
4323
|
-
transform: perspective(140px) rotateX(0deg);
|
|
4324
|
-
opacity: 1;
|
|
4325
|
-
}
|
|
4326
|
-
|
|
4327
|
-
90%,
|
|
4328
|
-
100% {
|
|
4329
|
-
-webkit-transform: perspective(140px) rotateY(180deg);
|
|
4330
|
-
transform: perspective(140px) rotateY(180deg);
|
|
4331
|
-
opacity: 0;
|
|
4332
|
-
}
|
|
4239
|
+
-webkit-animation: spin 1.8s infinite linear both;
|
|
4240
|
+
animation: spin 1.8s infinite linear both;
|
|
4333
4241
|
}
|
|
4334
4242
|
|
|
4335
4243
|
.ads-Markdown {
|
|
@@ -5060,6 +4968,15 @@ override built-in Image component classes */
|
|
|
5060
4968
|
padding: 8px;
|
|
5061
4969
|
}
|
|
5062
4970
|
|
|
4971
|
+
.ads-Paragraph {
|
|
4972
|
+
font-size: 14px;
|
|
4973
|
+
line-height: 1.5;
|
|
4974
|
+
margin-top: 24px;
|
|
4975
|
+
margin-bottom: 24px;
|
|
4976
|
+
--tw-text-opacity: 1;
|
|
4977
|
+
color: rgba(71, 104, 125, var(--tw-text-opacity));
|
|
4978
|
+
}
|
|
4979
|
+
|
|
5063
4980
|
.ads-Popover {
|
|
5064
4981
|
--tw-bg-opacity: 1;
|
|
5065
4982
|
background-color: rgba(255, 255, 255, var(--tw-bg-opacity));
|
|
@@ -36443,6 +36360,18 @@ override built-in Image component classes */
|
|
|
36443
36360
|
}
|
|
36444
36361
|
}
|
|
36445
36362
|
|
|
36363
|
+
@keyframes spin {
|
|
36364
|
+
from {
|
|
36365
|
+
-webkit-transform: rotate(0deg);
|
|
36366
|
+
transform: rotate(0deg);
|
|
36367
|
+
}
|
|
36368
|
+
|
|
36369
|
+
to {
|
|
36370
|
+
-webkit-transform: rotate(360deg);
|
|
36371
|
+
transform: rotate(360deg);
|
|
36372
|
+
}
|
|
36373
|
+
}
|
|
36374
|
+
|
|
36446
36375
|
.animated {
|
|
36447
36376
|
-webkit-animation-duration: 500ms;
|
|
36448
36377
|
animation-duration: 500ms;
|
|
@@ -36487,6 +36416,11 @@ override built-in Image component classes */
|
|
|
36487
36416
|
transition: all 1s ease;
|
|
36488
36417
|
}
|
|
36489
36418
|
|
|
36419
|
+
.spin {
|
|
36420
|
+
-webkit-animation-name: spin;
|
|
36421
|
+
animation-name: spin;
|
|
36422
|
+
}
|
|
36423
|
+
|
|
36490
36424
|
.elevation-inset {
|
|
36491
36425
|
box-shadow: inset 4px 4px 8px rgba(0, 0, 0, 0.01);
|
|
36492
36426
|
}
|