New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@rbui/core

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rbui/core - npm Package Compare versions

Comparing version 0.0.10 to 0.0.11

8

cjs/env/index.d.ts

@@ -0,2 +1,10 @@

/**
* Get env NODE_ENV
* @returns process.env.NODE_ENV
*/
export declare const getEnv: () => string | undefined;
/**
* Get env Stage
* @returns process.env.STAGE
*/
export declare const getStage: () => string | undefined;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getStage = exports.getEnv = void 0;
/**
* Get env NODE_ENV
* @returns process.env.NODE_ENV
*/
const getEnv = () => process.env.NODE_ENV;
exports.getEnv = getEnv;
/**
* Get env Stage
* @returns process.env.STAGE
*/
const getStage = () => process.env.STAGE;
exports.getStage = getStage;
//# sourceMappingURL=index.js.map

@@ -13,3 +13,8 @@ export interface HtmlProps {

}
/**
* Page HTML
* @param props PAge HTML parameters
* @returns {string} Page HTML
*/
declare const html: (props?: HtmlProps) => string;
export default html;

@@ -37,2 +37,7 @@ "use strict";

`;
/**
* Page HTML
* @param props PAge HTML parameters
* @returns {string} Page HTML
*/
const html = (props = {}) => {

@@ -39,0 +44,0 @@ const { htmlAttributes = defaultHtmlAttributes, title = defaultTitle, meta = defaultMeta, base = '', link = '', style = '', bodyAttributes = '', body = defaultBody, noscript = '', script = '', } = props;

3

cjs/jsx/button.d.ts
import { FC, ComponentPropsWithRef } from 'react';
/**
* HTML button with ref
*/
declare const Button: FC<ComponentPropsWithRef<'button'>>;
export default Button;

@@ -23,2 +23,5 @@ "use strict";

const react_1 = __importStar(require("react"));
/**
* HTML button with ref
*/
const Button = (0, react_1.forwardRef)((props, ref) => react_1.default.createElement("button", { type: "button", ...props, ref: ref }));

@@ -25,0 +28,0 @@ Button.displayName = 'button';

import { FC, ComponentPropsWithRef } from 'react';
/**
* HTML div with ref
*/
declare const Div: FC<ComponentPropsWithRef<'div'>>;
export default Div;

@@ -23,2 +23,5 @@ "use strict";

const react_1 = __importStar(require("react"));
/**
* HTML div with ref
*/
const Div = (0, react_1.forwardRef)((props, ref) => react_1.default.createElement("div", { ...props, ref: ref }));

@@ -25,0 +28,0 @@ Div.displayName = 'div';

import { FC, ComponentPropsWithRef } from 'react';
/**
* HTML input with ref
*/
declare const Input: FC<ComponentPropsWithRef<'input'>>;
export default Input;

@@ -23,2 +23,5 @@ "use strict";

const react_1 = __importStar(require("react"));
/**
* HTML input with ref
*/
const Input = (0, react_1.forwardRef)((props, ref) => react_1.default.createElement("input", { ...props, ref: ref }));

@@ -25,0 +28,0 @@ Input.displayName = 'input';

import { FC, ComponentPropsWithRef } from 'react';
/**
* HTML anchor (a) with ref
*/
declare const Link: FC<ComponentPropsWithRef<'a'>>;
export default Link;

@@ -23,2 +23,5 @@ "use strict";

const react_1 = __importStar(require("react"));
/**
* HTML anchor (a) with ref
*/
const Link = (0, react_1.forwardRef)(({ children, ...props }, ref) => react_1.default.createElement("a", { ...props, ref: ref }, children));

@@ -25,0 +28,0 @@ Link.displayName = 'a';

import { FC, ComponentPropsWithRef } from 'react';
/**
* HTML List (li) with ref
*/
declare const List: FC<ComponentPropsWithRef<'li'>>;
export default List;

@@ -23,2 +23,5 @@ "use strict";

const react_1 = __importStar(require("react"));
/**
* HTML List (li) with ref
*/
const List = (0, react_1.forwardRef)((props, ref) => react_1.default.createElement("li", { ...props, ref: ref }));

@@ -25,0 +28,0 @@ List.displayName = 'li';

import { FC, ComponentPropsWithRef } from 'react';
/**
* HTML Ordered list (ol) with ref
*/
declare const OrderedList: FC<ComponentPropsWithRef<'ol'>>;
export default OrderedList;

@@ -23,2 +23,5 @@ "use strict";

const react_1 = __importStar(require("react"));
/**
* HTML Ordered list (ol) with ref
*/
const OrderedList = (0, react_1.forwardRef)((props, ref) => react_1.default.createElement("ol", { ...props, ref: ref }));

@@ -25,0 +28,0 @@ OrderedList.displayName = 'ol';

import { FC, ComponentPropsWithRef } from 'react';
/**
* HTML span with ref
*/
declare const Span: FC<ComponentPropsWithRef<'span'>>;
export default Span;

@@ -23,2 +23,5 @@ "use strict";

const react_1 = __importStar(require("react"));
/**
* HTML span with ref
*/
const Span = (0, react_1.forwardRef)((props, ref) => react_1.default.createElement("span", { ...props, ref: ref }));

@@ -25,0 +28,0 @@ Span.displayName = 'span';

import { FC, ComponentPropsWithRef } from 'react';
/**
* HTML unordered list (ul) with ref
*/
declare const UnorderedList: FC<ComponentPropsWithRef<'ul'>>;
export default UnorderedList;

@@ -23,2 +23,5 @@ "use strict";

const react_1 = __importStar(require("react"));
/**
* HTML unordered list (ul) with ref
*/
const UnorderedList = (0, react_1.forwardRef)((props, ref) => react_1.default.createElement("ul", { ...props, ref: ref }));

@@ -25,0 +28,0 @@ UnorderedList.displayName = 'ul';

2

cjs/package.json
{
"name": "@rbui/core",
"version": "0.0.10",
"version": "0.0.11",
"main": "cjs/index.js",

@@ -5,0 +5,0 @@ "types": "index.d.ts",

declare const _default: (...pathSegments: string[]) => string;
/**
* Creates path in the project directory
*/
export default _default;

@@ -6,3 +6,6 @@ "use strict";

const appDirectory = (0, fs_1.realpathSync)(process.cwd());
/**
* Creates path in the project directory
*/
exports.default = (...pathSegments) => (0, path_1.resolve)(appDirectory, ...pathSegments);
//# sourceMappingURL=index.js.map

@@ -0,3 +1,7 @@

/**
* Throws a warning if there are more than one value
* @param props Props
*/
export declare const oneOf: (props: {
[key: string]: boolean | undefined;
}) => void;

@@ -9,2 +9,6 @@ "use strict";

const warning_1 = __importDefault(require("warning"));
/**
* Throws a warning if there are more than one value
* @param props Props
*/
const oneOf = (props) => {

@@ -11,0 +15,0 @@ const keys = Object.keys(props).filter(key => props[key]);

interface UseToggle {
(initialState?: boolean): [boolean, () => void];
}
/**
* Toggle hook
* @param {boolean} initialState
* @returns {[boolean, () => void]}
*/
declare const useToggle: UseToggle;
export default useToggle;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const react_1 = require("react");
/**
* Toggle hook
* @param {boolean} initialState
* @returns {[boolean, () => void]}
*/
const useToggle = (initialState = false) => {

@@ -5,0 +10,0 @@ const [isToggled, setState] = (0, react_1.useState)(initialState);

@@ -0,2 +1,10 @@

/**
* Get env NODE_ENV
* @returns process.env.NODE_ENV
*/
export declare const getEnv: () => string | undefined;
/**
* Get env Stage
* @returns process.env.STAGE
*/
export declare const getStage: () => string | undefined;

@@ -0,3 +1,11 @@

/**
* Get env NODE_ENV
* @returns process.env.NODE_ENV
*/
export const getEnv = () => process.env.NODE_ENV;
/**
* Get env Stage
* @returns process.env.STAGE
*/
export const getStage = () => process.env.STAGE;
//# sourceMappingURL=index.js.map

@@ -13,3 +13,8 @@ export interface HtmlProps {

}
/**
* Page HTML
* @param props PAge HTML parameters
* @returns {string} Page HTML
*/
declare const html: (props?: HtmlProps) => string;
export default html;

@@ -35,2 +35,7 @@ const defaultHtmlAttributes = 'lang="en"';

`;
/**
* Page HTML
* @param props PAge HTML parameters
* @returns {string} Page HTML
*/
const html = (props = {}) => {

@@ -37,0 +42,0 @@ const { htmlAttributes = defaultHtmlAttributes, title = defaultTitle, meta = defaultMeta, base = '', link = '', style = '', bodyAttributes = '', body = defaultBody, noscript = '', script = '', } = props;

import { FC, ComponentPropsWithRef } from 'react';
/**
* HTML button with ref
*/
declare const Button: FC<ComponentPropsWithRef<'button'>>;
export default Button;
import React, { forwardRef } from 'react';
/**
* HTML button with ref
*/
const Button = forwardRef((props, ref) => React.createElement("button", { type: "button", ...props, ref: ref }));

@@ -3,0 +6,0 @@ Button.displayName = 'button';

import { FC, ComponentPropsWithRef } from 'react';
/**
* HTML div with ref
*/
declare const Div: FC<ComponentPropsWithRef<'div'>>;
export default Div;
import React, { forwardRef } from 'react';
/**
* HTML div with ref
*/
const Div = forwardRef((props, ref) => React.createElement("div", { ...props, ref: ref }));

@@ -3,0 +6,0 @@ Div.displayName = 'div';

import { FC, ComponentPropsWithRef } from 'react';
/**
* HTML input with ref
*/
declare const Input: FC<ComponentPropsWithRef<'input'>>;
export default Input;
import React, { forwardRef } from 'react';
/**
* HTML input with ref
*/
const Input = forwardRef((props, ref) => React.createElement("input", { ...props, ref: ref }));

@@ -3,0 +6,0 @@ Input.displayName = 'input';

import { FC, ComponentPropsWithRef } from 'react';
/**
* HTML anchor (a) with ref
*/
declare const Link: FC<ComponentPropsWithRef<'a'>>;
export default Link;
import React, { forwardRef, } from 'react';
/**
* HTML anchor (a) with ref
*/
const Link = forwardRef(({ children, ...props }, ref) => React.createElement("a", { ...props, ref: ref }, children));

@@ -3,0 +6,0 @@ Link.displayName = 'a';

import { FC, ComponentPropsWithRef } from 'react';
/**
* HTML List (li) with ref
*/
declare const List: FC<ComponentPropsWithRef<'li'>>;
export default List;
import React, { forwardRef } from 'react';
/**
* HTML List (li) with ref
*/
const List = forwardRef((props, ref) => React.createElement("li", { ...props, ref: ref }));

@@ -3,0 +6,0 @@ List.displayName = 'li';

import { FC, ComponentPropsWithRef } from 'react';
/**
* HTML Ordered list (ol) with ref
*/
declare const OrderedList: FC<ComponentPropsWithRef<'ol'>>;
export default OrderedList;
import React, { forwardRef } from 'react';
/**
* HTML Ordered list (ol) with ref
*/
const OrderedList = forwardRef((props, ref) => React.createElement("ol", { ...props, ref: ref }));

@@ -3,0 +6,0 @@ OrderedList.displayName = 'ol';

import { FC, ComponentPropsWithRef } from 'react';
/**
* HTML span with ref
*/
declare const Span: FC<ComponentPropsWithRef<'span'>>;
export default Span;
import React, { forwardRef } from 'react';
/**
* HTML span with ref
*/
const Span = forwardRef((props, ref) => React.createElement("span", { ...props, ref: ref }));

@@ -3,0 +6,0 @@ Span.displayName = 'span';

import { FC, ComponentPropsWithRef } from 'react';
/**
* HTML unordered list (ul) with ref
*/
declare const UnorderedList: FC<ComponentPropsWithRef<'ul'>>;
export default UnorderedList;
import React, { forwardRef } from 'react';
/**
* HTML unordered list (ul) with ref
*/
const UnorderedList = forwardRef((props, ref) => React.createElement("ul", { ...props, ref: ref }));

@@ -3,0 +6,0 @@ UnorderedList.displayName = 'ul';

{
"name": "@rbui/core",
"version": "0.0.10",
"version": "0.0.11",
"main": "cjs/index.js",

@@ -5,0 +5,0 @@ "types": "index.d.ts",

declare const _default: (...pathSegments: string[]) => string;
/**
* Creates path in the project directory
*/
export default _default;
import { realpathSync } from 'fs';
import { resolve } from 'path';
const appDirectory = realpathSync(process.cwd());
/**
* Creates path in the project directory
*/
export default (...pathSegments) => resolve(appDirectory, ...pathSegments);
//# sourceMappingURL=index.js.map

@@ -0,3 +1,7 @@

/**
* Throws a warning if there are more than one value
* @param props Props
*/
export declare const oneOf: (props: {
[key: string]: boolean | undefined;
}) => void;
/* eslint-disable import/prefer-default-export */
import warning from 'warning';
/**
* Throws a warning if there are more than one value
* @param props Props
*/
export const oneOf = (props) => {

@@ -4,0 +8,0 @@ const keys = Object.keys(props).filter(key => props[key]);

interface UseToggle {
(initialState?: boolean): [boolean, () => void];
}
/**
* Toggle hook
* @param {boolean} initialState
* @returns {[boolean, () => void]}
*/
declare const useToggle: UseToggle;
export default useToggle;
import { useCallback, useState } from 'react';
/**
* Toggle hook
* @param {boolean} initialState
* @returns {[boolean, () => void]}
*/
const useToggle = (initialState = false) => {

@@ -3,0 +8,0 @@ const [isToggled, setState] = useState(initialState);

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc