From 01f34a9abab73b2081e60279afdb4221a5315f16 Mon Sep 17 00:00:00 2001 From: Nancy <68706811+nancy-dassana@users.noreply.github.com> Date: Wed, 16 Jun 2021 17:09:23 -0700 Subject: [PATCH] v0.11.1 -> v0.11.2 (#339) * Feat #43 - Tag, Link components * Fix #47 - Fix Link props - both onClick & href are undef (#48) * Fix #47 - Fix Link props - both onClick & href are undef Closes #47 * Chore #49- Upgrade Storybook and dependencies (#50) * Chore #49 - Upgrade sb and deps to 6.0.10 * Chore #49 - Bump up version 0.1.7 --> 0.1.8 * Chore #49 - Add react-jss & update linkColor * Chore #49 - Add normalize.css Co-authored-by: Parth Shah * feat #38 - Add eslint and fix lint errors & warnings (#39) * Feat #38 - Add typescript Eslint plugins & .eslintrc.js * Feat #43 - Tag, Link components * Fix #47 - Fix Link props - both onClick & href are undef (#48) * Fix #47 - Fix Link props - both onClick & href are undef Closes #47 * Chore #49- Upgrade Storybook and dependencies (#50) * Chore #49 - Upgrade sb and deps to 6.0.10 * Chore #49 - Bump up version 0.1.7 --> 0.1.8 * Chore #49 - Add react-jss & update linkColor * Chore #49 - Add normalize.css Co-authored-by: Parth Shah * feat #3 - Input field component (#53) * feat #3 - Create input field component + refactor button component + bump storybook version and fix glob error Closes #3 * Feat #30 - Toggle and Icon components (#52) * Feat #30 - Add toggle component, icon component, improved verified labels action * chore #41 - Add verify labels GitHub action (#42) * Feat #43 - Tag, Link components * Fix #47 - Fix Link props - both onClick & href are undef (#48) * Fix #47 - Fix Link props - both onClick & href are undef Closes #47 * Chore #49- Upgrade Storybook and dependencies (#50) * Chore #49 - Upgrade sb and deps to 6.0.10 * Chore #49 - Bump up version 0.1.7 --> 0.1.8 * Chore #49 - Add react-jss & update linkColor * Chore #49 - Add normalize.css Co-authored-by: Parth Shah * feat #38 - Add eslint and fix lint errors & warnings (#39) * Feat #38 - Add typescript Eslint plugins & .eslintrc.js * chore #41 - Add verify labels GitHub action (#42) * Feat #43 - Tag, Link components * Fix #47 - Fix Link props - both onClick & href are undef (#48) * Fix #47 - Fix Link props - both onClick & href are undef Closes #47 * Chore #49- Upgrade Storybook and dependencies (#50) * Chore #49 - Upgrade sb and deps to 6.0.10 * Chore #49 - Bump up version 0.1.7 --> 0.1.8 * Chore #49 - Add react-jss & update linkColor * Chore #49 - Add normalize.css Co-authored-by: Parth Shah * feat #3 - Input field component (#53) * feat #3 - Create input field component + refactor button component + bump storybook version and fix glob error Closes #3 * Feat #30 - Toggle and Icon components (#52) * Feat #30 - Add toggle component, icon component, improved verified labels action * Bump up version to 0.2.0 * Comment out icon component * Update package.json * Update index.ts * Bump up package.json * Update package-lock.json * fix #58 - Address icon, styles, global css, and typescript issues (#59) * fix #58 - Address icon, styles, global css, and typescript issues * fix #58 - reorder imports * Update storybook.test.ts.snap * fix #58 - Regenerate pacakge-lock from clean reinstall * fix #58 - Add global styles to storybook preview, move rollup deps to dev dep * fix #58 - Bump version 0.2.3 --> 0.2.4 Co-authored-by: sam-m-m * chore #63 - Update .eslintrc.js (#64) chore #63 - Update .eslintrc.js (#64) * feat #61 - Skeleton loader component (#66) * feat #61 - Skeleton loader component * feat #61 - Update tests * feat #61 - Update test descriptions and export skeleton from index Co-authored-by: github-actions * feat #65 - Form Component (#67) * feat #65 - Form Component * v0.2.4 -> v0.2.5 * feat #71 - Notification component (#72) * feat #71 - Notification component * feat #76 - Refactor Form.Button to be Form.SubmitButton (#77) * feat #76 - Refactor Form.Button to be Form.SubmitButton Closes #76 * feat #77 - Fix failing snapshot test Co-authored-by: github-actions * feat #62 - Table component (#70) * feat #62 - Table Component * feat #62 - Upgrade sb 6.0.20 --> 6.0.21 * feat #62 - Bump up version 0.2.8 * feat #79 - Select component (#82) * feat #79 - Select component Closes #79 * feat #83 - Add data-test attribute to components (#85) * feat #83 - Add data-test attribute to components Closes #83 * chore #83 - Address PR comments Closes #83 Co-authored-by: github-actions * Update failing snapshots * feat #88 - Fix type exports for rollup (#89) * fix #88 - Fix type exports for rollup Closes #88 * feat #84 - Radio group component (#91) * feat #84 - Radio Group Component Closes #84 * feat #84 - Update skeleton CSS and stories * feat #91 - Address PR comments * feat #84 - Fix failing snapshot tests Co-authored-by: github-actions * feat #81 - Tree component (#86) * feat #81 - Create basic Tree component * feat #81 - Add tests * feat #81 - Update Tree description * feat #81 - Add TreeSkeleton & tests * feat #81 - Change ts TreeDataType to TreeNodeType, upgrade antd@latest * feat #81 - Fix bug: storyshots failed tests * feat #81 - Create assets/styles, refac tree prop types, add data-attributes * feat #81 - Address PR Comments, rebase dev * feat #81 - Export type OnCheckHandler * feat #81 - map onCheck args * feat #81 - Address PR comments, refac onCheck --> onChange * feat #81 - Update file path for RadioGroup styleguide * feat #81 - Address PR commets, refac onChange, add FormTree * feat #81 - Fix snapshot test warning * feat #81 - Address PR comments * feat #93 - Tooltip component (#95) * feat #93 - Tooltip component Closes #93 * feat #93 - Fix tooltip placement * feat #93 - Extract out placement options to utils and allow tooltip style customization * feat #93 - Add dataTag to tooltip trigger * feat #93 - Use storybook decorator for tooltip story * Update package.json Co-authored-by: github-actions * feat #94 - Popover component (#96) Closes #94 * Feat #99, #101, #100 - Add new avatar component and enhancements for icon and notification components (#103) * feat #99 - Avatar component * feat #100 - Notification component should take in configuration options * feat #101 - Icon component should render svgs Closes #99 Closes #100 Closes #101 * feat #92 - Theming (#97) * feat #92 - Theming * fix #104 - Fix exported types for table and form * chore #106 - refac all component exports from default to named, add support for absolute imports (#107) * chore #106 - Refactor all component exports from default to named and add support for absolute imports Closes #106 * fix #108 - Fix colors, refac stylguide export (#109) * Components theming (#121) * Skeleton theming (#112) * feat - Input toggle link theming: Revamp input, toggle, link styles (#115) * feat #113 - Button theming (#117) * Tooltip popover theming (#118) * feat #119 - Notifications V2 (#120) * fix #123 - Fix line height in styleguide (#124) * chore #127, fix #126: Refac & bug-fix Icon component, bug-fix fieldLabel (#128) * feat - Add Table row click handler (#131) * Form enhancements (#134) * feat #133 - Form enhancements Closes #133 * fix #136 - Fix package publish github action (#137) Closes #136 * feat #139 - Add focused prop to FormInput and allow refs to be passed to input (#140) Closes #139 Co-authored-by: github-actions * feat #144 - Form Toggle (#145) * feat #144 - Form Toggle Closes #144 * Update package.json * feat #144 - Address PR comments Co-authored-by: github-actions * feat #142 - Table refactor (#143) * feat #147, #148 - Update background colors and avatar styles (#149) * feat #147 - Update background colors Closes #147 * feat #148 - Update avatar styles Closes #148 * fix #151 - Fix form toggle submit (#152) Closes #151 * chore #154 - Update themes & add new items to styleguide (#155) * feat #157 - Add field errors to Form.Input (#158) * feat #157 - Add field errors to form input Closes #157 * Update package.json Co-authored-by: github-actions * feat #159 - Add ColoredDot comp and integrate into Table (#161) * feat #159 - Add IngestionStatusDot comp & add to Table * feat #159 - Add stories * feat #159 - Add Tooltip * feat #159 - Add tests * feat #159 - Fix failing snapshots * feat #159 - Refactor IngestionStatusDot --> ColoredDot * feat #159 - Add tests * feat #159 - Add Table pagination prop * enhance #162 - Table: Auto hide/show pagination based on row count (#163) * enhance #162 - Table: Auto hide/show pagination based on row count * enhance #162 - Update FormToggle width * feat #166 - Form Updates (#167) * feat #166 - Form Updates Closes #166 * Update failing snapshots * feat #166 - Prevent Enter in input from automatically submitting form * Remove unnecessary tests Co-authored-by: github-actions * Update package.json * fix #169 - Add toggle focus styles (#170) * feat #171 - Table skeleton loader, fix #173 - Overwrite antd Table styles (#172) * feat #174 - NotificationV2 updates, chore #175 - Extract out IconButton from WAM (#176) Closes #174 Closes #175 * chore #179 - Modal and Wizard components (#180) Closes #179 * feat #178 - Comps related to filter (#182) * Fix #187 - Multiselect bug (container always wraps) (#188) * fix #187 - Refac and clean up code * fix #187 - Multiselect bug (container always wraps) * fix #187 - Add popupTriggerClasses prop to Popup * feat #184 - Table enhancements (#189) * Editable Input * feat #184 - Table enhancements Closes #184 * Add clarifying comments * feat #184 - Address PR comments * Update storybook.test.ts.snap * Add AsyncDeleteButton to sample data * onBlur should pass through as rest for FormSelect Co-authored-by: github-actions * feat #190 - Accordion Component (#191) * feat #190 - Accordion Component Closes #190 * Update CollapseButton component name to be more semantically correct * Update package.json * Address PR comments Co-authored-by: github-actions Co-authored-by: Parth Shah <68707443+parth-dassana@users.noreply.github.com> * fix #192 - Fix form async initialValues (#193) Closes #192 Co-authored-by: github-actions Co-authored-by: Parth Shah <68707443+parth-dassana@users.noreply.github.com> * feat #195 - Chip input component (#196) * feat #195 - Add ChipInput component * feat #195 - Refac, clean up code * feat #195 - Refac, update styles * feat #195 - Add ChipInput to Form, refac * feat #195 - Add e.stopPropagation to onKeyDown * feat #195 - Add defaultValues * feat #195 - Update tags overflow width * feat #195 - Update Tag key, update Tag close icon focus styles * feat #195 - Remove Button * feat #195 - Add undeleteableTags * feat #195 - Add validation * feat #195 - Fix validation bug * feat #195 - Fix input error border color being overwritten * feat #195 - Update loading Skeleton * feat #195 - Add Input addons * feat #195 - Add addons to Chip, update input styles * feat #195 - Address PR comments * feat #195 - Address more PR comments * feat #195 - Fix error bug * fix #198 - typescript bug with ChipInput component (#199) * feat #186 - MultipleChoice component, Refac ShortcutMicrocopy (#201) * feat #205, fix #206 - IconButton and Popover enhancements (#207) * feat #205 - IconButton Enhancements Closes #205 * fix #206 - Destroy popover contents on close Closes #206 * Add pending state and story * Update package.json * feat #205 - Fix styles and improve stories * Update storybook.test.ts.snap Co-authored-by: github-actions * feat #202 - Time input components (#203) * feat #202 - Add Timezone component * feat #202 - Add Timezone to form * feat #202 - Extract out InputSkeleton * feat #202 - Add TimeInput component * feat #202 - format and parse time input val * feat #202 - Add TimeInput to form * feat #202 - Update outer div/input styles * feat #202 - Fix bug Select, add dropdown styles * feat #202 - Update TimeInput styles * feat #202 - Update stories, fix disabled cell color bug * feat #202 - Rename timezones.js --> timezones.ts * feat #202 - Fix import bug * feat #202 - Disable storyshots for Timezone, update package v * feat #202 - Bump storybook v * feat #202 - Address PR comments * feat #202 - Bump web-utils v * feat #202 - Fix wizard data type * feat #202 - Address PR comments * feat #202 - Fix bug, address more PR comments * feat #202 - Bump package version * chore #209 - Add org manager icon (#210) Closes #209 Co-authored-by: github-actions * Update package.json * Updates related to onboarding (#212) * chore #213 - Updates related to onboarding * chore #213 - Bump package v * chore #213 - Fix FormTimeInput fullWidth prop * fix #215 - Fix iconButton pending styles CSS (#216) Closes #215 Co-authored-by: github-actions * chore #222 - Optimize build (#223) Closes #222 Co-authored-by: github-actions * feat #218 - Updates related to Onboarding polish (#219) * feat #221, feat #220 - PageLoader and SVGImage Components (#225) Closes #221 Closes #220 * fix #227 - Bugs related to onboarding (#228) * chore #237 - Extract out Tabs and Filter component from web-app-manager (#238) * fix #244 - Fix ts import bug (#245) * fix #244 - Fix - typescript import bug (Filters) (#247) * chore #249 - Bump react scripts and upgrade to React 17 (#250) Closes #249 * chore #254 - Port components over from app-manager (#256) * chore #254 - Port components over from app-manager Closes #254 * Update package.json * Fix tests * Export types for Breadcrumbs and TableDrawer Co-authored-by: github-actions * Table enhancements - feats #230, #232, #242, #243 (#252) * feat #253 - Table updates to make component responsive (#258) * enhancement #260 - Updates for alert manager (#261) Closes #260 * feat #231 - Code component (#263) * chore #264 - Codegen setup (#265) * enhancement #269 - Updates for alert manager risk rules (#270) Closes #269 * Feat #266 - Banner Component (#267) * Feat #7 - Setup structure for Banner, added temporary stories * Feat #7 - Added space-around and flex-end to styleguide. Adjusted stories. Added icon for closing banner * Feat #7 - Added close icon to assets, styled component, updated banner stories * Fixes #266 - Remove inline style for displaying banner, change updating state with function, change p to div and add title class * Fixes #266 - Remove close icon from assets, changed close button to be IconButton from WC, cleaned up stories * Fixes #266 - Change type to be required, create iconClasses to dynamically choose icon color, update ttitle color * Fixes #266 - Update title color, add children to stories template, update test-watch * Fixes #266 - Update test-watch * Fixes #266 - Reposition close button * Fixes #266 - Added utils for themed styles * Fixes #266 - Update container to support light and dark theme * Fixes #266 - Added secondary bg using SecondaryBgDecorator * feat #266 - Update snapshots, bump package v * chore #272 - Fix package vulnerabilities (#273) Closes #272 * feat #275 - Timeline component, Accordion comp enhnacements (#276) * feat #275 - Initial implementation Timeline comp * feat #275 - Update styles, add classes prop * feat #275 - Bump package v * feat #275 - Fix Dot placement * feat #275 - Add FONT_AWESOME_AUTH_TOKEN to github actions * feat #275 - Address comments * feat #275 - Refac Accordion, add enhnacements * feat #275 - Update Accordion * feat #275 - Refac, update Timeline * feat #275 - Add Timeline to components/index * feat #275 - Fix Accordion header padding * feat #275 - Address PR comments * fix #266 - Exporting banner from index (#281) * fix #283 - Add font awesome token to npm publish action (#284) * feat #279 - Table enhancements for web-policy-hub (#280) * chore - Get rid of NPM_TOKEN and use NODE_AUTH_TOKEN (#287) * Feat #286 - Extend TableDrawer Props to include all TableProps (#289) * Fixes #286 - Add pagnationConfig to exposed props, add sample data for stories * Fixes #286 - Add TableDrawer stories * Fixes #286 - Explort Code in index * Fixes #286 - Update stories and test pagnationConfig * Fixes #286 - Add generic DataType, update package version * Fixes #286 - Pass props down to table by spreading * Fixes #286 - Update version from 12 to 13 * enhancement #292 - Update table styles (#293) * Fix #290 - Bugs related to Alert Timeline in web-alert-manager (#291) * feat #240 - Filters updates (#268) * Feat #12 - Banner preferences (#297) * Feat #12 - Add localStorage setup * Feat #12 - Add id prop and upate stories * Feat #12 - Adding setup changes to be reviewed * Feat #12 - Update id to only accept strings, rename BannerTypes to Banner, update storybook id's * Feat #12 - Refactor to update localStorage before it renders * Feat #12 - Move getBanners outside of component * Feat #12 - Add DecoratedBannerStory and test Error stories * Feat #12 - Update other banner stories, update test-watch and package.json version 14 to 15 * Feat #12 - Refactor useEffect to use lodash, update toggleRender to onBannerClose * Feat #12 - Update stories adding reset button * Feat #12 - Clean up index by adding helpers in utils * Feat #12 - Refactor index with help utils. Rename util to utils * Feat #12 - Rebased and updated test-watch * feat #299 - Code & Tabs components enhancements (#301) * feat #300 - JSON Path Picker component (#302) * fix #303 - Fix compiled build (#304) * chore #306 - Extract components. chore #255, #233 - Add component stories (#307) * chore #316 - Updates for alert manager (#317) Closes #316 * chore #319 - Add alert manager icon (#320) Closes #319 Co-authored-by: github-actions * feat #322 - Updates for web apps (#323) * feat #322 - Updates related to web-apps * feat #322 - Update Icon * feat #322 - Bump package v * feat #314 - Date time range component (#325) * feat #311 - Add ability to omit specific filters, feat #327 - Add ability for filters to be controlled component (#329) * chore #328 - Bump package versions (#331) Closes #328 * chore #333 - Extract out PageContainer component from web-apps (#334) * enhancement #337 - Add ability to toggle link underline (#338) * enhancement #337 - Add ability to toggle link underline Closes #337 * Remove unused import Co-authored-by: Sam M <68707128+sam-m-m@users.noreply.github.com> Co-authored-by: Parth Shah Co-authored-by: Parth Shah <68707443+parth-dassana@users.noreply.github.com> Co-authored-by: sam-m-m Co-authored-by: github-actions Co-authored-by: mishevong <79538210+mishevong@users.noreply.github.com> --- package-lock.json | 169 +++++++++++++++++++++++++++------- package.json | 2 +- src/components/Link/index.tsx | 9 +- 3 files changed, 144 insertions(+), 36 deletions(-) diff --git a/package-lock.json b/package-lock.json index ea1d5606..f2a609a5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@dassana-io/web-components", - "version": "0.11.1", + "version": "0.11.2", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -3571,6 +3571,25 @@ } } }, + "postcss": { + "version": "7.0.36", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.36.tgz", + "integrity": "sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==", + "dev": true, + "requires": { + "chalk": "^2.4.2", + "source-map": "^0.6.1", + "supports-color": "^6.1.0" + }, + "dependencies": { + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } + } + }, "postcss-loader": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/postcss-loader/-/postcss-loader-4.3.0.tgz", @@ -3626,6 +3645,15 @@ "randombytes": "^2.1.0" } }, + "supports-color": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", + "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", + "dev": true, + "requires": { + "has-flag": "^3.0.0" + } + }, "terser-webpack-plugin": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-3.1.0.tgz", @@ -8511,9 +8539,9 @@ } }, "css-what": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/css-what/-/css-what-5.0.0.tgz", - "integrity": "sha512-qxyKHQvgKwzwDWC/rGbT821eJalfupxYW2qbSJSAtdSTimsr/MlaGONoNLllaUPZWf8QnbcKM/kPVYUQuEKAFA==", + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/css-what/-/css-what-5.0.1.tgz", + "integrity": "sha512-FYDTSHb/7KXsWICVsxdmiExPjCfRC4qRFBdVwv7Ax9hMnvMmEjP9RfxTEZ3qPZGmADDn2vAKSo9UcN1jKVYscg==", "dev": true }, "dom-serializer": { @@ -10471,11 +10499,18 @@ } }, "domhandler": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-2.4.2.tgz", - "integrity": "sha512-JiK04h0Ht5u/80fdLMCEmV4zkNh2BcoMFBmZ/91WtYZ8qVXSKjiw7fXMgFPnHcSZgOo3XdinHvmnDUeMf5R4wA==", + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-4.2.0.tgz", + "integrity": "sha512-zk7sgt970kzPks2Bf+dwT/PLzghLnsivb9CcxkvR8Mzr66Olr0Ofd8neSbglHJHaHa2MadfoSdNlKYAaafmWfA==", "requires": { - "domelementtype": "1" + "domelementtype": "^2.2.0" + }, + "dependencies": { + "domelementtype": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.2.0.tgz", + "integrity": "sha512-DtBMo82pv1dFtUmHyr48beiuq792Sxohr+8Hm9zoxklYPfa6n0Z3Byjj2IV7bmr2IyqClnqEQhfgHJJ5QF0R5A==" + } } }, "domutils": { @@ -13486,22 +13521,40 @@ } }, "htmlparser2": { - "version": "3.10.1", - "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-3.10.1.tgz", - "integrity": "sha512-IgieNijUMbkDovyoKObU1DUhm1iwNYE/fuifEoEHfd1oZKZDaONBSkal7Y01shxsM49R4XaMdGez3WnF9UfiCQ==", - "requires": { - "domelementtype": "^1.3.1", - "domhandler": "^2.3.0", - "domutils": "^1.5.1", - "entities": "^1.1.1", - "inherits": "^2.0.1", - "readable-stream": "^3.1.1" + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-6.1.0.tgz", + "integrity": "sha512-gyyPk6rgonLFEDGoeRgQNaEUvdJ4ktTmmUh/h2t7s+M8oPpIPxgNACWa+6ESR57kXstwqPiCut0V8NRpcwgU7A==", + "requires": { + "domelementtype": "^2.0.1", + "domhandler": "^4.0.0", + "domutils": "^2.5.2", + "entities": "^2.0.0" }, "dependencies": { - "entities": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/entities/-/entities-1.1.2.tgz", - "integrity": "sha512-f2LZMYl1Fzu7YSBKg+RoROelpOaNrcGmE9AZubeDfrCEia483oW4MI4VyFd5VNHIgQ/7qm1I0wUHK1eJnn2y2w==" + "dom-serializer": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-1.3.2.tgz", + "integrity": "sha512-5c54Bk5Dw4qAxNOI1pFEizPSjVsx5+bpJKmL2kPn8JhBUq2q09tTCa3mjijun2NfK78NMouDYNMBkOrPZiS+ig==", + "requires": { + "domelementtype": "^2.0.1", + "domhandler": "^4.2.0", + "entities": "^2.0.0" + } + }, + "domelementtype": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.2.0.tgz", + "integrity": "sha512-DtBMo82pv1dFtUmHyr48beiuq792Sxohr+8Hm9zoxklYPfa6n0Z3Byjj2IV7bmr2IyqClnqEQhfgHJJ5QF0R5A==" + }, + "domutils": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/domutils/-/domutils-2.7.0.tgz", + "integrity": "sha512-8eaHa17IwJUPAiB+SoTYBo5mCdeMgdcAoXJ59m6DT1vw+5iLS3gNoqYaRowaBKtGVrOF1Jz4yDTgYKLK2kvfJg==", + "requires": { + "dom-serializer": "^1.0.1", + "domelementtype": "^2.2.0", + "domhandler": "^4.2.0" + } } } }, @@ -22154,9 +22207,9 @@ "integrity": "sha1-AerA/jta9xoqbAL+q7jB/vfgDqs=" }, "postcss": { - "version": "7.0.35", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.35.tgz", - "integrity": "sha512-3QT8bBJeX/S5zKTTjTCIjRF3If4avAT6kqxcASlTWEtAFCb9NH0OUxNDfgZSWdP5fJnBYCMEWkIFfWeugjzYMg==", + "version": "7.0.36", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.36.tgz", + "integrity": "sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==", "requires": { "chalk": "^2.4.2", "source-map": "^0.6.1", @@ -24849,15 +24902,15 @@ "integrity": "sha1-wkvOKig62tW8P1jg1IJJuSN52O8=" }, "renderkid": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/renderkid/-/renderkid-2.0.5.tgz", - "integrity": "sha512-ccqoLg+HLOHq1vdfYNm4TBeaCDIi1FLt3wGojTDSvdewUv65oTmI3cnT2E4hRjl1gzKZIPK+KZrXzlUYKnR+vQ==", + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/renderkid/-/renderkid-2.0.7.tgz", + "integrity": "sha512-oCcFyxaMrKsKcTY59qnCAtmDVSLfPbrv6A3tVbPdFMMrv5jaK10V6m40cKsoPNhAqN6rmHW9sswW4o3ruSrwUQ==", "requires": { - "css-select": "^2.0.2", - "dom-converter": "^0.2", - "htmlparser2": "^3.10.1", - "lodash": "^4.17.20", - "strip-ansi": "^3.0.0" + "css-select": "^4.1.3", + "dom-converter": "^0.2.0", + "htmlparser2": "^6.1.0", + "lodash": "^4.17.21", + "strip-ansi": "^3.0.1" }, "dependencies": { "ansi-regex": { @@ -24865,6 +24918,56 @@ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=" }, + "css-select": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/css-select/-/css-select-4.1.3.tgz", + "integrity": "sha512-gT3wBNd9Nj49rAbmtFHj1cljIAOLYSX1nZ8CB7TBO3INYckygm5B7LISU/szY//YmdiSLbJvDLOx9VnMVpMBxA==", + "requires": { + "boolbase": "^1.0.0", + "css-what": "^5.0.0", + "domhandler": "^4.2.0", + "domutils": "^2.6.0", + "nth-check": "^2.0.0" + } + }, + "css-what": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/css-what/-/css-what-5.0.1.tgz", + "integrity": "sha512-FYDTSHb/7KXsWICVsxdmiExPjCfRC4qRFBdVwv7Ax9hMnvMmEjP9RfxTEZ3qPZGmADDn2vAKSo9UcN1jKVYscg==" + }, + "dom-serializer": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-1.3.2.tgz", + "integrity": "sha512-5c54Bk5Dw4qAxNOI1pFEizPSjVsx5+bpJKmL2kPn8JhBUq2q09tTCa3mjijun2NfK78NMouDYNMBkOrPZiS+ig==", + "requires": { + "domelementtype": "^2.0.1", + "domhandler": "^4.2.0", + "entities": "^2.0.0" + } + }, + "domelementtype": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.2.0.tgz", + "integrity": "sha512-DtBMo82pv1dFtUmHyr48beiuq792Sxohr+8Hm9zoxklYPfa6n0Z3Byjj2IV7bmr2IyqClnqEQhfgHJJ5QF0R5A==" + }, + "domutils": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/domutils/-/domutils-2.7.0.tgz", + "integrity": "sha512-8eaHa17IwJUPAiB+SoTYBo5mCdeMgdcAoXJ59m6DT1vw+5iLS3gNoqYaRowaBKtGVrOF1Jz4yDTgYKLK2kvfJg==", + "requires": { + "dom-serializer": "^1.0.1", + "domelementtype": "^2.2.0", + "domhandler": "^4.2.0" + } + }, + "nth-check": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.0.0.tgz", + "integrity": "sha512-i4sc/Kj8htBrAiH1viZ0TgU8Y5XqCaV/FziYK6TBczxmeKm3AEFWqqF3195yKudrarqy7Zu80Ra5dobFjn9X/Q==", + "requires": { + "boolbase": "^1.0.0" + } + }, "strip-ansi": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", diff --git a/package.json b/package.json index 441a11da..d4c0b3b9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@dassana-io/web-components", - "version": "0.11.1", + "version": "0.11.2", "publishConfig": { "registry": "https://npm.pkg.github.com/dassana-io" }, diff --git a/src/components/Link/index.tsx b/src/components/Link/index.tsx index 03fd6804..fb650dd7 100644 --- a/src/components/Link/index.tsx +++ b/src/components/Link/index.tsx @@ -36,6 +36,10 @@ export interface SharedLinkProps extends CommonComponentProps { * Where to open the linked url - either in a new tab or the current browsing context. */ target?: LinkTargetType + /** + * Whether or not the link is underlined. + */ + underline?: boolean } interface LinkHref extends SharedLinkProps { @@ -62,7 +66,8 @@ export const Link: FC = ({ dataTag, href, onClick, - target = '_self' + target = '_self', + underline = true }: LinkProps) => { useStyles() @@ -74,7 +79,7 @@ export const Link: FC = ({ href={href} onClick={onClick} target={target} - underline={true} + underline={underline} {...getDataTestAttributeProp('link', dataTag)} > {children}