@tcn/ui 0.0.4 → 0.1.1
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/actions/button/base_button/base_button.d.ts.map +1 -1
- package/dist/actions/button/base_button/base_button.js +17 -12
- package/dist/actions/button/base_button/base_button.js.map +1 -1
- package/dist/actions/button/button/button.d.ts.map +1 -1
- package/dist/actions/button/button/button.js +7 -7
- package/dist/actions/button/button/button.js.map +1 -1
- package/dist/actions/button/slim_button/slim_button.js +2 -2
- package/dist/actions/button/slim_button/slim_button.js.map +1 -1
- package/dist/button.css +1 -1
- package/dist/footer.css +1 -1
- package/dist/form/field/common/field_error.js +3 -2
- package/dist/form/field/common/field_error.js.map +1 -1
- package/dist/inputs/input/input.d.ts +2 -2
- package/dist/inputs/input/input.d.ts.map +1 -1
- package/dist/inputs/input/input.js.map +1 -1
- package/dist/inputs/options/option.d.ts +1 -0
- package/dist/inputs/options/option.d.ts.map +1 -1
- package/dist/inputs/options/option.js.map +1 -1
- package/dist/inputs/phone_number_input/phone_number_input.d.ts +6 -1
- package/dist/inputs/phone_number_input/phone_number_input.d.ts.map +1 -1
- package/dist/inputs/phone_number_input/phone_number_input.js +169 -125
- package/dist/inputs/phone_number_input/phone_number_input.js.map +1 -1
- package/dist/inputs/suggestions/suggestion_item.d.ts +1 -1
- package/dist/inputs/suggestions/suggestion_item.d.ts.map +1 -1
- package/dist/inputs/suggestions/suggestion_item.js +23 -18
- package/dist/inputs/suggestions/suggestion_item.js.map +1 -1
- package/dist/inputs/suggestions/suggestion_list.d.ts +1 -1
- package/dist/inputs/suggestions/suggestion_list.d.ts.map +1 -1
- package/dist/inputs/suggestions/suggestion_list.js +105 -95
- package/dist/inputs/suggestions/suggestion_list.js.map +1 -1
- package/dist/layouts/footer/footer.js +5 -5
- package/dist/layouts/footer/footer.js.map +1 -1
- package/dist/layouts/index.d.ts +3 -2
- package/dist/layouts/index.d.ts.map +1 -1
- package/dist/layouts/index.js +26 -24
- package/dist/layouts/index.js.map +1 -1
- package/dist/layouts/list/item.d.ts +1 -0
- package/dist/layouts/list/item.d.ts.map +1 -1
- package/dist/layouts/list/item.js +17 -6
- package/dist/layouts/list/item.js.map +1 -1
- package/dist/layouts/list/list.js +10 -10
- package/dist/layouts/list/list.js.map +1 -1
- package/dist/overlay/context_menu/context_menu.js +4 -4
- package/dist/overlay/index.js +3 -3
- package/dist/overlay/popper/popper.js +12 -12
- package/dist/{portal-qqIp4SIl.js → overlay/portal/portal.js} +3 -3
- package/dist/overlay/portal/portal.js.map +1 -0
- package/dist/overlay/portal/portal_platform.js +3 -4
- package/dist/overlay/portal/portal_platform.js.map +1 -1
- package/dist/phone_number_input.css +1 -1
- package/dist/slim_button.css +1 -1
- package/dist/surfaces/card/card.d.ts.map +1 -1
- package/dist/surfaces/card/card.js +7 -16
- package/dist/surfaces/card/card.js.map +1 -1
- package/dist/surfaces/confirm/confirm.js +4 -4
- package/dist/themes/index.js +6 -141
- package/dist/themes/index.js.map +1 -1
- package/dist/themes/stylesheets/reset.js +140 -0
- package/dist/themes/stylesheets/reset.js.map +1 -0
- package/dist/themes/themes/ergo/ergo_theme.js +595 -0
- package/dist/themes/themes/ergo/ergo_theme.js.map +1 -0
- package/dist/tokens/bubble/bubble.js +17 -16
- package/dist/tokens/bubble/bubble.js.map +1 -1
- package/dist/tokens/chip/chip.js +9 -8
- package/dist/tokens/chip/chip.js.map +1 -1
- package/dist/typography/title/title.js +8 -8
- package/dist/typography/title/title.js.map +1 -1
- package/package.json +3 -3
- package/src/actions/button/base_button/base_button.tsx +7 -2
- package/src/actions/button/button/button.module.css +0 -78
- package/src/actions/button/button/button.tsx +2 -4
- package/src/actions/button/slim_button/slim_button.module.css +0 -26
- package/src/actions/button/slim_button/slim_button.tsx +1 -1
- package/src/inputs/input/input.tsx +3 -2
- package/src/inputs/options/option.tsx +1 -0
- package/src/inputs/phone_number_input/phone_number_input.module.css +12 -0
- package/src/inputs/phone_number_input/phone_number_input.stories.tsx +8 -0
- package/src/inputs/phone_number_input/phone_number_input.tsx +99 -21
- package/src/inputs/suggestions/suggestion_item.tsx +12 -2
- package/src/inputs/suggestions/suggestion_list.tsx +22 -3
- package/src/layouts/footer/footer.module.css +0 -1
- package/src/layouts/footer/footer.tsx +1 -1
- package/src/layouts/index.ts +3 -2
- package/src/layouts/list/item.tsx +10 -2
- package/src/layouts/list/list.tsx +2 -2
- package/src/surfaces/card/card.tsx +2 -8
- package/src/surfaces/modal/__stories__/modal.stories.tsx +1 -1
- package/src/surfaces/panel/__stories__/panel.stories.tsx +13 -12
- package/src/themes/themes/ergo/__stories__/components/material_picker/sb_inverted_materials.module.css +34 -0
- package/src/themes/themes/ergo/__stories__/components/material_picker/sb_material_picker.tsx +52 -0
- package/src/themes/themes/ergo/__stories__/components/tone_picker/sb_card.module.css +5 -0
- package/src/themes/themes/ergo/__stories__/components/tone_picker/sb_tone_card.tsx +40 -0
- package/src/themes/themes/ergo/__stories__/components/tone_picker/sb_tone_picker.tsx +83 -0
- package/src/themes/themes/ergo/__stories__/components/tone_picker/types.ts +7 -0
- package/src/themes/themes/ergo/__stories__/material.stories.tsx +154 -0
- package/src/themes/themes/ergo/__stories__/sb_materials.module.css +110 -0
- package/src/themes/themes/ergo/__stories__/utils.ts +92 -0
- package/src/themes/themes/ergo/ergo_theme.css +298 -35
- package/src/typography/title/title.tsx +1 -1
- package/tsconfig.json +0 -3
- package/dist/card.css +0 -1
- package/dist/portal-qqIp4SIl.js.map +0 -1
- package/dist/themes/stylesheets/reset.css +0 -1
- package/dist/themes/themes/ergo/ergo_theme.css +0 -1
- package/dist/themes/themes/windows_98/windows_98.css +0 -1
- package/src/surfaces/card/card.module.css +0 -5
- /package/dist/{overlay/portal/portal.css → portal_platform.css} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.js","sources":["../../../src/layouts/list/list.tsx"],"sourcesContent":["import React from 'react';\nimport { clsx } from 'clsx';\nimport { VStack, type VStackProps } from '../../stacks/v_stack.js';\n\nexport interface ListProps extends Omit<VStackProps, 'as'> {\n isOrdered?: boolean;\n}\n\nexport const List = React.forwardRef<HTMLDivElement, ListProps>(function
|
|
1
|
+
{"version":3,"file":"list.js","sources":["../../../src/layouts/list/list.tsx"],"sourcesContent":["import React from 'react';\nimport { clsx } from 'clsx';\nimport { VStack, type VStackProps } from '../../stacks/v_stack.js';\n\nexport interface ListProps extends Omit<VStackProps, 'as'> {\n isOrdered?: boolean;\n}\n\nexport const List = React.forwardRef<HTMLDivElement, ListProps>(function List(\n { children, className, isOrdered = false, ...props }: ListProps,\n ref\n) {\n return (\n <VStack\n ref={ref}\n as={isOrdered ? 'ol' : 'ul'}\n className={clsx('tcn-list', className)}\n {...props}\n >\n {children}\n </VStack>\n );\n});\n"],"names":["List","React","children","className","isOrdered","props","ref","jsx","VStack","clsx"],"mappings":";;;;AAQO,MAAMA,IAAOC,EAAM,WAAsC,SAC9D,EAAE,UAAAC,GAAU,WAAAC,GAAW,WAAAC,IAAY,IAAO,GAAGC,EAAA,GAC7CC,GACA;AACA,SACE,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,KAAAF;AAAA,MACA,IAAIF,IAAY,OAAO;AAAA,MACvB,WAAWK,EAAK,YAAYN,CAAS;AAAA,MACpC,GAAGE;AAAA,MAEH,UAAAH;AAAA,IAAA;AAAA,EAAA;AAGP,CAAC;"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
1
|
+
import { jsxs as c, Fragment as m, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { Portal as s } from "../portal/portal.js";
|
|
3
3
|
import { useState as h } from "react";
|
|
4
4
|
import { Menu as u } from "../menu/menu.js";
|
|
5
5
|
function v({ open: e, position: r, children: n, onClose: i }) {
|
|
6
6
|
const [o, l] = h(null);
|
|
7
|
-
return !e || r == null ? null : /* @__PURE__ */
|
|
8
|
-
/* @__PURE__ */ t(
|
|
7
|
+
return !e || r == null ? null : /* @__PURE__ */ c(m, { children: [
|
|
8
|
+
/* @__PURE__ */ t(s, { children: /* @__PURE__ */ t("div", { style: { position: "fixed", inset: 0 }, children: /* @__PURE__ */ t(
|
|
9
9
|
"div",
|
|
10
10
|
{
|
|
11
11
|
ref: (a) => {
|
package/dist/overlay/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Portal as e } from "./portal/portal.js";
|
|
2
2
|
import { ContextMenu as p } from "./context_menu/context_menu.js";
|
|
3
3
|
import { Menu as x, MenuItem as f } from "./menu/menu.js";
|
|
4
4
|
import { Tooltip as u } from "./tooltip/tooltip.js";
|
|
5
|
-
import { Popper as
|
|
5
|
+
import { Popper as l } from "./popper/popper.js";
|
|
6
6
|
export {
|
|
7
7
|
p as ContextMenu,
|
|
8
8
|
x as Menu,
|
|
9
9
|
f as MenuItem,
|
|
10
|
-
|
|
10
|
+
l as Popper,
|
|
11
11
|
e as Portal,
|
|
12
12
|
u as Tooltip
|
|
13
13
|
};
|
|
@@ -2,17 +2,17 @@ import { jsx as p, jsxs as G } from "react/jsx-runtime";
|
|
|
2
2
|
import "../../utils/focus_redirect.js";
|
|
3
3
|
import { ClickAwayListener as I } from "../../utils/click_away_listener.js";
|
|
4
4
|
import { ScrollAwayListener as J } from "../../utils/scroll_away_listener.js";
|
|
5
|
-
import { useRef as f, useState as K, useLayoutEffect as
|
|
5
|
+
import { useRef as f, useState as K, useLayoutEffect as E } from "react";
|
|
6
6
|
import "../../utils/hooks/use_resize_observer.js";
|
|
7
|
-
import {
|
|
8
|
-
import '../../popper.css';const Q = "_popover_069b323", U = "_popover-veil_2f5f985",
|
|
7
|
+
import { Portal as M } from "../portal/portal.js";
|
|
8
|
+
import '../../popper.css';const Q = "_popover_069b323", U = "_popover-veil_2f5f985", P = { popover: Q, "popover-veil": U };
|
|
9
9
|
function ie({
|
|
10
10
|
anchorElement: n,
|
|
11
11
|
verticalAnchor: _ = "bottom",
|
|
12
12
|
verticalOrigin: j = "top",
|
|
13
13
|
verticalOffset: h = 0,
|
|
14
|
-
horizontalAnchor:
|
|
15
|
-
horizontalOrigin:
|
|
14
|
+
horizontalAnchor: d = "start",
|
|
15
|
+
horizontalOrigin: a = "start",
|
|
16
16
|
horizontalOffset: s = 0,
|
|
17
17
|
restoreFocus: g = !1,
|
|
18
18
|
veil: y = !1,
|
|
@@ -54,13 +54,13 @@ function ie({
|
|
|
54
54
|
t -= o.height;
|
|
55
55
|
break;
|
|
56
56
|
}
|
|
57
|
-
|
|
58
|
-
let r =
|
|
59
|
-
v && (
|
|
57
|
+
d === "start" ? i += v ? e.width + s : s : d === "center" ? i += e.width / 2 : d === "end" && (i += v ? -s : e.width + s);
|
|
58
|
+
let r = a;
|
|
59
|
+
v && (a === "start" ? r = "end" : a === "end" && (r = "start")), r === "start" || (r === "center" ? i -= o.width / 2 : r === "end" && (i -= o.width)), i + o.width > A && (i = A - o.width), i < 0 && (i = 0), t + o.height > L && (t = L - o.height), t < 0 && (t = 0), (t !== c.top || i !== c.left) && q({ top: t, left: i });
|
|
60
60
|
};
|
|
61
|
-
if (
|
|
61
|
+
if (E(() => (m(), window.addEventListener("resize", m), () => {
|
|
62
62
|
window.removeEventListener("resize", m);
|
|
63
|
-
})),
|
|
63
|
+
})), E(() => {
|
|
64
64
|
if (u)
|
|
65
65
|
x.current = window.document.activeElement;
|
|
66
66
|
else {
|
|
@@ -76,7 +76,7 @@ function ie({
|
|
|
76
76
|
"div",
|
|
77
77
|
{
|
|
78
78
|
ref: w,
|
|
79
|
-
className:
|
|
79
|
+
className: P.popover,
|
|
80
80
|
style: {
|
|
81
81
|
top: `${c.top}px`,
|
|
82
82
|
left: `${c.left}px`
|
|
@@ -98,7 +98,7 @@ function ie({
|
|
|
98
98
|
{
|
|
99
99
|
ref: C,
|
|
100
100
|
onClick: (e) => C.current === e.target && b && b(e),
|
|
101
|
-
className:
|
|
101
|
+
className: P["popover-veil"],
|
|
102
102
|
children: l
|
|
103
103
|
}
|
|
104
104
|
),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useState as n, useLayoutEffect as e } from "react";
|
|
2
|
-
import { usePortalPlatform as u } from "./
|
|
2
|
+
import { usePortalPlatform as u } from "./portal_platform_context.js";
|
|
3
3
|
const s = ({ children: a, zIndex: o }) => {
|
|
4
4
|
const r = u(), [t] = n(() => r.createPortal());
|
|
5
5
|
return e(() => {
|
|
@@ -7,6 +7,6 @@ const s = ({ children: a, zIndex: o }) => {
|
|
|
7
7
|
}, [t, o]), e(() => (r.mountPortal(t), () => r.unmountPortal(t)), [t, r]), t.render(a);
|
|
8
8
|
};
|
|
9
9
|
export {
|
|
10
|
-
s as
|
|
10
|
+
s as Portal
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=portal
|
|
12
|
+
//# sourceMappingURL=portal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"portal.js","sources":["../../../src/overlay/portal/portal.tsx"],"sourcesContent":["import React, { useState, useLayoutEffect } from 'react';\nimport { usePortalPlatform } from './portal_platform_context.js';\n\nexport interface PortalProps {\n children: React.ReactNode | React.ReactNode[];\n zIndex?: number;\n}\n\nexport const Portal = ({ children, zIndex }: PortalProps) => {\n const portalPlatform = usePortalPlatform();\n\n const [portal] = useState(() => {\n return portalPlatform.createPortal();\n });\n\n useLayoutEffect(() => {\n portal.setZIndex(zIndex);\n }, [portal, zIndex]);\n\n useLayoutEffect(() => {\n portalPlatform.mountPortal(portal);\n return () => portalPlatform.unmountPortal(portal);\n }, [portal, portalPlatform]);\n\n return portal.render(children);\n};\n"],"names":["Portal","children","zIndex","portalPlatform","usePortalPlatform","portal","useState","useLayoutEffect"],"mappings":";;AAQO,MAAMA,IAAS,CAAC,EAAE,UAAAC,GAAU,QAAAC,QAA0B;AAC3D,QAAMC,IAAiBC,EAAA,GAEjB,CAACC,CAAM,IAAIC,EAAS,MACjBH,EAAe,aAAA,CACvB;AAED,SAAAI,EAAgB,MAAM;AACpB,IAAAF,EAAO,UAAUH,CAAM;AAAA,EACzB,GAAG,CAACG,GAAQH,CAAM,CAAC,GAEnBK,EAAgB,OACdJ,EAAe,YAAYE,CAAM,GAC1B,MAAMF,EAAe,cAAcE,CAAM,IAC/C,CAACA,GAAQF,CAAc,CAAC,GAEpBE,EAAO,OAAOJ,CAAQ;AAC/B;"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { createPortal as e } from "react-dom";
|
|
2
|
-
import '
|
|
3
|
-
class s {
|
|
2
|
+
import '../../portal_platform.css';class s {
|
|
4
3
|
_window;
|
|
5
4
|
div;
|
|
6
5
|
hasMounted = !1;
|
|
@@ -14,7 +13,7 @@ class s {
|
|
|
14
13
|
return this.div == null ? null : e(t, this.div);
|
|
15
14
|
}
|
|
16
15
|
}
|
|
17
|
-
class
|
|
16
|
+
class a {
|
|
18
17
|
_window;
|
|
19
18
|
_root;
|
|
20
19
|
_portals = [];
|
|
@@ -64,7 +63,7 @@ class n {
|
|
|
64
63
|
}
|
|
65
64
|
}
|
|
66
65
|
export {
|
|
67
|
-
|
|
66
|
+
a as PortalPlatform,
|
|
68
67
|
s as PortalPresenter
|
|
69
68
|
};
|
|
70
69
|
//# sourceMappingURL=portal_platform.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"portal_platform.js","sources":["../../../src/overlay/portal/portal_platform.tsx"],"sourcesContent":["import React from 'react';\nimport { createPortal } from 'react-dom';\nimport './portal.css';\n\nexport class PortalPresenter {\n private _window: Window & typeof globalThis;\n div: HTMLDivElement;\n hasMounted = false;\n\n constructor(win = window, zIndex: number | string = '0') {\n this._window = win;\n this.div = this._window.document.createElement('div');\n this.div.className = 'portal';\n this.setZIndex(zIndex);\n }\n\n setZIndex(zIndex: number | string = '0') {\n if (this.div != null) {\n this.div.style.zIndex = zIndex.toString();\n }\n }\n\n render(children: React.ReactNode) {\n if (this.div == null) {\n return null;\n }\n\n return createPortal(children, this.div);\n }\n}\n\nexport class PortalPlatform {\n private _window: Window & typeof globalThis;\n private _root: HTMLElement;\n private _portals: PortalPresenter[] = [];\n\n readonly platform: HTMLDivElement;\n\n constructor(win = window, root: HTMLElement = win.document.body) {\n this._window = win;\n this._root = root;\n this.platform = this._getPlatformRoot();\n this.platform.classList.add('platform-root');\n }\n\n private _getPlatformRoot() {\n const existingPlatformRoot = this._window.document.body.querySelector(\n '.platform-root'\n ) as HTMLDivElement | null;\n if (!existingPlatformRoot) {\n const root = this._window.document.createElement('div');\n const portalPlatform = this._window.document.createElement('div');\n portalPlatform.id = 'portal-platform';\n portalPlatform.classList.add('portal-platform');\n root.appendChild(portalPlatform);\n\n return root;\n } else {\n return existingPlatformRoot;\n }\n }\n\n setZIndex(zIndex: number | string = 'auto') {\n if (this.platform != null) {\n this.platform.style.zIndex = zIndex.toString();\n }\n }\n\n setRoot(root: HTMLElement | null) {\n if (root !== this._root) {\n this.platform?.parentNode?.removeChild(this.platform);\n this._root = root == null ? document.body : root;\n this.showPlatform();\n }\n }\n\n createPortal() {\n const portal = new PortalPresenter(this._window);\n this._portals.push(portal);\n return portal;\n }\n\n mountPortal(portal: PortalPresenter) {\n portal.hasMounted = true;\n this.platform.firstElementChild?.appendChild(portal.div);\n this.showPlatform();\n }\n\n unmountPortal(portal: PortalPresenter) {\n this.removePortal(portal);\n }\n\n removePortal(portal: PortalPresenter) {\n const index = this._portals.indexOf(portal);\n if (index > -1) {\n portal.hasMounted = false;\n this._portals.splice(index, 1);\n this.platform.firstElementChild?.removeChild(portal.div);\n this.hidePlatformIfNecessary();\n }\n }\n\n showPlatform() {\n if (this.platform != null && this.platform.parentElement == null) {\n this._root.appendChild(this.platform);\n }\n }\n\n hidePlatformIfNecessary() {\n if (this._portals.length === 0 && this.platform.parentElement != null) {\n this._root.removeChild(this.platform);\n }\n }\n\n dispose() {\n if (this.platform != null && this._root.contains(this.platform)) {\n this._root.removeChild(this.platform);\n }\n }\n}\n"],"names":["PortalPresenter","win","zIndex","children","createPortal","PortalPlatform","root","existingPlatformRoot","portalPlatform","portal","index"],"mappings":"
|
|
1
|
+
{"version":3,"file":"portal_platform.js","sources":["../../../src/overlay/portal/portal_platform.tsx"],"sourcesContent":["import React from 'react';\nimport { createPortal } from 'react-dom';\nimport './portal.css';\n\nexport class PortalPresenter {\n private _window: Window & typeof globalThis;\n div: HTMLDivElement;\n hasMounted = false;\n\n constructor(win = window, zIndex: number | string = '0') {\n this._window = win;\n this.div = this._window.document.createElement('div');\n this.div.className = 'portal';\n this.setZIndex(zIndex);\n }\n\n setZIndex(zIndex: number | string = '0') {\n if (this.div != null) {\n this.div.style.zIndex = zIndex.toString();\n }\n }\n\n render(children: React.ReactNode) {\n if (this.div == null) {\n return null;\n }\n\n return createPortal(children, this.div);\n }\n}\n\nexport class PortalPlatform {\n private _window: Window & typeof globalThis;\n private _root: HTMLElement;\n private _portals: PortalPresenter[] = [];\n\n readonly platform: HTMLDivElement;\n\n constructor(win = window, root: HTMLElement = win.document.body) {\n this._window = win;\n this._root = root;\n this.platform = this._getPlatformRoot();\n this.platform.classList.add('platform-root');\n }\n\n private _getPlatformRoot() {\n const existingPlatformRoot = this._window.document.body.querySelector(\n '.platform-root'\n ) as HTMLDivElement | null;\n if (!existingPlatformRoot) {\n const root = this._window.document.createElement('div');\n const portalPlatform = this._window.document.createElement('div');\n portalPlatform.id = 'portal-platform';\n portalPlatform.classList.add('portal-platform');\n root.appendChild(portalPlatform);\n\n return root;\n } else {\n return existingPlatformRoot;\n }\n }\n\n setZIndex(zIndex: number | string = 'auto') {\n if (this.platform != null) {\n this.platform.style.zIndex = zIndex.toString();\n }\n }\n\n setRoot(root: HTMLElement | null) {\n if (root !== this._root) {\n this.platform?.parentNode?.removeChild(this.platform);\n this._root = root == null ? document.body : root;\n this.showPlatform();\n }\n }\n\n createPortal() {\n const portal = new PortalPresenter(this._window);\n this._portals.push(portal);\n return portal;\n }\n\n mountPortal(portal: PortalPresenter) {\n portal.hasMounted = true;\n this.platform.firstElementChild?.appendChild(portal.div);\n this.showPlatform();\n }\n\n unmountPortal(portal: PortalPresenter) {\n this.removePortal(portal);\n }\n\n removePortal(portal: PortalPresenter) {\n const index = this._portals.indexOf(portal);\n if (index > -1) {\n portal.hasMounted = false;\n this._portals.splice(index, 1);\n this.platform.firstElementChild?.removeChild(portal.div);\n this.hidePlatformIfNecessary();\n }\n }\n\n showPlatform() {\n if (this.platform != null && this.platform.parentElement == null) {\n this._root.appendChild(this.platform);\n }\n }\n\n hidePlatformIfNecessary() {\n if (this._portals.length === 0 && this.platform.parentElement != null) {\n this._root.removeChild(this.platform);\n }\n }\n\n dispose() {\n if (this.platform != null && this._root.contains(this.platform)) {\n this._root.removeChild(this.platform);\n }\n }\n}\n"],"names":["PortalPresenter","win","zIndex","children","createPortal","PortalPlatform","root","existingPlatformRoot","portalPlatform","portal","index"],"mappings":";AAIO,MAAMA,EAAgB;AAAA,EACnB;AAAA,EACR;AAAA,EACA,aAAa;AAAA,EAEb,YAAYC,IAAM,QAAQC,IAA0B,KAAK;AACvD,SAAK,UAAUD,GACf,KAAK,MAAM,KAAK,QAAQ,SAAS,cAAc,KAAK,GACpD,KAAK,IAAI,YAAY,UACrB,KAAK,UAAUC,CAAM;AAAA,EACvB;AAAA,EAEA,UAAUA,IAA0B,KAAK;AACvC,IAAI,KAAK,OAAO,SACd,KAAK,IAAI,MAAM,SAASA,EAAO,SAAA;AAAA,EAEnC;AAAA,EAEA,OAAOC,GAA2B;AAChC,WAAI,KAAK,OAAO,OACP,OAGFC,EAAaD,GAAU,KAAK,GAAG;AAAA,EACxC;AACF;AAEO,MAAME,EAAe;AAAA,EAClB;AAAA,EACA;AAAA,EACA,WAA8B,CAAA;AAAA,EAE7B;AAAA,EAET,YAAYJ,IAAM,QAAQK,IAAoBL,EAAI,SAAS,MAAM;AAC/D,SAAK,UAAUA,GACf,KAAK,QAAQK,GACb,KAAK,WAAW,KAAK,iBAAA,GACrB,KAAK,SAAS,UAAU,IAAI,eAAe;AAAA,EAC7C;AAAA,EAEQ,mBAAmB;AACzB,UAAMC,IAAuB,KAAK,QAAQ,SAAS,KAAK;AAAA,MACtD;AAAA,IAAA;AAEF,QAAKA;AASH,aAAOA;AATkB;AACzB,YAAMD,IAAO,KAAK,QAAQ,SAAS,cAAc,KAAK,GAChDE,IAAiB,KAAK,QAAQ,SAAS,cAAc,KAAK;AAChE,aAAAA,EAAe,KAAK,mBACpBA,EAAe,UAAU,IAAI,iBAAiB,GAC9CF,EAAK,YAAYE,CAAc,GAExBF;AAAA,IACT;AAAA,EAGF;AAAA,EAEA,UAAUJ,IAA0B,QAAQ;AAC1C,IAAI,KAAK,YAAY,SACnB,KAAK,SAAS,MAAM,SAASA,EAAO,SAAA;AAAA,EAExC;AAAA,EAEA,QAAQI,GAA0B;AAChC,IAAIA,MAAS,KAAK,UAChB,KAAK,UAAU,YAAY,YAAY,KAAK,QAAQ,GACpD,KAAK,QAAQA,KAAe,SAAS,MACrC,KAAK,aAAA;AAAA,EAET;AAAA,EAEA,eAAe;AACb,UAAMG,IAAS,IAAIT,EAAgB,KAAK,OAAO;AAC/C,gBAAK,SAAS,KAAKS,CAAM,GAClBA;AAAA,EACT;AAAA,EAEA,YAAYA,GAAyB;AACnC,IAAAA,EAAO,aAAa,IACpB,KAAK,SAAS,mBAAmB,YAAYA,EAAO,GAAG,GACvD,KAAK,aAAA;AAAA,EACP;AAAA,EAEA,cAAcA,GAAyB;AACrC,SAAK,aAAaA,CAAM;AAAA,EAC1B;AAAA,EAEA,aAAaA,GAAyB;AACpC,UAAMC,IAAQ,KAAK,SAAS,QAAQD,CAAM;AAC1C,IAAIC,IAAQ,OACVD,EAAO,aAAa,IACpB,KAAK,SAAS,OAAOC,GAAO,CAAC,GAC7B,KAAK,SAAS,mBAAmB,YAAYD,EAAO,GAAG,GACvD,KAAK,wBAAA;AAAA,EAET;AAAA,EAEA,eAAe;AACb,IAAI,KAAK,YAAY,QAAQ,KAAK,SAAS,iBAAiB,QAC1D,KAAK,MAAM,YAAY,KAAK,QAAQ;AAAA,EAExC;AAAA,EAEA,0BAA0B;AACxB,IAAI,KAAK,SAAS,WAAW,KAAK,KAAK,SAAS,iBAAiB,QAC/D,KAAK,MAAM,YAAY,KAAK,QAAQ;AAAA,EAExC;AAAA,EAEA,UAAU;AACR,IAAI,KAAK,YAAY,QAAQ,KAAK,MAAM,SAAS,KAAK,QAAQ,KAC5D,KAAK,MAAM,YAAY,KAAK,QAAQ;AAAA,EAExC;AACF;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
._phone-number-input_5c4483d{position:relative;opacity:1;border-radius:0}._phone-number-input_5c4483d[data-has-phone-book=false]{border-end-end-radius:4px;border-start-end-radius:4px}._phone-number-input-select_a7b33ac{border-end-end-radius:0px;border-start-end-radius:0px}._phone-number-input_5c4483d>*{position:relative;z-index:1}._phone-number-input-select_a7b33ac:has(button){z-index:2}._phone-number-input-input_5b14556:has(input:focus),._phone-number-input-select_a7b33ac:focus,._phone-number-input-input_5b14556:has(input:focus-visible),._phone-number-input-select_a7b33ac:focus-visible{z-index:3}._phone-number-input-phone-book-popover_1511f35{border-radius:calc(4px * var(--scalar, 1));padding:8px;background-color:#fefefe;box-shadow:var(--raised-box-shadow),var(--drop-shadow-depth-3);min-width:calc(200px * var(--scalar, 1))}._phone-number-input-phone-book_7999ca1{border-start-start-radius:0px;border-end-start-radius:0px;height:calc(26px * var(--scalar, 1))!important;width:calc(26px * var(--scalar, 1))!important;min-height:calc(26px * var(--scalar, 1))!important;min-width:calc(26px * var(--scalar, 1))!important;max-height:calc(26px * var(--scalar, 1))!important;max-width:calc(26px * var(--scalar, 1))!important}
|
|
1
|
+
._phone-number-input_5c4483d{position:relative;opacity:1;border-radius:0}._phone-number-input_5c4483d[data-has-phone-book=false]{border-end-end-radius:4px;border-start-end-radius:4px}._phone-number-input-select_a7b33ac{border-end-end-radius:0px;border-start-end-radius:0px}._phone-number-input_5c4483d>*{position:relative;z-index:1}._phone-number-input-select_a7b33ac:has(button){z-index:2}._phone-number-input-input_5b14556:has(input:focus),._phone-number-input-select_a7b33ac:focus,._phone-number-input-input_5b14556:has(input:focus-visible),._phone-number-input-select_a7b33ac:focus-visible{z-index:3}._phone-number-input-phone-book-popover_1511f35{border-radius:calc(4px * var(--scalar, 1));padding:8px;background-color:#fefefe;box-shadow:var(--raised-box-shadow),var(--drop-shadow-depth-3);min-width:calc(200px * var(--scalar, 1))}._phone-number-input-phone-book_7999ca1{border-start-start-radius:0px;border-end-start-radius:0px;height:calc(26px * var(--scalar, 1))!important;width:calc(26px * var(--scalar, 1))!important;min-height:calc(26px * var(--scalar, 1))!important;min-width:calc(26px * var(--scalar, 1))!important;max-height:calc(26px * var(--scalar, 1))!important;max-width:calc(26px * var(--scalar, 1))!important}._phone-number-input-obfuscated_5a0ed8c{user-select:none;-webkit-user-select:none;cursor:default;width:100%;height:100%}._phone-number-input-obfuscated_5a0ed8c::selection{background:transparent}
|
package/dist/slim_button.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
._slim-button_188fdc3{min-height:auto}._slim-button_188fdc3[data-is-disabled=true]{pointer-events:none}
|
|
1
|
+
._slim-button_188fdc3{min-height:auto}._slim-button_188fdc3[data-is-disabled=true]{pointer-events:none}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../../src/surfaces/card/card.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEnE,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../../src/surfaces/card/card.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEnE,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,SAAU,SAAQ,IAAI,CAAC,WAAW,EAAE,IAAI,GAAG,UAAU,CAAC;IACrE,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,eAAO,MAAM,IAAI,+EASf,CAAC"}
|
|
@@ -1,20 +1,11 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { VStack as
|
|
3
|
-
import { clsx as
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
return /* @__PURE__ */ a(
|
|
7
|
-
s,
|
|
8
|
-
{
|
|
9
|
-
ref: t,
|
|
10
|
-
as: "section",
|
|
11
|
-
className: m(o, f.card, "card"),
|
|
12
|
-
...c,
|
|
13
|
-
children: r
|
|
14
|
-
}
|
|
15
|
-
);
|
|
1
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import { VStack as m } from "../../stacks/v_stack.js";
|
|
3
|
+
import { clsx as f } from "clsx";
|
|
4
|
+
import s from "react";
|
|
5
|
+
const x = s.forwardRef(function({ children: r, className: o, ...t }, a) {
|
|
6
|
+
return /* @__PURE__ */ c(m, { ref: a, as: "section", className: f(o, "tcn-card"), ...t, children: r });
|
|
16
7
|
});
|
|
17
8
|
export {
|
|
18
|
-
|
|
9
|
+
x as Card
|
|
19
10
|
};
|
|
20
11
|
//# sourceMappingURL=card.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card.js","sources":["../../../src/surfaces/card/card.tsx"],"sourcesContent":["import { VStack, type VStackProps } from '../../stacks/v_stack.js';\nimport { clsx } from 'clsx';\nimport React from 'react';\
|
|
1
|
+
{"version":3,"file":"card.js","sources":["../../../src/surfaces/card/card.tsx"],"sourcesContent":["import { VStack, type VStackProps } from '../../stacks/v_stack.js';\nimport { clsx } from 'clsx';\nimport React from 'react';\n\nexport interface CardProps extends Omit<VStackProps, 'as' | 'children'> {\n children?: React.ReactNode;\n}\n\nexport const Card = React.forwardRef<HTMLElement, CardProps>(function Card(\n { children, className, ...props }: CardProps,\n ref\n) {\n return (\n <VStack ref={ref} as=\"section\" className={clsx(className, 'tcn-card')} {...props}>\n {children}\n </VStack>\n );\n});\n"],"names":["Card","React","children","className","props","ref","jsx","VStack","clsx"],"mappings":";;;;AAQO,MAAMA,IAAOC,EAAM,WAAmC,SAC3D,EAAE,UAAAC,GAAU,WAAAC,GAAW,GAAGC,EAAA,GAC1BC,GACA;AACA,SACE,gBAAAC,EAACC,GAAA,EAAO,KAAAF,GAAU,IAAG,WAAU,WAAWG,EAAKL,GAAW,UAAU,GAAI,GAAGC,GACxE,UAAAF,EAAA,CACH;AAEJ,CAAC;"}
|
|
@@ -4,16 +4,16 @@ import { clsx as s } from "clsx";
|
|
|
4
4
|
import { Spacer as N } from "../../stacks/spacer.js";
|
|
5
5
|
import { VStack as T } from "../../stacks/v_stack.js";
|
|
6
6
|
import { ZStack as R } from "../../stacks/z_stack.js";
|
|
7
|
-
import {
|
|
7
|
+
import { Portal as j } from "../../overlay/portal/portal.js";
|
|
8
8
|
import { BodyText as B } from "../../typography/body_text/body_text.js";
|
|
9
9
|
import "../../callout.module-D8ECmxpO.js";
|
|
10
10
|
import "../../caption.module-DDq0H4xZ.js";
|
|
11
11
|
import "../../footnote.module-DEyFuqOr.js";
|
|
12
12
|
import "../../headline.module-BiwHBtGf.js";
|
|
13
13
|
import "../../subheadline.module-C-v7zMkQ.js";
|
|
14
|
-
import { Title as
|
|
14
|
+
import { Title as b } from "../../typography/title/title.js";
|
|
15
15
|
import { Box as c } from "../../stacks/box/box.js";
|
|
16
|
-
import '../../confirm.css';const
|
|
16
|
+
import '../../confirm.css';const v = "_confirm_e53f865", z = "_shake_d5d9154", A = "_actions_b7ffee5", m = { confirm: v, shake: z, actions: A }, U = w.forwardRef(function({
|
|
17
17
|
open: a,
|
|
18
18
|
graphic: f,
|
|
19
19
|
title: h,
|
|
@@ -48,7 +48,7 @@ import '../../confirm.css';const b = "_confirm_e53f865", v = "_shake_d5d9154", z
|
|
|
48
48
|
...k,
|
|
49
49
|
children: /* @__PURE__ */ i(T, { hAlign: "center", children: [
|
|
50
50
|
f,
|
|
51
|
-
/* @__PURE__ */ r(
|
|
51
|
+
/* @__PURE__ */ r(b, { className: "confirm-title", emphasis: "strong", size: "sm", children: h }),
|
|
52
52
|
/* @__PURE__ */ r(B, { className: "confirm-description", hierarchy: "tertiary", children: l }),
|
|
53
53
|
/* @__PURE__ */ r(N, { height: "16px" }),
|
|
54
54
|
/* @__PURE__ */ r(c, { className: s(m.actions, "confirm-actions"), height: "auto", children: p })
|
package/dist/themes/index.js
CHANGED
|
@@ -1,144 +1,9 @@
|
|
|
1
|
-
import { theme as
|
|
2
|
-
import { Theme as
|
|
3
|
-
|
|
4
|
-
html,
|
|
5
|
-
body,
|
|
6
|
-
div,
|
|
7
|
-
span,
|
|
8
|
-
applet,
|
|
9
|
-
object,
|
|
10
|
-
iframe,
|
|
11
|
-
h1,
|
|
12
|
-
h2,
|
|
13
|
-
h3,
|
|
14
|
-
h4,
|
|
15
|
-
h5,
|
|
16
|
-
h6,
|
|
17
|
-
p,
|
|
18
|
-
blockquote,
|
|
19
|
-
pre,
|
|
20
|
-
a,
|
|
21
|
-
abbr,
|
|
22
|
-
acronym,
|
|
23
|
-
address,
|
|
24
|
-
big,
|
|
25
|
-
cite,
|
|
26
|
-
code,
|
|
27
|
-
del,
|
|
28
|
-
dfn,
|
|
29
|
-
em,
|
|
30
|
-
img,
|
|
31
|
-
ins,
|
|
32
|
-
kbd,
|
|
33
|
-
q,
|
|
34
|
-
s,
|
|
35
|
-
samp,
|
|
36
|
-
small,
|
|
37
|
-
strike,
|
|
38
|
-
strong,
|
|
39
|
-
sub,
|
|
40
|
-
sup,
|
|
41
|
-
tt,
|
|
42
|
-
var,
|
|
43
|
-
b,
|
|
44
|
-
u,
|
|
45
|
-
i,
|
|
46
|
-
center,
|
|
47
|
-
dl,
|
|
48
|
-
dt,
|
|
49
|
-
dd,
|
|
50
|
-
ol,
|
|
51
|
-
ul,
|
|
52
|
-
li,
|
|
53
|
-
fieldset,
|
|
54
|
-
form,
|
|
55
|
-
label,
|
|
56
|
-
legend,
|
|
57
|
-
table,
|
|
58
|
-
caption,
|
|
59
|
-
tbody,
|
|
60
|
-
tfoot,
|
|
61
|
-
thead,
|
|
62
|
-
tr,
|
|
63
|
-
th,
|
|
64
|
-
td,
|
|
65
|
-
article,
|
|
66
|
-
aside,
|
|
67
|
-
canvas,
|
|
68
|
-
details,
|
|
69
|
-
embed,
|
|
70
|
-
figure,
|
|
71
|
-
figcaption,
|
|
72
|
-
footer,
|
|
73
|
-
header,
|
|
74
|
-
hgroup,
|
|
75
|
-
menu,
|
|
76
|
-
nav,
|
|
77
|
-
output,
|
|
78
|
-
ruby,
|
|
79
|
-
section,
|
|
80
|
-
summary,
|
|
81
|
-
time,
|
|
82
|
-
mark,
|
|
83
|
-
audio,
|
|
84
|
-
video {
|
|
85
|
-
margin: 0;
|
|
86
|
-
padding: 0;
|
|
87
|
-
border: 0;
|
|
88
|
-
font-size: 100%;
|
|
89
|
-
font: inherit;
|
|
90
|
-
vertical-align: baseline;
|
|
91
|
-
}
|
|
92
|
-
/* HTML5 display-role reset for older browsers */
|
|
93
|
-
article,
|
|
94
|
-
aside,
|
|
95
|
-
details,
|
|
96
|
-
figcaption,
|
|
97
|
-
figure,
|
|
98
|
-
footer,
|
|
99
|
-
header,
|
|
100
|
-
hgroup,
|
|
101
|
-
menu,
|
|
102
|
-
nav,
|
|
103
|
-
section {
|
|
104
|
-
display: block;
|
|
105
|
-
}
|
|
106
|
-
body {
|
|
107
|
-
line-height: 1;
|
|
108
|
-
}
|
|
109
|
-
ol,
|
|
110
|
-
ul {
|
|
111
|
-
list-style: none;
|
|
112
|
-
}
|
|
113
|
-
blockquote,
|
|
114
|
-
q {
|
|
115
|
-
quotes: none;
|
|
116
|
-
}
|
|
117
|
-
blockquote:before,
|
|
118
|
-
blockquote:after,
|
|
119
|
-
q:before,
|
|
120
|
-
q:after {
|
|
121
|
-
content: "";
|
|
122
|
-
content: none;
|
|
123
|
-
}
|
|
124
|
-
table {
|
|
125
|
-
border-collapse: collapse;
|
|
126
|
-
border-spacing: 0;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
legend {
|
|
130
|
-
all: unset;
|
|
131
|
-
display: block;
|
|
132
|
-
margin: 0;
|
|
133
|
-
padding: 0;
|
|
134
|
-
font: inherit;
|
|
135
|
-
color: inherit;
|
|
136
|
-
}
|
|
137
|
-
`, e = new CSSStyleSheet();
|
|
138
|
-
e.replaceSync(n);
|
|
1
|
+
import { theme as o } from "./theme_variables.js";
|
|
2
|
+
import { Theme as t } from "./theme.js";
|
|
3
|
+
import { reset as p } from "./stylesheets/reset.js";
|
|
139
4
|
export {
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
5
|
+
t as Theme,
|
|
6
|
+
p as reset,
|
|
7
|
+
o as theme
|
|
143
8
|
};
|
|
144
9
|
//# sourceMappingURL=index.js.map
|
package/dist/themes/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
const n = `/* https://meyerweb.com/eric/tools/css/reset/ v2.0 | 20110126 */
|
|
2
|
+
html,
|
|
3
|
+
body,
|
|
4
|
+
div,
|
|
5
|
+
span,
|
|
6
|
+
applet,
|
|
7
|
+
object,
|
|
8
|
+
iframe,
|
|
9
|
+
h1,
|
|
10
|
+
h2,
|
|
11
|
+
h3,
|
|
12
|
+
h4,
|
|
13
|
+
h5,
|
|
14
|
+
h6,
|
|
15
|
+
p,
|
|
16
|
+
blockquote,
|
|
17
|
+
pre,
|
|
18
|
+
a,
|
|
19
|
+
abbr,
|
|
20
|
+
acronym,
|
|
21
|
+
address,
|
|
22
|
+
big,
|
|
23
|
+
cite,
|
|
24
|
+
code,
|
|
25
|
+
del,
|
|
26
|
+
dfn,
|
|
27
|
+
em,
|
|
28
|
+
img,
|
|
29
|
+
ins,
|
|
30
|
+
kbd,
|
|
31
|
+
q,
|
|
32
|
+
s,
|
|
33
|
+
samp,
|
|
34
|
+
small,
|
|
35
|
+
strike,
|
|
36
|
+
strong,
|
|
37
|
+
sub,
|
|
38
|
+
sup,
|
|
39
|
+
tt,
|
|
40
|
+
var,
|
|
41
|
+
b,
|
|
42
|
+
u,
|
|
43
|
+
i,
|
|
44
|
+
center,
|
|
45
|
+
dl,
|
|
46
|
+
dt,
|
|
47
|
+
dd,
|
|
48
|
+
ol,
|
|
49
|
+
ul,
|
|
50
|
+
li,
|
|
51
|
+
fieldset,
|
|
52
|
+
form,
|
|
53
|
+
label,
|
|
54
|
+
legend,
|
|
55
|
+
table,
|
|
56
|
+
caption,
|
|
57
|
+
tbody,
|
|
58
|
+
tfoot,
|
|
59
|
+
thead,
|
|
60
|
+
tr,
|
|
61
|
+
th,
|
|
62
|
+
td,
|
|
63
|
+
article,
|
|
64
|
+
aside,
|
|
65
|
+
canvas,
|
|
66
|
+
details,
|
|
67
|
+
embed,
|
|
68
|
+
figure,
|
|
69
|
+
figcaption,
|
|
70
|
+
footer,
|
|
71
|
+
header,
|
|
72
|
+
hgroup,
|
|
73
|
+
menu,
|
|
74
|
+
nav,
|
|
75
|
+
output,
|
|
76
|
+
ruby,
|
|
77
|
+
section,
|
|
78
|
+
summary,
|
|
79
|
+
time,
|
|
80
|
+
mark,
|
|
81
|
+
audio,
|
|
82
|
+
video {
|
|
83
|
+
margin: 0;
|
|
84
|
+
padding: 0;
|
|
85
|
+
border: 0;
|
|
86
|
+
font-size: 100%;
|
|
87
|
+
font: inherit;
|
|
88
|
+
vertical-align: baseline;
|
|
89
|
+
}
|
|
90
|
+
/* HTML5 display-role reset for older browsers */
|
|
91
|
+
article,
|
|
92
|
+
aside,
|
|
93
|
+
details,
|
|
94
|
+
figcaption,
|
|
95
|
+
figure,
|
|
96
|
+
footer,
|
|
97
|
+
header,
|
|
98
|
+
hgroup,
|
|
99
|
+
menu,
|
|
100
|
+
nav,
|
|
101
|
+
section {
|
|
102
|
+
display: block;
|
|
103
|
+
}
|
|
104
|
+
body {
|
|
105
|
+
line-height: 1;
|
|
106
|
+
}
|
|
107
|
+
ol,
|
|
108
|
+
ul {
|
|
109
|
+
list-style: none;
|
|
110
|
+
}
|
|
111
|
+
blockquote,
|
|
112
|
+
q {
|
|
113
|
+
quotes: none;
|
|
114
|
+
}
|
|
115
|
+
blockquote:before,
|
|
116
|
+
blockquote:after,
|
|
117
|
+
q:before,
|
|
118
|
+
q:after {
|
|
119
|
+
content: "";
|
|
120
|
+
content: none;
|
|
121
|
+
}
|
|
122
|
+
table {
|
|
123
|
+
border-collapse: collapse;
|
|
124
|
+
border-spacing: 0;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
legend {
|
|
128
|
+
all: unset;
|
|
129
|
+
display: block;
|
|
130
|
+
margin: 0;
|
|
131
|
+
padding: 0;
|
|
132
|
+
font: inherit;
|
|
133
|
+
color: inherit;
|
|
134
|
+
}
|
|
135
|
+
`, e = new CSSStyleSheet();
|
|
136
|
+
e.replaceSync(n);
|
|
137
|
+
export {
|
|
138
|
+
e as reset
|
|
139
|
+
};
|
|
140
|
+
//# sourceMappingURL=reset.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reset.js","sources":["../../../src/themes/stylesheets/reset.css?raw","../../../src/themes/stylesheets/reset.ts"],"sourcesContent":["export default \"/* https://meyerweb.com/eric/tools/css/reset/ v2.0 | 20110126 */\\nhtml,\\nbody,\\ndiv,\\nspan,\\napplet,\\nobject,\\niframe,\\nh1,\\nh2,\\nh3,\\nh4,\\nh5,\\nh6,\\np,\\nblockquote,\\npre,\\na,\\nabbr,\\nacronym,\\naddress,\\nbig,\\ncite,\\ncode,\\ndel,\\ndfn,\\nem,\\nimg,\\nins,\\nkbd,\\nq,\\ns,\\nsamp,\\nsmall,\\nstrike,\\nstrong,\\nsub,\\nsup,\\ntt,\\nvar,\\nb,\\nu,\\ni,\\ncenter,\\ndl,\\ndt,\\ndd,\\nol,\\nul,\\nli,\\nfieldset,\\nform,\\nlabel,\\nlegend,\\ntable,\\ncaption,\\ntbody,\\ntfoot,\\nthead,\\ntr,\\nth,\\ntd,\\narticle,\\naside,\\ncanvas,\\ndetails,\\nembed,\\nfigure,\\nfigcaption,\\nfooter,\\nheader,\\nhgroup,\\nmenu,\\nnav,\\noutput,\\nruby,\\nsection,\\nsummary,\\ntime,\\nmark,\\naudio,\\nvideo {\\n margin: 0;\\n padding: 0;\\n border: 0;\\n font-size: 100%;\\n font: inherit;\\n vertical-align: baseline;\\n}\\n/* HTML5 display-role reset for older browsers */\\narticle,\\naside,\\ndetails,\\nfigcaption,\\nfigure,\\nfooter,\\nheader,\\nhgroup,\\nmenu,\\nnav,\\nsection {\\n display: block;\\n}\\nbody {\\n line-height: 1;\\n}\\nol,\\nul {\\n list-style: none;\\n}\\nblockquote,\\nq {\\n quotes: none;\\n}\\nblockquote:before,\\nblockquote:after,\\nq:before,\\nq:after {\\n content: \\\"\\\";\\n content: none;\\n}\\ntable {\\n border-collapse: collapse;\\n border-spacing: 0;\\n}\\n\\nlegend {\\n all: unset;\\n display: block;\\n margin: 0;\\n padding: 0;\\n font: inherit;\\n color: inherit;\\n}\\n\"","import css from './reset.css?raw';\n\nexport const reset = new CSSStyleSheet();\nreset.replaceSync(css);\n"],"names":["css","reset"],"mappings":"AAAA,MAAAA,IAAe;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GCEFC,IAAQ,IAAI,cAAA;AACzBA,EAAM,YAAYD,CAAG;"}
|