@e1011/es-kit 1.1.56 → 1.1.58
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/hooks/esm/index.css +190 -190
- package/dist/hooks/index.css +190 -190
- package/dist/lib/cjs/node_modules/dayjs/plugin/customParseFormat.js +1 -1
- package/dist/lib/cjs/node_modules/dayjs/plugin/customParseFormat.js.map +1 -1
- package/dist/lib/cjs/src/core/ui/components/molecules/popover/Tooltip.js +1 -1
- package/dist/lib/cjs/src/core/ui/components/molecules/popover/Tooltip.js.map +1 -1
- package/dist/lib/esm/node_modules/dayjs/plugin/customParseFormat.js +1 -1
- package/dist/lib/esm/node_modules/dayjs/plugin/customParseFormat.js.map +1 -1
- package/dist/lib/esm/src/core/ui/components/molecules/popover/Tooltip.js +1 -1
- package/dist/lib/esm/src/core/ui/components/molecules/popover/Tooltip.js.map +1 -1
- package/dist/lib/tsconfig.tsbuildinfo +1 -1
- package/dist/types/src/core/ui/components/molecules/popover/Popover.stories.d.ts.map +1 -1
- package/dist/types/src/core/ui/components/molecules/popover/Tooltip.d.ts +23 -2
- package/dist/types/src/core/ui/components/molecules/popover/Tooltip.d.ts.map +1 -1
- package/dist/ui/esm/src/core/ui/components/molecules/popover/Tooltip.js +1 -1
- package/dist/ui/esm/src/core/ui/components/molecules/popover/Tooltip.js.map +1 -1
- package/dist/ui/src/core/ui/components/molecules/popover/Tooltip.js +1 -1
- package/dist/ui/src/core/ui/components/molecules/popover/Tooltip.js.map +1 -1
- package/dist/utils/esm/index.css +190 -190
- package/dist/utils/esm/node_modules/dayjs/plugin/customParseFormat.js +1 -1
- package/dist/utils/esm/node_modules/dayjs/plugin/customParseFormat.js.map +1 -1
- package/dist/utils/index.css +190 -190
- package/dist/utils/node_modules/dayjs/plugin/customParseFormat.js +1 -1
- package/dist/utils/node_modules/dayjs/plugin/customParseFormat.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Popover.stories.d.ts","sourceRoot":"","sources":["../../../../../../../../src/core/ui/components/molecules/popover/Popover.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA2B,SAAS,EAC8B,MAAM,OAAO,CAAA;AACtF,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAA;AAOvC,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;
|
|
1
|
+
{"version":3,"file":"Popover.stories.d.ts","sourceRoot":"","sources":["../../../../../../../../src/core/ui/components/molecules/popover/Popover.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA2B,SAAS,EAC8B,MAAM,OAAO,CAAA;AACtF,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAA;AAOvC,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;wBAQ3D,IAAI;AAHT,wBAGS;AAkCT,KAAK,aAAa,GAAG;IACnB,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;AAED,KAAK,KAAK,GAAG,YAAY,GAAG;IAAE,IAAI,EAAE,aAAa,EAAE,CAAA;CAAE,CAAA;AAErD,eAAO,MAAM,cAAc;wBAAuB,KAAK,GAAG,SAAS;;;;;;;;;;;CASlE,CAAA;AAoBD,eAAO,MAAM,qBAAqB;wBAAuB,KAAK,GAAG,SAAS;;;;;;;;;;;CAsBzE,CAAA;AAoBD,eAAO,MAAM,kBAAkB;WAAU,KAAK,GAAG,SAAS;;;;;;CAOzD,CAAA;AA6CD,KAAK,MAAM,GAAG,YAAY,GAAG;IAAE,WAAW,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,OAAO,CAAA;CAAE,CAAA;AAE3E,eAAO,MAAM,oBAAoB;4CAA2C,MAAM,GAAG,SAAS;;;;;;;;CAiD7F,CAAA;AAUD,eAAO,MAAM,+BAA+B;+BAA8B,MAAM,GAAG,SAAS;;;;;;;CAU3F,CAAA"}
|
|
@@ -1,13 +1,33 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
1
|
+
import { FC, PropsWithChildren } from 'react';
|
|
2
2
|
import { PopoverProps } from './popover.types';
|
|
3
3
|
/**
|
|
4
4
|
|
|
5
|
+
Props for the TooltipContent component.
|
|
6
|
+
@typedef {Object} TooltipContentProps
|
|
7
|
+
@property {ForwardedRef} forwardedRef - Forwarded ref of the TooltipContent component.
|
|
8
|
+
@property {string} title - Title of the tooltip.
|
|
9
|
+
@property {string} text - Text content of the tooltip.
|
|
10
|
+
@property {Function} hide - Function to hide the tooltip.
|
|
11
|
+
@property {boolean} showClose - Determines whether to show a close button in the tooltip.
|
|
12
|
+
@extends PropsWithChildren
|
|
13
|
+
*/
|
|
14
|
+
type TooltipContentProps = PropsWithChildren<any> & {
|
|
15
|
+
forwardedRef: ForwardedRef;
|
|
16
|
+
closeIconUrl?: string;
|
|
17
|
+
className?: string;
|
|
18
|
+
title?: string;
|
|
19
|
+
text?: string;
|
|
20
|
+
hide: () => void;
|
|
21
|
+
showClose?: boolean;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
|
|
5
25
|
Props for the Tooltip component, extends PopoverProps.
|
|
6
26
|
@typedef {Object} TooltipProps
|
|
7
27
|
@property {Record<string, unknown>} [tooltipProps] - Additional props to be passed to the underlying Popover component.
|
|
8
28
|
@extends PopoverProps
|
|
9
29
|
*/
|
|
10
|
-
export type TooltipProps = PopoverProps & {
|
|
30
|
+
export type TooltipProps = PopoverProps & TooltipContentProps & {
|
|
11
31
|
tooltipProps?: Record<string, unknown>;
|
|
12
32
|
infoIconUrl?: string;
|
|
13
33
|
};
|
|
@@ -24,4 +44,5 @@ export type TooltipProps = PopoverProps & {
|
|
|
24
44
|
* @param modifiers - Optional modifiers to be passed down to the `Popover` component.
|
|
25
45
|
*/
|
|
26
46
|
export declare const Tooltip: FC<TooltipProps>;
|
|
47
|
+
export {};
|
|
27
48
|
//# sourceMappingURL=Tooltip.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../../../../../../src/core/ui/components/molecules/popover/Tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../../../../../../src/core/ui/components/molecules/popover/Tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,EAAE,EAAW,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAa5D,OAAO,EAAoB,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAkBhE;;;;;;;;;;EAUE;AACF,KAAK,mBAAmB,GAAG,iBAAiB,CAAC,GAAG,CAAC,GAAG;IAClD,YAAY,EAAE,YAAY,CAAA;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,IAAI,CAAA;IAChB,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB,CAAA;AAsDD;;;;;;EAME;AACF,MAAM,MAAM,YAAY,GAAG,YAAY,GAAG,mBAAmB,GAAG;IAC9D,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACtC,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,CAAA;AAGD;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,OAAO,EAAE,EAAE,CAAC,YAAY,CA0CnC,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{extends as e}from"../../../../../../_virtual/_rollupPluginBabelHelpers.js";import{memo as t,useMemo as o}from"react";import{infoIconJSX as r}from"../../atoms/icons.js";import{Popover as
|
|
1
|
+
import{extends as e}from"../../../../../../_virtual/_rollupPluginBabelHelpers.js";import{memo as t,useMemo as o}from"react";import{infoIconJSX as r}from"../../atoms/icons.js";import{Popover as a}from"./PopoverLite.js";import{PopoverPlacement as n}from"./popover.types.js";import l from"./tooltip.module.scss.js";import{HeadlineTertiary as i}from"../../atoms/text/Headline.js";import{DividerHorizontal as m}from"../../dividers/DividerLine.js";import{ParagraphSmall as c}from"../../atoms/text/Paragraph.js";import{IconBase as s}from"../../icon/IconBase.js";import{classNames as p}from"../../../../utils/helpers/ui.js";import{LayoutBox as d}from"../../container/layoutBox/LayoutBox.js";const f=[{name:"offset",options:{offset:[0,10],placement:n.Top}}],u=e=>{let{forwardedRef:t,title:o,text:a,hide:n,showClose:f,closeIconUrl:u,className:R=""}=e;return React.createElement("div",{ref:t,className:p(l["popover-tooltip"],R)},React.createElement("div",{id:"arrow","data-popper-arrow":!0,className:l.arrow},React.createElement("div",{className:l["arrow-inner"]})),React.createElement(d,{padding:"1rem",direction:"column",width:"256px",height:"unset",flexGrow:"1"},o&&React.createElement(d,{justify:"space-between",align:"start",width:"100%",padding:"0"},React.createElement(i,null,o),f&&React.createElement("div",{onClick:n,onKeyDown:n,role:"button",tabIndex:-1,className:l["close-button"]},u&&React.createElement(s,{iconUrl:u}),!u&&React.createElement(s,null,r))),o&&React.createElement(m,{margin:"8px 0"}),a&&React.createElement(c,{element:"p"},a)))},R=t((t=>{let{tooltipProps:n,components:{ContentComponent:l}={ContentComponent:u},infoIconUrl:i,children:m,infoTip:c,clickable:p=!1,hoverable:d=!0,placement:R="top",modifiers:h,...E}=t;const v=o((()=>l?{ContentComponent:l}:void 0),[l]);let x;m&&(x=m),!m&&c&&(x=i?React.createElement(s,{iconUrl:i,size:"1rem",color:"#00336640",style:{lineHeight:"1px"}}):React.createElement(s,{size:"1rem",color:"#00336640",style:{lineHeight:"1px"}},r));const j=o((()=>[...f,...h||[]]),[h]);return React.createElement(a,e({},E,n,{hoverable:d,clickable:p,placement:R,modifiers:j,components:v,showClose:p}),x&&x)}));R.displayName="Tooltip";export{R as Tooltip};
|
|
2
2
|
//# sourceMappingURL=Tooltip.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tooltip.js","sources":["../../../../../../../../../src/core/ui/components/molecules/popover/Tooltip.tsx"],"sourcesContent":["import { memo, FC, useMemo, PropsWithChildren } from 'react'\n// import { DividerHorizontal, LayoutBox, IconBase } from '@e1011/es-kit'\n\n\n\nimport { HeadlineTertiary as H3, ParagraphSmall } from '../../atoms/text'\nimport { DividerHorizontal } from '../../dividers'\nimport { LayoutBox } from '../../container'\nimport { IconBase } from '../../icon'\nimport { infoIconJSX } from '../../atoms/icons'\n\nimport { Popover } from './PopoverLite'\nimport { PopoverPlacement, PopoverProps } from './popover.types'\nimport classes from './tooltip.module.scss'\n\n\n/**\n\
|
|
1
|
+
{"version":3,"file":"Tooltip.js","sources":["../../../../../../../../../src/core/ui/components/molecules/popover/Tooltip.tsx"],"sourcesContent":["import { memo, FC, useMemo, PropsWithChildren } from 'react'\n// import { DividerHorizontal, LayoutBox, IconBase } from '@e1011/es-kit'\n\n\n\nimport { HeadlineTertiary as H3, ParagraphSmall } from '../../atoms/text'\nimport { DividerHorizontal } from '../../dividers'\nimport { LayoutBox } from '../../container'\nimport { IconBase } from '../../icon'\nimport { infoIconJSX } from '../../atoms/icons'\nimport { classNames } from '../../../../utils'\n\nimport { Popover } from './PopoverLite'\nimport { PopoverPlacement, PopoverProps } from './popover.types'\nimport classes from './tooltip.module.scss'\n\n\n/**\n\nModifiers for the Popover component used in Tooltip.\n*/\nconst popoverModifiers = [\n {\n name: 'offset',\n options: {\n offset: [0, 10],\n placement: PopoverPlacement.Top,\n },\n },\n]\n\n/**\n\nProps for the TooltipContent component.\n@typedef {Object} TooltipContentProps\n@property {ForwardedRef} forwardedRef - Forwarded ref of the TooltipContent component.\n@property {string} title - Title of the tooltip.\n@property {string} text - Text content of the tooltip.\n@property {Function} hide - Function to hide the tooltip.\n@property {boolean} showClose - Determines whether to show a close button in the tooltip.\n@extends PropsWithChildren\n*/\ntype TooltipContentProps = PropsWithChildren<any> & {\n forwardedRef: ForwardedRef\n closeIconUrl?: string\n className?: string\n title?: string\n text?: string\n hide: () => void\n showClose?: boolean\n}\n\n/**\n\n Tooltip content component used by the Tooltip component.\n @param {TooltipContentProps} props - Props for the TooltipContent component.\n @returns {JSX.Element} - Returns the JSX element for the TooltipContent component.\n */\nconst TooltipContent = ({\n forwardedRef, title, text, hide, showClose, closeIconUrl, className = '',\n}: TooltipContentProps): JSX.Element => (\n <div\n ref={forwardedRef}\n className={classNames(classes['popover-tooltip'], className)}\n >\n <div id='arrow' data-popper-arrow className={classes.arrow}>\n <div className={classes['arrow-inner']} />\n </div>\n <LayoutBox\n padding='1rem'\n direction='column'\n width='256px'\n height='unset'\n flexGrow='1'\n >\n {title && (\n <LayoutBox justify='space-between' align='start' width='100%' padding='0'>\n <H3>{title}</H3>\n {showClose && (\n <div\n onClick={hide}\n onKeyDown={hide}\n role='button'\n tabIndex={-1}\n className={classes['close-button']}\n >\n {closeIconUrl && <IconBase iconUrl={closeIconUrl} />}\n {!closeIconUrl && (\n <IconBase>\n {infoIconJSX}\n </IconBase>\n )}\n </div>\n )}\n </LayoutBox>\n )}\n {title && <DividerHorizontal margin='8px 0' />}\n {text && <ParagraphSmall element='p'>{text}</ParagraphSmall>}\n </LayoutBox>\n </div>\n)\n\n\n\n/**\n\nProps for the Tooltip component, extends PopoverProps.\n@typedef {Object} TooltipProps\n@property {Record<string, unknown>} [tooltipProps] - Additional props to be passed to the underlying Popover component.\n@extends PopoverProps\n*/\nexport type TooltipProps = PopoverProps & TooltipContentProps & {\n tooltipProps?: Record<string, unknown>\n infoIconUrl?: string\n}\n\n\n/**\n * A tooltip component that displays a short message when the user hovers or clicks on a target element.\n *\n * @param tooltipProps - Optional properties to be passed down to the `Popover` component.\n * @param components - Optional components that can be customized by the consumer.\n * @param children - The target element that the tooltip will be anchored to.\n * @param infoTip - If no `children` prop is passed in, an information icon will be used as the target element.\n * @param clickable - If `true`, the tooltip will be triggered by a click instead of a hover.\n * @param hoverable - If `true`, the tooltip will be triggered by a hover. Defaults to `true`.\n * @param placement - The placement of the tooltip relative to the target element.\n * @param modifiers - Optional modifiers to be passed down to the `Popover` component.\n */\nexport const Tooltip: FC<TooltipProps> = memo<TooltipProps>(({\n tooltipProps, components: { ContentComponent } = { ContentComponent: TooltipContent },\n infoIconUrl,\n children, infoTip, clickable = false, hoverable = true, placement = 'top', modifiers, ...props\n}: TooltipProps) => {\n const popoverComponents = useMemo(() => (ContentComponent ? {\n ContentComponent,\n } : undefined), [ContentComponent])\n\n let TargetNode: typeof children\n\n if (children) {\n TargetNode = children\n }\n if (!children && infoTip) {\n TargetNode = (\n infoIconUrl\n ? <IconBase iconUrl={infoIconUrl} size='1rem' color='#00336640' style={{ lineHeight: '1px' }} />\n : (\n <IconBase size='1rem' color='#00336640' style={{ lineHeight: '1px' }}>\n {infoIconJSX}\n </IconBase>\n )\n )\n }\n\n const mergedModifiers = useMemo(() => ([...popoverModifiers, ...(modifiers || [])]), [modifiers])\n\n return (\n <Popover\n {...props}\n {...tooltipProps}\n hoverable={hoverable}\n clickable={clickable}\n placement={placement}\n modifiers={mergedModifiers}\n components={popoverComponents}\n showClose={clickable}\n >\n {TargetNode && TargetNode}\n </Popover>\n )\n})\n\n/**\n * The display name of the Tooltip component.\n *\n * @type {string}\n */\nTooltip.displayName = 'Tooltip'\n\n"],"names":["popoverModifiers","name","options","offset","placement","PopoverPlacement","Top","TooltipContent","_ref","forwardedRef","title","text","hide","showClose","closeIconUrl","className","React","createElement","ref","classNames","classes","id","arrow","LayoutBox","padding","direction","width","height","flexGrow","justify","align","H3","onClick","onKeyDown","role","tabIndex","IconBase","iconUrl","infoIconJSX","DividerHorizontal","margin","ParagraphSmall","element","Tooltip","memo","_ref2","tooltipProps","components","ContentComponent","infoIconUrl","children","infoTip","clickable","hoverable","modifiers","props","popoverComponents","useMemo","undefined","TargetNode","size","color","style","lineHeight","mergedModifiers","Popover","_extends","displayName"],"mappings":"2qBAqBA,MAAMA,EAAmB,CACvB,CACEC,KAAM,SACNC,QAAS,CACPC,OAAQ,CAAC,EAAG,IACZC,UAAWC,EAAiBC,OAgC5BC,EAAiBC,IAAA,IAACC,aACtBA,EAAYC,MAAEA,EAAKC,KAAEA,EAAIC,KAAEA,EAAIC,UAAEA,EAASC,aAAEA,EAAYC,UAAEA,EAAY,IAClDP,EAAA,OACpBQ,MAAAC,cAAA,MAAA,CACEC,IAAKT,EACLM,UAAWI,EAAWC,EAAQ,mBAAoBL,IAElDC,MAAAC,cAAA,MAAA,CAAKI,GAAG,QAAQ,qBAAiB,EAACN,UAAWK,EAAQE,OACnDN,MAAAC,cAAA,MAAA,CAAKF,UAAWK,EAAQ,kBAE1BJ,MAAAC,cAACM,EAAS,CACRC,QAAQ,OACRC,UAAU,SACVC,MAAM,QACNC,OAAO,QACPC,SAAS,KAERlB,GACCM,MAAAC,cAACM,EAAS,CAACM,QAAQ,gBAAgBC,MAAM,QAAQJ,MAAM,OAAOF,QAAQ,KACpER,MAAAC,cAACc,EAAE,KAAErB,GACJG,GACCG,MAAAC,cAAA,MAAA,CACEe,QAASpB,EACTqB,UAAWrB,EACXsB,KAAK,SACLC,UAAW,EACXpB,UAAWK,EAAQ,iBAElBN,GAAgBE,MAAAC,cAACmB,EAAQ,CAACC,QAASvB,KAClCA,GACAE,MAAAC,cAACmB,EAAQ,KACNE,KAOZ5B,GAASM,MAAAC,cAACsB,EAAiB,CAACC,OAAO,UACnC7B,GAAQK,MAAAC,cAACwB,EAAc,CAACC,QAAQ,KAAK/B,IAEpC,EA8BKgC,EAA4BC,GAAmBC,IAIxC,IAJyCC,aAC3DA,EAAcC,YAAYC,iBAAEA,GAAqB,CAAEA,iBAAkBzC,GAAgB0C,YACrFA,EAAWC,SACXA,EAAQC,QAAEA,EAAOC,UAAEA,GAAY,EAAKC,UAAEA,GAAY,EAAIjD,UAAEA,EAAY,MAAKkD,UAAEA,KAAcC,GAC5EV,EACb,MAAMW,EAAoBC,GAAQ,IAAOT,EAAmB,CAC1DA,yBACEU,GAAY,CAACV,IAEjB,IAAIW,EAEAT,IACFS,EAAaT,IAEVA,GAAYC,IACfQ,EACEV,EACIjC,MAAAC,cAACmB,EAAQ,CAACC,QAASY,EAAaW,KAAK,OAAOC,MAAM,YAAYC,MAAO,CAAEC,WAAY,SAEnF/C,MAAAC,cAACmB,EAAQ,CAACwB,KAAK,OAAOC,MAAM,YAAYC,MAAO,CAAEC,WAAY,QAC1DzB,IAMX,MAAM0B,EAAkBP,GAAQ,IAAO,IAAIzD,KAAsBsD,GAAa,KAAO,CAACA,IAEtF,OACEtC,MAAAC,cAACgD,EAAOC,EAAA,CAAA,EACFX,EACAT,EAAY,CAChBO,UAAWA,EACXD,UAAWA,EACXhD,UAAWA,EACXkD,UAAWU,EACXjB,WAAYS,EACZ3C,UAAWuC,IAEVO,GAAcA,EACP,IASdhB,EAAQwB,YAAc"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e=require("../../../../../../_virtual/_rollupPluginBabelHelpers.js"),t=require("react"),o=require("../../atoms/icons.js"),r=require("./PopoverLite.js"),a=require("./popover.types.js"),n=require("./tooltip.module.scss.js"),l=require("../../atoms/text/Headline.js"),i=require("../../dividers/DividerLine.js"),c=require("../../atoms/text/Paragraph.js"),s=require("../../icon/IconBase.js"),m=require("../../container/layoutBox/LayoutBox.js");const
|
|
1
|
+
"use strict";var e=require("../../../../../../_virtual/_rollupPluginBabelHelpers.js"),t=require("react"),o=require("../../atoms/icons.js"),r=require("./PopoverLite.js"),a=require("./popover.types.js"),n=require("./tooltip.module.scss.js"),l=require("../../atoms/text/Headline.js"),i=require("../../dividers/DividerLine.js"),c=require("../../atoms/text/Paragraph.js"),s=require("../../icon/IconBase.js"),m=require("../../../../utils/helpers/ui.js"),p=require("../../container/layoutBox/LayoutBox.js");const u=[{name:"offset",options:{offset:[0,10],placement:a.PopoverPlacement.Top}}],d=e=>{let{forwardedRef:t,title:r,text:a,hide:u,showClose:d,closeIconUrl:f,className:v=""}=e;return React.createElement("div",{ref:t,className:m.classNames(n.default["popover-tooltip"],v)},React.createElement("div",{id:"arrow","data-popper-arrow":!0,className:n.default.arrow},React.createElement("div",{className:n.default["arrow-inner"]})),React.createElement(p.LayoutBox,{padding:"1rem",direction:"column",width:"256px",height:"unset",flexGrow:"1"},r&&React.createElement(p.LayoutBox,{justify:"space-between",align:"start",width:"100%",padding:"0"},React.createElement(l.HeadlineTertiary,null,r),d&&React.createElement("div",{onClick:u,onKeyDown:u,role:"button",tabIndex:-1,className:n.default["close-button"]},f&&React.createElement(s.IconBase,{iconUrl:f}),!f&&React.createElement(s.IconBase,null,o.infoIconJSX))),r&&React.createElement(i.DividerHorizontal,{margin:"8px 0"}),a&&React.createElement(c.ParagraphSmall,{element:"p"},a)))},f=t.memo((a=>{let{tooltipProps:n,components:{ContentComponent:l}={ContentComponent:d},infoIconUrl:i,children:c,infoTip:m,clickable:p=!1,hoverable:f=!0,placement:v="top",modifiers:h,...x}=a;const R=t.useMemo((()=>l?{ContentComponent:l}:void 0),[l]);let E;c&&(E=c),!c&&m&&(E=i?React.createElement(s.IconBase,{iconUrl:i,size:"1rem",color:"#00336640",style:{lineHeight:"1px"}}):React.createElement(s.IconBase,{size:"1rem",color:"#00336640",style:{lineHeight:"1px"}},o.infoIconJSX));const j=t.useMemo((()=>[...u,...h||[]]),[h]);return React.createElement(r.Popover,e.extends({},x,n,{hoverable:f,clickable:p,placement:v,modifiers:j,components:R,showClose:p}),E&&E)}));f.displayName="Tooltip",exports.Tooltip=f;
|
|
2
2
|
//# sourceMappingURL=Tooltip.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tooltip.js","sources":["../../../../../../../../src/core/ui/components/molecules/popover/Tooltip.tsx"],"sourcesContent":["import { memo, FC, useMemo, PropsWithChildren } from 'react'\n// import { DividerHorizontal, LayoutBox, IconBase } from '@e1011/es-kit'\n\n\n\nimport { HeadlineTertiary as H3, ParagraphSmall } from '../../atoms/text'\nimport { DividerHorizontal } from '../../dividers'\nimport { LayoutBox } from '../../container'\nimport { IconBase } from '../../icon'\nimport { infoIconJSX } from '../../atoms/icons'\n\nimport { Popover } from './PopoverLite'\nimport { PopoverPlacement, PopoverProps } from './popover.types'\nimport classes from './tooltip.module.scss'\n\n\n/**\n\
|
|
1
|
+
{"version":3,"file":"Tooltip.js","sources":["../../../../../../../../src/core/ui/components/molecules/popover/Tooltip.tsx"],"sourcesContent":["import { memo, FC, useMemo, PropsWithChildren } from 'react'\n// import { DividerHorizontal, LayoutBox, IconBase } from '@e1011/es-kit'\n\n\n\nimport { HeadlineTertiary as H3, ParagraphSmall } from '../../atoms/text'\nimport { DividerHorizontal } from '../../dividers'\nimport { LayoutBox } from '../../container'\nimport { IconBase } from '../../icon'\nimport { infoIconJSX } from '../../atoms/icons'\nimport { classNames } from '../../../../utils'\n\nimport { Popover } from './PopoverLite'\nimport { PopoverPlacement, PopoverProps } from './popover.types'\nimport classes from './tooltip.module.scss'\n\n\n/**\n\nModifiers for the Popover component used in Tooltip.\n*/\nconst popoverModifiers = [\n {\n name: 'offset',\n options: {\n offset: [0, 10],\n placement: PopoverPlacement.Top,\n },\n },\n]\n\n/**\n\nProps for the TooltipContent component.\n@typedef {Object} TooltipContentProps\n@property {ForwardedRef} forwardedRef - Forwarded ref of the TooltipContent component.\n@property {string} title - Title of the tooltip.\n@property {string} text - Text content of the tooltip.\n@property {Function} hide - Function to hide the tooltip.\n@property {boolean} showClose - Determines whether to show a close button in the tooltip.\n@extends PropsWithChildren\n*/\ntype TooltipContentProps = PropsWithChildren<any> & {\n forwardedRef: ForwardedRef\n closeIconUrl?: string\n className?: string\n title?: string\n text?: string\n hide: () => void\n showClose?: boolean\n}\n\n/**\n\n Tooltip content component used by the Tooltip component.\n @param {TooltipContentProps} props - Props for the TooltipContent component.\n @returns {JSX.Element} - Returns the JSX element for the TooltipContent component.\n */\nconst TooltipContent = ({\n forwardedRef, title, text, hide, showClose, closeIconUrl, className = '',\n}: TooltipContentProps): JSX.Element => (\n <div\n ref={forwardedRef}\n className={classNames(classes['popover-tooltip'], className)}\n >\n <div id='arrow' data-popper-arrow className={classes.arrow}>\n <div className={classes['arrow-inner']} />\n </div>\n <LayoutBox\n padding='1rem'\n direction='column'\n width='256px'\n height='unset'\n flexGrow='1'\n >\n {title && (\n <LayoutBox justify='space-between' align='start' width='100%' padding='0'>\n <H3>{title}</H3>\n {showClose && (\n <div\n onClick={hide}\n onKeyDown={hide}\n role='button'\n tabIndex={-1}\n className={classes['close-button']}\n >\n {closeIconUrl && <IconBase iconUrl={closeIconUrl} />}\n {!closeIconUrl && (\n <IconBase>\n {infoIconJSX}\n </IconBase>\n )}\n </div>\n )}\n </LayoutBox>\n )}\n {title && <DividerHorizontal margin='8px 0' />}\n {text && <ParagraphSmall element='p'>{text}</ParagraphSmall>}\n </LayoutBox>\n </div>\n)\n\n\n\n/**\n\nProps for the Tooltip component, extends PopoverProps.\n@typedef {Object} TooltipProps\n@property {Record<string, unknown>} [tooltipProps] - Additional props to be passed to the underlying Popover component.\n@extends PopoverProps\n*/\nexport type TooltipProps = PopoverProps & TooltipContentProps & {\n tooltipProps?: Record<string, unknown>\n infoIconUrl?: string\n}\n\n\n/**\n * A tooltip component that displays a short message when the user hovers or clicks on a target element.\n *\n * @param tooltipProps - Optional properties to be passed down to the `Popover` component.\n * @param components - Optional components that can be customized by the consumer.\n * @param children - The target element that the tooltip will be anchored to.\n * @param infoTip - If no `children` prop is passed in, an information icon will be used as the target element.\n * @param clickable - If `true`, the tooltip will be triggered by a click instead of a hover.\n * @param hoverable - If `true`, the tooltip will be triggered by a hover. Defaults to `true`.\n * @param placement - The placement of the tooltip relative to the target element.\n * @param modifiers - Optional modifiers to be passed down to the `Popover` component.\n */\nexport const Tooltip: FC<TooltipProps> = memo<TooltipProps>(({\n tooltipProps, components: { ContentComponent } = { ContentComponent: TooltipContent },\n infoIconUrl,\n children, infoTip, clickable = false, hoverable = true, placement = 'top', modifiers, ...props\n}: TooltipProps) => {\n const popoverComponents = useMemo(() => (ContentComponent ? {\n ContentComponent,\n } : undefined), [ContentComponent])\n\n let TargetNode: typeof children\n\n if (children) {\n TargetNode = children\n }\n if (!children && infoTip) {\n TargetNode = (\n infoIconUrl\n ? <IconBase iconUrl={infoIconUrl} size='1rem' color='#00336640' style={{ lineHeight: '1px' }} />\n : (\n <IconBase size='1rem' color='#00336640' style={{ lineHeight: '1px' }}>\n {infoIconJSX}\n </IconBase>\n )\n )\n }\n\n const mergedModifiers = useMemo(() => ([...popoverModifiers, ...(modifiers || [])]), [modifiers])\n\n return (\n <Popover\n {...props}\n {...tooltipProps}\n hoverable={hoverable}\n clickable={clickable}\n placement={placement}\n modifiers={mergedModifiers}\n components={popoverComponents}\n showClose={clickable}\n >\n {TargetNode && TargetNode}\n </Popover>\n )\n})\n\n/**\n * The display name of the Tooltip component.\n *\n * @type {string}\n */\nTooltip.displayName = 'Tooltip'\n\n"],"names":["popoverModifiers","name","options","offset","placement","PopoverPlacement","Top","TooltipContent","_ref","forwardedRef","title","text","hide","showClose","closeIconUrl","className","React","createElement","ref","classNames","classes","id","default","arrow","LayoutBox","padding","direction","width","height","flexGrow","justify","align","H3","onClick","onKeyDown","role","tabIndex","IconBase","iconUrl","infoIconJSX","DividerHorizontal","margin","ParagraphSmall","element","Tooltip","memo","_ref2","tooltipProps","components","ContentComponent","infoIconUrl","children","infoTip","clickable","hoverable","modifiers","props","popoverComponents","useMemo","undefined","TargetNode","size","color","style","lineHeight","mergedModifiers","Popover","_extends","extends","displayName"],"mappings":"ofAqBA,MAAMA,EAAmB,CACvB,CACEC,KAAM,SACNC,QAAS,CACPC,OAAQ,CAAC,EAAG,IACZC,UAAWC,EAAgBA,iBAACC,OAgC5BC,EAAiBC,IAAA,IAACC,aACtBA,EAAYC,MAAEA,EAAKC,KAAEA,EAAIC,KAAEA,EAAIC,UAAEA,EAASC,aAAEA,EAAYC,UAAEA,EAAY,IAClDP,EAAA,OACpBQ,MAAAC,cAAA,MAAA,CACEC,IAAKT,EACLM,UAAWI,EAAAA,WAAWC,EAAAA,QAAQ,mBAAoBL,IAElDC,MAAAC,cAAA,MAAA,CAAKI,GAAG,QAAQ,qBAAiB,EAACN,UAAWK,EAAOE,QAACC,OACnDP,MAAAC,cAAA,MAAA,CAAKF,UAAWK,EAAOE,QAAC,kBAE1BN,MAAAC,cAACO,YAAS,CACRC,QAAQ,OACRC,UAAU,SACVC,MAAM,QACNC,OAAO,QACPC,SAAS,KAERnB,GACCM,MAAAC,cAACO,YAAS,CAACM,QAAQ,gBAAgBC,MAAM,QAAQJ,MAAM,OAAOF,QAAQ,KACpET,MAAAC,cAACe,EAAAA,iBAAE,KAAEtB,GACJG,GACCG,MAAAC,cAAA,MAAA,CACEgB,QAASrB,EACTsB,UAAWtB,EACXuB,KAAK,SACLC,UAAW,EACXrB,UAAWK,EAAOE,QAAC,iBAElBR,GAAgBE,MAAAC,cAACoB,WAAQ,CAACC,QAASxB,KAClCA,GACAE,MAAAC,cAACoB,EAAAA,SAAQ,KACNE,EACOA,eAMnB7B,GAASM,MAAAC,cAACuB,EAAAA,kBAAiB,CAACC,OAAO,UACnC9B,GAAQK,MAAAC,cAACyB,EAAAA,eAAc,CAACC,QAAQ,KAAKhC,IAEpC,EA8BKiC,EAA4BC,EAAIA,MAAeC,IAIxC,IAJyCC,aAC3DA,EAAcC,YAAYC,iBAAEA,GAAqB,CAAEA,iBAAkB1C,GAAgB2C,YACrFA,EAAWC,SACXA,EAAQC,QAAEA,EAAOC,UAAEA,GAAY,EAAKC,UAAEA,GAAY,EAAIlD,UAAEA,EAAY,MAAKmD,UAAEA,KAAcC,GAC5EV,EACb,MAAMW,EAAoBC,WAAQ,IAAOT,EAAmB,CAC1DA,yBACEU,GAAY,CAACV,IAEjB,IAAIW,EAEAT,IACFS,EAAaT,IAEVA,GAAYC,IACfQ,EACEV,EACIlC,MAAAC,cAACoB,EAAAA,SAAQ,CAACC,QAASY,EAAaW,KAAK,OAAOC,MAAM,YAAYC,MAAO,CAAEC,WAAY,SAEnFhD,MAAAC,cAACoB,WAAQ,CAACwB,KAAK,OAAOC,MAAM,YAAYC,MAAO,CAAEC,WAAY,QAC1DzB,EACOA,cAKlB,MAAM0B,EAAkBP,EAAAA,SAAQ,IAAO,IAAI1D,KAAsBuD,GAAa,KAAO,CAACA,IAEtF,OACEvC,MAAAC,cAACiD,EAAOA,QAAAC,EAAAC,QAAA,CAAA,EACFZ,EACAT,EAAY,CAChBO,UAAWA,EACXD,UAAWA,EACXjD,UAAWA,EACXmD,UAAWU,EACXjB,WAAYS,EACZ5C,UAAWwC,IAEVO,GAAcA,EACP,IASdhB,EAAQyB,YAAc"}
|
package/dist/utils/esm/index.css
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
.errorBoundary-module_errorBoundary__gk9ps {
|
|
2
|
+
background: #EFEFEF;
|
|
3
|
+
width: 100%;
|
|
4
|
+
height: 100%;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.errorBoundary-module_StyledIcon__IYHiU {
|
|
8
|
+
margin-right: 10px;
|
|
9
|
+
}
|
|
1
10
|
.icon-module_icon-base-parent__nOMvW {
|
|
2
11
|
line-height: 1px !important;
|
|
3
12
|
}
|
|
@@ -28,15 +37,6 @@
|
|
|
28
37
|
width: var(--height);
|
|
29
38
|
height: var(--width);
|
|
30
39
|
}
|
|
31
|
-
.errorBoundary-module_errorBoundary__gk9ps {
|
|
32
|
-
background: #EFEFEF;
|
|
33
|
-
width: 100%;
|
|
34
|
-
height: 100%;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.errorBoundary-module_StyledIcon__IYHiU {
|
|
38
|
-
margin-right: 10px;
|
|
39
|
-
}
|
|
40
40
|
.CollapsibleContainer-module_collapsible-container__u0Jmm {
|
|
41
41
|
transform-origin: 0% 0%;
|
|
42
42
|
opacity: 0;
|
|
@@ -230,6 +230,77 @@
|
|
|
230
230
|
stroke-dashoffset: -124;
|
|
231
231
|
}
|
|
232
232
|
}
|
|
233
|
+
.textAndContent-module_textAndContent__X5P1n {
|
|
234
|
+
align-items: baseline;
|
|
235
|
+
flex-shrink: 1;
|
|
236
|
+
gap: 8px;
|
|
237
|
+
}
|
|
238
|
+
:root {
|
|
239
|
+
--divider-line: #4a4b4b;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
.typography-module_overflow-hidden__UmQ-v, .typography-module_text-truncate__8MgV9 {
|
|
243
|
+
overflow: hidden !important;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.typography-module_text-nowrap__dt3uu, .typography-module_text-truncate__8MgV9 {
|
|
247
|
+
white-space: nowrap !important;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.typography-module_text-ellipsis__iyHeZ, .typography-module_text-truncate__8MgV9 {
|
|
251
|
+
text-overflow: ellipsis !important;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.typography-module_headline__b0XlP {
|
|
255
|
+
font-size: 28px;
|
|
256
|
+
line-height: 32px;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.typography-module_headlineSecondary__IDnhT {
|
|
260
|
+
font-size: 24px;
|
|
261
|
+
line-height: 28px;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
.typography-module_headlineTertiary__mlG-v {
|
|
265
|
+
font-size: 18px;
|
|
266
|
+
line-height: 24x;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.typography-module_paragraph__tgBAx, .typography-module_paragraphBold__PmcZU, .typography-module_paragraphBoldSmall__qExmY, .typography-module_paragraphSmall__vTMiI {
|
|
270
|
+
font-size: 14px;
|
|
271
|
+
line-height: 18px;
|
|
272
|
+
font-weight: 300;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.typography-module_paragraphSmall__vTMiI, .typography-module_paragraphBoldSmall__qExmY {
|
|
276
|
+
font-size: 12px;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
.typography-module_paragraphBold__PmcZU, .typography-module_paragraphBoldSmall__qExmY {
|
|
280
|
+
font-weight: 600;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
.typography-module_link__DWurf {
|
|
284
|
+
overflow: hidden !important;
|
|
285
|
+
white-space: nowrap !important;
|
|
286
|
+
text-overflow: ellipsis !important;
|
|
287
|
+
text-decoration: none;
|
|
288
|
+
color: #65C5F6;
|
|
289
|
+
display: inline;
|
|
290
|
+
gap: 4px;
|
|
291
|
+
flex-grow: 0;
|
|
292
|
+
max-width: 400px;
|
|
293
|
+
position: relative;
|
|
294
|
+
vertical-align: center;
|
|
295
|
+
}
|
|
296
|
+
.typography-module_link__DWurf:hover:not(.typography-module_disabled__hjK8C) {
|
|
297
|
+
text-decoration: underline;
|
|
298
|
+
color: #65C5F6;
|
|
299
|
+
}
|
|
300
|
+
.typography-module_link__DWurf.typography-module_disabled__hjK8C {
|
|
301
|
+
pointer-events: none;
|
|
302
|
+
opacity: 0.6;
|
|
303
|
+
}
|
|
233
304
|
:root {
|
|
234
305
|
--divider-line: #4a4b4b;
|
|
235
306
|
}
|
|
@@ -512,90 +583,6 @@
|
|
|
512
583
|
--divider-line: #4a4b4b;
|
|
513
584
|
}
|
|
514
585
|
|
|
515
|
-
.typography-module_overflow-hidden__UmQ-v, .typography-module_text-truncate__8MgV9 {
|
|
516
|
-
overflow: hidden !important;
|
|
517
|
-
}
|
|
518
|
-
|
|
519
|
-
.typography-module_text-nowrap__dt3uu, .typography-module_text-truncate__8MgV9 {
|
|
520
|
-
white-space: nowrap !important;
|
|
521
|
-
}
|
|
522
|
-
|
|
523
|
-
.typography-module_text-ellipsis__iyHeZ, .typography-module_text-truncate__8MgV9 {
|
|
524
|
-
text-overflow: ellipsis !important;
|
|
525
|
-
}
|
|
526
|
-
|
|
527
|
-
.typography-module_headline__b0XlP {
|
|
528
|
-
font-size: 28px;
|
|
529
|
-
line-height: 32px;
|
|
530
|
-
}
|
|
531
|
-
|
|
532
|
-
.typography-module_headlineSecondary__IDnhT {
|
|
533
|
-
font-size: 24px;
|
|
534
|
-
line-height: 28px;
|
|
535
|
-
}
|
|
536
|
-
|
|
537
|
-
.typography-module_headlineTertiary__mlG-v {
|
|
538
|
-
font-size: 18px;
|
|
539
|
-
line-height: 24x;
|
|
540
|
-
}
|
|
541
|
-
|
|
542
|
-
.typography-module_paragraph__tgBAx, .typography-module_paragraphBold__PmcZU, .typography-module_paragraphBoldSmall__qExmY, .typography-module_paragraphSmall__vTMiI {
|
|
543
|
-
font-size: 14px;
|
|
544
|
-
line-height: 18px;
|
|
545
|
-
font-weight: 300;
|
|
546
|
-
}
|
|
547
|
-
|
|
548
|
-
.typography-module_paragraphSmall__vTMiI, .typography-module_paragraphBoldSmall__qExmY {
|
|
549
|
-
font-size: 12px;
|
|
550
|
-
}
|
|
551
|
-
|
|
552
|
-
.typography-module_paragraphBold__PmcZU, .typography-module_paragraphBoldSmall__qExmY {
|
|
553
|
-
font-weight: 600;
|
|
554
|
-
}
|
|
555
|
-
|
|
556
|
-
.typography-module_link__DWurf {
|
|
557
|
-
overflow: hidden !important;
|
|
558
|
-
white-space: nowrap !important;
|
|
559
|
-
text-overflow: ellipsis !important;
|
|
560
|
-
text-decoration: none;
|
|
561
|
-
color: #65C5F6;
|
|
562
|
-
display: inline;
|
|
563
|
-
gap: 4px;
|
|
564
|
-
flex-grow: 0;
|
|
565
|
-
max-width: 400px;
|
|
566
|
-
position: relative;
|
|
567
|
-
vertical-align: center;
|
|
568
|
-
}
|
|
569
|
-
.typography-module_link__DWurf:hover:not(.typography-module_disabled__hjK8C) {
|
|
570
|
-
text-decoration: underline;
|
|
571
|
-
color: #65C5F6;
|
|
572
|
-
}
|
|
573
|
-
.typography-module_link__DWurf.typography-module_disabled__hjK8C {
|
|
574
|
-
pointer-events: none;
|
|
575
|
-
opacity: 0.6;
|
|
576
|
-
}
|
|
577
|
-
.textAndContent-module_textAndContent__X5P1n {
|
|
578
|
-
align-items: baseline;
|
|
579
|
-
flex-shrink: 1;
|
|
580
|
-
gap: 8px;
|
|
581
|
-
}
|
|
582
|
-
.flowLayout-module_flowLayout__VHpnY {
|
|
583
|
-
overflow: auto;
|
|
584
|
-
}
|
|
585
|
-
.flowLayout-module_flowLayout__VHpnY .flowLayout-module_beforeContent__rY-mW {
|
|
586
|
-
display: flex;
|
|
587
|
-
width: 100%;
|
|
588
|
-
min-width: 0;
|
|
589
|
-
}
|
|
590
|
-
.flowLayout-module_flowLayout__VHpnY .flowLayout-module_afterContent__Hlh8v {
|
|
591
|
-
display: flex;
|
|
592
|
-
width: 100%;
|
|
593
|
-
min-width: 0;
|
|
594
|
-
}
|
|
595
|
-
:root {
|
|
596
|
-
--divider-line: #4a4b4b;
|
|
597
|
-
}
|
|
598
|
-
|
|
599
586
|
.toggle-module_overflow-hidden__NxfFx, .toggle-module_text-truncate__Wg-Jx {
|
|
600
587
|
overflow: hidden !important;
|
|
601
588
|
}
|
|
@@ -699,28 +686,114 @@
|
|
|
699
686
|
.cui-theme-light .toggle-module_toggle__p1Ep4 input:checked + .toggle-module_slider__2IVaG:hover {
|
|
700
687
|
background-color: #374646;
|
|
701
688
|
}
|
|
702
|
-
.
|
|
703
|
-
|
|
704
|
-
|
|
689
|
+
.flowLayout-module_flowLayout__VHpnY {
|
|
690
|
+
overflow: auto;
|
|
691
|
+
}
|
|
692
|
+
.flowLayout-module_flowLayout__VHpnY .flowLayout-module_beforeContent__rY-mW {
|
|
693
|
+
display: flex;
|
|
705
694
|
width: 100%;
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
695
|
+
min-width: 0;
|
|
696
|
+
}
|
|
697
|
+
.flowLayout-module_flowLayout__VHpnY .flowLayout-module_afterContent__Hlh8v {
|
|
698
|
+
display: flex;
|
|
699
|
+
width: 100%;
|
|
700
|
+
min-width: 0;
|
|
701
|
+
}
|
|
702
|
+
:root {
|
|
703
|
+
--divider-line: #4a4b4b;
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
.popup-module_overflow-hidden__uimg4, .popup-module_text-truncate__y-5c1 {
|
|
707
|
+
overflow: hidden !important;
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
.popup-module_text-nowrap__eDCv3, .popup-module_text-truncate__y-5c1 {
|
|
711
|
+
white-space: nowrap !important;
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
.popup-module_text-ellipsis__yu8nx, .popup-module_text-truncate__y-5c1 {
|
|
715
|
+
text-overflow: ellipsis !important;
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
.popup-module_popup-container__PJ0oQ {
|
|
719
|
+
--popup-width: 60vw;
|
|
720
|
+
--popup-height: 50vh;
|
|
721
|
+
position: fixed;
|
|
722
|
+
width: var(--popup-width);
|
|
723
|
+
height: var(--popup-height);
|
|
724
|
+
--slideXFrom: 0;
|
|
725
|
+
--slideYFrom: 0;
|
|
712
726
|
will-change: opacity;
|
|
713
|
-
transition: opacity
|
|
727
|
+
transition: opacity 300ms ease-in-out;
|
|
714
728
|
opacity: 0;
|
|
715
729
|
visibility: hidden;
|
|
730
|
+
pointer-events: none;
|
|
716
731
|
}
|
|
717
|
-
.popup-
|
|
732
|
+
.popup-module_popup-container__PJ0oQ .popup-module_popup-container-inner__n83Cz {
|
|
733
|
+
position: relative;
|
|
734
|
+
flex-direction: column;
|
|
735
|
+
align-items: start;
|
|
736
|
+
width: 100%;
|
|
737
|
+
height: 100%;
|
|
738
|
+
overflow-x: clip;
|
|
739
|
+
background-color: #090A0A;
|
|
740
|
+
border-radius: 4px;
|
|
741
|
+
box-shadow: 0px 10px 20px 4px rgba(0, 0, 0, 0.15);
|
|
742
|
+
transition: transform 350ms ease-out;
|
|
743
|
+
will-change: transform;
|
|
744
|
+
transform: translateX(var(--slideXFrom)) translateY(var(--slideYFrom));
|
|
745
|
+
}
|
|
746
|
+
.popup-module_popup-container__PJ0oQ .popup-module_popup-container-inner__n83Cz button {
|
|
747
|
+
margin-bottom: 0;
|
|
748
|
+
}
|
|
749
|
+
.popup-module_popup-container__PJ0oQ .popup-module_popup-container-inner__n83Cz .popup-module_close-button__-8sZx {
|
|
750
|
+
cursor: pointer;
|
|
751
|
+
line-height: 1px;
|
|
752
|
+
background-color: rgba(255, 255, 255, 0);
|
|
753
|
+
}
|
|
754
|
+
.popup-module_popup-container__PJ0oQ .popup-module_popup-container-inner__n83Cz .popup-module_close-button__-8sZx .icon-base {
|
|
755
|
+
background-color: #FDDA0D;
|
|
756
|
+
width: 9px !important;
|
|
757
|
+
height: 9px !important;
|
|
758
|
+
line-height: 1px !important;
|
|
759
|
+
}
|
|
760
|
+
.popup-module_popup-container__PJ0oQ .popup-module_popup-container-inner__n83Cz .popup-module_close-button__-8sZx:hover .icon-base {
|
|
761
|
+
background-color: #FFEA00;
|
|
762
|
+
}
|
|
763
|
+
.popup-module_popup-container__PJ0oQ .popup-module_popup-container-inner__n83Cz .popup-module_popup-container-inner-div__sDNBm {
|
|
764
|
+
width: 100%;
|
|
765
|
+
height: 100%;
|
|
766
|
+
padding: 24px;
|
|
767
|
+
overflow-y: auto;
|
|
768
|
+
display: flex;
|
|
769
|
+
}
|
|
770
|
+
.popup-module_popup-container__PJ0oQ .popup-module_popup-container-inner__n83Cz .popup-module_popup-container-inner-div__sDNBm > * {
|
|
771
|
+
overflow-y: auto;
|
|
772
|
+
}
|
|
773
|
+
.popup-module_popup-container__PJ0oQ[data-show] {
|
|
718
774
|
opacity: 1;
|
|
719
775
|
visibility: visible;
|
|
776
|
+
pointer-events: all;
|
|
720
777
|
}
|
|
721
|
-
.popup-
|
|
778
|
+
.popup-module_popup-container__PJ0oQ[data-show] .popup-module_popup-container-inner__n83Cz {
|
|
779
|
+
transform: translateX(0) translateY(0);
|
|
780
|
+
}
|
|
781
|
+
.popup-module_popup-container__PJ0oQ[data-show=false] {
|
|
722
782
|
opacity: 0;
|
|
723
783
|
visibility: hidden;
|
|
784
|
+
pointer-events: none;
|
|
785
|
+
}
|
|
786
|
+
.popup-module_popup-container__PJ0oQ[data-show=false] .popup-module_popup-container-inner__n83Cz {
|
|
787
|
+
transform: translateX(var(--slideXFrom)) translateY(var(--slideYFrom));
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
.cui-theme-dark .popup-module_popup-container-inner__n83Cz {
|
|
791
|
+
background-color: #090A0A;
|
|
792
|
+
color: #F4F4F4;
|
|
793
|
+
}
|
|
794
|
+
.cui-theme-light .popup-module_popup-container-inner__n83Cz {
|
|
795
|
+
background-color: #090A0A;
|
|
796
|
+
color: #F4F4F4;
|
|
724
797
|
}
|
|
725
798
|
:root {
|
|
726
799
|
--divider-line: #4a4b4b;
|
|
@@ -836,101 +909,28 @@
|
|
|
836
909
|
.cui-theme-light .tooltip-module_popover-tooltip__sAhKa .tooltip-module_arrow-inner__IqzxY {
|
|
837
910
|
border-color: #515757 transparent transparent transparent;
|
|
838
911
|
}
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
}
|
|
842
|
-
|
|
843
|
-
.popup-module_overflow-hidden__uimg4, .popup-module_text-truncate__y-5c1 {
|
|
844
|
-
overflow: hidden !important;
|
|
845
|
-
}
|
|
846
|
-
|
|
847
|
-
.popup-module_text-nowrap__eDCv3, .popup-module_text-truncate__y-5c1 {
|
|
848
|
-
white-space: nowrap !important;
|
|
849
|
-
}
|
|
850
|
-
|
|
851
|
-
.popup-module_text-ellipsis__yu8nx, .popup-module_text-truncate__y-5c1 {
|
|
852
|
-
text-overflow: ellipsis !important;
|
|
853
|
-
}
|
|
854
|
-
|
|
855
|
-
.popup-module_popup-container__PJ0oQ {
|
|
856
|
-
--popup-width: 60vw;
|
|
857
|
-
--popup-height: 50vh;
|
|
912
|
+
.popup-overlay-module_popup-modal-overlay__dlJqM {
|
|
913
|
+
z-index: 1;
|
|
858
914
|
position: fixed;
|
|
859
|
-
width:
|
|
860
|
-
height:
|
|
861
|
-
|
|
862
|
-
|
|
915
|
+
width: 100%;
|
|
916
|
+
height: 100%;
|
|
917
|
+
top: 0;
|
|
918
|
+
left: 0;
|
|
919
|
+
background: rgba(40, 80, 120, 0.8) !important;
|
|
920
|
+
pointer-events: all;
|
|
921
|
+
user-select: none;
|
|
863
922
|
will-change: opacity;
|
|
864
|
-
transition: opacity
|
|
923
|
+
transition: opacity 450ms ease-in-out;
|
|
865
924
|
opacity: 0;
|
|
866
925
|
visibility: hidden;
|
|
867
|
-
pointer-events: none;
|
|
868
|
-
}
|
|
869
|
-
.popup-module_popup-container__PJ0oQ .popup-module_popup-container-inner__n83Cz {
|
|
870
|
-
position: relative;
|
|
871
|
-
flex-direction: column;
|
|
872
|
-
align-items: start;
|
|
873
|
-
width: 100%;
|
|
874
|
-
height: 100%;
|
|
875
|
-
overflow-x: clip;
|
|
876
|
-
background-color: #090A0A;
|
|
877
|
-
border-radius: 4px;
|
|
878
|
-
box-shadow: 0px 10px 20px 4px rgba(0, 0, 0, 0.15);
|
|
879
|
-
transition: transform 350ms ease-out;
|
|
880
|
-
will-change: transform;
|
|
881
|
-
transform: translateX(var(--slideXFrom)) translateY(var(--slideYFrom));
|
|
882
926
|
}
|
|
883
|
-
.popup-module_popup-
|
|
884
|
-
margin-bottom: 0;
|
|
885
|
-
}
|
|
886
|
-
.popup-module_popup-container__PJ0oQ .popup-module_popup-container-inner__n83Cz .popup-module_close-button__-8sZx {
|
|
887
|
-
cursor: pointer;
|
|
888
|
-
line-height: 1px;
|
|
889
|
-
background-color: rgba(255, 255, 255, 0);
|
|
890
|
-
}
|
|
891
|
-
.popup-module_popup-container__PJ0oQ .popup-module_popup-container-inner__n83Cz .popup-module_close-button__-8sZx .icon-base {
|
|
892
|
-
background-color: #FDDA0D;
|
|
893
|
-
width: 9px !important;
|
|
894
|
-
height: 9px !important;
|
|
895
|
-
line-height: 1px !important;
|
|
896
|
-
}
|
|
897
|
-
.popup-module_popup-container__PJ0oQ .popup-module_popup-container-inner__n83Cz .popup-module_close-button__-8sZx:hover .icon-base {
|
|
898
|
-
background-color: #FFEA00;
|
|
899
|
-
}
|
|
900
|
-
.popup-module_popup-container__PJ0oQ .popup-module_popup-container-inner__n83Cz .popup-module_popup-container-inner-div__sDNBm {
|
|
901
|
-
width: 100%;
|
|
902
|
-
height: 100%;
|
|
903
|
-
padding: 24px;
|
|
904
|
-
overflow-y: auto;
|
|
905
|
-
display: flex;
|
|
906
|
-
}
|
|
907
|
-
.popup-module_popup-container__PJ0oQ .popup-module_popup-container-inner__n83Cz .popup-module_popup-container-inner-div__sDNBm > * {
|
|
908
|
-
overflow-y: auto;
|
|
909
|
-
}
|
|
910
|
-
.popup-module_popup-container__PJ0oQ[data-show] {
|
|
927
|
+
.popup-overlay-module_popup-modal-overlay__dlJqM[data-show] {
|
|
911
928
|
opacity: 1;
|
|
912
929
|
visibility: visible;
|
|
913
|
-
pointer-events: all;
|
|
914
|
-
}
|
|
915
|
-
.popup-module_popup-container__PJ0oQ[data-show] .popup-module_popup-container-inner__n83Cz {
|
|
916
|
-
transform: translateX(0) translateY(0);
|
|
917
930
|
}
|
|
918
|
-
.popup-module_popup-
|
|
931
|
+
.popup-overlay-module_popup-modal-overlay__dlJqM[data-show=false] {
|
|
919
932
|
opacity: 0;
|
|
920
933
|
visibility: hidden;
|
|
921
|
-
pointer-events: none;
|
|
922
|
-
}
|
|
923
|
-
.popup-module_popup-container__PJ0oQ[data-show=false] .popup-module_popup-container-inner__n83Cz {
|
|
924
|
-
transform: translateX(var(--slideXFrom)) translateY(var(--slideYFrom));
|
|
925
|
-
}
|
|
926
|
-
|
|
927
|
-
.cui-theme-dark .popup-module_popup-container-inner__n83Cz {
|
|
928
|
-
background-color: #090A0A;
|
|
929
|
-
color: #F4F4F4;
|
|
930
|
-
}
|
|
931
|
-
.cui-theme-light .popup-module_popup-container-inner__n83Cz {
|
|
932
|
-
background-color: #090A0A;
|
|
933
|
-
color: #F4F4F4;
|
|
934
934
|
}
|
|
935
935
|
:root {
|
|
936
936
|
--divider-line: #4a4b4b;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{commonjsGlobal as t,getDefaultExportFromCjs as e}from"../../../_virtual/_commonjsHelpers.js";import{__module as r}from"../../../_virtual/customParseFormat.js";r.exports=function(){var t={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},e=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d\d/,
|
|
1
|
+
import{commonjsGlobal as t,getDefaultExportFromCjs as e}from"../../../_virtual/_commonjsHelpers.js";import{__module as r}from"../../../_virtual/customParseFormat.js";r.exports=function(){var t={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},e=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d/,n=/\d\d/,i=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,s={},a=function(t){return(t=+t)+(t>68?1900:2e3)},f=function(t){return function(e){this[t]=+e}},h=[/[+-]\d\d:?(\d\d)?|Z/,function(t){(this.zone||(this.zone={})).offset=function(t){if(!t)return 0;if("Z"===t)return 0;var e=t.match(/([+-]|\d\d)/g),r=60*e[1]+(+e[2]||0);return 0===r?0:"+"===e[0]?-r:r}(t)}],u=function(t){var e=s[t];return e&&(e.indexOf?e:e.s.concat(e.f))},c=function(t,e){var r,n=s.meridiem;if(n){for(var i=1;i<=24;i+=1)if(t.indexOf(n(i,0,e))>-1){r=i>12;break}}else r=t===(e?"pm":"PM");return r},d={A:[o,function(t){this.afternoon=c(t,!1)}],a:[o,function(t){this.afternoon=c(t,!0)}],Q:[r,function(t){this.month=3*(t-1)+1}],S:[r,function(t){this.milliseconds=100*+t}],SS:[n,function(t){this.milliseconds=10*+t}],SSS:[/\d{3}/,function(t){this.milliseconds=+t}],s:[i,f("seconds")],ss:[i,f("seconds")],m:[i,f("minutes")],mm:[i,f("minutes")],H:[i,f("hours")],h:[i,f("hours")],HH:[i,f("hours")],hh:[i,f("hours")],D:[i,f("day")],DD:[n,f("day")],Do:[o,function(t){var e=s.ordinal,r=t.match(/\d+/);if(this.day=r[0],e)for(var n=1;n<=31;n+=1)e(n).replace(/\[|\]/g,"")===t&&(this.day=n)}],w:[i,f("week")],ww:[n,f("week")],M:[i,f("month")],MM:[n,f("month")],MMM:[o,function(t){var e=u("months"),r=(u("monthsShort")||e.map((function(t){return t.slice(0,3)}))).indexOf(t)+1;if(r<1)throw new Error;this.month=r%12||r}],MMMM:[o,function(t){var e=u("months").indexOf(t)+1;if(e<1)throw new Error;this.month=e%12||e}],Y:[/[+-]?\d+/,f("year")],YY:[n,function(t){this.year=a(t)}],YYYY:[/\d{4}/,f("year")],Z:h,ZZ:h};function m(r){var n,i;n=r,i=s&&s.formats;for(var o=(r=n.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(e,r,n){var o=n&&n.toUpperCase();return r||i[n]||t[n]||i[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(t,e,r){return e||r.slice(1)}))}))).match(e),a=o.length,f=0;f<a;f+=1){var h=o[f],u=d[h],c=u&&u[0],m=u&&u[1];o[f]=m?{regex:c,parser:m}:h.replace(/^\[|\]$/g,"")}return function(t){for(var e={},r=0,n=0;r<a;r+=1){var i=o[r];if("string"==typeof i)n+=i.length;else{var s=i.regex,f=i.parser,h=t.slice(n),u=s.exec(h)[0];f.call(e,u),t=t.replace(u,"")}}return function(t){var e=t.afternoon;if(void 0!==e){var r=t.hours;e?r<12&&(t.hours+=12):12===r&&(t.hours=0),delete t.afternoon}}(e),e}}return function(t,e,r){r.p.customParseFormat=!0,t&&t.parseTwoDigitYear&&(a=t.parseTwoDigitYear);var n=e.prototype,i=n.parse;n.parse=function(t){var e=t.date,n=t.utc,o=t.args;this.$u=n;var a=o[1];if("string"==typeof a){var f=!0===o[2],h=!0===o[3],u=f||h,c=o[2];h&&(c=o[2]),s=this.$locale(),!f&&c&&(s=r.Ls[c]),this.$d=function(t,e,r,n){try{if(["x","X"].indexOf(e)>-1)return new Date(("X"===e?1e3:1)*t);var i=m(e)(t),o=i.year,s=i.month,a=i.day,f=i.hours,h=i.minutes,u=i.seconds,c=i.milliseconds,d=i.zone,l=i.week,M=new Date,Y=a||(o||s?1:M.getDate()),v=o||M.getFullYear(),p=0;o&&!s||(p=s>0?s-1:M.getMonth());var D,w=f||0,g=h||0,L=u||0,y=c||0;return d?new Date(Date.UTC(v,p,Y,w,g,L,y+60*d.offset*1e3)):r?new Date(Date.UTC(v,p,Y,w,g,L,y)):(D=new Date(v,p,Y,w,g,L,y),l&&(D=n(D).week(l).toDate()),D)}catch(t){return new Date("")}}(e,a,n,r),this.init(),c&&!0!==c&&(this.$L=this.locale(c).$L),u&&e!=this.format(a)&&(this.$d=new Date("")),s={}}else if(a instanceof Array)for(var d=a.length,l=1;l<=d;l+=1){o[1]=a[l-1];var M=r.apply(this,o);if(M.isValid()){this.$d=M.$d,this.$L=M.$L,this.init();break}l===d&&(this.$d=new Date(""))}else i.call(this,t)}}}();var n=e(r.exports);export{n as default};
|
|
2
2
|
//# sourceMappingURL=customParseFormat.js.map
|