Join our webinar on Wednesday, June 26, at 1pm EDTHow Chia Mitigates Risk in the Crypto Industry.Register
Socket
Socket
Sign inDemoInstall

paku

Package Overview
Dependencies
94
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.15 to 0.0.16

2

lib/components/checkbox/checkbox.styles.d.ts
/// <reference types="react" />
/// <reference types="@emotion/core" />
import { ICheckboxBox, ICheckboxStyled } from './checkbox.types';
export declare const CheckboxStyled: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, ICheckboxStyled, object>;
export declare const CheckboxBox: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ICheckboxBox, object>;
export declare const CheckboxLabel: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "hidden" | "dir" | "slot" | "style" | "title" | "color" | "children" | "translate" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css">, object>;
export declare const CheckboxStyled: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, ICheckboxStyled, object>;

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

const transition_1 = __importDefault(require("../../utils/transition"));
const isChecked = (checked) => {
if (checked) {
return {
backgroundColor: tokens_1.Color.primary.main,
color: tokens_1.Color.primary.text,
border: `1px solid ${tokens_1.Color.primary.main}`,
};
}
return {
backgroundColor: tokens_1.Color.white,
color: 'transparent',
border: `1px solid ${tokens_1.Color.border}`,
};
};
exports.CheckboxBox = styled_1.default.div(({ checked }) => ({
width: 16,
height: 16,
display: 'inline-flex',
alignItems: 'center',
justifyContent: 'center',
borderRadius: tokens_1.Radius.normal,
marginRight: 6,
outline: 'none',
transition: transition_1.default(['box-shadow', 'background-color'], '.1s linear'),
...isChecked(checked),
}));
exports.CheckboxLabel = styled_1.default.div({
...tokens_1.Typography.base,
});
const isDisabled = (checked, disabled) => {

@@ -44,3 +15,3 @@ const color = checked ? `${tokens_1.Color.primary.main}80` : 'transparent';

cursor: 'not-allowed',
[`${exports.CheckboxBox}`]: {
'.paku-checkbox-box': {
backgroundColor: tokens_1.Color.primary.disabled,

@@ -50,3 +21,3 @@ borderColor: tokens_1.Color.primary.disabled,

},
[`${exports.CheckboxLabel}`]: {
'.paku-checkbox-label': {
opacity: 0.5,

@@ -61,3 +32,3 @@ },

return {
[`${exports.CheckboxBox}`]: {
'.paku-checkbox-box': {
borderColor: tokens_1.Color.danger.main,

@@ -87,2 +58,31 @@ },

}));
const isChecked = (checked) => {
if (checked) {
return {
backgroundColor: tokens_1.Color.primary.main,
color: tokens_1.Color.primary.text,
border: `1px solid ${tokens_1.Color.primary.main}`,
};
}
return {
backgroundColor: tokens_1.Color.white,
color: 'transparent',
border: `1px solid ${tokens_1.Color.border}`,
};
};
exports.CheckboxBox = styled_1.default.div(({ checked }) => ({
width: 16,
height: 16,
display: 'inline-flex',
alignItems: 'center',
justifyContent: 'center',
borderRadius: tokens_1.Radius.normal,
marginRight: 6,
outline: 'none',
transition: transition_1.default(['box-shadow', 'background-color'], '.1s linear'),
...isChecked(checked),
}));
exports.CheckboxLabel = styled_1.default.div({
...tokens_1.Typography.base,
});
//# sourceMappingURL=checkbox.styles.js.map

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

const styled_1 = __importDefault(require("@emotion/styled"));
const row_styles_1 = require("../row/row.styles");
const col_styles_1 = require("../col/col.styles");
const isFluid = (size, fluid) => {

@@ -65,5 +63,5 @@ if (fluid) {

...isFluid(size, fluid),
[`${row_styles_1.RowStyled}`]: {
'& .paku-grid-row': {
...setRowSpacing(gutter),
[`${col_styles_1.ColStyled}`]: {
'& > .paku-grid-col': {
...setColSpacing(gutter),

@@ -70,0 +68,0 @@ ...setColVerticalSpace(verticalSpace),

{
"name": "paku",
"version": "0.0.15",
"version": "0.0.16",
"description": "Design System with customizable styles, build on React and Emotion.",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc