@react95/core 8.0.0-alpha.4 → 8.0.0-alpha.5
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/esm/Alert/{Alert.css.js → Alert.css.mjs} +1 -1
- package/esm/Alert/{Alert.js → Alert.mjs} +3 -3
- package/esm/Avatar/{Avatar.css.js → Avatar.css.mjs} +1 -1
- package/esm/Avatar/{Avatar.js → Avatar.mjs} +2 -2
- package/esm/Button/Button.css.mjs +5 -0
- package/esm/Button/{Button.js → Button.mjs} +2 -2
- package/esm/Checkbox/{Checkbox.css.js → Checkbox.css.mjs} +1 -1
- package/esm/Checkbox/{Checkbox.js → Checkbox.mjs} +1 -1
- package/esm/Cursor/Cursor.css.mjs +5 -0
- package/esm/Dropdown/{Dropdown.css.js → Dropdown.css.mjs} +1 -1
- package/esm/Dropdown/{Dropdown.js → Dropdown.mjs} +3 -3
- package/esm/Fieldset/{Fieldset.css.js → Fieldset.css.mjs} +1 -1
- package/esm/Fieldset/{Fieldset.js → Fieldset.mjs} +2 -2
- package/esm/Frame/{Frame.css.js → Frame.css.mjs} +1 -1
- package/esm/Frame/{Frame.js → Frame.mjs} +1 -1
- package/esm/GlobalStyle/GlobalStyle.css.mjs +2 -0
- package/esm/{GlobalStyle.js → GlobalStyle.mjs} +1 -1
- package/esm/Input/Input.css.mjs +5 -0
- package/esm/Input/{Input.js → Input.mjs} +2 -2
- package/esm/List/{List.css.js → List.css.mjs} +1 -1
- package/esm/List/{List.js → List.mjs} +4 -4
- package/esm/List/{ListDivider.js → ListDivider.mjs} +2 -2
- package/esm/List/{ListItem.js → ListItem.mjs} +2 -2
- package/esm/Modal/{Modal.css.js → Modal.css.mjs} +1 -1
- package/esm/Modal/{Modal.js → Modal.mjs} +7 -7
- package/esm/Modal/{ModalProvider.js → ModalProvider.mjs} +1 -1
- package/esm/ProgressBar/{ProgressBar.css.js → ProgressBar.css.mjs} +1 -1
- package/esm/ProgressBar/{ProgressBar.js → ProgressBar.mjs} +2 -2
- package/esm/RadioButton/{RadioButton.css.js → RadioButton.css.mjs} +1 -1
- package/esm/RadioButton/{RadioButton.js → RadioButton.mjs} +1 -1
- package/esm/Range/Range.css.mjs +5 -0
- package/esm/Range/{Range.js → Range.mjs} +2 -2
- package/esm/Tabs/{Tab.js → Tab.mjs} +2 -2
- package/esm/Tabs/{Tabs.css.js → Tabs.css.mjs} +1 -1
- package/esm/Tabs/{Tabs.js → Tabs.mjs} +3 -3
- package/esm/TaskBar/{Clock.js → Clock.mjs} +3 -3
- package/esm/TaskBar/{TaskBar.css.js → TaskBar.css.mjs} +1 -1
- package/esm/TaskBar/{TaskBar.js → TaskBar.mjs} +5 -5
- package/esm/TaskBar/{WindowButton.js → WindowButton.mjs} +1 -1
- package/esm/TextArea/{TextArea.js → TextArea.mjs} +2 -2
- package/esm/TitleBar/{TitleBar.css.js → TitleBar.css.mjs} +1 -1
- package/esm/TitleBar/{TitleBar.js → TitleBar.mjs} +3 -3
- package/esm/Tooltip/{Tooltip.css.js → Tooltip.css.mjs} +1 -1
- package/esm/Tooltip/{Tooltip.js → Tooltip.mjs} +1 -1
- package/esm/Tree/{Node.js → Node.mjs} +2 -2
- package/esm/Tree/{Tree.css.js → Tree.css.mjs} +1 -1
- package/esm/Tree/{Tree.js → Tree.mjs} +3 -3
- package/esm/Video/{Video.css.js → Video.css.mjs} +1 -1
- package/esm/Video/{Video.js → Video.mjs} +9 -9
- package/esm/index.mjs +50 -0
- package/esm/themes/azureOrange.css.mjs +2 -0
- package/esm/themes/bee.css.mjs +2 -0
- package/esm/themes/blackAndWhite.css.mjs +2 -0
- package/esm/themes/brick.css.mjs +2 -0
- package/esm/themes/candy.css.mjs +2 -0
- package/esm/themes/coldGray.css.mjs +2 -0
- package/esm/themes/counterStrike.css.mjs +2 -0
- package/esm/themes/eggplant.css.mjs +2 -0
- package/esm/themes/highContrast.css.mjs +2 -0
- package/esm/themes/lilac.css.mjs +2 -0
- package/esm/themes/lilacRoseDark.css.mjs +2 -0
- package/esm/themes/maple.css.mjs +2 -0
- package/esm/themes/marine.css.mjs +2 -0
- package/esm/themes/matrix.css.mjs +2 -0
- package/esm/themes/millenium.css.mjs +2 -0
- package/esm/themes/modernDark.css.mjs +2 -0
- package/esm/themes/molecule.css.mjs +2 -0
- package/esm/themes/ninjaTurtles.css.mjs +2 -0
- package/esm/themes/olive.css.mjs +2 -0
- package/esm/themes/pamelaAnderson.css.mjs +2 -0
- package/esm/themes/plum.css.mjs +2 -0
- package/esm/themes/rainyDay.css.mjs +2 -0
- package/esm/themes/rose.css.mjs +2 -0
- package/esm/themes/slate.css.mjs +2 -0
- package/esm/themes/spruce.css.mjs +2 -0
- package/esm/themes/storm.css.mjs +2 -0
- package/esm/themes/theSixtiesUSA.css.mjs +2 -0
- package/esm/themes/tokyoDark.css.mjs +2 -0
- package/esm/themes/tooSexy.css.mjs +2 -0
- package/esm/themes/travel.css.mjs +2 -0
- package/esm/themes/vaporTeal.css.mjs +2 -0
- package/esm/themes/vermillion.css.mjs +2 -0
- package/esm/themes/violetDark.css.mjs +2 -0
- package/esm/themes/water.css.mjs +2 -0
- package/esm/themes/win95.css.mjs +2 -0
- package/esm/themes.mjs +72 -0
- package/package.json +7 -6
- package/esm/Button/Button.css.js +0 -5
- package/esm/Cursor/Cursor.css.js +0 -5
- package/esm/GlobalStyle/GlobalStyle.css.js +0 -2
- package/esm/Input/Input.css.js +0 -5
- package/esm/Range/Range.css.js +0 -5
- package/esm/index.js +0 -50
- package/esm/themes/azureOrange.css.js +0 -2
- package/esm/themes/bee.css.js +0 -2
- package/esm/themes/blackAndWhite.css.js +0 -2
- package/esm/themes/brick.css.js +0 -2
- package/esm/themes/candy.css.js +0 -2
- package/esm/themes/coldGray.css.js +0 -2
- package/esm/themes/counterStrike.css.js +0 -2
- package/esm/themes/eggplant.css.js +0 -2
- package/esm/themes/highContrast.css.js +0 -2
- package/esm/themes/lilac.css.js +0 -2
- package/esm/themes/lilacRoseDark.css.js +0 -2
- package/esm/themes/maple.css.js +0 -2
- package/esm/themes/marine.css.js +0 -2
- package/esm/themes/matrix.css.js +0 -2
- package/esm/themes/millenium.css.js +0 -2
- package/esm/themes/modernDark.css.js +0 -2
- package/esm/themes/molecule.css.js +0 -2
- package/esm/themes/ninjaTurtles.css.js +0 -2
- package/esm/themes/olive.css.js +0 -2
- package/esm/themes/pamelaAnderson.css.js +0 -2
- package/esm/themes/plum.css.js +0 -2
- package/esm/themes/rainyDay.css.js +0 -2
- package/esm/themes/rose.css.js +0 -2
- package/esm/themes/slate.css.js +0 -2
- package/esm/themes/spruce.css.js +0 -2
- package/esm/themes/storm.css.js +0 -2
- package/esm/themes/theSixtiesUSA.css.js +0 -2
- package/esm/themes/tokyoDark.css.js +0 -2
- package/esm/themes/tooSexy.css.js +0 -2
- package/esm/themes/travel.css.js +0 -2
- package/esm/themes/vaporTeal.css.js +0 -2
- package/esm/themes/vermillion.css.js +0 -2
- package/esm/themes/violetDark.css.js +0 -2
- package/esm/themes/water.css.js +0 -2
- package/esm/themes/win95.css.js +0 -2
- package/esm/themes.js +0 -72
- /package/esm/Alert/assets/{chord.mp3.js → chord.mp3.mjs} +0 -0
- /package/esm/Modal/{ModalContext.js → ModalContext.mjs} +0 -0
- /package/esm/Modal/{close.svg.js → close.svg.mjs} +0 -0
- /package/esm/Modal/{help.svg.js → help.svg.mjs} +0 -0
- /package/esm/Video/buttons/{Fullscreen.js → Fullscreen.mjs} +0 -0
- /package/esm/Video/buttons/{Pause.js → Pause.mjs} +0 -0
- /package/esm/Video/buttons/{Play.js → Play.mjs} +0 -0
- /package/esm/Video/buttons/{Stop.js → Stop.mjs} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React__default, { forwardRef, useEffect } from "react";
|
|
2
2
|
import { User4, User2, User3, User5 } from "@react95/icons";
|
|
3
|
-
import { dialog, icon, message } from "./Alert.css.
|
|
4
|
-
import { Modal } from "../Modal/Modal.
|
|
5
|
-
import sound from "./assets/chord.mp3.
|
|
3
|
+
import { dialog, icon, message } from "./Alert.css.mjs";
|
|
4
|
+
import { Modal } from "../Modal/Modal.mjs";
|
|
5
|
+
import sound from "./assets/chord.mp3.mjs";
|
|
6
6
|
const RenderImage = ({ option }) => {
|
|
7
7
|
switch (option) {
|
|
8
8
|
case "info":
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './Avatar.css.ts.vanilla.css';
|
|
2
|
-
/* empty css
|
|
2
|
+
/* empty css */import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
3
3
|
var avatar = createRuntimeFn({ defaultClassName: "r95_vljy2n0", variantClassNames: { circle: { true: "r95_vljy2n1" } }, defaultVariants: {}, compoundVariants: [] });
|
|
4
4
|
var imgStyle = "r95_vljy2n2";
|
|
5
5
|
export {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import { avatar, imgStyle } from "./Avatar.css.
|
|
3
|
-
import { Frame } from "../Frame/Frame.
|
|
2
|
+
import { avatar, imgStyle } from "./Avatar.css.mjs";
|
|
3
|
+
import { Frame } from "../Frame/Frame.mjs";
|
|
4
4
|
const Avatar = React.forwardRef(
|
|
5
5
|
({ src, srcSet, alt, circle, children, size = "48px", ...otherProps }, ref) => /* @__PURE__ */ React.createElement(Frame, { className: avatar({ circle }), ref, ...otherProps, size }, src || srcSet ? /* @__PURE__ */ React.createElement("img", { className: imgStyle, src, srcSet, alt }) : children)
|
|
6
6
|
);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React__default, { forwardRef } from "react";
|
|
2
2
|
import cn from "classnames";
|
|
3
|
-
import { button } from "./Button.css.
|
|
4
|
-
import { Frame } from "../Frame/Frame.
|
|
3
|
+
import { button } from "./Button.css.mjs";
|
|
4
|
+
import { Frame } from "../Frame/Frame.mjs";
|
|
5
5
|
const Button = forwardRef(
|
|
6
6
|
(props, ref) => {
|
|
7
7
|
return /* @__PURE__ */ React__default.createElement(
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React__default, { forwardRef } from "react";
|
|
2
|
-
import { label, field, icon, text } from "./Checkbox.css.
|
|
2
|
+
import { label, field, icon, text } from "./Checkbox.css.mjs";
|
|
3
3
|
const Checkbox = forwardRef(
|
|
4
4
|
({ children, style, label: label$1, disabled = false, ...rest }, ref) => /* @__PURE__ */ React__default.createElement("label", { style, className: label }, /* @__PURE__ */ React__default.createElement(
|
|
5
5
|
"input",
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import './Cursor.css.ts.vanilla.css';
|
|
2
|
+
/* empty css */var Cursor = { Auto: "r95_22fi80", Text: "r95_22fi81", VerticalText: "r95_22fi82", Help: "r95_22fi83", Crosshair: "r95_22fi84", Pointer: "r95_22fi85", Progress: "r95_22fi86", Wait: "r95_22fi87", Alias: "r95_22fi88", Copy: "r95_22fi89", Move: "r95_22fi8a", None: "r95_22fi8b", NoDrop: "r95_22fi8c", NotAllowed: "r95_22fi8d", Grab: "r95_22fi8e", Grabbing: "r95_22fi8f", ColResize: "r95_22fi8g", RowResize: "r95_22fi8h", NResize: "r95_22fi8i", EResize: "r95_22fi8j", SResize: "r95_22fi8k", WResize: "r95_22fi8l", NsResize: "r95_22fi8m", EwResize: "r95_22fi8n", NeResize: "r95_22fi8o", NwResize: "r95_22fi8p", SeResize: "r95_22fi8q", SwResize: "r95_22fi8r", NeswResize: "r95_22fi8s", NwseResize: "r95_22fi8t", ZoomIn: "r95_22fi8u", ZoomOut: "r95_22fi8v" };
|
|
3
|
+
export {
|
|
4
|
+
Cursor
|
|
5
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React__default, { forwardRef } from "react";
|
|
2
2
|
import cn from "classnames";
|
|
3
|
-
import { wrapper, select } from "./Dropdown.css.
|
|
4
|
-
import { Frame } from "../Frame/Frame.
|
|
5
|
-
import { sprinkles } from "../Frame/Frame.css.
|
|
3
|
+
import { wrapper, select } from "./Dropdown.css.mjs";
|
|
4
|
+
import { Frame } from "../Frame/Frame.mjs";
|
|
5
|
+
import { sprinkles } from "../Frame/Frame.css.mjs";
|
|
6
6
|
const defaultOptions = [
|
|
7
7
|
"",
|
|
8
8
|
"C:\\Documents and Settings",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React__default, { forwardRef } from "react";
|
|
2
|
-
import { field, legend } from "./Fieldset.css.
|
|
3
|
-
import { Frame } from "../Frame/Frame.
|
|
2
|
+
import { field, legend } from "./Fieldset.css.mjs";
|
|
3
|
+
import { Frame } from "../Frame/Frame.mjs";
|
|
4
4
|
const Fieldset = forwardRef(
|
|
5
5
|
({ legend: legend$1, children, ...rest }, ref) => /* @__PURE__ */ React__default.createElement(Frame, { as: "fieldset", ...rest, ref, className: field }, legend$1 && /* @__PURE__ */ React__default.createElement("legend", { className: legend }, legend$1), children)
|
|
6
6
|
);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './Frame.css.ts.vanilla.css';
|
|
2
|
-
/* empty css
|
|
2
|
+
/* empty css */import { createRuntimeFn } from "rainbow-sprinkles/createRuntimeFn";
|
|
3
3
|
var sprinkles = createRuntimeFn(function() {
|
|
4
4
|
var x = { config: { bgColor: { mappings: ["backgroundColor"] }, backgroundColor: { vars: { "default": "var(--r95_iuzg893o)" }, dynamic: { "default": "r95_iuzg893p" }, dynamicScale: { anchor: "var(--r95-color-anchor)", anchorVisited: "var(--r95-color-anchorVisited)", borderDark: "var(--r95-color-borderDark)", borderDarkest: "var(--r95-color-borderDarkest)", borderLight: "var(--r95-color-borderLight)", borderLighter: "var(--r95-color-borderLighter)", borderLightest: "var(--r95-color-borderLightest)", canvas: "var(--r95-color-canvas)", canvasText: "var(--r95-color-canvasText)", headerBackground: "var(--r95-color-headerBackground)", headerNotActiveBackground: "var(--r95-color-headerNotActiveBackground)", headerNotActiveText: "var(--r95-color-headerNotActiveText)", headerText: "var(--r95-color-headerText)", material: "var(--r95-color-material)", materialText: "var(--r95-color-materialText)", materialTextDisabled: "var(--r95-color-materialTextDisabled)", materialTextDisabledShadow: "var(--r95-color-materialTextDisabledShadow)", materialTextInvert: "var(--r95-color-materialTextInvert)", progress: "var(--r95-color-progress)", inputBackground: "var(--r95-color-inputBackground)", inputBackgroundDisabled: "var(--r95-color-inputBackgroundDisabled)" }, name: "backgroundColor" }, color: { vars: { "default": "var(--r95_iuzg893q)" }, dynamic: { "default": "r95_iuzg893r" }, dynamicScale: void 0, name: "color" } } };
|
|
5
5
|
x.config.color.dynamicScale = x.config.backgroundColor.dynamicScale;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import { Frame } from "../Frame/Frame.
|
|
3
|
-
import { input } from "./Input.css.
|
|
2
|
+
import { Frame } from "../Frame/Frame.mjs";
|
|
3
|
+
import { input } from "./Input.css.mjs";
|
|
4
4
|
const Input = React.forwardRef(
|
|
5
5
|
(rest, ref) => /* @__PURE__ */ React.createElement(Frame, { ...rest, ref, className: input, as: "input" })
|
|
6
6
|
);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ListItem } from "./ListItem.
|
|
2
|
-
import { Divider } from "./ListDivider.
|
|
3
|
-
import { Frame } from "../Frame/Frame.
|
|
1
|
+
import { ListItem } from "./ListItem.mjs";
|
|
2
|
+
import { Divider } from "./ListDivider.mjs";
|
|
3
|
+
import { Frame } from "../Frame/Frame.mjs";
|
|
4
4
|
import React__default from "react";
|
|
5
|
-
import { list } from "./List.css.
|
|
5
|
+
import { list } from "./List.css.mjs";
|
|
6
6
|
import cn from "classnames";
|
|
7
7
|
const ListRenderer = React__default.forwardRef(
|
|
8
8
|
(rest, ref) => /* @__PURE__ */ React__default.createElement(Frame, { ...rest, ref, className: cn(list, rest.className), as: "ul" })
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React__default from "react";
|
|
2
|
-
import { Frame } from "../Frame/Frame.
|
|
3
|
-
import { divider } from "./List.css.
|
|
2
|
+
import { Frame } from "../Frame/Frame.mjs";
|
|
3
|
+
import { divider } from "./List.css.mjs";
|
|
4
4
|
import cn from "classnames";
|
|
5
5
|
const Divider = React__default.forwardRef(
|
|
6
6
|
(rest, ref) => /* @__PURE__ */ React__default.createElement(
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React__default, { forwardRef } from "react";
|
|
2
2
|
import cn from "classnames";
|
|
3
|
-
import { Frame } from "../Frame/Frame.
|
|
4
|
-
import { listItem } from "./List.css.
|
|
3
|
+
import { Frame } from "../Frame/Frame.mjs";
|
|
4
|
+
import { listItem } from "./List.css.mjs";
|
|
5
5
|
const Item = React__default.forwardRef((rest, ref) => /* @__PURE__ */ React__default.createElement(Frame, { ...rest, ref, className: cn(listItem, rest.className), as: "li" }));
|
|
6
6
|
const ListItem = forwardRef(
|
|
7
7
|
({ icon, children = [], ...rest }, ref) => /* @__PURE__ */ React__default.createElement(Item, { ...rest, ref }, icon, children)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './Modal.css.ts.vanilla.css';
|
|
2
|
-
/* empty css
|
|
2
|
+
/* empty css */import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
3
3
|
var buttonWrapper = "r95_1txblt62";
|
|
4
4
|
var content = "r95_1txblt63";
|
|
5
5
|
var menuItem = createRuntimeFn({ defaultClassName: "r95_1txblt65", variantClassNames: { active: { true: "r95_1txblt66" } }, defaultVariants: {}, compoundVariants: [] });
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import Draggable from "react-draggable";
|
|
3
|
-
import { Button } from "../Button/Button.
|
|
4
|
-
import { TitleBar } from "../TitleBar/TitleBar.
|
|
5
|
-
import { ModalContext } from "./ModalContext.
|
|
6
|
-
import { modalWrapper, menuWrapper, menuItem, content, buttonWrapper } from "./Modal.css.
|
|
7
|
-
import { Frame } from "../Frame/Frame.
|
|
8
|
-
import close from "./close.svg.
|
|
9
|
-
import help from "./help.svg.
|
|
3
|
+
import { Button } from "../Button/Button.mjs";
|
|
4
|
+
import { TitleBar } from "../TitleBar/TitleBar.mjs";
|
|
5
|
+
import { ModalContext } from "./ModalContext.mjs";
|
|
6
|
+
import { modalWrapper, menuWrapper, menuItem, content, buttonWrapper } from "./Modal.css.mjs";
|
|
7
|
+
import { Frame } from "../Frame/Frame.mjs";
|
|
8
|
+
import close from "./close.svg.mjs";
|
|
9
|
+
import help from "./help.svg.mjs";
|
|
10
10
|
const ModalRenderer = ({
|
|
11
11
|
hasWindowButton: hasButton = true,
|
|
12
12
|
buttons = [],
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { nanoid } from "nanoid";
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
import { ModalContext } from "./ModalContext.
|
|
3
|
+
import { ModalContext } from "./ModalContext.mjs";
|
|
4
4
|
const windowStackReducer = (state, action) => {
|
|
5
5
|
const newWindows = { ...state };
|
|
6
6
|
switch (action.type) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React__default, { forwardRef } from "react";
|
|
2
2
|
import cn from "classnames";
|
|
3
|
-
import { Frame } from "../Frame/Frame.
|
|
4
|
-
import { wrapper, whiteBar, container, progress } from "./ProgressBar.css.
|
|
3
|
+
import { Frame } from "../Frame/Frame.mjs";
|
|
4
|
+
import { wrapper, whiteBar, container, progress } from "./ProgressBar.css.mjs";
|
|
5
5
|
const ProgressBar = forwardRef(
|
|
6
6
|
({ width = "150px", percent = 0, ...rest }, ref) => /* @__PURE__ */ React__default.createElement(
|
|
7
7
|
Frame,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React__default, { forwardRef } from "react";
|
|
2
|
-
import { label, field, icon, text } from "./RadioButton.css.
|
|
2
|
+
import { label, field, icon, text } from "./RadioButton.css.mjs";
|
|
3
3
|
const RadioButton = forwardRef(
|
|
4
4
|
({ children, disabled, ...props }, ref) => /* @__PURE__ */ React__default.createElement("label", { className: label }, /* @__PURE__ */ React__default.createElement(
|
|
5
5
|
"input",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import { Frame } from "../Frame/Frame.
|
|
3
|
-
import { range } from "./Range.css.
|
|
2
|
+
import { Frame } from "../Frame/Frame.mjs";
|
|
3
|
+
import { range } from "./Range.css.mjs";
|
|
4
4
|
import cn from "classnames";
|
|
5
5
|
const Range = React.forwardRef(
|
|
6
6
|
(rest, ref) => /* @__PURE__ */ React.createElement(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React__default, { forwardRef } from "react";
|
|
2
|
-
import { tab } from "./Tabs.css.
|
|
3
|
-
import { Frame } from "../Frame/Frame.
|
|
2
|
+
import { tab } from "./Tabs.css.mjs";
|
|
3
|
+
import { Frame } from "../Frame/Frame.mjs";
|
|
4
4
|
const Tab = forwardRef(
|
|
5
5
|
({ activeTab, title, ...rest }, ref) => /* @__PURE__ */ React__default.createElement(
|
|
6
6
|
Frame,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './Tabs.css.ts.vanilla.css';
|
|
2
|
-
/* empty css
|
|
2
|
+
/* empty css */import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
3
3
|
var navContainer = "r95_fyllcd1";
|
|
4
4
|
var navbar = "r95_fyllcd0";
|
|
5
5
|
var tab = createRuntimeFn({ defaultClassName: "r95_fyllcd2", variantClassNames: { active: { true: "r95_fyllcd3" } }, defaultVariants: {}, compoundVariants: [] });
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React__default, { forwardRef } from "react";
|
|
2
2
|
import cn from "classnames";
|
|
3
|
-
import { Tab } from "./Tab.
|
|
4
|
-
import { navbar, navContainer } from "./Tabs.css.
|
|
5
|
-
import { Frame } from "../Frame/Frame.
|
|
3
|
+
import { Tab } from "./Tab.mjs";
|
|
4
|
+
import { navbar, navContainer } from "./Tabs.css.mjs";
|
|
5
|
+
import { Frame } from "../Frame/Frame.mjs";
|
|
6
6
|
const Tabs = forwardRef(
|
|
7
7
|
({ children, defaultActiveTab, onChange, ...rest }, ref) => {
|
|
8
8
|
const [firstTab] = React__default.Children.toArray(children);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React__default, { useState, useEffect } from "react";
|
|
2
|
-
import { Frame } from "../Frame/Frame.
|
|
3
|
-
import { Tooltip } from "../Tooltip/Tooltip.
|
|
4
|
-
import { tooltip } from "./TaskBar.css.
|
|
2
|
+
import { Frame } from "../Frame/Frame.mjs";
|
|
3
|
+
import { Tooltip } from "../Tooltip/Tooltip.mjs";
|
|
4
|
+
import { tooltip } from "./TaskBar.css.mjs";
|
|
5
5
|
const Clock = () => {
|
|
6
6
|
const [timer, setTimer] = useState("");
|
|
7
7
|
useEffect(() => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './TaskBar.css.ts.vanilla.css';
|
|
2
|
-
/* empty css
|
|
2
|
+
/* empty css */import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
3
3
|
var icon = "r95_1ct83mo9";
|
|
4
4
|
var tooltip = "r95_1ct83mo1";
|
|
5
5
|
var truncate = "r95_1ct83mo0";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React__default, { forwardRef, useState, useContext } from "react";
|
|
2
|
-
import { ModalContext } from "../Modal/ModalContext.
|
|
3
|
-
import { Frame } from "../Frame/Frame.
|
|
4
|
-
import { Clock } from "./Clock.
|
|
5
|
-
import { WindowButton } from "./WindowButton.
|
|
2
|
+
import { ModalContext } from "../Modal/ModalContext.mjs";
|
|
3
|
+
import { Frame } from "../Frame/Frame.mjs";
|
|
4
|
+
import { Clock } from "./Clock.mjs";
|
|
5
|
+
import { WindowButton } from "./WindowButton.mjs";
|
|
6
6
|
import { Logo } from "@react95/icons";
|
|
7
|
-
import { truncate } from "./TaskBar.css.
|
|
7
|
+
import { truncate } from "./TaskBar.css.mjs";
|
|
8
8
|
const TaskBar = forwardRef(
|
|
9
9
|
({ list }, ref) => {
|
|
10
10
|
const [showList, toggleShowList] = useState(false);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React__default, { forwardRef } from "react";
|
|
2
|
-
import { windowsButton, icon } from "./TaskBar.css.
|
|
2
|
+
import { windowsButton, icon } from "./TaskBar.css.mjs";
|
|
3
3
|
const WindowButton = forwardRef(
|
|
4
4
|
({ children, small = false, icon: icon$1, active = false, ...props }, ref) => /* @__PURE__ */ React__default.createElement(
|
|
5
5
|
"button",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import { Frame } from "../Frame/Frame.
|
|
3
|
-
import { input } from "../Input/Input.css.
|
|
2
|
+
import { Frame } from "../Frame/Frame.mjs";
|
|
3
|
+
import { input } from "../Input/Input.css.mjs";
|
|
4
4
|
const TextArea = React.forwardRef(
|
|
5
5
|
(rest, ref) => /* @__PURE__ */ React.createElement(Frame, { ...rest, ref, className: input, as: "textarea" })
|
|
6
6
|
);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './TitleBar.css.ts.vanilla.css';
|
|
2
|
-
/* empty css
|
|
2
|
+
/* empty css */import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
3
3
|
var option = "r95_1kpzw681";
|
|
4
4
|
var optionsBox = "r95_1kpzw680";
|
|
5
5
|
var title = "r95_1kpzw685";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React__default from "react";
|
|
2
|
-
import { Frame } from "../Frame/Frame.
|
|
3
|
-
import { optionsBox, option, titleBarBackground, title } from "./TitleBar.css.
|
|
4
|
-
import { button } from "../Button/Button.css.
|
|
2
|
+
import { Frame } from "../Frame/Frame.mjs";
|
|
3
|
+
import { optionsBox, option, titleBarBackground, title } from "./TitleBar.css.mjs";
|
|
4
|
+
import { button } from "../Button/Button.css.mjs";
|
|
5
5
|
import cn from "classnames";
|
|
6
6
|
const OptionsBox = React__default.forwardRef((rest, ref) => /* @__PURE__ */ React__default.createElement(
|
|
7
7
|
Frame,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { MediaCd, FileText, Bat, FileFont2, FilePen, FileSettings, FileTextSettings, BatExec, FolderOpen, Folder } from "@react95/icons";
|
|
3
|
-
import { node, nodeContent, folderStatus, iconContainer, label, tree, nodeRoot } from "./Tree.css.
|
|
4
|
-
import { Frame } from "../Frame/Frame.
|
|
3
|
+
import { node, nodeContent, folderStatus, iconContainer, label, tree, nodeRoot } from "./Tree.css.mjs";
|
|
4
|
+
import { Frame } from "../Frame/Frame.mjs";
|
|
5
5
|
import cn from "classnames";
|
|
6
6
|
const icons = {
|
|
7
7
|
FILE_MEDIA: MediaCd,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './Tree.css.ts.vanilla.css';
|
|
2
|
-
/* empty css
|
|
2
|
+
/* empty css */import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
3
3
|
var folderStatus = "r95_z2881c5";
|
|
4
4
|
var iconContainer = createRuntimeFn({ defaultClassName: "r95_z2881c6", variantClassNames: { hasChildren: { true: "r95_z2881c7", false: "r95_z2881c8" } }, defaultVariants: {}, compoundVariants: [] });
|
|
5
5
|
var label = "r95_z2881c4";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React__default, { forwardRef } from "react";
|
|
2
|
-
import { NodeRoot, Node, icons } from "./Node.
|
|
3
|
-
import { tree } from "./Tree.css.
|
|
4
|
-
import { Frame } from "../Frame/Frame.
|
|
2
|
+
import { NodeRoot, Node, icons } from "./Node.mjs";
|
|
3
|
+
import { tree } from "./Tree.css.mjs";
|
|
4
|
+
import { Frame } from "../Frame/Frame.mjs";
|
|
5
5
|
const Tree = forwardRef(
|
|
6
6
|
({ data, root, ...rest }, ref) => {
|
|
7
7
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, root && /* @__PURE__ */ React__default.createElement(NodeRoot, { ...root }), /* @__PURE__ */ React__default.createElement(Frame, { ...rest, className: tree, as: "ul", ref }, data.map((dataNode) => /* @__PURE__ */ React__default.createElement(Node, { key: dataNode.id, ...dataNode }))));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './Video.css.ts.vanilla.css';
|
|
2
|
-
/* empty css
|
|
2
|
+
/* empty css */import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
3
3
|
var controlBtn = "r95_13gnpv09";
|
|
4
4
|
var controls = "r95_13gnpv03";
|
|
5
5
|
var countDownContainer = "r95_13gnpv04";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { Mplayer113, User4 } from "@react95/icons";
|
|
3
|
-
import { videoTag, divider, countDownContainer, videoFont, currentTime, elapsedTime, controls, controlBtn, range } from "./Video.css.
|
|
4
|
-
import { Frame } from "../Frame/Frame.
|
|
5
|
-
import { Button } from "../Button/Button.
|
|
6
|
-
import { Range } from "../Range/Range.
|
|
7
|
-
import { TitleBar } from "../TitleBar/TitleBar.
|
|
8
|
-
import Play from "./buttons/Play.
|
|
9
|
-
import Pause from "./buttons/Pause.
|
|
10
|
-
import Stop from "./buttons/Stop.
|
|
11
|
-
import Fullscreen from "./buttons/Fullscreen.
|
|
3
|
+
import { videoTag, divider, countDownContainer, videoFont, currentTime, elapsedTime, controls, controlBtn, range } from "./Video.css.mjs";
|
|
4
|
+
import { Frame } from "../Frame/Frame.mjs";
|
|
5
|
+
import { Button } from "../Button/Button.mjs";
|
|
6
|
+
import { Range } from "../Range/Range.mjs";
|
|
7
|
+
import { TitleBar } from "../TitleBar/TitleBar.mjs";
|
|
8
|
+
import Play from "./buttons/Play.mjs";
|
|
9
|
+
import Pause from "./buttons/Pause.mjs";
|
|
10
|
+
import Stop from "./buttons/Stop.mjs";
|
|
11
|
+
import Fullscreen from "./buttons/Fullscreen.mjs";
|
|
12
12
|
import cn from "classnames";
|
|
13
13
|
const Source = ({ src }) => /* @__PURE__ */ React.createElement("source", { src, type: `video/${src.substring(src.length - 3)}` });
|
|
14
14
|
const PlayOrPause = ({ playing }) => playing ? /* @__PURE__ */ React.createElement(Pause, null) : /* @__PURE__ */ React.createElement(Play, null);
|
package/esm/index.mjs
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { Modal } from "./Modal/Modal.mjs";
|
|
2
|
+
import { ModalContext } from "./Modal/ModalContext.mjs";
|
|
3
|
+
import { ModalProvider } from "./Modal/ModalProvider.mjs";
|
|
4
|
+
import { Tabs } from "./Tabs/Tabs.mjs";
|
|
5
|
+
import { Tab } from "./Tabs/Tab.mjs";
|
|
6
|
+
import { Alert } from "./Alert/Alert.mjs";
|
|
7
|
+
import { Avatar } from "./Avatar/Avatar.mjs";
|
|
8
|
+
import { Button } from "./Button/Button.mjs";
|
|
9
|
+
import { Checkbox } from "./Checkbox/Checkbox.mjs";
|
|
10
|
+
import { Cursor } from "./Cursor/Cursor.css.mjs";
|
|
11
|
+
import { Dropdown } from "./Dropdown/Dropdown.mjs";
|
|
12
|
+
import { Fieldset } from "./Fieldset/Fieldset.mjs";
|
|
13
|
+
import { Frame } from "./Frame/Frame.mjs";
|
|
14
|
+
import { Input } from "./Input/Input.mjs";
|
|
15
|
+
import { List } from "./List/List.mjs";
|
|
16
|
+
import { ProgressBar } from "./ProgressBar/ProgressBar.mjs";
|
|
17
|
+
import { RadioButton } from "./RadioButton/RadioButton.mjs";
|
|
18
|
+
import { Range } from "./Range/Range.mjs";
|
|
19
|
+
import { TaskBar } from "./TaskBar/TaskBar.mjs";
|
|
20
|
+
import { TextArea } from "./TextArea/TextArea.mjs";
|
|
21
|
+
import { Tree } from "./Tree/Tree.mjs";
|
|
22
|
+
import { Tooltip } from "./Tooltip/Tooltip.mjs";
|
|
23
|
+
import { TitleBar } from "./TitleBar/TitleBar.mjs";
|
|
24
|
+
import { Video } from "./Video/Video.mjs";
|
|
25
|
+
export {
|
|
26
|
+
Alert,
|
|
27
|
+
Avatar,
|
|
28
|
+
Button,
|
|
29
|
+
Checkbox,
|
|
30
|
+
Cursor,
|
|
31
|
+
Dropdown,
|
|
32
|
+
Fieldset,
|
|
33
|
+
Frame,
|
|
34
|
+
Input,
|
|
35
|
+
List,
|
|
36
|
+
Modal,
|
|
37
|
+
ModalContext,
|
|
38
|
+
ModalProvider,
|
|
39
|
+
ProgressBar,
|
|
40
|
+
RadioButton,
|
|
41
|
+
Range,
|
|
42
|
+
Tab,
|
|
43
|
+
Tabs,
|
|
44
|
+
TaskBar,
|
|
45
|
+
TextArea,
|
|
46
|
+
TitleBar,
|
|
47
|
+
Tooltip,
|
|
48
|
+
Tree,
|
|
49
|
+
Video
|
|
50
|
+
};
|