@activecollab/components 1.0.392 → 1.0.394
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/dist/cjs/components/Icons/collection/Description.js +47 -0
- package/dist/cjs/components/Icons/collection/Description.js.map +1 -0
- package/dist/cjs/components/Icons/collection/index.js +7 -0
- package/dist/cjs/components/Icons/collection/index.js.map +1 -1
- package/dist/cjs/components/Input/Input.js +4 -4
- package/dist/cjs/components/Input/Input.js.map +1 -1
- package/dist/cjs/components/Input/Styles.js +9 -1
- package/dist/cjs/components/Input/Styles.js.map +1 -1
- package/dist/esm/components/Icons/collection/Description.d.ts +23 -0
- package/dist/esm/components/Icons/collection/Description.d.ts.map +1 -0
- package/dist/esm/components/Icons/collection/Description.js +40 -0
- package/dist/esm/components/Icons/collection/Description.js.map +1 -0
- package/dist/esm/components/Icons/collection/index.d.ts +1 -0
- package/dist/esm/components/Icons/collection/index.d.ts.map +1 -1
- package/dist/esm/components/Icons/collection/index.js +1 -0
- package/dist/esm/components/Icons/collection/index.js.map +1 -1
- package/dist/esm/components/Input/Input.d.ts +2 -1
- package/dist/esm/components/Input/Input.d.ts.map +1 -1
- package/dist/esm/components/Input/Input.js +4 -4
- package/dist/esm/components/Input/Input.js.map +1 -1
- package/dist/esm/components/Input/Styles.d.ts +2 -0
- package/dist/esm/components/Input/Styles.d.ts.map +1 -1
- package/dist/esm/components/Input/Styles.js +9 -1
- package/dist/esm/components/Input/Styles.js.map +1 -1
- package/dist/index.js +51 -5
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.js","names":["React","useCallback","useRef","classnames","StyledInput","StyledInputWrapper","useForkRef","Input","forwardRef","ref","className","style","type","disabled","size","invalid","startAdornment","endAdornment","wrapRef","
|
|
1
|
+
{"version":3,"file":"Input.js","names":["React","useCallback","useRef","classnames","StyledInput","StyledInputWrapper","useForkRef","Input","forwardRef","ref","className","style","type","disabled","size","invalid","startAdornment","endAdornment","wrapRef","wrapperClick","typographyProps","rest","intInputRef","handleRef","handleWrapperClick","current","focus","displayName"],"sources":["../../../../src/components/Input/Input.tsx"],"sourcesContent":["import React, {\n ReactNode,\n Ref,\n useCallback,\n useRef,\n InputHTMLAttributes,\n} from \"react\";\nimport classnames from \"classnames\";\nimport { StyledInput, StyledInputWrapper } from \"./Styles\";\nimport useForkRef from \"../../utils/useForkRef\";\nimport { InputSize } from \"./types\";\nimport { ITypographyProps } from \"../Typography/Typography\";\n\ntype InputNativeProps = InputHTMLAttributes<HTMLInputElement>;\n\nexport interface InputProps extends Omit<InputNativeProps, \"size\" | \"ref\"> {\n /** Velicina inputa koja definse font-size i border radius */\n size?: InputSize;\n invalid?: boolean;\n startAdornment?: ReactNode;\n endAdornment?: ReactNode;\n wrapRef?: Ref<HTMLDivElement>;\n wrapperClick?: () => void;\n typographyProps?: Omit<ITypographyProps, \"size\">;\n}\n\nexport const Input = React.forwardRef<HTMLInputElement, InputProps>(\n (\n {\n className = \"\",\n style,\n type = \"text\",\n disabled = false,\n size = \"regular\",\n invalid = false,\n startAdornment,\n endAdornment,\n wrapRef,\n wrapperClick,\n typographyProps,\n ...rest\n },\n ref\n ) => {\n const intInputRef = useRef<HTMLInputElement>(null);\n const handleRef = useForkRef(ref, intInputRef);\n\n const handleWrapperClick = useCallback(() => {\n intInputRef.current?.focus();\n wrapperClick && wrapperClick();\n }, [wrapperClick]);\n\n return (\n <StyledInputWrapper\n $size={size}\n $invalid={invalid}\n $disabled={disabled}\n style={style}\n className={classnames(\"c-input-wrapper\", className)}\n onClick={handleWrapperClick}\n ref={wrapRef}\n >\n {startAdornment}\n <StyledInput\n ref={handleRef}\n type={type}\n $size={size}\n disabled={disabled}\n className=\"c-input\"\n aria-invalid={invalid}\n data-form-type=\"other\"\n {...typographyProps}\n {...rest}\n />\n {endAdornment}\n </StyledInputWrapper>\n );\n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EAAQ,GAEZF,cAAc,eACf,oBAAC,WAAW;IACV,GAAG,EAAEO,SAAU;IACf,IAAI,EAAEX,IAAK;IACX,KAAK,EAAEE,IAAK;IACZ,QAAQ,EAAED,QAAS;IACnB,SAAS,EAAC,SAAS;IACnB,gBAAcE,OAAQ;IACtB,kBAAe;EAAO,GAClBK,eAAe,EACfC,IAAI,EACR,EACDJ,YAAY,CACM;AAEzB,CAAC,CACF;AAEDV,KAAK,CAACoB,WAAW,GAAG,OAAO"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { InputSize } from "./types";
|
|
2
|
+
import { ITypographyProps } from "../Typography/Typography";
|
|
2
3
|
interface StyledInputWrapperProps {
|
|
3
4
|
$size?: InputSize;
|
|
4
5
|
$invalid?: boolean;
|
|
@@ -8,6 +9,7 @@ export declare const StyledInputWrapper: import("styled-components").StyledCompo
|
|
|
8
9
|
interface StyledInputProps {
|
|
9
10
|
$size?: InputSize;
|
|
10
11
|
$loading?: boolean;
|
|
12
|
+
align?: ITypographyProps["align"];
|
|
11
13
|
}
|
|
12
14
|
export declare const StyledInput: import("styled-components").StyledComponent<"input", any, StyledInputProps, never>;
|
|
13
15
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Styles.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/Styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"Styles.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/Styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAGpC,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAE5D,UAAU,uBAAuB;IAC/B,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,eAAO,MAAM,kBAAkB,yFA4D9B,CAAC;AAIF,UAAU,gBAAgB;IACxB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC;CACnC;AAED,eAAO,MAAM,WAAW,oFAmEvB,CAAC"}
|
|
@@ -21,7 +21,7 @@ StyledInputWrapper.displayName = "StyledInputWrapper";
|
|
|
21
21
|
export var StyledInput = styled.input.withConfig({
|
|
22
22
|
displayName: "Styles__StyledInput",
|
|
23
23
|
componentId: "sc-ce8kcp-1"
|
|
24
|
-
})(["background-color:var(--input-background-color);border:none;color:var(--color-theme-900);font-size:0.875rem;font-weight:400;letter-spacing:0.02em;margin-block:0;margin-inline:4px;outline:none;padding:0;width:100%;&::placeholder{color:var(--color-theme-transparent-500);}", " ", " ", " ", ""], function (props) {
|
|
24
|
+
})(["background-color:var(--input-background-color);border:none;color:var(--color-theme-900);font-size:0.875rem;font-weight:400;letter-spacing:0.02em;margin-block:0;margin-inline:4px;outline:none;padding:0;width:100%;&::placeholder{color:var(--color-theme-transparent-500);}", " ", " ", " ", " ", " ", " ", " ", ""], function (props) {
|
|
25
25
|
return props.$size === "big" && css(["font-size:1rem;"]);
|
|
26
26
|
}, function (props) {
|
|
27
27
|
return props.$size === "biggest" && css(["font-size:1.25rem;font-weight:500;"]);
|
|
@@ -29,6 +29,14 @@ export var StyledInput = styled.input.withConfig({
|
|
|
29
29
|
return props.disabled && css(["cursor:default;"]);
|
|
30
30
|
}, function (props) {
|
|
31
31
|
return props.$loading && css(["cursor:progress;"]);
|
|
32
|
+
}, function (props) {
|
|
33
|
+
return props.align === "left" && css(["text-align:left;"]);
|
|
34
|
+
}, function (props) {
|
|
35
|
+
return props.align === "right" && css(["text-align:right;"]);
|
|
36
|
+
}, function (props) {
|
|
37
|
+
return props.align === "center" && css(["text-align:center;"]);
|
|
38
|
+
}, function (props) {
|
|
39
|
+
return props.align === "justify" && css(["text-align:justify;"]);
|
|
32
40
|
});
|
|
33
41
|
StyledInput.displayName = "StyledInput";
|
|
34
42
|
//# sourceMappingURL=Styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Styles.js","names":["styled","css","BoxSizingStyle","FontStyle","StyledInputWrapper","div","props","$size","$disabled","$invalid","displayName","StyledInput","input","disabled","$loading"],"sources":["../../../../src/components/Input/Styles.ts"],"sourcesContent":["import styled, { css } from \"styled-components\";\nimport { InputSize } from \"./types\";\nimport { BoxSizingStyle } from \"../BoxSizingStyle\";\nimport { FontStyle } from \"../FontStyle\";\n\ninterface StyledInputWrapperProps {\n $size?: InputSize;\n $invalid?: boolean;\n $disabled?: boolean;\n}\n\nexport const StyledInputWrapper = styled.div<StyledInputWrapperProps>`\n align-items: center;\n background-color: var(--input-background-color);\n border-color: var(--color-theme-500);\n border-radius: 8px;\n border-style: solid;\n border-width: 1px;\n cursor: text;\n display: flex;\n height: 32px;\n padding-block: 4px;\n padding-inline: 4px;\n transition: all 0.3s ease;\n width: 360px;\n\n ${FontStyle}\n ${BoxSizingStyle}\n\n ${(props) =>\n props.$size === \"small\" &&\n css`\n border-radius: 6px;\n height: 24px;\n `}\n\n ${(props) =>\n props.$size === \"big\" &&\n css`\n height: 40px;\n `}\n\n ${(props) =>\n props.$size === \"biggest\" &&\n css`\n height: 48px;\n `}\n\n ${(props) =>\n props.$disabled &&\n css`\n cursor: default;\n opacity: 50%;\n `}\n\n ${(props) =>\n !props.$disabled &&\n !props.$invalid &&\n css`\n &:focus-within,\n &:hover {\n border-color: var(--color-primary);\n }\n `}\n\n ${(props) =>\n !props.$disabled &&\n props.$invalid &&\n css`\n border-color: var(--red-alert);\n `}\n`;\n\nStyledInputWrapper.displayName = \"StyledInputWrapper\";\n\ninterface StyledInputProps {\n $size?: InputSize;\n $loading?: boolean;\n}\n\nexport const StyledInput = styled.input<StyledInputProps>`\n background-color: var(--input-background-color);\n border: none;\n color: var(--color-theme-900);\n /* @TODO: Prebaciti velicine fontova, weight, razmake, itd... u naše varijable. */\n font-size: 0.875rem;\n font-weight: 400;\n letter-spacing: 0.02em;\n margin-block: 0;\n margin-inline: 4px;\n outline: none;\n padding: 0;\n width: 100%;\n\n &::placeholder {\n color: var(--color-theme-transparent-500);\n }\n\n ${(props) =>\n props.$size === \"big\" &&\n css`\n font-size: 1rem;\n `}\n\n ${(props) =>\n props.$size === \"biggest\" &&\n css`\n font-size: 1.25rem;\n font-weight: 500;\n `}\n\n ${(props) =>\n props.disabled &&\n css`\n cursor: default;\n `}\n ${(props) =>\n props.$loading &&\n css`\n cursor: progress;\n `}\n`;\n\nStyledInput.displayName = \"StyledInput\";\n"],"mappings":"AAAA,OAAOA,MAAM,IAAIC,GAAG,QAAQ,mBAAmB;AAE/C,SAASC,cAAc,QAAQ,mBAAmB;AAClD,SAASC,SAAS,QAAQ,cAAc;
|
|
1
|
+
{"version":3,"file":"Styles.js","names":["styled","css","BoxSizingStyle","FontStyle","StyledInputWrapper","div","props","$size","$disabled","$invalid","displayName","StyledInput","input","disabled","$loading","align"],"sources":["../../../../src/components/Input/Styles.ts"],"sourcesContent":["import styled, { css } from \"styled-components\";\nimport { InputSize } from \"./types\";\nimport { BoxSizingStyle } from \"../BoxSizingStyle\";\nimport { FontStyle } from \"../FontStyle\";\nimport { ITypographyProps } from \"../Typography/Typography\";\n\ninterface StyledInputWrapperProps {\n $size?: InputSize;\n $invalid?: boolean;\n $disabled?: boolean;\n}\n\nexport const StyledInputWrapper = styled.div<StyledInputWrapperProps>`\n align-items: center;\n background-color: var(--input-background-color);\n border-color: var(--color-theme-500);\n border-radius: 8px;\n border-style: solid;\n border-width: 1px;\n cursor: text;\n display: flex;\n height: 32px;\n padding-block: 4px;\n padding-inline: 4px;\n transition: all 0.3s ease;\n width: 360px;\n\n ${FontStyle}\n ${BoxSizingStyle}\n\n ${(props) =>\n props.$size === \"small\" &&\n css`\n border-radius: 6px;\n height: 24px;\n `}\n\n ${(props) =>\n props.$size === \"big\" &&\n css`\n height: 40px;\n `}\n\n ${(props) =>\n props.$size === \"biggest\" &&\n css`\n height: 48px;\n `}\n\n ${(props) =>\n props.$disabled &&\n css`\n cursor: default;\n opacity: 50%;\n `}\n\n ${(props) =>\n !props.$disabled &&\n !props.$invalid &&\n css`\n &:focus-within,\n &:hover {\n border-color: var(--color-primary);\n }\n `}\n\n ${(props) =>\n !props.$disabled &&\n props.$invalid &&\n css`\n border-color: var(--red-alert);\n `}\n`;\n\nStyledInputWrapper.displayName = \"StyledInputWrapper\";\n\ninterface StyledInputProps {\n $size?: InputSize;\n $loading?: boolean;\n align?: ITypographyProps[\"align\"];\n}\n\nexport const StyledInput = styled.input<StyledInputProps>`\n background-color: var(--input-background-color);\n border: none;\n color: var(--color-theme-900);\n /* @TODO: Prebaciti velicine fontova, weight, razmake, itd... u naše varijable. */\n font-size: 0.875rem;\n font-weight: 400;\n letter-spacing: 0.02em;\n margin-block: 0;\n margin-inline: 4px;\n outline: none;\n padding: 0;\n width: 100%;\n\n &::placeholder {\n color: var(--color-theme-transparent-500);\n }\n\n ${(props) =>\n props.$size === \"big\" &&\n css`\n font-size: 1rem;\n `}\n\n ${(props) =>\n props.$size === \"biggest\" &&\n css`\n font-size: 1.25rem;\n font-weight: 500;\n `}\n\n ${(props) =>\n props.disabled &&\n css`\n cursor: default;\n `}\n ${(props) =>\n props.$loading &&\n css`\n cursor: progress;\n `}\n\n /* @TODO: Po potrebi dodati jos propertija iz tipografije. */\n\n ${(props) =>\n props.align === \"left\" &&\n css`\n text-align: left;\n `}\n\n ${(props) =>\n props.align === \"right\" &&\n css`\n text-align: right;\n `}\n\n ${(props) =>\n props.align === \"center\" &&\n css`\n text-align: center;\n `}\n \n ${(props) =>\n props.align === \"justify\" &&\n css`\n text-align: justify;\n `}\n`;\n\nStyledInput.displayName = \"StyledInput\";\n"],"mappings":"AAAA,OAAOA,MAAM,IAAIC,GAAG,QAAQ,mBAAmB;AAE/C,SAASC,cAAc,QAAQ,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,OACNA,KAAK,CAACS,KAAK,KAAK,OAAO,IACvBd,GAAG,uBAEF;AAAA,GAED,UAACK,KAAK;EAAA,OACNA,KAAK,CAACS,KAAK,KAAK,QAAQ,IACxBd,GAAG,wBAEF;AAAA,GAED,UAACK,KAAK;EAAA,OACNA,KAAK,CAACS,KAAK,KAAK,SAAS,IACzBd,GAAG,yBAEF;AAAA,EACJ;AAEDU,WAAW,CAACD,WAAW,GAAG,aAAa"}
|
package/dist/index.js
CHANGED
|
@@ -3300,6 +3300,43 @@
|
|
|
3300
3300
|
DependencyIcon.displayName = "DependencyIcon";
|
|
3301
3301
|
var DependencyIcon$1 = DependencyIcon;
|
|
3302
3302
|
|
|
3303
|
+
/**
|
|
3304
|
+
* @component DescriptionIcon
|
|
3305
|
+
* @description
|
|
3306
|
+
*
|
|
3307
|
+
* The React Icon component is a visual element that displays an icon to represent a concept, object, or action.
|
|
3308
|
+
* The Icon component is
|
|
3309
|
+
* customizable, allowing for variations in size, color, and style to fit the needs of the application.
|
|
3310
|
+
*
|
|
3311
|
+
*
|
|
3312
|
+
* @example
|
|
3313
|
+
* return (
|
|
3314
|
+
* <DescriptionIcon className="mr-2" />
|
|
3315
|
+
* )
|
|
3316
|
+
*
|
|
3317
|
+
* @see
|
|
3318
|
+
* https://system.activecollab.com/?path=/story/foundation-icons-icons--icons
|
|
3319
|
+
* @see
|
|
3320
|
+
* https://design.activecollab.com/docs/foundations/icons
|
|
3321
|
+
*/
|
|
3322
|
+
var DescriptionIcon = /*#__PURE__*/React__default["default"].forwardRef(function (props, svgRef) {
|
|
3323
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
|
|
3324
|
+
width: 24,
|
|
3325
|
+
height: 24,
|
|
3326
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3327
|
+
"data-testid": "DescriptionIcon",
|
|
3328
|
+
fill: "var(--color-theme-600)",
|
|
3329
|
+
focusable: false,
|
|
3330
|
+
ref: svgRef
|
|
3331
|
+
}, props), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
3332
|
+
fillRule: "evenodd",
|
|
3333
|
+
clipRule: "evenodd",
|
|
3334
|
+
d: "M20 20H4a2 2 0 01-2-2V6a2 2 0 012-2h16a2 2 0 012 2v12a2 2 0 01-2 2zM4 6v12h16V6H4zm2 3h12v2H6V9zm0 4h10v2H6v-2z"
|
|
3335
|
+
}));
|
|
3336
|
+
});
|
|
3337
|
+
DescriptionIcon.displayName = "DescriptionIcon";
|
|
3338
|
+
var DescriptionIcon$1 = DescriptionIcon;
|
|
3339
|
+
|
|
3303
3340
|
/**
|
|
3304
3341
|
* @component DiscussionAddIcon
|
|
3305
3342
|
* @description
|
|
@@ -11454,7 +11491,7 @@
|
|
|
11454
11491
|
var StyledInput$2 = styled__default["default"].input.withConfig({
|
|
11455
11492
|
displayName: "Styles__StyledInput",
|
|
11456
11493
|
componentId: "sc-ce8kcp-1"
|
|
11457
|
-
})(["background-color:var(--input-background-color);border:none;color:var(--color-theme-900);font-size:0.875rem;font-weight:400;letter-spacing:0.02em;margin-block:0;margin-inline:4px;outline:none;padding:0;width:100%;&::placeholder{color:var(--color-theme-transparent-500);}", " ", " ", " ", ""], function (props) {
|
|
11494
|
+
})(["background-color:var(--input-background-color);border:none;color:var(--color-theme-900);font-size:0.875rem;font-weight:400;letter-spacing:0.02em;margin-block:0;margin-inline:4px;outline:none;padding:0;width:100%;&::placeholder{color:var(--color-theme-transparent-500);}", " ", " ", " ", " ", " ", " ", " ", ""], function (props) {
|
|
11458
11495
|
return props.$size === "big" && styled.css(["font-size:1rem;"]);
|
|
11459
11496
|
}, function (props) {
|
|
11460
11497
|
return props.$size === "biggest" && styled.css(["font-size:1.25rem;font-weight:500;"]);
|
|
@@ -11462,10 +11499,18 @@
|
|
|
11462
11499
|
return props.disabled && styled.css(["cursor:default;"]);
|
|
11463
11500
|
}, function (props) {
|
|
11464
11501
|
return props.$loading && styled.css(["cursor:progress;"]);
|
|
11502
|
+
}, function (props) {
|
|
11503
|
+
return props.align === "left" && styled.css(["text-align:left;"]);
|
|
11504
|
+
}, function (props) {
|
|
11505
|
+
return props.align === "right" && styled.css(["text-align:right;"]);
|
|
11506
|
+
}, function (props) {
|
|
11507
|
+
return props.align === "center" && styled.css(["text-align:center;"]);
|
|
11508
|
+
}, function (props) {
|
|
11509
|
+
return props.align === "justify" && styled.css(["text-align:justify;"]);
|
|
11465
11510
|
});
|
|
11466
11511
|
StyledInput$2.displayName = "StyledInput";
|
|
11467
11512
|
|
|
11468
|
-
var _excluded$N = ["className", "style", "type", "disabled", "size", "invalid", "startAdornment", "endAdornment", "wrapRef", "
|
|
11513
|
+
var _excluded$N = ["className", "style", "type", "disabled", "size", "invalid", "startAdornment", "endAdornment", "wrapRef", "wrapperClick", "typographyProps"];
|
|
11469
11514
|
var Input = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
11470
11515
|
var _ref$className = _ref.className,
|
|
11471
11516
|
className = _ref$className === void 0 ? "" : _ref$className,
|
|
@@ -11481,8 +11526,8 @@
|
|
|
11481
11526
|
startAdornment = _ref.startAdornment,
|
|
11482
11527
|
endAdornment = _ref.endAdornment,
|
|
11483
11528
|
wrapRef = _ref.wrapRef,
|
|
11484
|
-
inputClassName = _ref.inputClassName,
|
|
11485
11529
|
wrapperClick = _ref.wrapperClick,
|
|
11530
|
+
typographyProps = _ref.typographyProps,
|
|
11486
11531
|
rest = _objectWithoutProperties(_ref, _excluded$N);
|
|
11487
11532
|
var intInputRef = React.useRef(null);
|
|
11488
11533
|
var handleRef = useForkRef(ref, intInputRef);
|
|
@@ -11504,10 +11549,10 @@
|
|
|
11504
11549
|
type: type,
|
|
11505
11550
|
$size: size,
|
|
11506
11551
|
disabled: disabled,
|
|
11507
|
-
className:
|
|
11552
|
+
className: "c-input",
|
|
11508
11553
|
"aria-invalid": invalid,
|
|
11509
11554
|
"data-form-type": "other"
|
|
11510
|
-
}, rest)), endAdornment);
|
|
11555
|
+
}, typographyProps, rest)), endAdornment);
|
|
11511
11556
|
});
|
|
11512
11557
|
Input.displayName = "Input";
|
|
11513
11558
|
|
|
@@ -17963,6 +18008,7 @@
|
|
|
17963
18008
|
exports.DateStepper = DateStepper;
|
|
17964
18009
|
exports.DependencyIcon = DependencyIcon$1;
|
|
17965
18010
|
exports.DependencySmallIcon = DependencySmallIcon$1;
|
|
18011
|
+
exports.DescriptionIcon = DescriptionIcon$1;
|
|
17966
18012
|
exports.Dialog = Dialog;
|
|
17967
18013
|
exports.DiscussionAddIcon = DiscussionAddIcon$1;
|
|
17968
18014
|
exports.DiscussionIcon = DiscussionIcon$1;
|