@highlight-ui/radio-button
Advanced tools
Comparing version
@@ -9,3 +9,3 @@ 'use strict'; | ||
var utilsCommons = require('@highlight-ui/utils-commons'); | ||
var Typography = require('@highlight-ui/typography'); | ||
var typography = require('@highlight-ui/typography'); | ||
var noop = require('lodash/noop'); | ||
@@ -18,3 +18,2 @@ | ||
var uniqueId__default = /*#__PURE__*/_interopDefaultLegacy(uniqueId); | ||
var Typography__default = /*#__PURE__*/_interopDefaultLegacy(Typography); | ||
var noop__default = /*#__PURE__*/_interopDefaultLegacy(noop); | ||
@@ -60,3 +59,3 @@ | ||
var styles$1 = {"radioButtonLabelText":"RadioButton-module__2OcGXpbx__v1-0-11","radioButton":"RadioButton-module__uLxiOWSK__v1-0-11","radioButtonLabel":"RadioButton-module__3hCIWlCi__v1-0-11","radioButtonSubLabel":"RadioButton-module__212_N4Fe__v1-0-11","radioButtonInput":"RadioButton-module__TQWFpBGn__v1-0-11"}; | ||
var styles$1 = {"radioButtonLabelText":"RadioButton-module__2OcGXpbx__v2-0-0","radioButton":"RadioButton-module__uLxiOWSK__v2-0-0","radioButtonLabel":"RadioButton-module__3hCIWlCi__v2-0-0","radioButtonSubLabel":"RadioButton-module__212_N4Fe__v2-0-0","radioButtonInput":"RadioButton-module__TQWFpBGn__v2-0-0"}; | ||
@@ -70,4 +69,4 @@ // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types | ||
React__default['default'].createElement("input", __assign({ ref: ref, id: inputId, type: "radio", className: styles$1.radioButtonInput }, radioProps)), | ||
React__default['default'].createElement("label", { htmlFor: inputId, className: styles$1.radioButtonLabel }, label && (React__default['default'].createElement(Typography__default['default'], { title: label, variant: "body-1", component: "span", className: styles$1.radioButtonLabelText }, label))), | ||
label && subLabel && (React__default['default'].createElement(Typography__default['default'], { title: subLabel, variant: "body-1", component: "span", className: styles$1.radioButtonSubLabel }, subLabel)))); | ||
React__default['default'].createElement("label", { htmlFor: inputId, className: styles$1.radioButtonLabel }, label && (React__default['default'].createElement(typography.Typography, { title: label, variant: "body-1", component: "span", className: styles$1.radioButtonLabelText }, label))), | ||
label && subLabel && (React__default['default'].createElement(typography.Typography, { title: subLabel, variant: "body-1", component: "span", className: styles$1.radioButtonSubLabel }, subLabel)))); | ||
}; | ||
@@ -77,3 +76,3 @@ RadioButtonWithRef.displayName = 'RadioButton'; | ||
var styles = {"radioButtonGroup":"RadioButtonGroup-module__1psiotap__v1-0-11","radioButtonGroupOption":"RadioButtonGroup-module__3TiKscg___v1-0-11","radioButtonGroupHorizontal":"RadioButtonGroup-module__1Tb26irs__v1-0-11"}; | ||
var styles = {"radioButtonGroup":"RadioButtonGroup-module__1psiotap__v2-0-0","radioButtonGroupOption":"RadioButtonGroup-module__3TiKscg___v2-0-0","radioButtonGroupHorizontal":"RadioButtonGroup-module__1Tb26irs__v2-0-0"}; | ||
@@ -80,0 +79,0 @@ // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types |
@@ -5,3 +5,3 @@ import React, { useMemo } from 'react'; | ||
import { parseMetadata } from '@highlight-ui/utils-commons'; | ||
import Typography from '@highlight-ui/typography'; | ||
import { Typography } from '@highlight-ui/typography'; | ||
import noop from 'lodash/noop'; | ||
@@ -47,3 +47,3 @@ | ||
var styles$1 = {"radioButtonLabelText":"RadioButton-module__2OcGXpbx__v1-0-11","radioButton":"RadioButton-module__uLxiOWSK__v1-0-11","radioButtonLabel":"RadioButton-module__3hCIWlCi__v1-0-11","radioButtonSubLabel":"RadioButton-module__212_N4Fe__v1-0-11","radioButtonInput":"RadioButton-module__TQWFpBGn__v1-0-11"}; | ||
var styles$1 = {"radioButtonLabelText":"RadioButton-module__2OcGXpbx__v2-0-0","radioButton":"RadioButton-module__uLxiOWSK__v2-0-0","radioButtonLabel":"RadioButton-module__3hCIWlCi__v2-0-0","radioButtonSubLabel":"RadioButton-module__212_N4Fe__v2-0-0","radioButtonInput":"RadioButton-module__TQWFpBGn__v2-0-0"}; | ||
@@ -63,3 +63,3 @@ // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types | ||
var styles = {"radioButtonGroup":"RadioButtonGroup-module__1psiotap__v1-0-11","radioButtonGroupOption":"RadioButtonGroup-module__3TiKscg___v1-0-11","radioButtonGroupHorizontal":"RadioButtonGroup-module__1Tb26irs__v1-0-11"}; | ||
var styles = {"radioButtonGroup":"RadioButtonGroup-module__1psiotap__v2-0-0","radioButtonGroupOption":"RadioButtonGroup-module__3TiKscg___v2-0-0","radioButtonGroupHorizontal":"RadioButtonGroup-module__1Tb26irs__v2-0-0"}; | ||
@@ -66,0 +66,0 @@ // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types |
{ | ||
"name": "@highlight-ui/radio-button", | ||
"version": "1.0.11", | ||
"version": "2.0.0", | ||
"author": "PPU", | ||
@@ -49,3 +49,3 @@ "main": "dist/cjs/index.js", | ||
"dependencies": { | ||
"@highlight-ui/typography": "^2.1.7", | ||
"@highlight-ui/typography": "^3.0.0", | ||
"@highlight-ui/utils-commons": "^1.2.2" | ||
@@ -58,3 +58,3 @@ }, | ||
}, | ||
"gitHead": "b23625e1ee38082febededafbfdadea9ff4ebb6d" | ||
"gitHead": "5fceeca8c701b19aacbed68f0b22f63738bd3113" | ||
} |
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
71043
-0.22%526
-0.19%+ Added
- Removed