@daisforge/ui 1.18.0 → 1.19.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/chunks/{EXTERNAL_PACKAGE_MODULE_sdds_finai_high_contrast__light_theme-B8FhA_zv.cjs → EXTERNAL_PACKAGE_MODULE_sdds_finai_high_contrast__light_theme-75fNjCa0.cjs} +1059 -1293
- package/chunks/{EXTERNAL_PACKAGE_MODULE_sdds_finai_high_contrast__light_theme-w2nh9o1i.mjs → EXTERNAL_PACKAGE_MODULE_sdds_finai_high_contrast__light_theme-DjDujEzF.mjs} +1060 -1294
- package/chunks/{TableCanvas-DcoUBrgC.mjs → TableCanvas-DkZAx-r9.mjs} +4402 -4172
- package/chunks/TableCanvas-QmXGAjPk.cjs +30 -0
- package/chunks/TableGlide-Bngn5_5l.cjs +1 -0
- package/chunks/{TableGlide-Ch-gaROR.mjs → TableGlide-CkorJrl9.mjs} +1633 -1595
- package/chunks/styles-AUqEaroI.cjs +2 -0
- package/chunks/styles-C-1Srtr7.mjs +132 -0
- package/chunks/{vendor-BzEO8Fvp.cjs → vendor-BSEdLAmZ.cjs} +1049 -1309
- package/chunks/{vendor-DBRfVjyT.mjs → vendor-CA3z7N_7.mjs} +1053 -1313
- package/components/DrawerDF/components/styled.d.ts +1 -1
- package/components/Notification/index.cjs +1 -1
- package/components/Notification/index.mjs +1 -1
- package/components/NumberFormat/NumberFormat.d.ts +48 -0
- package/components/NumberFormatAmount/NumberFormatAmount.styled.d.ts +48 -0
- package/components/Table/feature-edit/textEditor.styled.d.ts +48 -0
- package/components/TableCanvas/TableGlideInstance/adapters/column/index.cjs +1 -1
- package/components/TableCanvas/TableGlideInstance/adapters/column/index.mjs +1 -1
- package/components/TableCanvas/TableGlideInstance/adapters/index.cjs +1 -1
- package/components/TableCanvas/TableGlideInstance/adapters/index.mjs +1 -1
- package/components/TableCanvas/TableGlideInstance/index.cjs +1 -1
- package/components/TableCanvas/TableGlideInstance/index.mjs +2 -2
- package/components/TableCanvas/TableGlideInstance/utils/column/index.cjs +1 -1
- package/components/TableCanvas/TableGlideInstance/utils/column/index.mjs +1 -1
- package/components/TableCanvas/TableGlideInstance/utils/index.cjs +1 -1
- package/components/TableCanvas/TableGlideInstance/utils/index.mjs +1 -1
- package/components/TableCanvas/components/SplitIconButton/index.cjs +1 -1
- package/components/TableCanvas/components/SplitIconButton/index.mjs +1 -1
- package/components/TableCanvas/components/TableDropdown/index.cjs +1 -1
- package/components/TableCanvas/components/TableDropdown/index.mjs +1 -1
- package/components/TableCanvas/feature-cell-transfer/index.cjs +1 -1
- package/components/TableCanvas/feature-cell-transfer/index.mjs +1 -1
- package/components/TableCanvas/feature-collapse-table/index.cjs +1 -1
- package/components/TableCanvas/feature-collapse-table/index.mjs +1 -1
- package/components/TableCanvas/feature-column-control/ColumnsList/index.cjs +1 -1
- package/components/TableCanvas/feature-column-control/ColumnsList/index.mjs +1 -1
- package/components/TableCanvas/feature-column-control/columnsRenderOrder.d.ts +1 -0
- package/components/TableCanvas/feature-column-control/groupDepth.d.ts +14 -0
- package/components/TableCanvas/feature-column-control/hiddenBoundaries.d.ts +4 -0
- package/components/TableCanvas/feature-column-control/index.cjs +1 -1
- package/components/TableCanvas/feature-column-control/index.d.ts +2 -0
- package/components/TableCanvas/feature-column-control/index.mjs +4 -2
- package/components/TableCanvas/feature-column-control/types.d.ts +7 -0
- package/components/TableCanvas/feature-column-control/useHiddenColumnsIndicator.d.ts +19 -0
- package/components/TableCanvas/feature-columns-grouping/index.cjs +1 -1
- package/components/TableCanvas/feature-columns-grouping/index.mjs +1 -1
- package/components/TableCanvas/feature-content-state/index.cjs +1 -1
- package/components/TableCanvas/feature-content-state/index.mjs +1 -1
- package/components/TableCanvas/feature-context-menu/index.cjs +1 -1
- package/components/TableCanvas/feature-context-menu/index.mjs +1 -1
- package/components/TableCanvas/feature-edit/index.cjs +1 -1
- package/components/TableCanvas/feature-edit/index.mjs +3 -3
- package/components/TableCanvas/feature-filtering/combobox/index.cjs +1 -1
- package/components/TableCanvas/feature-filtering/combobox/index.mjs +2 -2
- package/components/TableCanvas/feature-filtering/filter-list-block/index.cjs +1 -1
- package/components/TableCanvas/feature-filtering/filter-list-block/index.mjs +2 -2
- package/components/TableCanvas/feature-filtering/header-filter-button/index.cjs +1 -1
- package/components/TableCanvas/feature-filtering/header-filter-button/index.mjs +1 -1
- package/components/TableCanvas/feature-filtering/index.cjs +1 -1
- package/components/TableCanvas/feature-filtering/index.mjs +3 -3
- package/components/TableCanvas/feature-filtering/sidebar-filter-block/index.cjs +1 -1
- package/components/TableCanvas/feature-filtering/sidebar-filter-block/index.mjs +1 -1
- package/components/TableCanvas/feature-infinity-scroll/index.cjs +1 -1
- package/components/TableCanvas/feature-infinity-scroll/index.mjs +3 -3
- package/components/TableCanvas/feature-key-text/index.cjs +1 -1
- package/components/TableCanvas/feature-key-text/index.mjs +1 -1
- package/components/TableCanvas/feature-notifications/index.cjs +1 -1
- package/components/TableCanvas/feature-notifications/index.mjs +1 -1
- package/components/TableCanvas/feature-pagination/index.cjs +1 -1
- package/components/TableCanvas/feature-pagination/index.mjs +1 -1
- package/components/TableCanvas/feature-popover-table/context/index.cjs +1 -1
- package/components/TableCanvas/feature-popover-table/context/index.mjs +1 -1
- package/components/TableCanvas/feature-popover-table/hooks/index.cjs +1 -1
- package/components/TableCanvas/feature-popover-table/hooks/index.mjs +1 -1
- package/components/TableCanvas/feature-popover-table/index.cjs +1 -1
- package/components/TableCanvas/feature-popover-table/index.mjs +4 -4
- package/components/TableCanvas/feature-popover-table/utils/index.cjs +1 -1
- package/components/TableCanvas/feature-popover-table/utils/index.mjs +1 -1
- package/components/TableCanvas/feature-right-sidebar/index.cjs +1 -1
- package/components/TableCanvas/feature-right-sidebar/index.mjs +1 -1
- package/components/TableCanvas/feature-row-detail/index.cjs +1 -1
- package/components/TableCanvas/feature-row-detail/index.mjs +1 -1
- package/components/TableCanvas/feature-row-instruments/index.cjs +1 -1
- package/components/TableCanvas/feature-row-instruments/index.mjs +1 -1
- package/components/TableCanvas/feature-row-markers/index.cjs +1 -1
- package/components/TableCanvas/feature-row-markers/index.mjs +1 -1
- package/components/TableCanvas/feature-row-size/index.cjs +1 -1
- package/components/TableCanvas/feature-row-size/index.mjs +1 -1
- package/components/TableCanvas/feature-rows-grouping/index.cjs +1 -1
- package/components/TableCanvas/feature-rows-grouping/index.mjs +1 -1
- package/components/TableCanvas/feature-searching/index.cjs +1 -1
- package/components/TableCanvas/feature-searching/index.mjs +1 -1
- package/components/TableCanvas/feature-select-row/index.cjs +1 -1
- package/components/TableCanvas/feature-select-row/index.mjs +1 -1
- package/components/TableCanvas/feature-sorting/index.cjs +1 -1
- package/components/TableCanvas/feature-sorting/index.mjs +1 -1
- package/components/TableCanvas/feature-table-settings/index.cjs +1 -1
- package/components/TableCanvas/feature-table-settings/index.mjs +1 -1
- package/components/TableCanvas/feature-tooltip/constants.d.ts +1 -0
- package/components/TableCanvas/feature-tooltip/index.cjs +1 -1
- package/components/TableCanvas/feature-tooltip/index.mjs +1 -1
- package/components/TableCanvas/feature-tooltip/types.d.ts +2 -0
- package/components/TableCanvas/feature-tooltip/utils/index.cjs +1 -1
- package/components/TableCanvas/feature-tooltip/utils/index.mjs +4 -4
- package/components/TableCanvas/feature-tree/index.cjs +1 -1
- package/components/TableCanvas/feature-tree/index.mjs +1 -1
- package/components/TableCanvas/feature-tree/tree-disclosure-icons.d.ts +65 -0
- package/components/TableCanvas/index.cjs +1 -1
- package/components/TableCanvas/index.mjs +17 -17
- package/components/TableCanvas/renders/formatCell/index.cjs +1 -1
- package/components/TableCanvas/renders/formatCell/index.mjs +1 -1
- package/components/TableCanvas/renders/rowIconConfig.d.ts +6 -0
- package/components/TableCanvas/renders/styleConstants.d.ts +3 -1
- package/components/TableCanvas/renders/styled.d.ts +0 -1
- package/components/TableCanvas/styles/index.cjs +1 -1
- package/components/TableCanvas/styles/index.mjs +1 -1
- package/components/TableCanvas/table-hooks/index.cjs +1 -1
- package/components/TableCanvas/table-hooks/index.mjs +3 -3
- package/components/TableCanvas/table-hooks/useColumns.d.ts +1 -0
- package/components/TableCanvas/types/index.cjs +1 -1
- package/components/TableCanvas/types/index.mjs +1 -1
- package/components/TableCanvas/types/table-config.type.d.ts +2 -0
- package/components/TableCanvas/utils/index.cjs +1 -1
- package/components/TableCanvas/utils/index.mjs +1 -1
- package/components/TableCanvas/widgets/control-block/compression/index.cjs +1 -1
- package/components/TableCanvas/widgets/control-block/compression/index.mjs +1 -1
- package/components/TableCanvas/widgets/control-block/index.cjs +1 -1
- package/components/TableCanvas/widgets/control-block/index.mjs +3 -3
- package/components/TableCanvas/widgets/control-block/right-side/index.cjs +1 -1
- package/components/TableCanvas/widgets/control-block/right-side/index.mjs +1 -1
- package/components/TableCanvas/widgets/index.cjs +1 -1
- package/components/TableCanvas/widgets/index.mjs +1 -1
- package/components/TableCanvas/widgets/mass-actions/hooks/index.cjs +1 -1
- package/components/TableCanvas/widgets/mass-actions/hooks/index.mjs +1 -1
- package/components/TableCanvas/widgets/mass-actions/index.cjs +1 -1
- package/components/TableCanvas/widgets/mass-actions/index.mjs +1 -1
- package/components/TableCanvasSharedConstants/index.cjs +1 -1
- package/components/TableCanvasSharedConstants/index.d.ts +1 -0
- package/components/TableCanvasSharedConstants/index.mjs +4 -3
- package/components/TableGlide/constants.d.ts +1 -1
- package/components/TableGlide/hooks/selection/index.cjs +1 -1
- package/components/TableGlide/hooks/selection/index.mjs +1 -1
- package/components/TableGlide/hooks/useItemHoveredHandler.d.ts +4 -1
- package/components/TableGlide/index.cjs +1 -1
- package/components/TableGlide/index.mjs +1 -1
- package/components/TableGlide/lib/canvas/cells/buttons/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/cells/buttons/index.mjs +1 -1
- package/components/TableGlide/lib/canvas/cells/iconSprites/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/cells/iconSprites/index.mjs +1 -1
- package/components/TableGlide/lib/canvas/cells/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/cells/index.mjs +1 -1
- package/components/TableGlide/lib/canvas/cells/renderer/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/cells/renderer/index.mjs +1 -1
- package/components/TableGlide/lib/canvas/components/index.d.ts +1 -0
- package/components/TableGlide/lib/canvas/core/helpers/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/core/helpers/index.mjs +1 -1
- package/components/TableGlide/lib/canvas/core/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/core/index.mjs +1 -1
- package/components/TableGlide/lib/canvas/hooks/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/hooks/index.mjs +1 -1
- package/components/TableGlide/lib/canvas/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/index.mjs +1 -1
- package/components/TableGlide/lib/canvas/miniflex/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/miniflex/index.mjs +1 -1
- package/components/TableGlide/lib/canvas/primitives/CanvasEmbedIconButton.d.ts +2 -0
- package/components/TableGlide/lib/canvas/primitives/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/primitives/index.mjs +1 -1
- package/components/TableGlide/lib/canvas/utils/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/utils/index.mjs +1 -1
- package/components/TableGlide/lib/canvas/utils/portalHoverEvents.d.ts +1 -0
- package/components/TableGlide/theming/glide-colors.d.ts +1 -0
- package/components/TableGlide/theming/index.cjs +1 -1
- package/components/TableGlide/theming/index.mjs +1 -1
- package/components/TableGlide/theming/size-tokens.d.ts +1 -1
- package/components/TableGlide/theming/sizes.d.ts +2 -2
- package/components/TourWidget/index.cjs +1 -1
- package/components/TourWidget/index.mjs +2 -2
- package/index.cjs +1 -1
- package/index.mjs +4 -4
- package/mcp-data/component-index.json +477 -93
- package/package.json +10 -10
- package/styles/index.cjs +1 -1
- package/styles/index.mjs +1 -1
- package/themes/index.cjs +1 -1
- package/themes/index.mjs +2 -2
- package/chunks/TableCanvas-MMWMrYiV.cjs +0 -30
- package/chunks/TableGlide-TYzM2bEB.cjs +0 -1
- package/chunks/styles-BBVEBDDw.mjs +0 -132
- package/chunks/styles-C-pJNMSQ.cjs +0 -2
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const T=require("@salutejs/plasma-typo"),c=require("@salutejs/sdds-themes"),l=require("./vendor-BSEdLAmZ.cjs"),m=require("./EXTERNAL_PACKAGE_MODULE_sdds_finai_high_contrast__light_theme-75fNjCa0.cjs"),e=require("react/jsx-runtime"),_=require("../mixins/index.cjs");require("@salutejs/sdds-finai");const w=require("./utils-CUW5bd8S.cjs"),p=require("react"),a=require("styled-components"),i=require("@salutejs/sdds-themes/tokens/sdds_finai"),s="dais-ui__",h="notification-wrapper",R="notification-text",S="notification-title",n={wrapper:`${s}notification`,positive:`${s}notification--positive`,negative:`${s}notification--negative`,warning:`${s}notification--warning`,info:`${s}notification--info`,hasBackground:`${s}notification--has-background`,hasTitleColor:`${s}notification--has-title-color`,hasBorderColor:`${s}notification--has-border-color`},E={positive:{background:i.dataPositiveGradient,borderColor:i.outlinePositive},negative:{background:i.dataNegativeGradient,borderColor:i.outlineNegative},warning:{background:i.dataWarningGradient,borderColor:i.outlineWarning},info:{background:i.dataInfoGradient,borderColor:i.outlineInfo}},y=()=>Object.entries(E).map(([t,o])=>{const r=n[t];return a.css([".",".",":not(.","){.","{overflow:hidden;}.notification-buttons-wrapper,.",",.","{z-index:1;}.","::after{content:'';position:absolute;z-index:0;height:600px;width:600px;top:0;right:0;transform:translate(50%,-80%);background:",";pointer-events:none;}}.",".",":not(.","){.","{color:",";}}.",".","{.","{border:1px solid ",";box-shadow:",";}}"],n.wrapper,r,n.hasBackground,h,R,S,h,o.background,n.wrapper,r,n.hasTitleColor,S,i.textPrimary,n.wrapper,r,h,o.borderColor,i.shadowDownHardS)}).flat(),f="tooltip--fullWidth",C=a.createGlobalStyle(T.standard),L=a.createGlobalStyle(T.compatible),A=a.createGlobalStyle(c.sdds_finai__light),x=a.createGlobalStyle(["*{","}"],()=>_.getCustomScrollbar({theme:"light"})),g=a.createGlobalStyle(["*{","}"],()=>_.getCustomScrollbar({theme:"dark"})),G=a.createGlobalStyle(["*{","}"],()=>y()),b=a.css([".popover-wrapper:has(> .","){width:100%;}"],f),d=a.createGlobalStyle(["",""],b),v=a.createGlobalStyle(c.sdds_finai__dark),N=a.createGlobalStyle(m.sdds_finai_high_contrast__light_2),O=a.createGlobalStyle(l.sdds_finai_high_contrast__dark_2),q=a.createGlobalStyle(l.sdds_finai_beta_core__light_2),F=a.createGlobalStyle(l.sdds_finai_beta_core__dark_2),W=()=>(p.useEffect(()=>(document.documentElement.setAttribute("data-theme","dark"),()=>{document.documentElement.removeAttribute("data-theme")}),[]),e.jsxs(e.Fragment,{children:[e.jsx(C,{}),e.jsx(L,{}),e.jsx(v,{}),e.jsx(g,{}),e.jsx(d,{})]}));function u(t,o){return t.join(`
|
|
2
|
+
`).replace(/:root/g,o)}const k={light:c.sdds_finai__light,dark:c.sdds_finai__dark,highContrastLight:m.sdds_finai_high_contrast__light_2,highContrastDark:l.sdds_finai_high_contrast__dark_2,betaCoreLight:l.sdds_finai_beta_core__light_2,betaCoreDark:l.sdds_finai_beta_core__dark_2},$={light:A,dark:v,highContrastLight:N,highContrastDark:O,betaCoreLight:q,betaCoreDark:F},B=({theme:t="light"})=>{p.useEffect(()=>{document.documentElement.setAttribute("data-theme",t)},[t]);const o=$[t],r=t==="light"||t==="highContrastLight"||t==="betaCoreLight";return e.jsxs(e.Fragment,{children:[e.jsx(C,{}),e.jsx(L,{}),e.jsx(o,{}),r?e.jsx(x,{}):e.jsx(g,{}),e.jsx(d,{}),e.jsx(G,{})]})},M=a.createGlobalStyle(["",""],({$theme:t,$scopeSelector:o})=>o?u(k[t],o):""),H=({theme:t="light",scopeSelector:o})=>{const r=t==="light"||t==="highContrastLight"||t==="betaCoreLight";return e.jsxs(e.Fragment,{children:[e.jsx(M,{$theme:t,$scopeSelector:o}),r?e.jsx(x,{}):e.jsx(g,{}),e.jsx(d,{}),e.jsx(G,{})]})},D=({isLightBase:t,theme:o})=>a.css([""," "," "," ",""],u(k[o],"&"),_.getCustomScrollbar({theme:t?"light":"dark"}),b,y()),I=a.div.withConfig({displayName:"DefaultGlobalStyle__StyledTestRootIsolatedThemeProviderLayout"})(["",""],({isLightBase:t,activeTheme:o})=>D({isLightBase:t,theme:o})),U=({theme:t="light",className:o,children:r,...j})=>{const P=t==="light"||t==="highContrastLight"||t==="betaCoreLight";return e.jsx(I,{className:w.mCls("TestRootIsolatedThemeProviderLayout",o),...j,isLightBase:P,activeTheme:t,children:r})};exports.DarkGlobalStyle=W;exports.GlobalPopoverStyles=d;exports.GlobalStyle=B;exports.StyledTestRootIsolatedThemeProviderLayout=I;exports.TOOLTIP_FULL_WIDTH_CLASS=f;exports.TestGlobalIsolatedStyleWithReplace=H;exports.TestRootIsolatedThemeProviderLayout=U;exports.cls=n;exports.scopeTheme=u;exports.styledTestRootIsolatedThemeProviderLayoutMixin=D;exports.testGlobalPopoverStylesMixin=b;
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { standard as B, compatible as E } from "@salutejs/plasma-typo";
|
|
2
|
+
import { sdds_finai__dark as b, sdds_finai__light as f } from "@salutejs/sdds-themes";
|
|
3
|
+
import { s as T, a as u, b as _ } from "./vendor-CA3z7N_7.mjs";
|
|
4
|
+
import { s as S } from "./EXTERNAL_PACKAGE_MODULE_sdds_finai_high_contrast__light_theme-DjDujEzF.mjs";
|
|
5
|
+
import { jsxs as l, Fragment as d, jsx as o } from "react/jsx-runtime";
|
|
6
|
+
import { getCustomScrollbar as c } from "../mixins/index.mjs";
|
|
7
|
+
import "@salutejs/sdds-finai";
|
|
8
|
+
import { s as A } from "./utils-YKicAHp0.mjs";
|
|
9
|
+
import { useEffect as C } from "react";
|
|
10
|
+
import O, { css as h, createGlobalStyle as i } from "styled-components";
|
|
11
|
+
import { outlineInfo as R, dataInfoGradient as $, outlineWarning as W, dataWarningGradient as F, outlineNegative as j, dataNegativeGradient as H, outlinePositive as M, dataPositiveGradient as z, textPrimary as V, shadowDownHardS as X } from "@salutejs/sdds-themes/tokens/sdds_finai";
|
|
12
|
+
const a = "dais-ui__", s = "notification-wrapper", U = "notification-text", p = "notification-title", n = {
|
|
13
|
+
wrapper: `${a}notification`,
|
|
14
|
+
positive: `${a}notification--positive`,
|
|
15
|
+
negative: `${a}notification--negative`,
|
|
16
|
+
warning: `${a}notification--warning`,
|
|
17
|
+
info: `${a}notification--info`,
|
|
18
|
+
hasBackground: `${a}notification--has-background`,
|
|
19
|
+
hasTitleColor: `${a}notification--has-title-color`,
|
|
20
|
+
hasBorderColor: `${a}notification--has-border-color`
|
|
21
|
+
}, Y = {
|
|
22
|
+
positive: {
|
|
23
|
+
background: z,
|
|
24
|
+
borderColor: M
|
|
25
|
+
},
|
|
26
|
+
negative: {
|
|
27
|
+
background: H,
|
|
28
|
+
borderColor: j
|
|
29
|
+
},
|
|
30
|
+
warning: {
|
|
31
|
+
background: F,
|
|
32
|
+
borderColor: W
|
|
33
|
+
},
|
|
34
|
+
info: {
|
|
35
|
+
background: $,
|
|
36
|
+
borderColor: R
|
|
37
|
+
}
|
|
38
|
+
}, L = () => Object.entries(Y).map(([t, e]) => {
|
|
39
|
+
const r = n[t];
|
|
40
|
+
return h([".", ".", ":not(.", "){.", "{overflow:hidden;}.notification-buttons-wrapper,.", ",.", "{z-index:1;}.", "::after{content:'';position:absolute;z-index:0;height:600px;width:600px;top:0;right:0;transform:translate(50%,-80%);background:", ";pointer-events:none;}}.", ".", ":not(.", "){.", "{color:", ";}}.", ".", "{.", "{border:1px solid ", ";box-shadow:", ";}}"], n.wrapper, r, n.hasBackground, s, U, p, s, e.background, n.wrapper, r, n.hasTitleColor, p, V, n.wrapper, r, s, e.borderColor, X);
|
|
41
|
+
}).flat(), q = "tooltip--fullWidth", D = i(B), k = i(E), J = i(f), v = i(["*{", "}"], () => c({
|
|
42
|
+
theme: "light"
|
|
43
|
+
})), g = i(["*{", "}"], () => c({
|
|
44
|
+
theme: "dark"
|
|
45
|
+
})), y = i(["*{", "}"], () => L()), I = h([".popover-wrapper:has(> .", "){width:100%;}"], q), m = i(["", ""], I), w = i(b), K = i(S), Q = i(_), Z = i(u), tt = i(T), ft = () => (C(() => (document.documentElement.setAttribute("data-theme", "dark"), () => {
|
|
46
|
+
document.documentElement.removeAttribute("data-theme");
|
|
47
|
+
}), []), /* @__PURE__ */ l(d, { children: [
|
|
48
|
+
/* @__PURE__ */ o(D, {}),
|
|
49
|
+
/* @__PURE__ */ o(k, {}),
|
|
50
|
+
/* @__PURE__ */ o(w, {}),
|
|
51
|
+
/* @__PURE__ */ o(g, {}),
|
|
52
|
+
/* @__PURE__ */ o(m, {})
|
|
53
|
+
] }));
|
|
54
|
+
function G(t, e) {
|
|
55
|
+
return t.join(`
|
|
56
|
+
`).replace(/:root/g, e);
|
|
57
|
+
}
|
|
58
|
+
const P = {
|
|
59
|
+
light: f,
|
|
60
|
+
dark: b,
|
|
61
|
+
highContrastLight: S,
|
|
62
|
+
highContrastDark: _,
|
|
63
|
+
betaCoreLight: u,
|
|
64
|
+
betaCoreDark: T
|
|
65
|
+
}, ot = {
|
|
66
|
+
light: J,
|
|
67
|
+
dark: w,
|
|
68
|
+
highContrastLight: K,
|
|
69
|
+
highContrastDark: Q,
|
|
70
|
+
betaCoreLight: Z,
|
|
71
|
+
betaCoreDark: tt
|
|
72
|
+
}, Tt = ({
|
|
73
|
+
theme: t = "light"
|
|
74
|
+
}) => {
|
|
75
|
+
C(() => {
|
|
76
|
+
document.documentElement.setAttribute("data-theme", t);
|
|
77
|
+
}, [t]);
|
|
78
|
+
const e = ot[t];
|
|
79
|
+
return /* @__PURE__ */ l(d, { children: [
|
|
80
|
+
/* @__PURE__ */ o(D, {}),
|
|
81
|
+
/* @__PURE__ */ o(k, {}),
|
|
82
|
+
/* @__PURE__ */ o(e, {}),
|
|
83
|
+
t === "light" || t === "highContrastLight" || t === "betaCoreLight" ? /* @__PURE__ */ o(v, {}) : /* @__PURE__ */ o(g, {}),
|
|
84
|
+
/* @__PURE__ */ o(m, {}),
|
|
85
|
+
/* @__PURE__ */ o(y, {})
|
|
86
|
+
] });
|
|
87
|
+
}, et = i(["", ""], ({
|
|
88
|
+
$theme: t,
|
|
89
|
+
$scopeSelector: e
|
|
90
|
+
}) => e ? G(P[t], e) : ""), ut = ({
|
|
91
|
+
theme: t = "light",
|
|
92
|
+
scopeSelector: e
|
|
93
|
+
}) => /* @__PURE__ */ l(d, { children: [
|
|
94
|
+
/* @__PURE__ */ o(et, { $theme: t, $scopeSelector: e }),
|
|
95
|
+
t === "light" || t === "highContrastLight" || t === "betaCoreLight" ? /* @__PURE__ */ o(v, {}) : /* @__PURE__ */ o(g, {}),
|
|
96
|
+
/* @__PURE__ */ o(m, {}),
|
|
97
|
+
/* @__PURE__ */ o(y, {})
|
|
98
|
+
] }), it = ({
|
|
99
|
+
isLightBase: t,
|
|
100
|
+
theme: e
|
|
101
|
+
}) => h(["", " ", " ", " ", ""], G(P[e], "&"), c({
|
|
102
|
+
theme: t ? "light" : "dark"
|
|
103
|
+
}), I, L()), at = O.div.withConfig({
|
|
104
|
+
displayName: "DefaultGlobalStyle__StyledTestRootIsolatedThemeProviderLayout"
|
|
105
|
+
})(["", ""], ({
|
|
106
|
+
isLightBase: t,
|
|
107
|
+
activeTheme: e
|
|
108
|
+
}) => it({
|
|
109
|
+
isLightBase: t,
|
|
110
|
+
theme: e
|
|
111
|
+
})), _t = ({
|
|
112
|
+
theme: t = "light",
|
|
113
|
+
className: e,
|
|
114
|
+
children: r,
|
|
115
|
+
...x
|
|
116
|
+
}) => {
|
|
117
|
+
const N = t === "light" || t === "highContrastLight" || t === "betaCoreLight";
|
|
118
|
+
return /* @__PURE__ */ o(at, { className: A("TestRootIsolatedThemeProviderLayout", e), ...x, isLightBase: N, activeTheme: t, children: r });
|
|
119
|
+
};
|
|
120
|
+
export {
|
|
121
|
+
ft as D,
|
|
122
|
+
m as G,
|
|
123
|
+
at as S,
|
|
124
|
+
q as T,
|
|
125
|
+
Tt as a,
|
|
126
|
+
ut as b,
|
|
127
|
+
n as c,
|
|
128
|
+
_t as d,
|
|
129
|
+
it as e,
|
|
130
|
+
G as s,
|
|
131
|
+
I as t
|
|
132
|
+
};
|