@leafygreen-ui/lib
Advanced tools
Comparing version 9.1.0 to 9.2.0
# @leafygreen-ui/lib | ||
## 9.2.0 | ||
### Minor Changes | ||
- acd6919: Publish createUniqueClassName so className values can be shared across components without conflicts | ||
- acd6919: Exports `getNodeTextContent` from `lib` | ||
## 9.1.0 | ||
@@ -4,0 +11,0 @@ |
@@ -1,2 +0,2 @@ | ||
import{once as e}from"lodash";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e){return null!=e&&e.nodeType===Node.ELEMENT_NODE}var r=Object.freeze({__proto__:null,element:o,button:function(e){return o(e)&&"button"===e.tagName.toLowerCase()},input:function(e){return o(e)&&"input"===e.tagName.toLowerCase()},array:function(e){return null!=e&&e instanceof Array}});function n(e,o){return null!=e&&"object"===t(e)&&"type"in e&&e.type.displayName===o}function a(e){var t,o,r,n="data-leafygreen-ui";return{prop:(t={},o=n,r=e,o in t?Object.defineProperty(t,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[o]=r,t),selector:"[".concat(n,'="').concat(e,'"]')}}var u={ArrowUp:38,ArrowDown:40,ArrowLeft:37,ArrowRight:39,BracketLeft:91,Enter:13,Escape:27,Space:32,Tab:9},c={Page:"page",Step:"step",Location:"location",Date:"date",Time:"time",True:"true",Unset:"false"};function l(e){throw Error("Received unhandled value: ".concat(e))}var i={error:e(console.error),warn:e(console.warn),log:e(console.log)};export{c as AriaCurrentValue,i as consoleOnce,a as createDataProp,l as enforceExhaustive,n as isComponentType,u as keyMap,r as typeIs}; | ||
import{once as r}from"lodash";function t(r){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r})(r)}function e(r){return null!=r&&r.nodeType===Node.ELEMENT_NODE}var o=Object.freeze({__proto__:null,element:e,button:function(r){return e(r)&&"button"===r.tagName.toLowerCase()},input:function(r){return e(r)&&"input"===r.tagName.toLowerCase()},array:function(r){return null!=r&&r instanceof Array}}),n=function(){return"lg-ui-".concat((r=(new Date).getTime(),"xxxxxxxx".replace(/[x]/g,(function(t){var e=16*Math.random();return e=(r+e)%16|0,r=Math.floor(r/16),("x"==t?e:7&e|8).toString(16)}))));var r};function a(r){return"string"==typeof(e=r)||"number"==typeof e?r.toString().trim():Array.isArray(r)?r.map(a).join(" ").trim():function(r){return r&&"object"===t(r)&&r.props}(r)?a(r.props.children):"";var e}function u(r,e){return null!=r&&"object"===t(r)&&"type"in r&&r.type.displayName===e}function c(r){var t,e,o,n="data-leafygreen-ui";return{prop:(t={},e=n,o=r,e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t),selector:"[".concat(n,'="').concat(r,'"]')}}var i={ArrowUp:38,ArrowDown:40,ArrowLeft:37,ArrowRight:39,BracketLeft:91,Enter:13,Escape:27,Space:32,Tab:9},l={Page:"page",Step:"step",Location:"location",Date:"date",Time:"time",True:"true",Unset:"false"};function f(r){throw Error("Received unhandled value: ".concat(r))}var p={error:r(console.error),warn:r(console.warn),log:r(console.log)};export{l as AriaCurrentValue,p as consoleOnce,c as createDataProp,n as createUniqueClassName,f as enforceExhaustive,a as getNodeTextContent,u as isComponentType,i as keyMap,o as typeIs}; | ||
//# sourceMappingURL=index.js.map |
/// <reference types="react" /> | ||
import * as typeIs from './typeIs'; | ||
export { typeIs }; | ||
import createUniqueClassName from './createUniqueClassName'; | ||
import getNodeTextContent from './getNodeTextContent'; | ||
export { typeIs, createUniqueClassName, getNodeTextContent }; | ||
/** Helper type to extract an HTML element's valid props */ | ||
@@ -5,0 +7,0 @@ export declare type HTMLElementProps<Element extends keyof JSX.IntrinsicElements, RefType extends HTMLElement = never> = Omit<JSX.IntrinsicElements[Element], 'ref'> & { |
@@ -1,2 +0,2 @@ | ||
!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?o(exports,require("lodash")):"function"==typeof define&&define.amd?define(["exports","lodash"],o):o((e="undefined"!=typeof globalThis?globalThis:e||self)["@leafygreen-ui/lib"]={},e._)}(this,(function(e,o){"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function n(e){return null!=e&&e.nodeType===Node.ELEMENT_NODE}var r=Object.freeze({__proto__:null,element:n,button:function(e){return n(e)&&"button"===e.tagName.toLowerCase()},input:function(e){return n(e)&&"input"===e.tagName.toLowerCase()},array:function(e){return null!=e&&e instanceof Array}});var a={error:o.once(console.error),warn:o.once(console.warn),log:o.once(console.log)};e.AriaCurrentValue={Page:"page",Step:"step",Location:"location",Date:"date",Time:"time",True:"true",Unset:"false"},e.consoleOnce=a,e.createDataProp=function(e){var o,t,n,r="data-leafygreen-ui";return{prop:(o={},t=r,n=e,t in o?Object.defineProperty(o,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):o[t]=n,o),selector:"[".concat(r,'="').concat(e,'"]')}},e.enforceExhaustive=function(e){throw Error("Received unhandled value: ".concat(e))},e.isComponentType=function(e,o){return null!=e&&"object"===t(e)&&"type"in e&&e.type.displayName===o},e.keyMap={ArrowUp:38,ArrowDown:40,ArrowLeft:37,ArrowRight:39,BracketLeft:91,Enter:13,Escape:27,Space:32,Tab:9},e.typeIs=r,Object.defineProperty(e,"__esModule",{value:!0})})); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("lodash")):"function"==typeof define&&define.amd?define(["exports","lodash"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["@leafygreen-ui/lib"]={},e._)}(this,(function(e,t){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e){return null!=e&&e.nodeType===Node.ELEMENT_NODE}var r=Object.freeze({__proto__:null,element:o,button:function(e){return o(e)&&"button"===e.tagName.toLowerCase()},input:function(e){return o(e)&&"input"===e.tagName.toLowerCase()},array:function(e){return null!=e&&e instanceof Array}});var a={error:t.once(console.error),warn:t.once(console.warn),log:t.once(console.log)};e.AriaCurrentValue={Page:"page",Step:"step",Location:"location",Date:"date",Time:"time",True:"true",Unset:"false"},e.consoleOnce=a,e.createDataProp=function(e){var t,n,o,r="data-leafygreen-ui";return{prop:(t={},n=r,o=e,n in t?Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[n]=o,t),selector:"[".concat(r,'="').concat(e,'"]')}},e.createUniqueClassName=function(){return"lg-ui-".concat((e=(new Date).getTime(),"xxxxxxxx".replace(/[x]/g,(function(t){var n=16*Math.random();return n=(e+n)%16|0,e=Math.floor(e/16),("x"==t?n:7&n|8).toString(16)}))));var e},e.enforceExhaustive=function(e){throw Error("Received unhandled value: ".concat(e))},e.getNodeTextContent=function e(t){return"string"==typeof(o=t)||"number"==typeof o?t.toString().trim():Array.isArray(t)?t.map(e).join(" ").trim():function(e){return e&&"object"===n(e)&&e.props}(t)?e(t.props.children):"";var o},e.isComponentType=function(e,t){return null!=e&&"object"===n(e)&&"type"in e&&e.type.displayName===t},e.keyMap={ArrowUp:38,ArrowDown:40,ArrowLeft:37,ArrowRight:39,BracketLeft:91,Enter:13,Escape:27,Space:32,Tab:9},e.typeIs=r,Object.defineProperty(e,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@leafygreen-ui/lib", | ||
"version": "9.1.0", | ||
"version": "9.2.0", | ||
"description": "leafyGreen UI Kit Internal Library", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
import { once } from 'lodash'; | ||
import * as typeIs from './typeIs'; | ||
import createUniqueClassName from './createUniqueClassName'; | ||
import getNodeTextContent from './getNodeTextContent'; | ||
export { typeIs }; | ||
export { typeIs, createUniqueClassName, getNodeTextContent }; | ||
/** Helper type to extract an HTML element's valid props */ | ||
@@ -7,0 +8,0 @@ export type HTMLElementProps< |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
202830
22
549