@activecollab/components 1.0.231 → 1.0.233
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/Button.js +19 -2
- package/dist/cjs/components/Button/Button.js.map +1 -1
- package/dist/cjs/components/Button/Styles.js +5 -1
- package/dist/cjs/components/Button/Styles.js.map +1 -1
- package/dist/cjs/components/IconButton/IconButton.js +3 -1
- package/dist/cjs/components/IconButton/IconButton.js.map +1 -1
- package/dist/esm/components/AutoResizeTextarea/Styles.d.ts +1 -1
- package/dist/esm/components/Button/AddToListButton/Styles.d.ts +1 -1
- package/dist/esm/components/Button/Button.d.ts +1 -0
- package/dist/esm/components/Button/Button.d.ts.map +1 -1
- package/dist/esm/components/Button/Button.js +18 -2
- package/dist/esm/components/Button/Button.js.map +1 -1
- package/dist/esm/components/Button/Styles.d.ts +5 -1
- package/dist/esm/components/Button/Styles.d.ts.map +1 -1
- package/dist/esm/components/Button/Styles.js +5 -1
- package/dist/esm/components/Button/Styles.js.map +1 -1
- package/dist/esm/components/Chip/Styles.d.ts +2 -2
- package/dist/esm/components/ComboBox/Styles.d.ts +3 -3
- package/dist/esm/components/Expanders/ExpandAll.d.ts +1 -1
- package/dist/esm/components/Expanders/ExpandSingle.d.ts +1 -1
- package/dist/esm/components/Folder/FolderIcon.d.ts +1 -1
- package/dist/esm/components/IconButton/IconButton.d.ts.map +1 -1
- package/dist/esm/components/IconButton/IconButton.js +3 -1
- package/dist/esm/components/IconButton/IconButton.js.map +1 -1
- package/dist/esm/components/Icons/collection/Activity.d.ts +1 -1
- package/dist/esm/components/Icons/collection/AddCross.d.ts +1 -1
- package/dist/esm/components/Icons/collection/AddCrossTiny.d.ts +1 -1
- package/dist/esm/components/Icons/collection/ApplauseLarge.d.ts +1 -1
- package/dist/esm/components/Icons/collection/ArrowBack.d.ts +1 -1
- package/dist/esm/components/Icons/collection/ArrowBackMobile.d.ts +1 -1
- package/dist/esm/components/Icons/collection/ArrowCollapseMultiple.d.ts +1 -1
- package/dist/esm/components/Icons/collection/ArrowDownLong.d.ts +1 -1
- package/dist/esm/components/Icons/collection/ArrowExpandeMultiple.d.ts +1 -1
- package/dist/esm/components/Icons/collection/ArrowLeft.d.ts +1 -1
- package/dist/esm/components/Icons/collection/ArrowLeftBox.d.ts +1 -1
- package/dist/esm/components/Icons/collection/ArrowRefresh.d.ts +1 -1
- package/dist/esm/components/Icons/collection/ArrowRight.d.ts +1 -1
- package/dist/esm/components/Icons/collection/ArrowUpLong.d.ts +1 -1
- package/dist/esm/components/Icons/collection/Assign.d.ts +1 -1
- package/dist/esm/components/Icons/collection/Attachment.d.ts +1 -1
- package/dist/esm/components/Icons/collection/BellOff.d.ts +1 -1
- package/dist/esm/components/Icons/collection/BellOffSmall.d.ts +1 -1
- package/dist/esm/components/Icons/collection/Billing.d.ts +1 -1
- package/dist/esm/components/Icons/collection/BudgetAlert.d.ts +1 -1
- package/dist/esm/components/Icons/collection/Calendar.d.ts +1 -1
- package/dist/esm/components/Icons/collection/CalendarAddX.d.ts +1 -1
- package/dist/esm/components/Icons/collection/CancelCross.d.ts +1 -1
- package/dist/esm/components/Icons/collection/CaretLeft.d.ts +1 -1
- package/dist/esm/components/Icons/collection/CaretRight.d.ts +1 -1
- package/dist/esm/components/Icons/collection/Chat.d.ts +1 -1
- package/dist/esm/components/Icons/collection/Check.d.ts +1 -1
- package/dist/esm/components/Icons/collection/Checkbox.d.ts +1 -1
- package/dist/esm/components/Icons/collection/CheckboxBlankToggler.d.ts +1 -1
- package/dist/esm/components/Icons/collection/Checklist.d.ts +1 -1
- package/dist/esm/components/Icons/collection/ChecklistSmall.d.ts +1 -1
- package/dist/esm/components/Icons/collection/CircleMultiple.d.ts +1 -1
- package/dist/esm/components/Icons/collection/Clock.d.ts +1 -1
- package/dist/esm/components/Icons/collection/ClockAdd.d.ts +1 -1
- package/dist/esm/components/Icons/collection/ClockSmall.d.ts +1 -1
- package/dist/esm/components/Icons/collection/ClockStopwatch.d.ts +1 -1
- package/dist/esm/components/Icons/collection/ClockStopwatchSmall.d.ts +1 -1
- package/dist/esm/components/Icons/collection/CloseSmall.d.ts +1 -1
- package/dist/esm/components/Icons/collection/CollapsIcon.d.ts +1 -1
- package/dist/esm/components/Icons/collection/CollapseAll.d.ts +1 -1
- package/dist/esm/components/Icons/collection/CollapseExpandSingle.d.ts +1 -1
- package/dist/esm/components/Icons/collection/Computer.d.ts +1 -1
- package/dist/esm/components/Icons/collection/Copy.d.ts +1 -1
- package/dist/esm/components/Icons/collection/CrownBlank.d.ts +1 -1
- package/dist/esm/components/Icons/collection/CrownSelected.d.ts +1 -1
- package/dist/esm/components/Icons/collection/Dependency.d.ts +1 -1
- package/dist/esm/components/Icons/collection/DependencySmall.d.ts +1 -1
- package/dist/esm/components/Icons/collection/DiscussionAdd.d.ts +1 -1
- package/dist/esm/components/Icons/collection/Dollar.d.ts +1 -1
- package/dist/esm/components/Icons/collection/DollarCheckmark.d.ts +1 -1
- package/dist/esm/components/Icons/collection/DollarCheckmarkSmall.d.ts +1 -1
- package/dist/esm/components/Icons/collection/DollarClock.d.ts +1 -1
- package/dist/esm/components/Icons/collection/DollarClockSmall.d.ts +1 -1
- package/dist/esm/components/Icons/collection/DollarOff.d.ts +1 -1
- package/dist/esm/components/Icons/collection/DollarOffSmall.d.ts +1 -1
- package/dist/esm/components/Icons/collection/DollarSmall.d.ts +1 -1
- package/dist/esm/components/Icons/collection/Download.d.ts +1 -1
- package/dist/esm/components/Icons/collection/Drive.d.ts +1 -1
- package/dist/esm/components/Icons/collection/Dropbox.d.ts +1 -1
- package/dist/esm/components/Icons/collection/Duplicate.d.ts +1 -1
- package/dist/esm/components/Icons/collection/Edit.d.ts +1 -1
- package/dist/esm/components/Icons/collection/EditMultiple.d.ts +1 -1
- package/dist/esm/components/Icons/collection/Emoji.d.ts +1 -1
- package/dist/esm/components/Icons/collection/EstimatePlus.d.ts +1 -1
- package/dist/esm/components/Icons/collection/Estimates.d.ts +1 -1
- package/dist/esm/components/Icons/collection/ExpandAll.d.ts +1 -1
- package/dist/esm/components/Icons/collection/ExpenseAdd.d.ts +1 -1
- package/dist/esm/components/Icons/collection/Eye.d.ts +1 -1
- package/dist/esm/components/Icons/collection/EyeOff.d.ts +1 -1
- package/dist/esm/components/Icons/collection/EyeOffSmall.d.ts +1 -1
- package/dist/esm/components/Icons/collection/EyeSmall.d.ts +1 -1
- package/dist/esm/components/Icons/collection/Filter.d.ts +1 -1
- package/dist/esm/components/Icons/collection/Folder.d.ts +1 -1
- package/dist/esm/components/Icons/collection/FolderMove.d.ts +1 -1
- package/dist/esm/components/Icons/collection/FolderOutline.d.ts +1 -1
- package/dist/esm/components/Icons/collection/HeartLarge.d.ts +1 -1
- package/dist/esm/components/Icons/collection/Help.d.ts +1 -1
- package/dist/esm/components/Icons/collection/Image.d.ts +1 -1
- package/dist/esm/components/Icons/collection/Info.d.ts +1 -1
- package/dist/esm/components/Icons/collection/InfoSmall.d.ts +1 -1
- package/dist/esm/components/Icons/collection/InsertLink.d.ts +1 -1
- package/dist/esm/components/Icons/collection/Integrations.d.ts +1 -1
- package/dist/esm/components/Icons/collection/Invoices.d.ts +1 -1
- package/dist/esm/components/Icons/collection/Labels.d.ts +1 -1
- package/dist/esm/components/Icons/collection/Lock.d.ts +1 -1
- package/dist/esm/components/Icons/collection/LockSmall.d.ts +1 -1
- package/dist/esm/components/Icons/collection/Marker.d.ts +1 -1
- package/dist/esm/components/Icons/collection/MenuNavIcon.d.ts +1 -1
- package/dist/esm/components/Icons/collection/Message.d.ts +1 -1
- package/dist/esm/components/Icons/collection/MessageAdd.d.ts +1 -1
- package/dist/esm/components/Icons/collection/MessageEmpty.d.ts +1 -1
- package/dist/esm/components/Icons/collection/MessageSmall.d.ts +1 -1
- package/dist/esm/components/Icons/collection/Minus.d.ts +1 -1
- package/dist/esm/components/Icons/collection/MoveTrigger.d.ts +1 -1
- package/dist/esm/components/Icons/collection/MyWork.d.ts +1 -1
- package/dist/esm/components/Icons/collection/Note.d.ts +1 -1
- package/dist/esm/components/Icons/collection/NoteAdd.d.ts +1 -1
- package/dist/esm/components/Icons/collection/NotificationBell.d.ts +1 -1
- package/dist/esm/components/Icons/collection/OpenExpanded.d.ts +1 -1
- package/dist/esm/components/Icons/collection/OpenSheet.d.ts +1 -1
- package/dist/esm/components/Icons/collection/OrderFirst.d.ts +1 -1
- package/dist/esm/components/Icons/collection/PaidSmall.d.ts +1 -1
- package/dist/esm/components/Icons/collection/PartyLarge.d.ts +1 -1
- package/dist/esm/components/Icons/collection/PauseCircleOutline.d.ts +1 -1
- package/dist/esm/components/Icons/collection/PauseIcon.d.ts +1 -1
- package/dist/esm/components/Icons/collection/PauseSmall.d.ts +1 -1
- package/dist/esm/components/Icons/collection/Pencil.d.ts +1 -1
- package/dist/esm/components/Icons/collection/PencilSmall.d.ts +1 -1
- package/dist/esm/components/Icons/collection/PendingPaymentSmall.d.ts +1 -1
- package/dist/esm/components/Icons/collection/People.d.ts +1 -1
- package/dist/esm/components/Icons/collection/Person.d.ts +1 -1
- package/dist/esm/components/Icons/collection/PersonCircle.d.ts +1 -1
- package/dist/esm/components/Icons/collection/PersonCircleOff.d.ts +1 -1
- package/dist/esm/components/Icons/collection/PersonPlus.d.ts +1 -1
- package/dist/esm/components/Icons/collection/PlayCircleOutline.d.ts +1 -1
- package/dist/esm/components/Icons/collection/PlayIcon.d.ts +1 -1
- package/dist/esm/components/Icons/collection/PlaySmall.d.ts +1 -1
- package/dist/esm/components/Icons/collection/ProjectAdd.d.ts +1 -1
- package/dist/esm/components/Icons/collection/ProjectTemplate.d.ts +1 -1
- package/dist/esm/components/Icons/collection/ProjectTemplateAdd.d.ts +1 -1
- package/dist/esm/components/Icons/collection/ProjectTemplateConvert.d.ts +1 -1
- package/dist/esm/components/Icons/collection/Projects.d.ts +1 -1
- package/dist/esm/components/Icons/collection/RadioBlank.d.ts +1 -1
- package/dist/esm/components/Icons/collection/RadioButton.d.ts +1 -1
- package/dist/esm/components/Icons/collection/Rearange.d.ts +1 -1
- package/dist/esm/components/Icons/collection/RearrangeSmall.d.ts +1 -1
- package/dist/esm/components/Icons/collection/RecurringCheckmark.d.ts +1 -1
- package/dist/esm/components/Icons/collection/RecurringCheckmarkSmall.d.ts +1 -1
- package/dist/esm/components/Icons/collection/ReportTime.d.ts +1 -1
- package/dist/esm/components/Icons/collection/Reports.d.ts +1 -1
- package/dist/esm/components/Icons/collection/Search.d.ts +1 -1
- package/dist/esm/components/Icons/collection/SendBlank.d.ts +1 -1
- package/dist/esm/components/Icons/collection/SendFilled.d.ts +1 -1
- package/dist/esm/components/Icons/collection/Settings.d.ts +1 -1
- package/dist/esm/components/Icons/collection/SmileLarge.d.ts +1 -1
- package/dist/esm/components/Icons/collection/SortGeneral.d.ts +1 -1
- package/dist/esm/components/Icons/collection/SortIcon.d.ts +1 -1
- package/dist/esm/components/Icons/collection/Star.d.ts +1 -1
- package/dist/esm/components/Icons/collection/StarOutline.d.ts +1 -1
- package/dist/esm/components/Icons/collection/SystemSettings.d.ts +1 -1
- package/dist/esm/components/Icons/collection/TaskAdd.d.ts +1 -1
- package/dist/esm/components/Icons/collection/TaskListAdd.d.ts +1 -1
- package/dist/esm/components/Icons/collection/TaskListComplete.d.ts +1 -1
- package/dist/esm/components/Icons/collection/ThinkingLarge.d.ts +1 -1
- package/dist/esm/components/Icons/collection/ThumbUpOutline.d.ts +1 -1
- package/dist/esm/components/Icons/collection/ThumbsDownLarge.d.ts +1 -1
- package/dist/esm/components/Icons/collection/ThumbsUpLarge.d.ts +1 -1
- package/dist/esm/components/Icons/collection/Trash.d.ts +1 -1
- package/dist/esm/components/Icons/collection/TreeDots.d.ts +1 -1
- package/dist/esm/components/Icons/collection/Upload.d.ts +1 -1
- package/dist/esm/components/Icons/collection/ViewGrid.d.ts +1 -1
- package/dist/esm/components/Icons/collection/ViewList.d.ts +1 -1
- package/dist/esm/components/Icons/collection/ViewTimeline.d.ts +1 -1
- package/dist/esm/components/Icons/collection/VolumeHigh.d.ts +1 -1
- package/dist/esm/components/Icons/collection/Warning.d.ts +1 -1
- package/dist/esm/components/Icons/collection/WarningTriangle.d.ts +1 -1
- package/dist/esm/components/Icons/collection/WarningTriangleSmall.d.ts +1 -1
- package/dist/esm/components/Icons/collection/Workload.d.ts +1 -1
- package/dist/esm/components/Input/Input.d.ts +1 -1
- package/dist/esm/components/MenuSelector/Styles.d.ts +2 -2
- package/dist/esm/components/Reactions/collection/ApplauseIcon.d.ts +1 -1
- package/dist/esm/components/Reactions/collection/HeartIcon.d.ts +1 -1
- package/dist/esm/components/Reactions/collection/PartyIcon.d.ts +1 -1
- package/dist/esm/components/Reactions/collection/SmileIcon.d.ts +1 -1
- package/dist/esm/components/Reactions/collection/ThinkingIcon.d.ts +1 -1
- package/dist/esm/components/Reactions/collection/ThumbsDownIcon.d.ts +1 -1
- package/dist/esm/components/Reactions/collection/ThumbsUpIcon.d.ts +1 -1
- package/dist/esm/components/Select/Styles.d.ts +1 -1
- package/dist/esm/components/SelectTrigger/Styles.d.ts +2 -2
- package/dist/esm/components/Textarea/Textarea.d.ts +1 -1
- package/dist/esm/components/ToastMessage/Styles.d.ts +1 -1
- package/dist/esm/components/Trigger/Trigger.d.ts +1 -1
- package/dist/index.js +30 -9
- 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,3 +1,3 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
export declare const Trigger: React.ForwardRefExoticComponent<Pick<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "form" | "slot" | "style" | "title" | "
|
|
2
|
+
export declare const Trigger: React.ForwardRefExoticComponent<Pick<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "form" | "slot" | "style" | "title" | "key" | "css" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "type" | "value" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "cs" | "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"> & React.RefAttributes<HTMLButtonElement>>;
|
|
3
3
|
//# sourceMappingURL=Trigger.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react'), require('
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports', 'react', '
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.components = {}, global.React, global.
|
|
5
|
-
})(this, (function (exports, React,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react'), require('classnames'), require('styled-components'), require('resize-observer-polyfill'), require('react-focus-lock'), require('react-remove-scroll'), require('react-dom'), require('@popperjs/core'), require('react-transition-group'), require('moment'), require('react-day-picker/moment'), require('react-day-picker'), require('lodash.debounce'), require('react-custom-scrollbars')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports', 'react', 'classnames', 'styled-components', 'resize-observer-polyfill', 'react-focus-lock', 'react-remove-scroll', 'react-dom', '@popperjs/core', 'react-transition-group', 'moment', 'react-day-picker/moment', 'react-day-picker', 'lodash.debounce', 'react-custom-scrollbars'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.components = {}, global.React, global.classNames, global.styled, global.ResizeObserver, global.FocusLock, global.reactRemoveScroll, global.ReactDOM, global.PopperJS, global.reactTransitionGroup, global.moment, global.MomentLocaleUtils, global.DayPicker, global.debounce, global.reactCustomScrollbars));
|
|
5
|
+
})(this, (function (exports, React, classNames, styled, ResizeObserver, FocusLock, reactRemoveScroll, ReactDOM, core, reactTransitionGroup, moment, MomentLocaleUtils, DayPicker, debounce, reactCustomScrollbars) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
9
9
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
10
|
-
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
11
10
|
var classNames__default = /*#__PURE__*/_interopDefaultLegacy(classNames);
|
|
11
|
+
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
12
12
|
var ResizeObserver__default = /*#__PURE__*/_interopDefaultLegacy(ResizeObserver);
|
|
13
13
|
var FocusLock__default = /*#__PURE__*/_interopDefaultLegacy(FocusLock);
|
|
14
14
|
var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM);
|
|
@@ -232,7 +232,7 @@
|
|
|
232
232
|
var StyledButton$2 = styled__default["default"].button.withConfig({
|
|
233
233
|
displayName: "Styles__StyledButton",
|
|
234
234
|
componentId: "sc-vi1kcr-0"
|
|
235
|
-
})(["", " ", " -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:middle;font-weight:500;display:inline-block;line-height:1;margin:0;text-decoration:none;font-size:0.875rem;user-select:none;cursor:pointer;text-align:center;border:none;height:32px;transition:background-color 0.3s ease,box-shadow 0.3s ease,color 0.3s ease,border-color 0.3s ease;svg{fill:currentColor;}&:focus{outline:none;}&:hover{text-decoration:none;}&:disabled{cursor:default;opacity:50%;pointer-events:none;}", " ", " ", " ", " ", " ", " ", " ", " ", " ", ""], FontStyle, BoxSizingStyle, function (props) {
|
|
235
|
+
})(["", " ", " -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:middle;font-weight:500;display:inline-block;line-height:1;margin:0;text-decoration:none;font-size:0.875rem;user-select:none;cursor:pointer;text-align:center;border:none;height:32px;transition:background-color 0.3s ease,box-shadow 0.3s ease,color 0.3s ease,border-color 0.3s ease;svg{fill:currentColor;}&:focus{outline:none;}&:hover{text-decoration:none;}&:disabled{cursor:default;opacity:50%;pointer-events:none;}", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", ""], FontStyle, BoxSizingStyle, function (props) {
|
|
236
236
|
return props.size === "small" && styled.css(["height:24px;"]);
|
|
237
237
|
}, function (props) {
|
|
238
238
|
return props.size === "big" && styled.css(["height:40px;"]);
|
|
@@ -252,6 +252,10 @@
|
|
|
252
252
|
return (props.variant === "primary" || props.variant === "contained" || props.variant === "secondary" || props.variant === "outlined") && styled.css([".c-btn__elements__element:first-child svg{margin-left:-6px;}.c-btn__elements__element:last-child svg{margin-right:-6px;}", ""], (props.size === "small" || props.size === "big") && styled.css(["border-radius:var(--ac-br-rounded);"]));
|
|
253
253
|
}, function (props) {
|
|
254
254
|
return (props.variant === "tertiary" || props.variant === "text colored" || props.variant === "option" || props.variant === "text gray" || props.variant === "dark transparent") && styled.css([".c-btn__elements__element:first-child svg{margin-left:-4px;}.c-btn__elements__element:last-child svg{margin-right:-4px;}", " ", ""], props.size === "small" && styled.css(["border-radius:var(--ac-br-4);"]), props.size === "big" && styled.css(["border-radius:var(--ac-br-8);"]));
|
|
255
|
+
}, function (props) {
|
|
256
|
+
return props.active && styled.css(["pointer-events:none;", " ", " ", " ", " ", " ", ""], (props.variant === "primary" || props.variant === "contained") && styled.css(["background-color:var(--color-primary-800);"]), (props.variant === "secondary" || props.variant === "outlined") && styled.css(["border-color:var(--color-primary);color:var(--color-primary);"]), props.variant === "dark transparent" && styled.css(["background-color:var(--only-black);"]), props.variant === "circle raised" && styled.css(["background-color:var(--page-paper-main);box-shadow:var(--shadow-tertiary-hover);"]), (props.variant === "tertiary" || props.variant === "text colored") && styled.css(["background-color:var(--color-primary-200);"]), (props.variant === "option" || props.variant === "text gray") && styled.css(["color:var(--color-primary);", ""], props.children instanceof Array && styled.css(["background-color:var(--color-theme-300);"])));
|
|
257
|
+
}, function (props) {
|
|
258
|
+
return props.iconOnly && styled.css(["display:inline-flex;justify-content:center;align-items:center;padding:0;width:32px;", ";", " ", ""], (props.size === "small" || props.size === "big") && styled.css(["border-radius:var(--ac-br-rounded);"]), props.size === "small" && styled.css(["width:24px;"]), props.size === "big" && styled.css(["width:40px;"]));
|
|
255
259
|
});
|
|
256
260
|
StyledButton$2.displayName = "StyledButton";
|
|
257
261
|
var StyledButtonElements = styled__default["default"].span.withConfig({
|
|
@@ -265,7 +269,7 @@
|
|
|
265
269
|
})(["display:inline-flex;svg{margin:0 4px;}"]);
|
|
266
270
|
StyledButtonElement.displayName = "StyledButtonElement";
|
|
267
271
|
|
|
268
|
-
var _excluded$1c = ["children", "variant", "size", "className"];
|
|
272
|
+
var _excluded$1c = ["children", "active", "variant", "size", "className"];
|
|
269
273
|
/**
|
|
270
274
|
* @component Button
|
|
271
275
|
* @description
|
|
@@ -274,6 +278,7 @@
|
|
|
274
278
|
*
|
|
275
279
|
* @prop {variant} - adds unique look and feel to button.
|
|
276
280
|
* @prop {size} - controls the size of a button.
|
|
281
|
+
* @prop {active} - adds active/pressed state to a button.
|
|
277
282
|
*
|
|
278
283
|
* @example
|
|
279
284
|
* return (
|
|
@@ -286,6 +291,8 @@
|
|
|
286
291
|
*/
|
|
287
292
|
var Button = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
288
293
|
var children = _ref.children,
|
|
294
|
+
_ref$active = _ref.active,
|
|
295
|
+
active = _ref$active === void 0 ? false : _ref$active,
|
|
289
296
|
_ref$variant = _ref.variant,
|
|
290
297
|
variant = _ref$variant === void 0 ? "contained" : _ref$variant,
|
|
291
298
|
_ref$size = _ref.size,
|
|
@@ -293,8 +300,20 @@
|
|
|
293
300
|
className = _ref.className,
|
|
294
301
|
args = _objectWithoutProperties(_ref, _excluded$1c);
|
|
295
302
|
return /*#__PURE__*/React__default["default"].createElement(StyledButton$2, _extends({
|
|
296
|
-
className: className,
|
|
303
|
+
className: classNames__default["default"]("c-btn", className, {
|
|
304
|
+
"c-btn--contained": variant === "primary" || variant === "contained",
|
|
305
|
+
"c-btn--outlined": variant === "secondary" || variant === "outlined",
|
|
306
|
+
"c-btn--text_colored": variant === "tertiary" || variant === "text colored",
|
|
307
|
+
"c-btn--text_gray": variant === "option" || variant === "text gray",
|
|
308
|
+
"c-btn--dark_transparent": variant === "dark transparent",
|
|
309
|
+
"c-btn--circle-raised": variant === "circle raised",
|
|
310
|
+
"c-btn--big": size === "big",
|
|
311
|
+
"c-btn--small": size === "small",
|
|
312
|
+
"c-btn--icon-only": children instanceof Object && !(children instanceof Array)
|
|
313
|
+
}),
|
|
314
|
+
iconOnly: children instanceof Object && !(children instanceof Array),
|
|
297
315
|
variant: variant,
|
|
316
|
+
active: active,
|
|
298
317
|
size: size,
|
|
299
318
|
ref: ref
|
|
300
319
|
}, args), children instanceof Array ? /*#__PURE__*/React__default["default"].createElement(StyledButtonElements, {
|
|
@@ -1144,7 +1163,7 @@
|
|
|
1144
1163
|
return size === "big" && styled.css(["width:40px;"]);
|
|
1145
1164
|
});
|
|
1146
1165
|
|
|
1147
|
-
var _excluded$$ = ["children", "className", "variant", "size"];
|
|
1166
|
+
var _excluded$$ = ["children", "className", "variant", "size", "active"];
|
|
1148
1167
|
|
|
1149
1168
|
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
1150
1169
|
|
|
@@ -1172,11 +1191,13 @@
|
|
|
1172
1191
|
className = _ref.className,
|
|
1173
1192
|
variant = _ref.variant,
|
|
1174
1193
|
size = _ref.size,
|
|
1194
|
+
active = _ref.active,
|
|
1175
1195
|
args = _objectWithoutProperties(_ref, _excluded$$);
|
|
1176
1196
|
return /*#__PURE__*/React__default["default"].createElement(StyledIconButton, _extends({
|
|
1177
1197
|
className: className,
|
|
1178
1198
|
variant: variant,
|
|
1179
1199
|
size: size,
|
|
1200
|
+
active: active,
|
|
1180
1201
|
ref: ref
|
|
1181
1202
|
}, args), children);
|
|
1182
1203
|
});
|