@activecollab/components 1.0.160 → 1.0.161
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/Button/AddToListButton/AddToListButton.js +44 -0
- package/dist/cjs/components/Button/AddToListButton/AddToListButton.js.map +1 -0
- package/dist/cjs/components/Button/AddToListButton/Styles.js +32 -0
- package/dist/cjs/components/Button/AddToListButton/Styles.js.map +1 -0
- package/dist/esm/components/Button/AddToListButton/AddToListButton.d.ts +7 -0
- package/dist/esm/components/Button/AddToListButton/AddToListButton.d.ts.map +1 -0
- package/dist/esm/components/Button/AddToListButton/AddToListButton.js +20 -0
- package/dist/esm/components/Button/AddToListButton/AddToListButton.js.map +1 -0
- package/dist/esm/components/Button/AddToListButton/Styles.d.ts +5 -0
- package/dist/esm/components/Button/AddToListButton/Styles.d.ts.map +1 -0
- package/dist/esm/components/Button/AddToListButton/Styles.js +18 -0
- package/dist/esm/components/Button/AddToListButton/Styles.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.AddToListButton = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
+
|
|
14
|
+
var _Styles = require("./Styles");
|
|
15
|
+
|
|
16
|
+
var _excluded = ["text", "className"];
|
|
17
|
+
|
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
|
+
|
|
20
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
21
|
+
|
|
22
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
23
|
+
|
|
24
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
25
|
+
|
|
26
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
27
|
+
|
|
28
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
29
|
+
|
|
30
|
+
var AddToListButton = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
31
|
+
var text = _ref.text,
|
|
32
|
+
className = _ref.className,
|
|
33
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
34
|
+
|
|
35
|
+
return /*#__PURE__*/_react.default.createElement(_Styles.StyledAddToListButton, _extends({
|
|
36
|
+
ref: ref,
|
|
37
|
+
className: (0, _classnames.default)("c--add-to-list-btn", className)
|
|
38
|
+
}, rest), /*#__PURE__*/_react.default.createElement(_Styles.StyledAddCrossIcon, null), /*#__PURE__*/_react.default.createElement(_Styles.StyledText, {
|
|
39
|
+
weight: "medium"
|
|
40
|
+
}, text));
|
|
41
|
+
});
|
|
42
|
+
exports.AddToListButton = AddToListButton;
|
|
43
|
+
AddToListButton.displayName = "AddToListButton";
|
|
44
|
+
//# sourceMappingURL=AddToListButton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/components/Button/AddToListButton/AddToListButton.tsx"],"names":["AddToListButton","ref","text","className","rest","displayName"],"mappings":";;;;;;;;;AAAA;;AACA;;AACA;;;;;;;;;;;;;;;;AAcO,IAAMA,eAAe,gBAAG,uBAC7B,gBAA+BC,GAA/B,EAAuC;AAAA,MAApCC,IAAoC,QAApCA,IAAoC;AAAA,MAA9BC,SAA8B,QAA9BA,SAA8B;AAAA,MAAhBC,IAAgB;;AACrC,sBACE,6BAAC,6BAAD;AACE,IAAA,GAAG,EAAEH,GADP;AAEE,IAAA,SAAS,EAAE,yBAAW,oBAAX,EAAiCE,SAAjC;AAFb,KAGMC,IAHN,gBAKE,6BAAC,0BAAD,OALF,eAME,6BAAC,kBAAD;AAAY,IAAA,MAAM,EAAC;AAAnB,KAA6BF,IAA7B,CANF,CADF;AAUD,CAZ4B,CAAxB;;AAePF,eAAe,CAACK,WAAhB,GAA8B,iBAA9B","sourcesContent":["import React, { forwardRef, ButtonHTMLAttributes } from \"react\";\nimport classnames from \"classnames\";\nimport {\n StyledAddCrossIcon,\n StyledAddToListButton,\n StyledText,\n} from \"./Styles\";\n\nexport interface IAddToListButton\n extends ButtonHTMLAttributes<HTMLButtonElement> {\n /** Text to display */\n text: string;\n /** CSS classes */\n className?: string;\n}\n\nexport const AddToListButton = forwardRef<HTMLButtonElement, IAddToListButton>(\n ({ text, className, ...rest }, ref) => {\n return (\n <StyledAddToListButton\n ref={ref}\n className={classnames(\"c--add-to-list-btn\", className)}\n {...rest}\n >\n <StyledAddCrossIcon />\n <StyledText weight=\"medium\">{text}</StyledText>\n </StyledAddToListButton>\n );\n }\n);\n\nAddToListButton.displayName = \"AddToListButton\";\n"],"file":"AddToListButton.js"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.StyledText = exports.StyledAddToListButton = exports.StyledAddCrossIcon = void 0;
|
|
7
|
+
|
|
8
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
|
+
|
|
10
|
+
var _ = require("../..");
|
|
11
|
+
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
+
|
|
14
|
+
var StyledText = (0, _styledComponents.default)(_.Body2).withConfig({
|
|
15
|
+
displayName: "Styles__StyledText",
|
|
16
|
+
componentId: "sc-1fx7urq-0"
|
|
17
|
+
})(["transition:ease 0.3s all;line-height:24px;color:var(--color-primary);position:relative;"]);
|
|
18
|
+
exports.StyledText = StyledText;
|
|
19
|
+
StyledText.displayName = "StyledText";
|
|
20
|
+
var StyledAddCrossIcon = (0, _styledComponents.default)(_.AddCrossIcon).withConfig({
|
|
21
|
+
displayName: "Styles__StyledAddCrossIcon",
|
|
22
|
+
componentId: "sc-1fx7urq-1"
|
|
23
|
+
})(["fill:var(--page-paper-main);background:var(--color-primary);border-radius:30px;padding:6px;"]);
|
|
24
|
+
exports.StyledAddCrossIcon = StyledAddCrossIcon;
|
|
25
|
+
StyledAddCrossIcon.displayName = "StyledAddCrossIcon";
|
|
26
|
+
var StyledAddToListButton = (0, _styledComponents.default)("button").withConfig({
|
|
27
|
+
displayName: "Styles__StyledAddToListButton",
|
|
28
|
+
componentId: "sc-1fx7urq-2"
|
|
29
|
+
})(["display:flex;justify-content:center;gap:12px;align-items:center;transition:ease 0.3s all;border-radius:30px;height:32px;padding:4px 16px 4px 4px;position:relative;background:none;border:none;cursor:pointer;&:before{content:\"\";display:block;height:2px;width:0%;position:absolute;left:16px;top:50%;transform:translate(0,-50%);background:var(--color-primary);transition:ease 0.3s all;border-radius:30px;opacity:0;}&:hover{", "{color:var(--page-paper-main);}&:before{height:32px;width:100%;left:0;opacity:1;}", "{fill:var(--page-paper-main);transform:rotate(90deg);transition:ease 0.3s;}}"], StyledText, StyledAddCrossIcon);
|
|
30
|
+
exports.StyledAddToListButton = StyledAddToListButton;
|
|
31
|
+
StyledAddToListButton.displayName = "StyledAddToListButton";
|
|
32
|
+
//# sourceMappingURL=Styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/components/Button/AddToListButton/Styles.ts"],"names":["StyledText","Body2","displayName","StyledAddCrossIcon","AddCrossIcon","StyledAddToListButton"],"mappings":";;;;;;;AAAA;;AACA;;;;AAEO,IAAMA,UAAU,GAAG,+BAAOC,OAAP,CAAH;AAAA;AAAA;AAAA,+FAAhB;;AAOPD,UAAU,CAACE,WAAX,GAAyB,YAAzB;AAEO,IAAMC,kBAAkB,GAAG,+BAAOC,cAAP,CAAH;AAAA;AAAA;AAAA,mGAAxB;;AAMPD,kBAAkB,CAACD,WAAnB,GAAiC,oBAAjC;AAEO,IAAMG,qBAAqB,GAAG,+BAAO,QAAP,CAAH;AAAA;AAAA;AAAA,mlBA8B5BL,UA9B4B,EAyC5BG,kBAzC4B,CAA3B;;AAiDPE,qBAAqB,CAACH,WAAtB,GAAoC,uBAApC","sourcesContent":["import styled from \"styled-components\";\nimport { AddCrossIcon, Body2 } from \"../..\";\n\nexport const StyledText = styled(Body2)`\n transition: ease 0.3s all;\n line-height: 24px;\n color: var(--color-primary);\n position: relative;\n`;\n\nStyledText.displayName = \"StyledText\";\n\nexport const StyledAddCrossIcon = styled(AddCrossIcon)`\n fill: var(--page-paper-main);\n background: var(--color-primary);\n border-radius: 30px;\n padding: 6px;\n`;\nStyledAddCrossIcon.displayName = \"StyledAddCrossIcon\";\n\nexport const StyledAddToListButton = styled(\"button\")`\n display: flex;\n justify-content: center;\n gap: 12px;\n align-items: center;\n transition: ease 0.3s all;\n border-radius: 30px;\n height: 32px;\n padding: 4px 16px 4px 4px;\n position: relative;\n background: none;\n border: none;\n cursor: pointer;\n\n &:before {\n content: \"\";\n display: block;\n height: 2px;\n width: 0%;\n position: absolute;\n left: 16px;\n top: 50%;\n transform: translate(0, -50%);\n background: var(--color-primary);\n transition: ease 0.3s all;\n border-radius: 30px;\n opacity: 0;\n }\n\n &:hover {\n ${StyledText} {\n color: var(--page-paper-main);\n }\n\n &:before {\n height: 32px;\n width: 100%;\n left: 0;\n opacity: 1;\n }\n\n ${StyledAddCrossIcon} {\n fill: var(--page-paper-main);\n transform: rotate(90deg);\n transition: ease 0.3s;\n }\n }\n`;\n\nStyledAddToListButton.displayName = \"StyledAddToListButton\";\n"],"file":"Styles.js"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React, { ButtonHTMLAttributes } from "react";
|
|
2
|
+
export interface IAddToListButton extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
3
|
+
text: string;
|
|
4
|
+
className?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const AddToListButton: React.ForwardRefExoticComponent<IAddToListButton & React.RefAttributes<HTMLButtonElement>>;
|
|
7
|
+
//# sourceMappingURL=AddToListButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AddToListButton.d.ts","sourceRoot":"","sources":["../../../../../src/components/Button/AddToListButton/AddToListButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAc,oBAAoB,EAAE,MAAM,OAAO,CAAC;AAQhE,MAAM,WAAW,gBACf,SAAQ,oBAAoB,CAAC,iBAAiB,CAAC;IAE/C,IAAI,EAAE,MAAM,CAAC;IAEb,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,eAAe,4FAa3B,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
3
|
+
var _excluded = ["text", "className"];
|
|
4
|
+
import React, { forwardRef } from "react";
|
|
5
|
+
import classnames from "classnames";
|
|
6
|
+
import { StyledAddCrossIcon, StyledAddToListButton, StyledText } from "./Styles";
|
|
7
|
+
export var AddToListButton = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
8
|
+
var text = _ref.text,
|
|
9
|
+
className = _ref.className,
|
|
10
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
11
|
+
|
|
12
|
+
return /*#__PURE__*/React.createElement(StyledAddToListButton, _extends({
|
|
13
|
+
ref: ref,
|
|
14
|
+
className: classnames("c--add-to-list-btn", className)
|
|
15
|
+
}, rest), /*#__PURE__*/React.createElement(StyledAddCrossIcon, null), /*#__PURE__*/React.createElement(StyledText, {
|
|
16
|
+
weight: "medium"
|
|
17
|
+
}, text));
|
|
18
|
+
});
|
|
19
|
+
AddToListButton.displayName = "AddToListButton";
|
|
20
|
+
//# sourceMappingURL=AddToListButton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/components/Button/AddToListButton/AddToListButton.tsx"],"names":["React","forwardRef","classnames","StyledAddCrossIcon","StyledAddToListButton","StyledText","AddToListButton","ref","text","className","rest","displayName"],"mappings":";;;AAAA,OAAOA,KAAP,IAAgBC,UAAhB,QAAwD,OAAxD;AACA,OAAOC,UAAP,MAAuB,YAAvB;AACA,SACEC,kBADF,EAEEC,qBAFF,EAGEC,UAHF,QAIO,UAJP;AAcA,OAAO,IAAMC,eAAe,gBAAGL,UAAU,CACvC,gBAA+BM,GAA/B,EAAuC;AAAA,MAApCC,IAAoC,QAApCA,IAAoC;AAAA,MAA9BC,SAA8B,QAA9BA,SAA8B;AAAA,MAAhBC,IAAgB;;AACrC,sBACE,oBAAC,qBAAD;AACE,IAAA,GAAG,EAAEH,GADP;AAEE,IAAA,SAAS,EAAEL,UAAU,CAAC,oBAAD,EAAuBO,SAAvB;AAFvB,KAGMC,IAHN,gBAKE,oBAAC,kBAAD,OALF,eAME,oBAAC,UAAD;AAAY,IAAA,MAAM,EAAC;AAAnB,KAA6BF,IAA7B,CANF,CADF;AAUD,CAZsC,CAAlC;AAePF,eAAe,CAACK,WAAhB,GAA8B,iBAA9B","sourcesContent":["import React, { forwardRef, ButtonHTMLAttributes } from \"react\";\nimport classnames from \"classnames\";\nimport {\n StyledAddCrossIcon,\n StyledAddToListButton,\n StyledText,\n} from \"./Styles\";\n\nexport interface IAddToListButton\n extends ButtonHTMLAttributes<HTMLButtonElement> {\n /** Text to display */\n text: string;\n /** CSS classes */\n className?: string;\n}\n\nexport const AddToListButton = forwardRef<HTMLButtonElement, IAddToListButton>(\n ({ text, className, ...rest }, ref) => {\n return (\n <StyledAddToListButton\n ref={ref}\n className={classnames(\"c--add-to-list-btn\", className)}\n {...rest}\n >\n <StyledAddCrossIcon />\n <StyledText weight=\"medium\">{text}</StyledText>\n </StyledAddToListButton>\n );\n }\n);\n\nAddToListButton.displayName = \"AddToListButton\";\n"],"file":"AddToListButton.js"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const StyledText: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../..").IBodyProps & Omit<import("../../Typography/Typography").ITypographyProps, "variant" | "weight"> & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
|
|
3
|
+
export declare const StyledAddCrossIcon: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Pick<import("react").SVGProps<SVGSVGElement>, "string" | "style" | "clipPath" | "filter" | "mask" | "path" | "key" | "css" | "name" | "type" | "className" | "id" | "lang" | "tabIndex" | "role" | "color" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "tw" | "ideographic" | "alphabetic" | "hanging" | "mathematical" | "height" | "max" | "media" | "method" | "min" | "target" | "width" | "crossOrigin" | "accentHeight" | "accumulate" | "additive" | "alignmentBaseline" | "allowReorder" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "azimuth" | "baseFrequency" | "baselineShift" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clip" | "clipPathUnits" | "clipRule" | "colorInterpolation" | "colorInterpolationFilters" | "colorProfile" | "colorRendering" | "contentScriptType" | "contentStyleType" | "cursor" | "cx" | "cy" | "d" | "decelerate" | "descent" | "diffuseConstant" | "direction" | "display" | "divisor" | "dominantBaseline" | "dur" | "dx" | "dy" | "edgeMode" | "elevation" | "enableBackground" | "end" | "exponent" | "externalResourcesRequired" | "fill" | "fillOpacity" | "fillRule" | "filterRes" | "filterUnits" | "floodColor" | "floodOpacity" | "focusable" | "fontFamily" | "fontSize" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontVariant" | "fontWeight" | "format" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphOrientationVertical" | "glyphRef" | "gradientTransform" | "gradientUnits" | "horizAdvX" | "horizOriginX" | "href" | "imageRendering" | "in2" | "in" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "letterSpacing" | "lightingColor" | "limitingConeAngle" | "local" | "markerEnd" | "markerHeight" | "markerMid" | "markerStart" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "mode" | "numOctaves" | "offset" | "opacity" | "operator" | "order" | "orient" | "orientation" | "origin" | "overflow" | "overlinePosition" | "overlineThickness" | "paintOrder" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "pointerEvents" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rotate" | "rx" | "ry" | "scale" | "seed" | "shapeRendering" | "slope" | "spacing" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "stopColor" | "stopOpacity" | "strikethroughPosition" | "strikethroughThickness" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textAnchor" | "textDecoration" | "textLength" | "textRendering" | "to" | "transform" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeBidi" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "values" | "vectorEffect" | "version" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewBox" | "viewTarget" | "visibility" | "vMathematical" | "widths" | "wordSpacing" | "writingMode" | "x1" | "x2" | "x" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "y" | "yChannelSelector" | "z" | "zoomAndPan"> & import("react").RefAttributes<SVGSVGElement>>, any, {}, never>;
|
|
4
|
+
export declare const StyledAddToListButton: import("styled-components").StyledComponent<"button", any, {}, never>;
|
|
5
|
+
//# sourceMappingURL=Styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/Button/AddToListButton/Styles.ts"],"names":[],"mappings":";AAGA,eAAO,MAAM,UAAU,yQAKtB,CAAC;AAIF,eAAO,MAAM,kBAAkB,grPAK9B,CAAC;AAGF,eAAO,MAAM,qBAAqB,uEA+CjC,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import styled from "styled-components";
|
|
2
|
+
import { AddCrossIcon, Body2 } from "../..";
|
|
3
|
+
export var StyledText = styled(Body2).withConfig({
|
|
4
|
+
displayName: "Styles__StyledText",
|
|
5
|
+
componentId: "sc-1fx7urq-0"
|
|
6
|
+
})(["transition:ease 0.3s all;line-height:24px;color:var(--color-primary);position:relative;"]);
|
|
7
|
+
StyledText.displayName = "StyledText";
|
|
8
|
+
export var StyledAddCrossIcon = styled(AddCrossIcon).withConfig({
|
|
9
|
+
displayName: "Styles__StyledAddCrossIcon",
|
|
10
|
+
componentId: "sc-1fx7urq-1"
|
|
11
|
+
})(["fill:var(--page-paper-main);background:var(--color-primary);border-radius:30px;padding:6px;"]);
|
|
12
|
+
StyledAddCrossIcon.displayName = "StyledAddCrossIcon";
|
|
13
|
+
export var StyledAddToListButton = styled("button").withConfig({
|
|
14
|
+
displayName: "Styles__StyledAddToListButton",
|
|
15
|
+
componentId: "sc-1fx7urq-2"
|
|
16
|
+
})(["display:flex;justify-content:center;gap:12px;align-items:center;transition:ease 0.3s all;border-radius:30px;height:32px;padding:4px 16px 4px 4px;position:relative;background:none;border:none;cursor:pointer;&:before{content:\"\";display:block;height:2px;width:0%;position:absolute;left:16px;top:50%;transform:translate(0,-50%);background:var(--color-primary);transition:ease 0.3s all;border-radius:30px;opacity:0;}&:hover{", "{color:var(--page-paper-main);}&:before{height:32px;width:100%;left:0;opacity:1;}", "{fill:var(--page-paper-main);transform:rotate(90deg);transition:ease 0.3s;}}"], StyledText, StyledAddCrossIcon);
|
|
17
|
+
StyledAddToListButton.displayName = "StyledAddToListButton";
|
|
18
|
+
//# sourceMappingURL=Styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/components/Button/AddToListButton/Styles.ts"],"names":["styled","AddCrossIcon","Body2","StyledText","displayName","StyledAddCrossIcon","StyledAddToListButton"],"mappings":"AAAA,OAAOA,MAAP,MAAmB,mBAAnB;AACA,SAASC,YAAT,EAAuBC,KAAvB,QAAoC,OAApC;AAEA,OAAO,IAAMC,UAAU,GAAGH,MAAM,CAACE,KAAD,CAAT;AAAA;AAAA;AAAA,+FAAhB;AAOPC,UAAU,CAACC,WAAX,GAAyB,YAAzB;AAEA,OAAO,IAAMC,kBAAkB,GAAGL,MAAM,CAACC,YAAD,CAAT;AAAA;AAAA;AAAA,mGAAxB;AAMPI,kBAAkB,CAACD,WAAnB,GAAiC,oBAAjC;AAEA,OAAO,IAAME,qBAAqB,GAAGN,MAAM,CAAC,QAAD,CAAT;AAAA;AAAA;AAAA,mlBA8B5BG,UA9B4B,EAyC5BE,kBAzC4B,CAA3B;AAiDPC,qBAAqB,CAACF,WAAtB,GAAoC,uBAApC","sourcesContent":["import styled from \"styled-components\";\nimport { AddCrossIcon, Body2 } from \"../..\";\n\nexport const StyledText = styled(Body2)`\n transition: ease 0.3s all;\n line-height: 24px;\n color: var(--color-primary);\n position: relative;\n`;\n\nStyledText.displayName = \"StyledText\";\n\nexport const StyledAddCrossIcon = styled(AddCrossIcon)`\n fill: var(--page-paper-main);\n background: var(--color-primary);\n border-radius: 30px;\n padding: 6px;\n`;\nStyledAddCrossIcon.displayName = \"StyledAddCrossIcon\";\n\nexport const StyledAddToListButton = styled(\"button\")`\n display: flex;\n justify-content: center;\n gap: 12px;\n align-items: center;\n transition: ease 0.3s all;\n border-radius: 30px;\n height: 32px;\n padding: 4px 16px 4px 4px;\n position: relative;\n background: none;\n border: none;\n cursor: pointer;\n\n &:before {\n content: \"\";\n display: block;\n height: 2px;\n width: 0%;\n position: absolute;\n left: 16px;\n top: 50%;\n transform: translate(0, -50%);\n background: var(--color-primary);\n transition: ease 0.3s all;\n border-radius: 30px;\n opacity: 0;\n }\n\n &:hover {\n ${StyledText} {\n color: var(--page-paper-main);\n }\n\n &:before {\n height: 32px;\n width: 100%;\n left: 0;\n opacity: 1;\n }\n\n ${StyledAddCrossIcon} {\n fill: var(--page-paper-main);\n transform: rotate(90deg);\n transition: ease 0.3s;\n }\n }\n`;\n\nStyledAddToListButton.displayName = \"StyledAddToListButton\";\n"],"file":"Styles.js"}
|