🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

@twilio-paste/base-radio-checkbox

Package Overview
Dependencies
Maintainers
4
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@twilio-paste/base-radio-checkbox - npm Package Compare versions

Comparing version

to
7.0.2

6

CHANGELOG.md
# Change Log
## 7.0.2
### Patch Changes
- [`73c596919`](https://github.com/twilio-labs/paste/commit/73c5969191c04b4721a059c9dee329126afc1a8e) [#2269](https://github.com/twilio-labs/paste/pull/2269) Thanks [@SiTaggart](https://github.com/SiTaggart)! - Fixed a regression with the compilation script that caused incompatible ESM module importing of JSON files.
## 7.0.1

@@ -4,0 +10,0 @@

120

dist/index.debug.es.js
var __defProp = Object.defineProperty;
var __defProps = Object.defineProperties;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getOwnPropSymbols = Object.getOwnPropertySymbols;

@@ -34,82 +32,14 @@ var __hasOwnProp = Object.prototype.hasOwnProperty;

};
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __reExport = (target, module, copyDefault, desc) => {
if (module && typeof module === "object" || typeof module === "function") {
for (let key of __getOwnPropNames(module))
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
__defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
}
return target;
};
// esm-externals:react
var react_exports = {};
__export(react_exports, {
default: () => default2
});
__reExport(react_exports, react_star);
import * as default2 from "react";
import * as react_star from "react";
// esm-externals:prop-types
var prop_types_exports = {};
__export(prop_types_exports, {
default: () => default3
});
__reExport(prop_types_exports, prop_types_star);
import * as default3 from "prop-types";
import * as prop_types_star from "prop-types";
// esm-externals:@twilio-paste/box
var box_exports = {};
__export(box_exports, {
default: () => default4
});
__reExport(box_exports, box_star);
import * as default4 from "@twilio-paste/box";
import * as box_star from "@twilio-paste/box";
// esm-externals:@twilio-paste/text
var text_exports = {};
__export(text_exports, {
default: () => default5
});
__reExport(text_exports, text_star);
import * as default5 from "@twilio-paste/text";
import * as text_star from "@twilio-paste/text";
// esm-externals:@twilio-paste/sibling-box
var sibling_box_exports = {};
__export(sibling_box_exports, {
default: () => default6
});
__reExport(sibling_box_exports, sibling_box_star);
import * as default6 from "@twilio-paste/sibling-box";
import * as sibling_box_star from "@twilio-paste/sibling-box";
// esm-externals:@twilio-paste/label
var label_exports = {};
__export(label_exports, {
default: () => default7
});
__reExport(label_exports, label_star);
import * as default7 from "@twilio-paste/label";
import * as label_star from "@twilio-paste/label";
// esm-externals:@twilio-paste/help-text
var help_text_exports = {};
__export(help_text_exports, {
default: () => default8
});
__reExport(help_text_exports, help_text_star);
import * as default8 from "@twilio-paste/help-text";
import * as help_text_star from "@twilio-paste/help-text";
// src/BaseRadioCheckbox.tsx
var BaseRadioCheckboxControl = react_exports.forwardRef((_a, ref) => {
import * as React from "react";
import * as PropTypes from "prop-types";
import { Box } from "@twilio-paste/box";
import { Text } from "@twilio-paste/text";
import { SiblingBox } from "@twilio-paste/sibling-box";
import { Label } from "@twilio-paste/label";
import { HelpText } from "@twilio-paste/help-text";
var BaseRadioCheckboxControl = React.forwardRef((_a, ref) => {
var _b = _a, { children, disabled, element = "BASE_RADIO_CHECKBOX_CONTROL" } = _b, props = __objRest(_b, ["children", "disabled", "element"]);
return /* @__PURE__ */ react_exports.createElement(sibling_box_exports.SiblingBox, __spreadValues({
return /* @__PURE__ */ React.createElement(SiblingBox, __spreadValues({
as: "span",

@@ -188,11 +118,11 @@ ref,

BaseRadioCheckboxControl.propTypes = {
children: prop_types_exports.node.isRequired,
disabled: prop_types_exports.bool
children: PropTypes.node.isRequired,
disabled: PropTypes.bool
};
var BaseRadioCheckboxLabel = react_exports.forwardRef((_a, ref) => {
var BaseRadioCheckboxLabel = React.forwardRef((_a, ref) => {
var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
return /* @__PURE__ */ react_exports.createElement(label_exports.Label, __spreadProps(__spreadValues({}, props), {
return /* @__PURE__ */ React.createElement(Label, __spreadProps(__spreadValues({}, props), {
marginBottom: "space0",
ref
}), /* @__PURE__ */ react_exports.createElement(box_exports.Box, {
}), /* @__PURE__ */ React.createElement(Box, {
as: "span",

@@ -204,7 +134,7 @@ display: "flex"

BaseRadioCheckboxLabel.propTypes = {
children: prop_types_exports.node.isRequired
children: PropTypes.node.isRequired
};
var BaseRadioCheckboxLabelText = react_exports.forwardRef((_a, ref) => {
var BaseRadioCheckboxLabelText = React.forwardRef((_a, ref) => {
var _b = _a, { children, element = "BASE_RADIO_CHECKBOX_LABEL_TEXT" } = _b, props = __objRest(_b, ["children", "element"]);
return /* @__PURE__ */ react_exports.createElement(text_exports.Text, __spreadValues({
return /* @__PURE__ */ React.createElement(Text, __spreadValues({
as: "span",

@@ -220,7 +150,7 @@ color: "currentColor",

BaseRadioCheckboxLabelText.propTypes = {
children: prop_types_exports.node.isRequired,
element: prop_types_exports.string
children: PropTypes.node.isRequired,
element: PropTypes.string
};
var BaseRadioCheckboxHelpText = react_exports.forwardRef(({ children, helpTextId, element = "BASE_RADIO_CHECKBOX_HELP_TEXT_WRAPPER" }, ref) => {
return /* @__PURE__ */ react_exports.createElement(box_exports.Box, {
var BaseRadioCheckboxHelpText = React.forwardRef(({ children, helpTextId, element = "BASE_RADIO_CHECKBOX_HELP_TEXT_WRAPPER" }, ref) => {
return /* @__PURE__ */ React.createElement(Box, {
as: "span",

@@ -231,3 +161,3 @@ display: "block",

ref
}, /* @__PURE__ */ react_exports.createElement(help_text_exports.HelpText, {
}, /* @__PURE__ */ React.createElement(HelpText, {
id: helpTextId,

@@ -239,5 +169,5 @@ marginTop: "space0"

BaseRadioCheckboxHelpText.propTypes = {
children: prop_types_exports.node.isRequired,
helpTextId: prop_types_exports.string.isRequired,
element: prop_types_exports.string
children: PropTypes.node.isRequired,
helpTextId: PropTypes.string.isRequired,
element: PropTypes.string
};

@@ -244,0 +174,0 @@ export {

@@ -1,1 +0,1 @@

var k=Object.defineProperty,w=Object.defineProperties,I=Object.getOwnPropertyDescriptor,O=Object.getOwnPropertyDescriptors,q=Object.getOwnPropertyNames,m=Object.getOwnPropertySymbols;var C=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable;var P=(r,o,e)=>o in r?k(r,o,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[o]=e,g=(r,o)=>{for(var e in o||(o={}))C.call(o,e)&&P(r,e,o[e]);if(m)for(var e of m(o))u.call(o,e)&&P(r,e,o[e]);return r},R=(r,o)=>w(r,O(o));var B=(r,o)=>{var e={};for(var l in r)C.call(r,l)&&o.indexOf(l)<0&&(e[l]=r[l]);if(r!=null&&m)for(var l of m(r))o.indexOf(l)<0&&u.call(r,l)&&(e[l]=r[l]);return e};var c=(r,o)=>{for(var e in o)k(r,e,{get:o[e],enumerable:!0})},a=(r,o,e,l)=>{if(o&&typeof o=="object"||typeof o=="function")for(let d of q(o))!C.call(r,d)&&(e||d!=="default")&&k(r,d,{get:()=>o[d],enumerable:!(l=I(o,d))||l.enumerable});return r};var t={};c(t,{default:()=>h});a(t,M);import*as h from"react";import*as M from"react";var i={};c(i,{default:()=>S});a(i,D);import*as S from"prop-types";import*as D from"prop-types";var n={};c(n,{default:()=>y});a(n,K);import*as y from"@twilio-paste/box";import*as K from"@twilio-paste/box";var s={};c(s,{default:()=>_});a(s,z);import*as _ from"@twilio-paste/text";import*as z from"@twilio-paste/text";var p={};c(p,{default:()=>L});a(p,F);import*as L from"@twilio-paste/sibling-box";import*as F from"@twilio-paste/sibling-box";var b={};c(b,{default:()=>E});a(b,Y);import*as E from"@twilio-paste/label";import*as Y from"@twilio-paste/label";var x={};c(x,{default:()=>A});a(x,j);import*as A from"@twilio-paste/help-text";import*as j from"@twilio-paste/help-text";var H=t.forwardRef((f,d)=>{var T=f,{children:r,disabled:o,element:e="BASE_RADIO_CHECKBOX_CONTROL"}=T,l=B(T,["children","disabled","element"]);return t.createElement(p.SiblingBox,g({as:"span",ref:d,display:"flex",element:e,backgroundColor:"colorBackgroundBody",borderColor:"colorBorder",borderStyle:"solid",borderWidth:"borderWidth10",height:"sizeSquare50",marginX:"space20",marginY:"space10",width:"sizeSquare50",color:"colorTextWeakest",_hoverSibling:{borderColor:"colorBorderPrimaryStronger",color:"colorTextWeakest"},_focusSibling:{borderColor:"colorBorderPrimaryStronger",boxShadow:"shadowFocus",color:"colorTextWeakest"},_activeSibling:o?void 0:{borderColor:"colorBorderPrimaryStronger",backgroundColor:"colorBackgroundPrimaryStronger",color:"colorTextWeakest"},_checkedSibling:{borderColor:"colorBorderPrimary",backgroundColor:"colorBackgroundPrimary",color:"colorTextInverse"},_disabledSibling:{borderColor:"colorBorderWeaker"},_invalidSibling:{borderColor:"colorBorderError"},_invalidAndHoverSibling:{borderColor:"colorBorderErrorStronger"},_checkedAndHoverSibling:{borderColor:"colorBorderPrimaryStronger",backgroundColor:"colorBackgroundPrimaryStronger",color:"colorTextWeakest"},_checkedAndFocusSibling:{borderColor:"colorBorderPrimaryStronger",backgroundColor:"colorBackgroundPrimaryStronger",color:"colorTextWeakest"},_checkedAndActiveSibling:o?void 0:{borderColor:"colorBorderPrimaryStronger",backgroundColor:"colorBackgroundPrimaryStronger"},_checkedAndDisabledSibling:{borderColor:"colorBorderWeaker",backgroundColor:"colorBackgroundStrong",color:"colorTextWeakest"},_checkedAndInvalidSibling:{borderColor:"colorBorderError",backgroundColor:"colorBackgroundError",color:"colorTextInverse"},_checkedAndInvalidAndHoverSibling:{borderColor:"colorBorderErrorStronger",backgroundColor:"colorBackgroundErrorStronger"}},l),r)});H.displayName="BaseRadioCheckboxControl";H.propTypes={children:i.node.isRequired,disabled:i.bool};var N=t.forwardRef((l,e)=>{var d=l,{children:r}=d,o=B(d,["children"]);return t.createElement(b.Label,R(g({},o),{marginBottom:"space0",ref:e}),t.createElement(n.Box,{as:"span",display:"flex"},r))});N.displayName="BaseRadioCheckboxLabel";N.propTypes={children:i.node.isRequired};var W=t.forwardRef((d,l)=>{var f=d,{children:r,element:o="BASE_RADIO_CHECKBOX_LABEL_TEXT"}=f,e=B(f,["children","element"]);return t.createElement(s.Text,g({as:"span",color:"currentColor",marginLeft:"space20",fontWeight:"fontWeightMedium",element:o,ref:l},e),r)});W.displayName="BaseRadioCheckboxLabelText";W.propTypes={children:i.node.isRequired,element:i.string};var v=t.forwardRef(({children:r,helpTextId:o,element:e="BASE_RADIO_CHECKBOX_HELP_TEXT_WRAPPER"},l)=>t.createElement(n.Box,{as:"span",display:"block",element:e,marginLeft:"space80",ref:l},t.createElement(x.HelpText,{id:o,marginTop:"space0"},r)));v.displayName="BaseRadioCheckboxHelpText";v.propTypes={children:i.node.isRequired,helpTextId:i.string.isRequired,element:i.string};export{H as BaseRadioCheckboxControl,v as BaseRadioCheckboxHelpText,N as BaseRadioCheckboxLabel,W as BaseRadioCheckboxLabelText};
var R=Object.defineProperty,h=Object.defineProperties;var S=Object.getOwnPropertyDescriptors;var d=Object.getOwnPropertySymbols;var b=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable;var g=(o,r,e)=>r in o?R(o,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[r]=e,n=(o,r)=>{for(var e in r||(r={}))b.call(r,e)&&g(o,e,r[e]);if(d)for(var e of d(r))x.call(r,e)&&g(o,e,r[e]);return o},m=(o,r)=>h(o,S(r));var c=(o,r)=>{var e={};for(var l in o)b.call(o,l)&&r.indexOf(l)<0&&(e[l]=o[l]);if(o!=null&&d)for(var l of d(o))r.indexOf(l)<0&&x.call(o,l)&&(e[l]=o[l]);return e};import*as a from"react";import*as i from"prop-types";import{Box as B}from"@twilio-paste/box";import{Text as u}from"@twilio-paste/text";import{SiblingBox as y}from"@twilio-paste/sibling-box";import{Label as f}from"@twilio-paste/label";import{HelpText as _}from"@twilio-paste/help-text";var k=a.forwardRef((s,t)=>{var p=s,{children:o,disabled:r,element:e="BASE_RADIO_CHECKBOX_CONTROL"}=p,l=c(p,["children","disabled","element"]);return a.createElement(y,n({as:"span",ref:t,display:"flex",element:e,backgroundColor:"colorBackgroundBody",borderColor:"colorBorder",borderStyle:"solid",borderWidth:"borderWidth10",height:"sizeSquare50",marginX:"space20",marginY:"space10",width:"sizeSquare50",color:"colorTextWeakest",_hoverSibling:{borderColor:"colorBorderPrimaryStronger",color:"colorTextWeakest"},_focusSibling:{borderColor:"colorBorderPrimaryStronger",boxShadow:"shadowFocus",color:"colorTextWeakest"},_activeSibling:r?void 0:{borderColor:"colorBorderPrimaryStronger",backgroundColor:"colorBackgroundPrimaryStronger",color:"colorTextWeakest"},_checkedSibling:{borderColor:"colorBorderPrimary",backgroundColor:"colorBackgroundPrimary",color:"colorTextInverse"},_disabledSibling:{borderColor:"colorBorderWeaker"},_invalidSibling:{borderColor:"colorBorderError"},_invalidAndHoverSibling:{borderColor:"colorBorderErrorStronger"},_checkedAndHoverSibling:{borderColor:"colorBorderPrimaryStronger",backgroundColor:"colorBackgroundPrimaryStronger",color:"colorTextWeakest"},_checkedAndFocusSibling:{borderColor:"colorBorderPrimaryStronger",backgroundColor:"colorBackgroundPrimaryStronger",color:"colorTextWeakest"},_checkedAndActiveSibling:r?void 0:{borderColor:"colorBorderPrimaryStronger",backgroundColor:"colorBackgroundPrimaryStronger"},_checkedAndDisabledSibling:{borderColor:"colorBorderWeaker",backgroundColor:"colorBackgroundStrong",color:"colorTextWeakest"},_checkedAndInvalidSibling:{borderColor:"colorBorderError",backgroundColor:"colorBackgroundError",color:"colorTextInverse"},_checkedAndInvalidAndHoverSibling:{borderColor:"colorBorderErrorStronger",backgroundColor:"colorBackgroundErrorStronger"}},l),o)});k.displayName="BaseRadioCheckboxControl";k.propTypes={children:i.node.isRequired,disabled:i.bool};var C=a.forwardRef((l,e)=>{var t=l,{children:o}=t,r=c(t,["children"]);return a.createElement(f,m(n({},r),{marginBottom:"space0",ref:e}),a.createElement(B,{as:"span",display:"flex"},o))});C.displayName="BaseRadioCheckboxLabel";C.propTypes={children:i.node.isRequired};var T=a.forwardRef((t,l)=>{var s=t,{children:o,element:r="BASE_RADIO_CHECKBOX_LABEL_TEXT"}=s,e=c(s,["children","element"]);return a.createElement(u,n({as:"span",color:"currentColor",marginLeft:"space20",fontWeight:"fontWeightMedium",element:r,ref:l},e),o)});T.displayName="BaseRadioCheckboxLabelText";T.propTypes={children:i.node.isRequired,element:i.string};var P=a.forwardRef(({children:o,helpTextId:r,element:e="BASE_RADIO_CHECKBOX_HELP_TEXT_WRAPPER"},l)=>a.createElement(B,{as:"span",display:"block",element:e,marginLeft:"space80",ref:l},a.createElement(_,{id:r,marginTop:"space0"},o)));P.displayName="BaseRadioCheckboxHelpText";P.propTypes={children:i.node.isRequired,helpTextId:i.string.isRequired,element:i.string};export{k as BaseRadioCheckboxControl,P as BaseRadioCheckboxHelpText,C as BaseRadioCheckboxLabel,T as BaseRadioCheckboxLabelText};
{
"name": "@twilio-paste/base-radio-checkbox",
"version": "7.0.1",
"version": "7.0.2",
"category": "user input",

@@ -47,16 +47,16 @@ "status": "production",

"devDependencies": {
"@twilio-paste/box": "^5.0.1",
"@twilio-paste/design-tokens": "^7.1.0",
"@twilio-paste/flex": "^3.0.1",
"@twilio-paste/help-text": "^7.0.1",
"@twilio-paste/icons": "^6.2.0",
"@twilio-paste/label": "^7.0.1",
"@twilio-paste/screen-reader-only": "^7.0.1",
"@twilio-paste/sibling-box": "^4.0.1",
"@twilio-paste/style-props": "^4.0.1",
"@twilio-paste/styling-library": "^0.3.6",
"@twilio-paste/text": "^5.0.1",
"@twilio-paste/theme": "^6.0.1",
"@twilio-paste/types": "^3.1.4",
"@twilio-paste/uid-library": "^0.2.3",
"@twilio-paste/box": "^5.0.2",
"@twilio-paste/design-tokens": "^7.1.1",
"@twilio-paste/flex": "^3.0.2",
"@twilio-paste/help-text": "^7.0.2",
"@twilio-paste/icons": "^6.2.1",
"@twilio-paste/label": "^7.0.2",
"@twilio-paste/screen-reader-only": "^7.0.2",
"@twilio-paste/sibling-box": "^4.0.2",
"@twilio-paste/style-props": "^4.0.2",
"@twilio-paste/styling-library": "^0.3.7",
"@twilio-paste/text": "^5.0.2",
"@twilio-paste/theme": "^6.0.2",
"@twilio-paste/types": "^3.1.5",
"@twilio-paste/uid-library": "^0.2.4",
"prop-types": "^15.7.2",

@@ -63,0 +63,0 @@ "react": "^17.0.2",

Sorry, the diff of this file is not supported yet