oolib 2.195.1 → 2.196.0
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/components/Accordion/index.js +4 -3
- package/dist/components/BlockLabel/index.js +0 -1
- package/dist/components/Tooltip/index.js +3 -2
- package/dist/icons/index.d.ts +135 -129
- package/dist/icons/index.js +133 -130
- package/dist/stories/Oolib/components/Tooltip.stories.js +3 -2
- package/dist/stories/v2/components/BarChart.stories.js +1 -1
- package/dist/v2/components/Accordion/index.js +4 -3
- package/dist/v2/components/Hints/comps/HintsButton.js +3 -2
- package/dist/v2/components/List/comps/ListItem.js +1 -1
- package/dist/v2/components/RadioAndCheckbox/comps/CheckboxList/comps/CheckboxInput/index.js +2 -2
- package/dist/v2/components/TabBar/index.js +2 -2
- package/dist/v2/components/dataviz/BarChart/comps/CustomTooltip/index.js +3 -4
- package/dist/v2/components/dataviz/BarChart/comps/Legend/index.js +1 -1
- package/dist/v2/components/dataviz/BarChart/comps/LegendTooltipGlyph/index.js +1 -0
- package/dist/v2/components/dataviz/BarChart/index.d.ts +0 -1
- package/dist/v2/components/dataviz/BarChart/index.js +8 -10
- package/package.json +2 -2
|
@@ -35,7 +35,6 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.Accordion = void 0;
|
|
37
37
|
var framer_motion_1 = require("framer-motion");
|
|
38
|
-
var phosphor_react_1 = require("phosphor-react");
|
|
39
38
|
var react_1 = __importStar(require("react"));
|
|
40
39
|
var Buttons_1 = require("../Buttons");
|
|
41
40
|
var Typo_1 = require("../Typo");
|
|
@@ -44,6 +43,8 @@ var utilsOolib_1 = require("../../utilsOolib");
|
|
|
44
43
|
var PercentCompletedPie_1 = require("../PercentCompletedPie");
|
|
45
44
|
var Tooltip_1 = require("../Tooltip");
|
|
46
45
|
var styled_1 = require("./styled");
|
|
46
|
+
var icons_1 = require("../../icons");
|
|
47
|
+
var CaretDown = icons_1.icons.CaretDown;
|
|
47
48
|
var HeaderStyle1 = function (_a) {
|
|
48
49
|
var title = _a.title, expand = _a.expand, handleToggle = _a.handleToggle, infoTooltip = _a.infoTooltip, invert = _a.invert;
|
|
49
50
|
return (react_1.default.createElement(styled_1.StyledHeaderStyle1Wrapper, { onClick: function () { return handleToggle(!expand); } },
|
|
@@ -52,7 +53,7 @@ var HeaderStyle1 = function (_a) {
|
|
|
52
53
|
infoTooltip && (react_1.default.createElement(Tooltip_1.Tooltip, { text: typeof infoTooltip === 'string' ? infoTooltip : infoTooltip.text, position: typeof infoTooltip !== 'string' ? infoTooltip.position || 'right' : 'right', invert: invert, popOutOfOverflowHiddenParent: typeof infoTooltip !== 'string' && infoTooltip.popOutOfOverflowHiddenParent, presetTarget: 'infoIcon' }))),
|
|
53
54
|
react_1.default.createElement(styled_1.NormalizedButton, null,
|
|
54
55
|
react_1.default.createElement(framer_motion_1.motion.div, { animate: { rotate: expand ? -180 : 0 }, transition: { type: 'tween', ease: 'easeOut' } },
|
|
55
|
-
react_1.default.createElement(
|
|
56
|
+
react_1.default.createElement(CaretDown, { size: 16 })))));
|
|
56
57
|
};
|
|
57
58
|
var HeaderStyle3 = function (_a) {
|
|
58
59
|
var title = _a.title, expand = _a.expand, handleToggle = _a.handleToggle, infoTooltip = _a.infoTooltip, invert = _a.invert;
|
|
@@ -62,7 +63,7 @@ var HeaderStyle3 = function (_a) {
|
|
|
62
63
|
infoTooltip && (react_1.default.createElement(Tooltip_1.Tooltip, { text: typeof infoTooltip === 'string' ? infoTooltip : infoTooltip.text, position: typeof infoTooltip !== 'string' ? infoTooltip.position || 'right' : 'right', invert: invert, popOutOfOverflowHiddenParent: typeof infoTooltip !== 'string' && infoTooltip.popOutOfOverflowHiddenParent, presetTarget: 'infoIcon' }))),
|
|
63
64
|
react_1.default.createElement(styled_1.NormalizedButton, null,
|
|
64
65
|
react_1.default.createElement(framer_motion_1.motion.div, { animate: { rotate: expand ? -180 : 0 }, transition: { type: 'tween', ease: 'easeOut' } },
|
|
65
|
-
react_1.default.createElement(
|
|
66
|
+
react_1.default.createElement(CaretDown, { size: 16 })))));
|
|
66
67
|
};
|
|
67
68
|
var HeaderStyle2 = function (_a) {
|
|
68
69
|
var title = _a.title, label = _a.label, expand = _a.expand, handleToggle = _a.handleToggle, percent = _a.percent, infoTooltip = _a.infoTooltip, invert = _a.invert;
|
|
@@ -45,7 +45,6 @@ var colors_1 = require("../../themes/colors");
|
|
|
45
45
|
var toArray_1 = require("../../utils/toArray");
|
|
46
46
|
var Hints_1 = __importDefault(require("../Hints"));
|
|
47
47
|
var Tooltip_1 = require("../Tooltip");
|
|
48
|
-
var phosphor_react_1 = require("phosphor-react");
|
|
49
48
|
var greyColor40 = colors_1.colors.greyColor40, greyColor80 = colors_1.colors.greyColor80;
|
|
50
49
|
var BlockLabel = function (props) {
|
|
51
50
|
var label = props.label, sublabel = props.sublabel, inputOnlyLabel = props.inputOnlyLabel, invert = props.invert, isRequired = props.isRequired, readOnly = props.readOnly, className = props.className, style = props.style, errorMsgs = props.errorMsgs, hints = props.hints, id = props.id, hintsTitle = props.hintsTitle, hintsBtnLabel = props.hintsBtnLabel, hintsSubtitle = props.hintsSubtitle, hideOptionalLabel = props.hideOptionalLabel, infoTooltip = props.infoTooltip;
|
|
@@ -45,12 +45,13 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
45
45
|
})();
|
|
46
46
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
47
47
|
exports.Tooltip = void 0;
|
|
48
|
-
var phosphor_react_1 = require("phosphor-react");
|
|
49
48
|
var react_1 = __importStar(require("react"));
|
|
50
49
|
var themes_1 = require("../../themes");
|
|
51
50
|
var usePopOutOfOverflowHiddenParent_1 = require("../../utils/usePopOutOfOverflowHiddenParent");
|
|
52
51
|
var Typo_1 = require("../Typo");
|
|
53
52
|
var styled_1 = require("./styled");
|
|
53
|
+
var icons_1 = require("../../icons");
|
|
54
|
+
var Info = icons_1.icons.Info;
|
|
54
55
|
/**
|
|
55
56
|
* @component Renders a tooltip component with customizable text and styling.
|
|
56
57
|
*
|
|
@@ -99,7 +100,7 @@ var Tooltip = function (_a) {
|
|
|
99
100
|
setIsClicked(false), setShowTooltip(false);
|
|
100
101
|
}, ref: targetRef, tabIndex: 0 }, presetTarget === "infoIcon" ? (react_1.default.createElement(styled_1.StyledIconButton, null,
|
|
101
102
|
" ",
|
|
102
|
-
react_1.default.createElement(
|
|
103
|
+
react_1.default.createElement(Info, { color: invert ? themes_1.colors.white : themes_1.colors.greyColor100, size: 16, weight: showTooltip ? 'fill' : 'regular' }))) : (children)),
|
|
103
104
|
showTooltip && (react_1.default.createElement(styled_1.StyledTooltipBox, { fixPos: fixPos, isOpen: showTooltip, position: position, show: showTooltip, style: style, invert: invert },
|
|
104
105
|
text.split('\n').filter(Boolean).map(function (singleline, i) { return (react_1.default.createElement(Typo_1.SANS_2, __assign({}, (i !== 0 ? { style: { marginTop: '0.5rem' } } : {})), singleline)); }),
|
|
105
106
|
react_1.default.createElement(styled_1.StyledArrowOutline, { position: position },
|
package/dist/icons/index.d.ts
CHANGED
|
@@ -128,6 +128,9 @@ export namespace icons {
|
|
|
128
128
|
export { CaretDoubleLeft };
|
|
129
129
|
export { TextIndent };
|
|
130
130
|
export { Share };
|
|
131
|
+
export { ChartBarHorizontal };
|
|
132
|
+
export { GridNine };
|
|
133
|
+
export { ChartDonut };
|
|
131
134
|
export { OkeGoogleIcon };
|
|
132
135
|
export { LetterH };
|
|
133
136
|
export { IndexIcon };
|
|
@@ -192,135 +195,138 @@ export namespace icons {
|
|
|
192
195
|
export { Reactions };
|
|
193
196
|
export { WarningDiamond };
|
|
194
197
|
}
|
|
195
|
-
import { PencilSimple } from 'phosphor-react';
|
|
196
|
-
import { PencilLine } from 'phosphor-react';
|
|
197
|
-
import { Plus } from 'phosphor-react';
|
|
198
|
-
import { Lightbulb } from 'phosphor-react';
|
|
199
|
-
import { Tag } from 'phosphor-react';
|
|
200
|
-
import { UploadSimple } from 'phosphor-react';
|
|
201
|
-
import { CaretLeft } from 'phosphor-react';
|
|
202
|
-
import { CaretRight } from 'phosphor-react';
|
|
203
|
-
import { XCircle } from 'phosphor-react';
|
|
204
|
-
import { XSquare } from 'phosphor-react';
|
|
205
|
-
import { DownloadSimple } from 'phosphor-react';
|
|
206
|
-
import { ArrowLineUpRight } from 'phosphor-react';
|
|
207
|
-
import { User } from 'phosphor-react';
|
|
208
|
-
import { UserCirclePlus } from 'phosphor-react';
|
|
209
|
-
import { MapPinLine } from 'phosphor-react';
|
|
210
|
-
import { WarningCircle } from 'phosphor-react';
|
|
211
|
-
import { HighlighterCircle } from 'phosphor-react';
|
|
212
|
-
import { Paperclip } from 'phosphor-react';
|
|
213
|
-
import { SpeakerHigh } from 'phosphor-react';
|
|
214
|
-
import { ArrowLeft } from 'phosphor-react';
|
|
215
|
-
import { CalendarBlank } from 'phosphor-react';
|
|
216
|
-
import { Trash } from 'phosphor-react';
|
|
217
|
-
import { DotsThreeVertical } from 'phosphor-react';
|
|
218
|
-
import { DotsThreeCircle } from 'phosphor-react';
|
|
219
|
-
import { DotsThree } from 'phosphor-react';
|
|
220
|
-
import { CaretUp } from 'phosphor-react';
|
|
221
|
-
import { CaretDown } from 'phosphor-react';
|
|
222
|
-
import { ShareNetwork } from 'phosphor-react';
|
|
223
|
-
import { X } from 'phosphor-react';
|
|
224
|
-
import { WhatsappLogo } from 'phosphor-react';
|
|
225
|
-
import { FacebookLogo } from 'phosphor-react';
|
|
226
|
-
import { TwitterLogo } from 'phosphor-react';
|
|
227
|
-
import { LinkedinLogo } from 'phosphor-react';
|
|
228
|
-
import { YoutubeLogo } from 'phosphor-react';
|
|
229
|
-
import { InstagramLogo } from 'phosphor-react';
|
|
230
|
-
import { Globe } from 'phosphor-react';
|
|
231
|
-
import { Phone } from 'phosphor-react';
|
|
232
|
-
import { Envelope } from 'phosphor-react';
|
|
233
|
-
import { Checks } from 'phosphor-react';
|
|
234
|
-
import { Check } from 'phosphor-react';
|
|
235
|
-
import { ArrowClockwise } from 'phosphor-react';
|
|
236
|
-
import { ArrowsClockwise } from 'phosphor-react';
|
|
237
|
-
import { ArrowsIn } from 'phosphor-react';
|
|
238
|
-
import { ArrowsOut } from 'phosphor-react';
|
|
239
|
-
import { MapPin } from 'phosphor-react';
|
|
240
|
-
import { ArrowDown } from 'phosphor-react';
|
|
241
|
-
import { ArrowsDownUp } from 'phosphor-react';
|
|
242
|
-
import { ArrowUp } from 'phosphor-react';
|
|
243
|
-
import { GearSix } from 'phosphor-react';
|
|
244
|
-
import { Wrench } from 'phosphor-react';
|
|
245
|
-
import { CheckSquare } from 'phosphor-react';
|
|
246
|
-
import { CheckSquareOffset } from 'phosphor-react';
|
|
247
|
-
import { Cards } from 'phosphor-react';
|
|
248
|
-
import { SignOut } from 'phosphor-react';
|
|
249
|
-
import { Swap } from 'phosphor-react';
|
|
250
|
-
import { CheckCircle } from 'phosphor-react';
|
|
251
|
-
import { Circle } from 'phosphor-react';
|
|
252
|
-
import { ImageSquare } from 'phosphor-react';
|
|
253
|
-
import { ListDashes } from 'phosphor-react';
|
|
254
|
-
import { ListNumbers } from 'phosphor-react';
|
|
255
|
-
import { ListPlus } from 'phosphor-react';
|
|
256
|
-
import { List } from 'phosphor-react';
|
|
257
|
-
import { FileArrowUp } from 'phosphor-react';
|
|
258
|
-
import { VideoCamera } from 'phosphor-react';
|
|
259
|
-
import { Quotes } from 'phosphor-react';
|
|
260
|
-
import { SpeakerSimpleHigh } from 'phosphor-react';
|
|
261
|
-
import { FilePdf } from 'phosphor-react';
|
|
262
|
-
import { MagnifyingGlass } from 'phosphor-react';
|
|
263
|
-
import { Eye } from 'phosphor-react';
|
|
264
|
-
import { EyeClosed } from 'phosphor-react';
|
|
265
|
-
import { Minus } from 'phosphor-react';
|
|
266
|
-
import { TextHOne } from 'phosphor-react';
|
|
267
|
-
import { TextHTwo } from 'phosphor-react';
|
|
268
|
-
import { TextHThree } from 'phosphor-react';
|
|
269
|
-
import { TextBolder } from 'phosphor-react';
|
|
270
|
-
import { TextItalic } from 'phosphor-react';
|
|
271
|
-
import { TextUnderline } from 'phosphor-react';
|
|
272
|
-
import { ArrowRight } from 'phosphor-react';
|
|
273
|
-
import { Sliders } from 'phosphor-react';
|
|
274
|
-
import { Faders } from 'phosphor-react';
|
|
275
|
-
import { Code } from 'phosphor-react';
|
|
276
|
-
import { SortDescending } from 'phosphor-react';
|
|
277
|
-
import { SortAscending } from 'phosphor-react';
|
|
278
|
-
import { Crosshair } from 'phosphor-react';
|
|
279
|
-
import { MicrophoneStage } from 'phosphor-react';
|
|
280
|
-
import { File } from 'phosphor-react';
|
|
281
|
-
import { FolderSimple } from 'phosphor-react';
|
|
282
|
-
import { FolderSimpleStar } from 'phosphor-react';
|
|
283
|
-
import { LinkSimple } from 'phosphor-react';
|
|
284
|
-
import { Laptop } from 'phosphor-react';
|
|
285
|
-
import { Info } from 'phosphor-react';
|
|
286
|
-
import { DotsSixVertical } from 'phosphor-react';
|
|
287
|
-
import { Bell } from 'phosphor-react';
|
|
288
|
-
import { UserSwitch } from 'phosphor-react';
|
|
289
|
-
import { PlusMinus } from 'phosphor-react';
|
|
290
|
-
import { SelectionAll } from 'phosphor-react';
|
|
291
|
-
import { Activity } from 'phosphor-react';
|
|
292
|
-
import { Browsers } from 'phosphor-react';
|
|
293
|
-
import { Cube } from 'phosphor-react';
|
|
294
|
-
import { Table } from 'phosphor-react';
|
|
295
|
-
import { UserList } from 'phosphor-react';
|
|
296
|
-
import { Binoculars } from 'phosphor-react';
|
|
297
|
-
import { LightbulbFilament } from 'phosphor-react';
|
|
298
|
-
import { Keyboard } from 'phosphor-react';
|
|
299
|
-
import { TextAa } from 'phosphor-react';
|
|
300
|
-
import { ThumbsUp } from 'phosphor-react';
|
|
301
|
-
import { ChatText } from 'phosphor-react';
|
|
302
|
-
import { SlackLogo } from 'phosphor-react';
|
|
303
|
-
import { SquareHalf } from 'phosphor-react';
|
|
304
|
-
import { SquareHalfBottom } from 'phosphor-react';
|
|
305
|
-
import { MagicWand } from 'phosphor-react';
|
|
306
|
-
import { CrownSimple } from 'phosphor-react';
|
|
307
|
-
import { Funnel } from 'phosphor-react';
|
|
308
|
-
import { ThumbsDown } from 'phosphor-react';
|
|
309
|
-
import { CopySimple } from 'phosphor-react';
|
|
310
|
-
import { PaperPlaneRight } from 'phosphor-react';
|
|
311
|
-
import { Warning } from 'phosphor-react';
|
|
312
|
-
import { Star } from 'phosphor-react';
|
|
313
|
-
import { ArrowsVertical } from 'phosphor-react';
|
|
314
|
-
import { CirclesFour } from 'phosphor-react';
|
|
315
|
-
import { ArrowLineDown } from 'phosphor-react';
|
|
316
|
-
import { PaperPlaneTilt } from 'phosphor-react';
|
|
317
|
-
import { NotePencil } from 'phosphor-react';
|
|
318
|
-
import { CircleNotch } from 'phosphor-react';
|
|
319
|
-
import { PaintBucket } from 'phosphor-react';
|
|
320
|
-
import { SquaresFour } from 'phosphor-react';
|
|
321
|
-
import { CaretDoubleLeft } from 'phosphor-react';
|
|
322
|
-
import { TextIndent } from 'phosphor-react';
|
|
323
|
-
import { Share } from 'phosphor-react';
|
|
198
|
+
import { PencilSimpleIcon as PencilSimple } from '@phosphor-icons/react';
|
|
199
|
+
import { PencilLineIcon as PencilLine } from '@phosphor-icons/react';
|
|
200
|
+
import { PlusIcon as Plus } from '@phosphor-icons/react';
|
|
201
|
+
import { LightbulbIcon as Lightbulb } from '@phosphor-icons/react';
|
|
202
|
+
import { TagIcon as Tag } from '@phosphor-icons/react';
|
|
203
|
+
import { UploadSimpleIcon as UploadSimple } from '@phosphor-icons/react';
|
|
204
|
+
import { CaretLeftIcon as CaretLeft } from '@phosphor-icons/react';
|
|
205
|
+
import { CaretRightIcon as CaretRight } from '@phosphor-icons/react';
|
|
206
|
+
import { XCircleIcon as XCircle } from '@phosphor-icons/react';
|
|
207
|
+
import { XSquareIcon as XSquare } from '@phosphor-icons/react';
|
|
208
|
+
import { DownloadSimpleIcon as DownloadSimple } from '@phosphor-icons/react';
|
|
209
|
+
import { ArrowLineUpRightIcon as ArrowLineUpRight } from '@phosphor-icons/react';
|
|
210
|
+
import { UserIcon as User } from '@phosphor-icons/react';
|
|
211
|
+
import { UserCirclePlusIcon as UserCirclePlus } from '@phosphor-icons/react';
|
|
212
|
+
import { MapPinLineIcon as MapPinLine } from '@phosphor-icons/react';
|
|
213
|
+
import { WarningCircleIcon as WarningCircle } from '@phosphor-icons/react';
|
|
214
|
+
import { HighlighterCircleIcon as HighlighterCircle } from '@phosphor-icons/react';
|
|
215
|
+
import { PaperclipIcon as Paperclip } from '@phosphor-icons/react';
|
|
216
|
+
import { SpeakerHighIcon as SpeakerHigh } from '@phosphor-icons/react';
|
|
217
|
+
import { ArrowLeftIcon as ArrowLeft } from '@phosphor-icons/react';
|
|
218
|
+
import { CalendarBlankIcon as CalendarBlank } from '@phosphor-icons/react';
|
|
219
|
+
import { TrashIcon as Trash } from '@phosphor-icons/react';
|
|
220
|
+
import { DotsThreeVerticalIcon as DotsThreeVertical } from '@phosphor-icons/react';
|
|
221
|
+
import { DotsThreeCircleIcon as DotsThreeCircle } from '@phosphor-icons/react';
|
|
222
|
+
import { DotsThreeIcon as DotsThree } from '@phosphor-icons/react';
|
|
223
|
+
import { CaretUpIcon as CaretUp } from '@phosphor-icons/react';
|
|
224
|
+
import { CaretDownIcon as CaretDown } from '@phosphor-icons/react';
|
|
225
|
+
import { ShareNetworkIcon as ShareNetwork } from '@phosphor-icons/react';
|
|
226
|
+
import { XIcon as X } from '@phosphor-icons/react';
|
|
227
|
+
import { WhatsappLogoIcon as WhatsappLogo } from '@phosphor-icons/react';
|
|
228
|
+
import { FacebookLogoIcon as FacebookLogo } from '@phosphor-icons/react';
|
|
229
|
+
import { TwitterLogoIcon as TwitterLogo } from '@phosphor-icons/react';
|
|
230
|
+
import { LinkedinLogoIcon as LinkedinLogo } from '@phosphor-icons/react';
|
|
231
|
+
import { YoutubeLogoIcon as YoutubeLogo } from '@phosphor-icons/react';
|
|
232
|
+
import { InstagramLogoIcon as InstagramLogo } from '@phosphor-icons/react';
|
|
233
|
+
import { GlobeIcon as Globe } from '@phosphor-icons/react';
|
|
234
|
+
import { PhoneIcon as Phone } from '@phosphor-icons/react';
|
|
235
|
+
import { EnvelopeIcon as Envelope } from '@phosphor-icons/react';
|
|
236
|
+
import { ChecksIcon as Checks } from '@phosphor-icons/react';
|
|
237
|
+
import { CheckIcon as Check } from '@phosphor-icons/react';
|
|
238
|
+
import { ArrowClockwiseIcon as ArrowClockwise } from '@phosphor-icons/react';
|
|
239
|
+
import { ArrowsClockwiseIcon as ArrowsClockwise } from '@phosphor-icons/react';
|
|
240
|
+
import { ArrowsInIcon as ArrowsIn } from '@phosphor-icons/react';
|
|
241
|
+
import { ArrowsOutIcon as ArrowsOut } from '@phosphor-icons/react';
|
|
242
|
+
import { MapPinIcon as MapPin } from '@phosphor-icons/react';
|
|
243
|
+
import { ArrowDownIcon as ArrowDown } from '@phosphor-icons/react';
|
|
244
|
+
import { ArrowsDownUpIcon as ArrowsDownUp } from '@phosphor-icons/react';
|
|
245
|
+
import { ArrowUpIcon as ArrowUp } from '@phosphor-icons/react';
|
|
246
|
+
import { GearSixIcon as GearSix } from '@phosphor-icons/react';
|
|
247
|
+
import { WrenchIcon as Wrench } from '@phosphor-icons/react';
|
|
248
|
+
import { CheckSquareIcon as CheckSquare } from '@phosphor-icons/react';
|
|
249
|
+
import { CheckSquareOffsetIcon as CheckSquareOffset } from '@phosphor-icons/react';
|
|
250
|
+
import { CardsIcon as Cards } from '@phosphor-icons/react';
|
|
251
|
+
import { SignOutIcon as SignOut } from '@phosphor-icons/react';
|
|
252
|
+
import { SwapIcon as Swap } from '@phosphor-icons/react';
|
|
253
|
+
import { CheckCircleIcon as CheckCircle } from '@phosphor-icons/react';
|
|
254
|
+
import { CircleIcon as Circle } from '@phosphor-icons/react';
|
|
255
|
+
import { ImageSquareIcon as ImageSquare } from '@phosphor-icons/react';
|
|
256
|
+
import { ListDashesIcon as ListDashes } from '@phosphor-icons/react';
|
|
257
|
+
import { ListNumbersIcon as ListNumbers } from '@phosphor-icons/react';
|
|
258
|
+
import { ListPlusIcon as ListPlus } from '@phosphor-icons/react';
|
|
259
|
+
import { ListIcon as List } from '@phosphor-icons/react';
|
|
260
|
+
import { FileArrowUpIcon as FileArrowUp } from '@phosphor-icons/react';
|
|
261
|
+
import { VideoCameraIcon as VideoCamera } from '@phosphor-icons/react';
|
|
262
|
+
import { QuotesIcon as Quotes } from '@phosphor-icons/react';
|
|
263
|
+
import { SpeakerSimpleHighIcon as SpeakerSimpleHigh } from '@phosphor-icons/react';
|
|
264
|
+
import { FilePdfIcon as FilePdf } from '@phosphor-icons/react';
|
|
265
|
+
import { MagnifyingGlassIcon as MagnifyingGlass } from '@phosphor-icons/react';
|
|
266
|
+
import { EyeIcon as Eye } from '@phosphor-icons/react';
|
|
267
|
+
import { EyeClosedIcon as EyeClosed } from '@phosphor-icons/react';
|
|
268
|
+
import { MinusIcon as Minus } from '@phosphor-icons/react';
|
|
269
|
+
import { TextHOneIcon as TextHOne } from '@phosphor-icons/react';
|
|
270
|
+
import { TextHTwoIcon as TextHTwo } from '@phosphor-icons/react';
|
|
271
|
+
import { TextHThreeIcon as TextHThree } from '@phosphor-icons/react';
|
|
272
|
+
import { TextBolderIcon as TextBolder } from '@phosphor-icons/react';
|
|
273
|
+
import { TextItalicIcon as TextItalic } from '@phosphor-icons/react';
|
|
274
|
+
import { TextUnderlineIcon as TextUnderline } from '@phosphor-icons/react';
|
|
275
|
+
import { ArrowRightIcon as ArrowRight } from '@phosphor-icons/react';
|
|
276
|
+
import { SlidersIcon as Sliders } from '@phosphor-icons/react';
|
|
277
|
+
import { FadersIcon as Faders } from '@phosphor-icons/react';
|
|
278
|
+
import { CodeIcon as Code } from '@phosphor-icons/react';
|
|
279
|
+
import { SortDescendingIcon as SortDescending } from '@phosphor-icons/react';
|
|
280
|
+
import { SortAscendingIcon as SortAscending } from '@phosphor-icons/react';
|
|
281
|
+
import { CrosshairIcon as Crosshair } from '@phosphor-icons/react';
|
|
282
|
+
import { MicrophoneStageIcon as MicrophoneStage } from '@phosphor-icons/react';
|
|
283
|
+
import { FileIcon as File } from '@phosphor-icons/react';
|
|
284
|
+
import { FolderSimpleIcon as FolderSimple } from '@phosphor-icons/react';
|
|
285
|
+
import { FolderSimpleStarIcon as FolderSimpleStar } from '@phosphor-icons/react';
|
|
286
|
+
import { LinkSimpleIcon as LinkSimple } from '@phosphor-icons/react';
|
|
287
|
+
import { LaptopIcon as Laptop } from '@phosphor-icons/react';
|
|
288
|
+
import { InfoIcon as Info } from '@phosphor-icons/react';
|
|
289
|
+
import { DotsSixVerticalIcon as DotsSixVertical } from '@phosphor-icons/react';
|
|
290
|
+
import { BellIcon as Bell } from '@phosphor-icons/react';
|
|
291
|
+
import { UserSwitchIcon as UserSwitch } from '@phosphor-icons/react';
|
|
292
|
+
import { PlusMinusIcon as PlusMinus } from '@phosphor-icons/react';
|
|
293
|
+
import { SelectionAllIcon as SelectionAll } from '@phosphor-icons/react';
|
|
294
|
+
import { ActivityIcon as Activity } from '@phosphor-icons/react';
|
|
295
|
+
import { BrowsersIcon as Browsers } from '@phosphor-icons/react';
|
|
296
|
+
import { CubeIcon as Cube } from '@phosphor-icons/react';
|
|
297
|
+
import { TableIcon as Table } from '@phosphor-icons/react';
|
|
298
|
+
import { UserListIcon as UserList } from '@phosphor-icons/react';
|
|
299
|
+
import { BinocularsIcon as Binoculars } from '@phosphor-icons/react';
|
|
300
|
+
import { LightbulbFilamentIcon as LightbulbFilament } from '@phosphor-icons/react';
|
|
301
|
+
import { KeyboardIcon as Keyboard } from '@phosphor-icons/react';
|
|
302
|
+
import { TextAaIcon as TextAa } from '@phosphor-icons/react';
|
|
303
|
+
import { ThumbsUpIcon as ThumbsUp } from '@phosphor-icons/react';
|
|
304
|
+
import { ChatTextIcon as ChatText } from '@phosphor-icons/react';
|
|
305
|
+
import { SlackLogoIcon as SlackLogo } from '@phosphor-icons/react';
|
|
306
|
+
import { SquareHalfIcon as SquareHalf } from '@phosphor-icons/react';
|
|
307
|
+
import { SquareHalfBottomIcon as SquareHalfBottom } from '@phosphor-icons/react';
|
|
308
|
+
import { MagicWandIcon as MagicWand } from '@phosphor-icons/react';
|
|
309
|
+
import { CrownSimpleIcon as CrownSimple } from '@phosphor-icons/react';
|
|
310
|
+
import { FunnelIcon as Funnel } from '@phosphor-icons/react';
|
|
311
|
+
import { ThumbsDownIcon as ThumbsDown } from '@phosphor-icons/react';
|
|
312
|
+
import { CopySimpleIcon as CopySimple } from '@phosphor-icons/react';
|
|
313
|
+
import { PaperPlaneRightIcon as PaperPlaneRight } from '@phosphor-icons/react';
|
|
314
|
+
import { WarningIcon as Warning } from '@phosphor-icons/react';
|
|
315
|
+
import { StarIcon as Star } from '@phosphor-icons/react';
|
|
316
|
+
import { ArrowsVerticalIcon as ArrowsVertical } from '@phosphor-icons/react';
|
|
317
|
+
import { CirclesFourIcon as CirclesFour } from '@phosphor-icons/react';
|
|
318
|
+
import { ArrowLineDownIcon as ArrowLineDown } from '@phosphor-icons/react';
|
|
319
|
+
import { PaperPlaneTiltIcon as PaperPlaneTilt } from '@phosphor-icons/react';
|
|
320
|
+
import { NotePencilIcon as NotePencil } from '@phosphor-icons/react';
|
|
321
|
+
import { CircleNotchIcon as CircleNotch } from '@phosphor-icons/react';
|
|
322
|
+
import { PaintBucketIcon as PaintBucket } from '@phosphor-icons/react';
|
|
323
|
+
import { SquaresFourIcon as SquaresFour } from '@phosphor-icons/react';
|
|
324
|
+
import { CaretDoubleLeftIcon as CaretDoubleLeft } from '@phosphor-icons/react';
|
|
325
|
+
import { TextIndentIcon as TextIndent } from '@phosphor-icons/react';
|
|
326
|
+
import { ShareIcon as Share } from '@phosphor-icons/react';
|
|
327
|
+
import { ChartBarHorizontalIcon as ChartBarHorizontal } from '@phosphor-icons/react';
|
|
328
|
+
import { GridNineIcon as GridNine } from '@phosphor-icons/react';
|
|
329
|
+
import { ChartDonutIcon as ChartDonut } from '@phosphor-icons/react';
|
|
324
330
|
import { OkeGoogleIcon } from "./custom";
|
|
325
331
|
import { LetterH } from "./custom";
|
|
326
332
|
import { IndexIcon } from "./custom";
|
package/dist/icons/index.js
CHANGED
|
@@ -1,138 +1,141 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.icons = void 0;
|
|
4
|
-
var
|
|
4
|
+
var react_1 = require("@phosphor-icons/react");
|
|
5
5
|
var custom_1 = require("./custom");
|
|
6
6
|
exports.icons = {
|
|
7
|
-
PencilSimple:
|
|
8
|
-
PencilLine:
|
|
9
|
-
Plus:
|
|
10
|
-
Lightbulb:
|
|
11
|
-
Tag:
|
|
12
|
-
UploadSimple:
|
|
13
|
-
CaretLeft:
|
|
14
|
-
CaretRight:
|
|
15
|
-
XCircle:
|
|
16
|
-
XSquare:
|
|
17
|
-
DownloadSimple:
|
|
18
|
-
ArrowLineUpRight:
|
|
19
|
-
User:
|
|
20
|
-
UserCirclePlus:
|
|
21
|
-
MapPinLine:
|
|
22
|
-
WarningCircle:
|
|
23
|
-
HighlighterCircle:
|
|
24
|
-
Paperclip:
|
|
25
|
-
SpeakerHigh:
|
|
26
|
-
ArrowLeft:
|
|
27
|
-
CalendarBlank:
|
|
28
|
-
Trash:
|
|
29
|
-
DotsThreeVertical:
|
|
30
|
-
DotsThreeCircle:
|
|
31
|
-
DotsThree:
|
|
32
|
-
CaretUp:
|
|
33
|
-
CaretDown:
|
|
34
|
-
ShareNetwork:
|
|
35
|
-
X:
|
|
36
|
-
WhatsappLogo:
|
|
37
|
-
FacebookLogo:
|
|
38
|
-
TwitterLogo:
|
|
39
|
-
LinkedinLogo:
|
|
40
|
-
YoutubeLogo:
|
|
41
|
-
InstagramLogo:
|
|
42
|
-
Globe:
|
|
43
|
-
Phone:
|
|
44
|
-
Envelope:
|
|
45
|
-
Checks:
|
|
46
|
-
Check:
|
|
47
|
-
ArrowClockwise:
|
|
48
|
-
ArrowsClockwise:
|
|
49
|
-
ArrowsIn:
|
|
50
|
-
ArrowsOut:
|
|
51
|
-
MapPin:
|
|
52
|
-
ArrowDown:
|
|
53
|
-
ArrowsDownUp:
|
|
54
|
-
ArrowUp:
|
|
55
|
-
GearSix:
|
|
56
|
-
Wrench:
|
|
57
|
-
CheckSquare:
|
|
58
|
-
CheckSquareOffset:
|
|
59
|
-
Cards:
|
|
60
|
-
SignOut:
|
|
61
|
-
Swap:
|
|
62
|
-
CheckCircle:
|
|
63
|
-
Circle:
|
|
64
|
-
ImageSquare:
|
|
65
|
-
ListDashes:
|
|
66
|
-
ListNumbers:
|
|
67
|
-
ListPlus:
|
|
68
|
-
List:
|
|
69
|
-
FileArrowUp:
|
|
70
|
-
VideoCamera:
|
|
71
|
-
Quotes:
|
|
72
|
-
SpeakerSimpleHigh:
|
|
73
|
-
FilePdf:
|
|
74
|
-
MagnifyingGlass:
|
|
75
|
-
Eye:
|
|
76
|
-
EyeClosed:
|
|
77
|
-
Minus:
|
|
78
|
-
TextHOne:
|
|
79
|
-
TextHTwo:
|
|
80
|
-
TextHThree:
|
|
81
|
-
TextBolder:
|
|
82
|
-
TextItalic:
|
|
83
|
-
TextUnderline:
|
|
84
|
-
ArrowRight:
|
|
85
|
-
Sliders:
|
|
86
|
-
Faders:
|
|
87
|
-
Code:
|
|
88
|
-
SortDescending:
|
|
89
|
-
SortAscending:
|
|
90
|
-
Crosshair:
|
|
91
|
-
MicrophoneStage:
|
|
92
|
-
File:
|
|
93
|
-
FolderSimple:
|
|
94
|
-
FolderSimpleStar:
|
|
95
|
-
LinkSimple:
|
|
96
|
-
Laptop:
|
|
97
|
-
Info:
|
|
98
|
-
DotsSixVertical:
|
|
99
|
-
Bell:
|
|
100
|
-
UserSwitch:
|
|
101
|
-
PlusMinus:
|
|
102
|
-
SelectionAll:
|
|
103
|
-
Activity:
|
|
104
|
-
Browsers:
|
|
105
|
-
Cube:
|
|
106
|
-
Table:
|
|
107
|
-
UserList:
|
|
108
|
-
Binoculars:
|
|
109
|
-
LightbulbFilament:
|
|
110
|
-
Keyboard:
|
|
111
|
-
TextAa:
|
|
112
|
-
ThumbsUp:
|
|
113
|
-
ChatText:
|
|
114
|
-
SlackLogo:
|
|
115
|
-
SquareHalf:
|
|
116
|
-
SquareHalfBottom:
|
|
117
|
-
MagicWand:
|
|
118
|
-
CrownSimple:
|
|
119
|
-
Funnel:
|
|
120
|
-
ThumbsDown:
|
|
121
|
-
CopySimple:
|
|
122
|
-
PaperPlaneRight:
|
|
123
|
-
Warning:
|
|
124
|
-
Star:
|
|
125
|
-
ArrowsVertical:
|
|
126
|
-
CirclesFour:
|
|
127
|
-
ArrowLineDown:
|
|
128
|
-
PaperPlaneTilt:
|
|
129
|
-
NotePencil:
|
|
130
|
-
CircleNotch:
|
|
131
|
-
PaintBucket:
|
|
132
|
-
SquaresFour:
|
|
133
|
-
CaretDoubleLeft:
|
|
134
|
-
TextIndent:
|
|
135
|
-
Share:
|
|
7
|
+
PencilSimple: react_1.PencilSimpleIcon,
|
|
8
|
+
PencilLine: react_1.PencilLineIcon,
|
|
9
|
+
Plus: react_1.PlusIcon,
|
|
10
|
+
Lightbulb: react_1.LightbulbIcon,
|
|
11
|
+
Tag: react_1.TagIcon,
|
|
12
|
+
UploadSimple: react_1.UploadSimpleIcon,
|
|
13
|
+
CaretLeft: react_1.CaretLeftIcon,
|
|
14
|
+
CaretRight: react_1.CaretRightIcon,
|
|
15
|
+
XCircle: react_1.XCircleIcon,
|
|
16
|
+
XSquare: react_1.XSquareIcon,
|
|
17
|
+
DownloadSimple: react_1.DownloadSimpleIcon,
|
|
18
|
+
ArrowLineUpRight: react_1.ArrowLineUpRightIcon,
|
|
19
|
+
User: react_1.UserIcon,
|
|
20
|
+
UserCirclePlus: react_1.UserCirclePlusIcon,
|
|
21
|
+
MapPinLine: react_1.MapPinLineIcon,
|
|
22
|
+
WarningCircle: react_1.WarningCircleIcon,
|
|
23
|
+
HighlighterCircle: react_1.HighlighterCircleIcon,
|
|
24
|
+
Paperclip: react_1.PaperclipIcon,
|
|
25
|
+
SpeakerHigh: react_1.SpeakerHighIcon,
|
|
26
|
+
ArrowLeft: react_1.ArrowLeftIcon,
|
|
27
|
+
CalendarBlank: react_1.CalendarBlankIcon,
|
|
28
|
+
Trash: react_1.TrashIcon,
|
|
29
|
+
DotsThreeVertical: react_1.DotsThreeVerticalIcon,
|
|
30
|
+
DotsThreeCircle: react_1.DotsThreeCircleIcon,
|
|
31
|
+
DotsThree: react_1.DotsThreeIcon,
|
|
32
|
+
CaretUp: react_1.CaretUpIcon,
|
|
33
|
+
CaretDown: react_1.CaretDownIcon,
|
|
34
|
+
ShareNetwork: react_1.ShareNetworkIcon,
|
|
35
|
+
X: react_1.XIcon,
|
|
36
|
+
WhatsappLogo: react_1.WhatsappLogoIcon,
|
|
37
|
+
FacebookLogo: react_1.FacebookLogoIcon,
|
|
38
|
+
TwitterLogo: react_1.TwitterLogoIcon,
|
|
39
|
+
LinkedinLogo: react_1.LinkedinLogoIcon,
|
|
40
|
+
YoutubeLogo: react_1.YoutubeLogoIcon,
|
|
41
|
+
InstagramLogo: react_1.InstagramLogoIcon,
|
|
42
|
+
Globe: react_1.GlobeIcon,
|
|
43
|
+
Phone: react_1.PhoneIcon,
|
|
44
|
+
Envelope: react_1.EnvelopeIcon,
|
|
45
|
+
Checks: react_1.ChecksIcon,
|
|
46
|
+
Check: react_1.CheckIcon,
|
|
47
|
+
ArrowClockwise: react_1.ArrowClockwiseIcon,
|
|
48
|
+
ArrowsClockwise: react_1.ArrowsClockwiseIcon,
|
|
49
|
+
ArrowsIn: react_1.ArrowsInIcon,
|
|
50
|
+
ArrowsOut: react_1.ArrowsOutIcon,
|
|
51
|
+
MapPin: react_1.MapPinIcon,
|
|
52
|
+
ArrowDown: react_1.ArrowDownIcon,
|
|
53
|
+
ArrowsDownUp: react_1.ArrowsDownUpIcon,
|
|
54
|
+
ArrowUp: react_1.ArrowUpIcon,
|
|
55
|
+
GearSix: react_1.GearSixIcon,
|
|
56
|
+
Wrench: react_1.WrenchIcon,
|
|
57
|
+
CheckSquare: react_1.CheckSquareIcon,
|
|
58
|
+
CheckSquareOffset: react_1.CheckSquareOffsetIcon,
|
|
59
|
+
Cards: react_1.CardsIcon,
|
|
60
|
+
SignOut: react_1.SignOutIcon,
|
|
61
|
+
Swap: react_1.SwapIcon,
|
|
62
|
+
CheckCircle: react_1.CheckCircleIcon,
|
|
63
|
+
Circle: react_1.CircleIcon,
|
|
64
|
+
ImageSquare: react_1.ImageSquareIcon,
|
|
65
|
+
ListDashes: react_1.ListDashesIcon,
|
|
66
|
+
ListNumbers: react_1.ListNumbersIcon,
|
|
67
|
+
ListPlus: react_1.ListPlusIcon,
|
|
68
|
+
List: react_1.ListIcon,
|
|
69
|
+
FileArrowUp: react_1.FileArrowUpIcon,
|
|
70
|
+
VideoCamera: react_1.VideoCameraIcon,
|
|
71
|
+
Quotes: react_1.QuotesIcon,
|
|
72
|
+
SpeakerSimpleHigh: react_1.SpeakerSimpleHighIcon,
|
|
73
|
+
FilePdf: react_1.FilePdfIcon,
|
|
74
|
+
MagnifyingGlass: react_1.MagnifyingGlassIcon,
|
|
75
|
+
Eye: react_1.EyeIcon,
|
|
76
|
+
EyeClosed: react_1.EyeClosedIcon,
|
|
77
|
+
Minus: react_1.MinusIcon,
|
|
78
|
+
TextHOne: react_1.TextHOneIcon,
|
|
79
|
+
TextHTwo: react_1.TextHTwoIcon,
|
|
80
|
+
TextHThree: react_1.TextHThreeIcon,
|
|
81
|
+
TextBolder: react_1.TextBolderIcon,
|
|
82
|
+
TextItalic: react_1.TextItalicIcon,
|
|
83
|
+
TextUnderline: react_1.TextUnderlineIcon,
|
|
84
|
+
ArrowRight: react_1.ArrowRightIcon,
|
|
85
|
+
Sliders: react_1.SlidersIcon,
|
|
86
|
+
Faders: react_1.FadersIcon,
|
|
87
|
+
Code: react_1.CodeIcon,
|
|
88
|
+
SortDescending: react_1.SortDescendingIcon,
|
|
89
|
+
SortAscending: react_1.SortAscendingIcon,
|
|
90
|
+
Crosshair: react_1.CrosshairIcon,
|
|
91
|
+
MicrophoneStage: react_1.MicrophoneStageIcon,
|
|
92
|
+
File: react_1.FileIcon,
|
|
93
|
+
FolderSimple: react_1.FolderSimpleIcon,
|
|
94
|
+
FolderSimpleStar: react_1.FolderSimpleStarIcon,
|
|
95
|
+
LinkSimple: react_1.LinkSimpleIcon,
|
|
96
|
+
Laptop: react_1.LaptopIcon,
|
|
97
|
+
Info: react_1.InfoIcon,
|
|
98
|
+
DotsSixVertical: react_1.DotsSixVerticalIcon,
|
|
99
|
+
Bell: react_1.BellIcon,
|
|
100
|
+
UserSwitch: react_1.UserSwitchIcon,
|
|
101
|
+
PlusMinus: react_1.PlusMinusIcon,
|
|
102
|
+
SelectionAll: react_1.SelectionAllIcon,
|
|
103
|
+
Activity: react_1.ActivityIcon,
|
|
104
|
+
Browsers: react_1.BrowsersIcon,
|
|
105
|
+
Cube: react_1.CubeIcon,
|
|
106
|
+
Table: react_1.TableIcon,
|
|
107
|
+
UserList: react_1.UserListIcon,
|
|
108
|
+
Binoculars: react_1.BinocularsIcon,
|
|
109
|
+
LightbulbFilament: react_1.LightbulbFilamentIcon,
|
|
110
|
+
Keyboard: react_1.KeyboardIcon,
|
|
111
|
+
TextAa: react_1.TextAaIcon,
|
|
112
|
+
ThumbsUp: react_1.ThumbsUpIcon,
|
|
113
|
+
ChatText: react_1.ChatTextIcon,
|
|
114
|
+
SlackLogo: react_1.SlackLogoIcon,
|
|
115
|
+
SquareHalf: react_1.SquareHalfIcon,
|
|
116
|
+
SquareHalfBottom: react_1.SquareHalfBottomIcon,
|
|
117
|
+
MagicWand: react_1.MagicWandIcon,
|
|
118
|
+
CrownSimple: react_1.CrownSimpleIcon,
|
|
119
|
+
Funnel: react_1.FunnelIcon,
|
|
120
|
+
ThumbsDown: react_1.ThumbsDownIcon,
|
|
121
|
+
CopySimple: react_1.CopySimpleIcon,
|
|
122
|
+
PaperPlaneRight: react_1.PaperPlaneRightIcon,
|
|
123
|
+
Warning: react_1.WarningIcon,
|
|
124
|
+
Star: react_1.StarIcon,
|
|
125
|
+
ArrowsVertical: react_1.ArrowsVerticalIcon,
|
|
126
|
+
CirclesFour: react_1.CirclesFourIcon,
|
|
127
|
+
ArrowLineDown: react_1.ArrowLineDownIcon,
|
|
128
|
+
PaperPlaneTilt: react_1.PaperPlaneTiltIcon,
|
|
129
|
+
NotePencil: react_1.NotePencilIcon,
|
|
130
|
+
CircleNotch: react_1.CircleNotchIcon,
|
|
131
|
+
PaintBucket: react_1.PaintBucketIcon,
|
|
132
|
+
SquaresFour: react_1.SquaresFourIcon,
|
|
133
|
+
CaretDoubleLeft: react_1.CaretDoubleLeftIcon,
|
|
134
|
+
TextIndent: react_1.TextIndentIcon,
|
|
135
|
+
Share: react_1.ShareIcon,
|
|
136
|
+
ChartBarHorizontal: react_1.ChartBarHorizontalIcon,
|
|
137
|
+
GridNine: react_1.GridNineIcon,
|
|
138
|
+
ChartDonut: react_1.ChartDonutIcon,
|
|
136
139
|
//custom icons
|
|
137
140
|
OkeGoogleIcon: custom_1.OkeGoogleIcon,
|
|
138
141
|
LetterH: custom_1.LetterH,
|
|
@@ -18,8 +18,9 @@ exports.Tooltip = void 0;
|
|
|
18
18
|
var react_1 = __importDefault(require("react"));
|
|
19
19
|
var Tooltip_1 = require("../../../components/Tooltip");
|
|
20
20
|
// import { ButtonPrimary } from '../components/Buttons';
|
|
21
|
-
var phosphor_react_1 = require("phosphor-react");
|
|
22
21
|
var themes_1 = require("../../../themes");
|
|
22
|
+
var icons_1 = require("../../../icons");
|
|
23
|
+
var Info = icons_1.icons.Info;
|
|
23
24
|
exports.default = {
|
|
24
25
|
title: 'Components/Tooltip',
|
|
25
26
|
args: {
|
|
@@ -52,6 +53,6 @@ var Tooltip = function (args) {
|
|
|
52
53
|
: {} },
|
|
53
54
|
react_1.default.createElement("div", { style: { height: '100vh', display: 'flex', justifyContent: 'center', alignItems: 'center' } },
|
|
54
55
|
react_1.default.createElement(Tooltip_1.Tooltip, __assign({}, args, { presetTarget: "infoIcon" }),
|
|
55
|
-
react_1.default.createElement(
|
|
56
|
+
react_1.default.createElement(Info, { size: 24 }))))));
|
|
56
57
|
};
|
|
57
58
|
exports.Tooltip = Tooltip;
|
|
@@ -41,7 +41,7 @@ var BarChart = function (args) {
|
|
|
41
41
|
};
|
|
42
42
|
return (react_1.default.createElement("div", { style: { display: "grid", gridTemplateColumns: "1fr 1fr", gap: "20px", padding: '20px' } },
|
|
43
43
|
react_1.default.createElement("div", { style: { border: '1px solid black', padding: '10px' } },
|
|
44
|
-
react_1.default.createElement(BarChart_1.BarChart, { showPercent: args.showPercent, data: [
|
|
44
|
+
react_1.default.createElement(BarChart_1.BarChart, { overflowAfterHeight: 300, showPercent: args.showPercent, data: [
|
|
45
45
|
{
|
|
46
46
|
display: "Logged In Once",
|
|
47
47
|
stack1: 45, stack2: 23, stack3: 67, stack4: 12, stack5: 89,
|
|
@@ -45,10 +45,11 @@ var react_1 = __importStar(require("react"));
|
|
|
45
45
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
46
46
|
var colors_1 = require("../../themes/colors");
|
|
47
47
|
var ActionMenu_1 = require("../../../components/ActionMenu");
|
|
48
|
-
var phosphor_react_1 = require("phosphor-react");
|
|
49
48
|
var mixins_1 = require("../../../themes/mixins");
|
|
50
49
|
var Typo2_1 = require("../Typo2");
|
|
51
50
|
var useStyleUpdateAfterToggleTransition_1 = require("../../../utils/useStyleUpdateAfterToggleTransition");
|
|
51
|
+
var icons_1 = require("../../../icons");
|
|
52
|
+
var CaretDown = icons_1.icons.CaretDown, DotsThree = icons_1.icons.DotsThree;
|
|
52
53
|
var StyledContainer = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n border-radius: 0.8rem;\n border: 1px solid ", ";\n background: #ffffff;\n box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.06);\n"], ["\n border-radius: 0.8rem;\n border: 1px solid ", ";\n background: #ffffff;\n box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.06);\n"])), colors_1.colors.grey10);
|
|
53
54
|
var StyledHeader = styled_components_1.default.button(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n width: 100%;\n padding: 1rem 1.6rem;\n text-align: left;\n background: none;\n border: none;\n cursor: pointer;\n display: flex;\n align-items: center;\n"], ["\n width: 100%;\n padding: 1rem 1.6rem;\n text-align: left;\n background: none;\n border: none;\n cursor: pointer;\n display: flex;\n align-items: center;\n"])));
|
|
54
55
|
var StyledRightHeaderSection = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n"], ["\n display: flex;\n align-items: center;\n"])));
|
|
@@ -72,7 +73,7 @@ var CustomActionMenuSelectButton = function (_a) {
|
|
|
72
73
|
width: "2rem",
|
|
73
74
|
justifyContent: "center",
|
|
74
75
|
} },
|
|
75
|
-
react_1.default.createElement(
|
|
76
|
+
react_1.default.createElement(DotsThree, { size: 16, style: { pointerEvents: 'none' } })));
|
|
76
77
|
};
|
|
77
78
|
var useCalculateWrapperHeight = function (_a) {
|
|
78
79
|
var isExpanded = _a.isExpanded;
|
|
@@ -117,7 +118,7 @@ var Accordion = function (_a) {
|
|
|
117
118
|
react_1.default.createElement(Typo2_1.UI_BODY_BOLD_SM, null, title)),
|
|
118
119
|
react_1.default.createElement(StyledRightHeaderSection, null,
|
|
119
120
|
react_1.default.createElement(ArrowWrapper, { isExpanded: isExpanded },
|
|
120
|
-
react_1.default.createElement(
|
|
121
|
+
react_1.default.createElement(CaretDown, { size: 16 })),
|
|
121
122
|
actionsConfig && (react_1.default.createElement(ActionMenu_1.ActionMenu, { CustomSelectComp: CustomActionMenuSelectButton, actions: actionsConfig })))),
|
|
122
123
|
react_1.default.createElement(StyledContentWrapper, { height: wrapperHeight, style: { overflow: accordionOverflow }, expandAnimationDuration: expandAnimationDuration },
|
|
123
124
|
react_1.default.createElement(StyledContentInnerWrapper, { ref: wrapperRef }, children))));
|
|
@@ -9,15 +9,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
exports.HintsButton = void 0;
|
|
11
11
|
var react_1 = __importDefault(require("react"));
|
|
12
|
-
var phosphor_react_1 = require("phosphor-react");
|
|
13
12
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
14
13
|
var Typo2_1 = require("../../Typo2");
|
|
15
14
|
var colors_1 = require("../../../themes/colors");
|
|
15
|
+
var icons_1 = require("../../../../icons");
|
|
16
16
|
var hintHover = colors_1.colors.hintHover, hint = colors_1.colors.hint, white = colors_1.colors.white;
|
|
17
|
+
var Lightbulb = icons_1.icons.Lightbulb;
|
|
17
18
|
var HintsButton = function (_a) {
|
|
18
19
|
var id = _a.id, btnLabel = _a.btnLabel, onClick = _a.onClick;
|
|
19
20
|
return (react_1.default.createElement(StyledButton, { onClick: function () { return onClick(id); } },
|
|
20
|
-
react_1.default.createElement(
|
|
21
|
+
react_1.default.createElement(Lightbulb, { size: 13, weight: "bold", style: { marginBottom: "0.2rem" } }),
|
|
21
22
|
react_1.default.createElement(Typo2_1.UI_BODY_SM_DF, null, btnLabel)));
|
|
22
23
|
};
|
|
23
24
|
exports.HintsButton = HintsButton;
|
|
@@ -34,7 +34,7 @@ var ListItem = function (_a) {
|
|
|
34
34
|
var opIsSelected = function (thisOpData) {
|
|
35
35
|
return value === null || value === void 0 ? void 0 : value.some(function (d) { return d.value === thisOpData.value; });
|
|
36
36
|
};
|
|
37
|
-
return (react_1.default.createElement(styled_1.StyledListItemWrapper, { index: index, isSelected: isSelected, isFocussed: isFocussed, className: "OKE-Dropdown__option", ref: function (el) { return isFocussed && el && scrollFocussedOpIntoView(el); }, onClick: handleClick, S: S, style: { pointerEvents: disabled && "none" } },
|
|
37
|
+
return (react_1.default.createElement(styled_1.StyledListItemWrapper, { index: index, isSelected: isSelected, isFocussed: isFocussed, className: "OKE-Dropdown__option", ref: function (el) { return isFocussed && el && scrollFocussedOpIntoView(el); }, onClick: handleClick, S: S, style: { pointerEvents: disabled && "none", cursor: !disabled && "pointer" } },
|
|
38
38
|
react_1.default.createElement("div", { ref: observerRef, style: {
|
|
39
39
|
display: "flex",
|
|
40
40
|
alignItems: "flex-start",
|
|
@@ -11,7 +11,6 @@ exports.CheckboxInput = void 0;
|
|
|
11
11
|
var react_1 = __importDefault(require("react"));
|
|
12
12
|
var icons_1 = require("../../../../../../../icons");
|
|
13
13
|
var themes_1 = require("../../../../../../themes");
|
|
14
|
-
var Tags_1 = require("../../../../../Tags");
|
|
15
14
|
var Typo2_1 = require("../../../../../Typo2");
|
|
16
15
|
var styled_1 = require("../../../../styled");
|
|
17
16
|
var utils_1 = require("../../../../utils");
|
|
@@ -19,6 +18,7 @@ var CheckboxButton_1 = require("../CheckboxButton");
|
|
|
19
18
|
var TextLoader_1 = require("../../../../../../../components/LoadersAndProgress/TextLoader");
|
|
20
19
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
21
20
|
var mixins_1 = require("../../../../../../../themes/mixins");
|
|
21
|
+
var Tags_1 = require("../../../../../Tags");
|
|
22
22
|
var CheckSquare = icons_1.icons.CheckSquare, XSquare = icons_1.icons.XSquare;
|
|
23
23
|
var red = themes_1.colors.red, grey40 = themes_1.colors.grey40, grey80 = themes_1.colors.grey80, onSecondary = themes_1.colors.onSecondary, invertRed = themes_1.colors.invertRed;
|
|
24
24
|
var UI_BODY_SM_DF_STYLED = (0, styled_components_1.default)(Typo2_1.UI_BODY_SM_DF)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", ";\n white-space: normal;\n"], ["\n ", ";\n white-space: normal;\n"])), (0, mixins_1.clampText)(2));
|
|
@@ -40,7 +40,7 @@ var CheckboxInput = function (_a) {
|
|
|
40
40
|
margin: "-7px -2.8px -7px -3.2px",
|
|
41
41
|
flexShrink: 0,
|
|
42
42
|
} })); };
|
|
43
|
-
return option.loading ? (react_1.default.createElement(TextLoader_1.TextLoader, { style: { width: "8rem", height: "1.5rem" } })) : inputStyle === "tagSelect" ? (react_1.default.createElement(Tags_1.
|
|
43
|
+
return option.loading ? (react_1.default.createElement(TextLoader_1.TextLoader, { style: { width: "8rem", height: "1.5rem" } })) : inputStyle === "tagSelect" ? (react_1.default.createElement(Tags_1.Tag, { isSelected: isSelected, invert: invert, disabled: disabled, onClick: function () { return !disabled && onClick(isSelected, option); }, display: option.display, value: option.value, style: { alignSelf: "flex-start" } })) : (react_1.default.createElement(styled_1.StyledOption, { rightWrongResult: rightWrongResult, isSelected: isSelected, disabled: disabled, invert: invert, S: S, className: className, onClick: function () {
|
|
44
44
|
return !rightWrongResult && !disabled && onClick && onClick(isSelected, option);
|
|
45
45
|
} },
|
|
46
46
|
react_1.default.createElement("div", { style: { alignSelf: "flex-start" } }, rightWrongResult
|
|
@@ -23,10 +23,10 @@ var _EXPORTS_1 = require("../../../utils/_EXPORTS");
|
|
|
23
23
|
var DropdownSingle_1 = require("../../../components/Dropdowns/DropdownSingle");
|
|
24
24
|
var mixins_1 = require("../../../themes/mixins");
|
|
25
25
|
var Typo2_1 = require("../Typo2");
|
|
26
|
-
var phosphor_react_1 = require("phosphor-react");
|
|
27
26
|
var colors_1 = require("../../themes/colors");
|
|
28
27
|
var icons_1 = require("../../../icons");
|
|
29
28
|
var __1 = require("../../..");
|
|
29
|
+
var List = icons_1.icons.List;
|
|
30
30
|
var Base = function (_a) {
|
|
31
31
|
var id = _a.id, options = _a.options, valueProp = _a.value, onChange = _a.onChange, style = _a.style, errorTabs = _a.errorTabs, disabledTabs = _a.disabledTabs, _b = _a.tabBarStyle, tabBarStyle = _b === void 0 ? '1' : _b, saveValueAsString = _a.saveValueAsString, _c = _a.black, black = _c === void 0 ? false : _c, M = _a.M, S = _a.S, _size = _a.size //use any one of these 3
|
|
32
32
|
;
|
|
@@ -86,5 +86,5 @@ var CustomSelectComp = function (_a) {
|
|
|
86
86
|
react_1.default.createElement("div", null,
|
|
87
87
|
react_1.default.createElement(Typo2_1.UI_TAG, { style: { color: colors_1.colors.grey40 } }, title),
|
|
88
88
|
react_1.default.createElement(Typo2_1.UI_BODY_SEMIBOLD, { capitalize: true, style: { color: display ? colors_1.colors.black : colors_1.colors.grey60 } }, display || placeholder)),
|
|
89
|
-
react_1.default.createElement(
|
|
89
|
+
react_1.default.createElement(List, { size: 18, weight: "bold" })));
|
|
90
90
|
};
|
|
@@ -59,9 +59,8 @@ var UI_CAPTION_DF_WITH_LINE_CLAMP = (0, styled_components_1.default)(Typo2_1.UI_
|
|
|
59
59
|
return clampT ? (0, __1.clampText)(3) : '';
|
|
60
60
|
});
|
|
61
61
|
var CustomTooltip = function (props) {
|
|
62
|
-
var _a;
|
|
63
62
|
var value = props.value, showPercent = props.showPercent, mousePosition = props.mousePosition, activeBar = props.activeBar, breakdownCategoryName = props.breakdownCategoryName;
|
|
64
|
-
var isActive = activeBar &&
|
|
63
|
+
var isActive = props.active; //activeBar && value?.[0]?.name === activeBar
|
|
65
64
|
var tooltipWrapperRef = (0, react_1.useRef)(null);
|
|
66
65
|
var calcTooltipTop = function (_a) {
|
|
67
66
|
var _b, _c;
|
|
@@ -99,8 +98,8 @@ var CustomTooltip = function (props) {
|
|
|
99
98
|
// pointerEvents: "none", // Add this to prevent tooltip from interfering with mouse events
|
|
100
99
|
};
|
|
101
100
|
var tooltipLabelLengthRefs = (0, react_1.useRef)([]);
|
|
102
|
-
var
|
|
103
|
-
var
|
|
101
|
+
var _a = (0, react_1.useState)([]), rowHeights = _a[0], setRowHeights = _a[1];
|
|
102
|
+
var _b = (0, react_1.useState)((value === null || value === void 0 ? void 0 : value.map(function (v) { return true; })) || []), tooltipTextClampStates = _b[0], setTooltipTextClampStates = _b[1];
|
|
104
103
|
(0, react_1.useEffect)(function () {
|
|
105
104
|
if (!tooltipTextClampStates) {
|
|
106
105
|
setTooltipTextClampStates(value === null || value === void 0 ? void 0 : value.map(function (v) { return true; }));
|
|
@@ -21,7 +21,7 @@ var Typo2_1 = require("../../../../Typo2");
|
|
|
21
21
|
var LegendTooltipGlyph_1 = require("../LegendTooltipGlyph");
|
|
22
22
|
var Legend = function (_a) {
|
|
23
23
|
var data = _a.data, label = _a.label, _b = _a.orientation, orientation = _b === void 0 ? "vertical" : _b;
|
|
24
|
-
return (react_1.default.createElement("div", { style: __assign(__assign({}, (orientation === 'vertical' ? { maxWidth: '200px' } : {})), { padding: "12px", borderRadius: '8px', border: "1px solid ".concat(__1.colors2.grey5), background: "linear-gradient(to bottom, hsla(0, 0%, 96%, 1), hsla(0, 0%, 100%, 0))" }) },
|
|
24
|
+
return (react_1.default.createElement("div", { style: __assign(__assign({}, (orientation === 'vertical' ? { maxWidth: '200px' } : {})), { padding: "12px", borderRadius: '8px', border: "1px solid ".concat(__1.colors2.grey5), background: "linear-gradient(to bottom, hsla(0, 0%, 96%, 1), hsla(0, 0%, 100%, 0))", maxHeight: orientation === 'vertical' ? '100%' : '150px', overflow: 'scroll' }) },
|
|
25
25
|
label && orientation === 'vertical' && (react_1.default.createElement("div", { style: { paddingBottom: "8px" } },
|
|
26
26
|
react_1.default.createElement(Typo2_1.UI_CAPTION_BOLD_DF, null, label))),
|
|
27
27
|
react_1.default.createElement("div", { style: __assign(__assign({ display: "flex", flexDirection: orientation === "vertical" ? "column" : "row" }, (orientation === 'horizontal' ? { flexWrap: 'wrap' } : {})), { gap: "8px" }) },
|
|
@@ -27,7 +27,6 @@ export interface BarChartProps {
|
|
|
27
27
|
breakdownDisplayType?: BreakdownDisplayType;
|
|
28
28
|
colorIdx?: number;
|
|
29
29
|
summarizeAfterIdx?: number;
|
|
30
|
-
overflowAfterHeight?: number;
|
|
31
30
|
style?: React.CSSProperties;
|
|
32
31
|
}
|
|
33
32
|
export declare const BarChart: React.FC<BarChartProps>;
|
|
@@ -214,7 +214,7 @@ var renderBar = function (_a) {
|
|
|
214
214
|
};
|
|
215
215
|
var useDecideLegendOrientation = function (options) {
|
|
216
216
|
if (options === void 0) { options = {}; }
|
|
217
|
-
var _a = options.widthThreshold, widthThreshold = _a === void 0 ?
|
|
217
|
+
var _a = options.widthThreshold, widthThreshold = _a === void 0 ? 600 : _a;
|
|
218
218
|
var vizWrapperRef = (0, react_1.useRef)(null);
|
|
219
219
|
var _b = (0, react_1.useState)('horizontal'), orientation = _b[0], setOrientation = _b[1];
|
|
220
220
|
(0, react_1.useEffect)(function () {
|
|
@@ -306,11 +306,9 @@ var FadeGradientWhenScroll = function (_a) {
|
|
|
306
306
|
var BarChart = function (_a) {
|
|
307
307
|
var _data = _a.data, valuePath = _a.valuePath, _b = _a.style, style = _b === void 0 ? {} : _b, tooltipLabelsMapping = _a.tooltipLabelsMapping, tooltipLabelsPath = _a.tooltipLabelsPath, breakdownCategoryName = _a.breakdownCategoryName, // basically, if lets say tagCat1 is broken down by tagCat2. then tagCat2's display would be this property
|
|
308
308
|
_c = _a.labelPath, // basically, if lets say tagCat1 is broken down by tagCat2. then tagCat2's display would be this property
|
|
309
|
-
labelPath = _c === void 0 ? "name" : _c, onClick = _a.onClick, _d = _a.breakdownDisplayType, breakdownDisplayType = _d === void 0 ? "grouped" : _d, _e = _a.showCount, showCount = _e === void 0 ? true : _e, _f = _a.showPercent, showPercent = _f === void 0 ? true : _f, _g = _a.colorIdx, colorIdx = _g === void 0 ? 0 : _g, _h = _a.summarizeAfterIdx, summarizeAfterIdx = _h === void 0 ? undefined : _h
|
|
310
|
-
_j = _a.overflowAfterHeight, //if a number is defined, then from that 'index' onwards, bars will be compressed into a single bar with a tooltip explaining distribution
|
|
311
|
-
overflowAfterHeight = _j === void 0 ? 550 : _j;
|
|
309
|
+
labelPath = _c === void 0 ? "name" : _c, onClick = _a.onClick, _d = _a.breakdownDisplayType, breakdownDisplayType = _d === void 0 ? "grouped" : _d, _e = _a.showCount, showCount = _e === void 0 ? true : _e, _f = _a.showPercent, showPercent = _f === void 0 ? true : _f, _g = _a.colorIdx, colorIdx = _g === void 0 ? 0 : _g, _h = _a.summarizeAfterIdx, summarizeAfterIdx = _h === void 0 ? undefined : _h;
|
|
312
310
|
var isBreakdown = Array.isArray(valuePath);
|
|
313
|
-
var
|
|
311
|
+
var _j = (0, usePrepareData_1.usePrepareData)({
|
|
314
312
|
_data: _data,
|
|
315
313
|
labelPath: labelPath,
|
|
316
314
|
valuePath: valuePath,
|
|
@@ -320,16 +318,16 @@ var BarChart = function (_a) {
|
|
|
320
318
|
showPercent: showPercent,
|
|
321
319
|
summarizeAfterIdx: summarizeAfterIdx,
|
|
322
320
|
colorIdx: colorIdx
|
|
323
|
-
}), data =
|
|
324
|
-
var
|
|
321
|
+
}), data = _j.data, dataMaxValue = _j.dataMaxValue, dataToSummarize = _j.dataToSummarize;
|
|
322
|
+
var _k = useDecideLegendOrientation({
|
|
325
323
|
widthThreshold: 500
|
|
326
|
-
}), vizWrapperRef =
|
|
327
|
-
var
|
|
324
|
+
}), vizWrapperRef = _k.vizWrapperRef, orientation = _k.orientation;
|
|
325
|
+
var _l = (0, react_1.useState)(undefined), activeBar = _l[0], setActiveBar = _l[1];
|
|
328
326
|
var mousePosition = (0, exports.useTrackMousePosition)().mousePosition;
|
|
329
327
|
// menu options for grouped and stacked
|
|
330
328
|
if (data.length === 0)
|
|
331
329
|
return react_1.default.createElement("div", null, "No data available");
|
|
332
|
-
return (react_1.default.createElement("div", { ref: vizWrapperRef, style: __assign(__assign({}, style), { width: "100%", background: _debug_controls.chartWrapperBgColor, display: 'flex', gap: '8px', flexDirection: orientation === 'vertical' ? 'row' : 'column', position: 'relative',
|
|
330
|
+
return (react_1.default.createElement("div", { ref: vizWrapperRef, style: __assign(__assign({}, style), { width: "100%", background: _debug_controls.chartWrapperBgColor, display: 'flex', gap: '8px', flexDirection: orientation === 'vertical' ? 'row' : 'column', position: 'relative', overflow: 'scroll' }) },
|
|
333
331
|
react_1.default.createElement("div", { style: { flexGrow: 1, position: 'relative' } },
|
|
334
332
|
react_1.default.createElement(BarChartRenderer, { data: data, dataToSummarize: dataToSummarize, isBreakdown: isBreakdown, breakdownDisplayType: breakdownDisplayType, showSumOfBreakdownValues: false, showPercent: showPercent, showCount: showCount, activeBar: activeBar, setActiveBar: setActiveBar, onClick: onClick, mousePosition: mousePosition, dataMaxValue: dataMaxValue, breakdownCategoryName: breakdownCategoryName }),
|
|
335
333
|
dataToSummarize && (react_1.default.createElement(BarChartRenderer, { data: dataToSummarize,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oolib",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.196.0",
|
|
4
4
|
"description": " OKE Component Library",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -89,6 +89,7 @@
|
|
|
89
89
|
"@lexical/react": "^0.13.1",
|
|
90
90
|
"@lexical/table": "^0.13.1",
|
|
91
91
|
"@material/material-color-utilities": "^0.3.0",
|
|
92
|
+
"@phosphor-icons/react": "^2.1.10",
|
|
92
93
|
"@react-hook/resize-observer": "^1.2.6",
|
|
93
94
|
"babel-polyfill": "^6.26.0",
|
|
94
95
|
"d3": "^7.8.5",
|
|
@@ -103,7 +104,6 @@
|
|
|
103
104
|
"lodash": "^4.17.21",
|
|
104
105
|
"modularscale-js": "^3.0.1",
|
|
105
106
|
"moment": "^2.24.0",
|
|
106
|
-
"phosphor-react": "^1.4.1",
|
|
107
107
|
"react-datepicker": "^7.6.0",
|
|
108
108
|
"react-player": "^2.12.0",
|
|
109
109
|
"recharts": "^2.15.3"
|