@featherds/radio
Advanced tools
Comparing version 0.2.9 to 0.2.10
@@ -20,11 +20,8 @@ var __defProp = Object.defineProperty; | ||
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); | ||
var __require = typeof require !== "undefined" ? require : (x) => { | ||
throw new Error('Dynamic require of "' + x + '" is not supported'); | ||
}; | ||
import { getSafeId } from "@featherds/utils/id"; | ||
import { FeatherRipple } from "@featherds/ripple"; | ||
import { pushScopeId, popScopeId, ref, computed, inject, resolveComponent, openBlock, createElementBlock, createElementVNode, createBlock, createCommentVNode, renderSlot, toRef, mergeProps, toDisplayString, createVNode } from "vue"; | ||
import { ref, computed, inject, resolveComponent, openBlock, createElementBlock, createElementVNode, createBlock, createCommentVNode, renderSlot, pushScopeId, popScopeId, toRef, mergeProps, toDisplayString, createVNode } from "vue"; | ||
import { InputInheritAttrsMixin, InputSubTextMixin, InputSubText } from "@featherds/input-helper"; | ||
import { useRadioGroup } from "@featherds/composables/radio/RadioGroup"; | ||
var FeatherRadio_vue_vue_type_style_index_0_scoped_true_lang = ".feather-radio[data-v-4c4910a8]:focus {\n outline: 0;\n}\n.feather-radio .ripple[data-v-4c4910a8] {\n background-color: var(--feather-state-color-on-surface);\n opacity: var(--feather-state-opacity-pressed-on-surface);\n}\n.feather-radio.selected[data-v-4c4910a8],\n.feather-radio .selected[data-v-4c4910a8] {\n background: linear-gradient(rgba(var(--feather-state-color-on-surface-r), var(--feather-state-color-on-surface-g), var(--feather-state-color-on-surface-b), var(--feather-state-opacity-selected-on-surface)), rgba(var(--feather-state-color-on-surface-r), var(--feather-state-color-on-surface-g), var(--feather-state-color-on-surface-b), var(--feather-state-opacity-selected-on-surface))), linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0));\n}\n.feather-radio.hover[data-v-4c4910a8]:hover, .feather-radio:hover .hover[data-v-4c4910a8] {\n background: linear-gradient(rgba(var(--feather-state-color-on-surface-r), var(--feather-state-color-on-surface-g), var(--feather-state-color-on-surface-b), var(--feather-state-opacity-hover-on-surface)), rgba(var(--feather-state-color-on-surface-r), var(--feather-state-color-on-surface-g), var(--feather-state-color-on-surface-b), var(--feather-state-opacity-hover-on-surface))), linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0));\n}\n.feather-radio.hover:hover.selected[data-v-4c4910a8], .feather-radio:hover .hover.selected[data-v-4c4910a8] {\n background: linear-gradient(rgba(var(--feather-state-color-on-surface-r), var(--feather-state-color-on-surface-g), var(--feather-state-color-on-surface-b), var(--feather-state-opacity-selected-on-surface)), rgba(var(--feather-state-color-on-surface-r), var(--feather-state-color-on-surface-g), var(--feather-state-color-on-surface-b), var(--feather-state-opacity-selected-on-surface))), linear-gradient(rgba(var(--feather-state-color-on-surface-r), var(--feather-state-color-on-surface-g), var(--feather-state-color-on-surface-b), var(--feather-state-opacity-hover-on-surface)), rgba(var(--feather-state-color-on-surface-r), var(--feather-state-color-on-surface-g), var(--feather-state-color-on-surface-b), var(--feather-state-opacity-hover-on-surface))), linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0));\n}\n.feather-radio:focus.focus[data-v-4c4910a8], .feather-radio:focus .focus[data-v-4c4910a8] {\n background: linear-gradient(rgba(var(--feather-state-color-on-surface-r), var(--feather-state-color-on-surface-g), var(--feather-state-color-on-surface-b), var(--feather-state-opacity-focus-on-surface)), rgba(var(--feather-state-color-on-surface-r), var(--feather-state-color-on-surface-g), var(--feather-state-color-on-surface-b), var(--feather-state-opacity-focus-on-surface))), linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0));\n}\n.feather-radio:focus.focus.selected[data-v-4c4910a8], .feather-radio:focus .focus.selected[data-v-4c4910a8] {\n background: linear-gradient(rgba(var(--feather-state-color-on-surface-r), var(--feather-state-color-on-surface-g), var(--feather-state-color-on-surface-b), var(--feather-state-opacity-selected-on-surface)), rgba(var(--feather-state-color-on-surface-r), var(--feather-state-color-on-surface-g), var(--feather-state-color-on-surface-b), var(--feather-state-opacity-selected-on-surface))), linear-gradient(rgba(var(--feather-state-color-on-surface-r), var(--feather-state-color-on-surface-g), var(--feather-state-color-on-surface-b), var(--feather-state-opacity-focus-on-surface)), rgba(var(--feather-state-color-on-surface-r), var(--feather-state-color-on-surface-g), var(--feather-state-color-on-surface-b), var(--feather-state-opacity-focus-on-surface))), linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0));\n}\n.feather-radio:hover:focus .focus.hover[data-v-4c4910a8], .feather-radio:hover:focus.focus.hover[data-v-4c4910a8] {\n background: linear-gradient(rgba(var(--feather-state-color-on-surface-r), var(--feather-state-color-on-surface-g), var(--feather-state-color-on-surface-b), var(--feather-state-opacity-hover-on-surface)), rgba(var(--feather-state-color-on-surface-r), var(--feather-state-color-on-surface-g), var(--feather-state-color-on-surface-b), var(--feather-state-opacity-hover-on-surface))), linear-gradient(rgba(var(--feather-state-color-on-surface-r), var(--feather-state-color-on-surface-g), var(--feather-state-color-on-surface-b), var(--feather-state-opacity-focus-on-surface)), rgba(var(--feather-state-color-on-surface-r), var(--feather-state-color-on-surface-g), var(--feather-state-color-on-surface-b), var(--feather-state-opacity-focus-on-surface))), linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0));\n}\n.feather-radio:hover:focus .focus.hover.selected[data-v-4c4910a8], .feather-radio:hover:focus.focus.hover.selected[data-v-4c4910a8] {\n background: linear-gradient(rgba(var(--feather-state-color-on-surface-r), var(--feather-state-color-on-surface-g), var(--feather-state-color-on-surface-b), var(--feather-state-opacity-selected-on-surface)), rgba(var(--feather-state-color-on-surface-r), var(--feather-state-color-on-surface-g), var(--feather-state-color-on-surface-b), var(--feather-state-opacity-selected-on-surface))), linear-gradient(rgba(var(--feather-state-color-on-surface-r), var(--feather-state-color-on-surface-g), var(--feather-state-color-on-surface-b), var(--feather-state-opacity-hover-on-surface)), rgba(var(--feather-state-color-on-surface-r), var(--feather-state-color-on-surface-g), var(--feather-state-color-on-surface-b), var(--feather-state-opacity-hover-on-surface))), linear-gradient(rgba(var(--feather-state-color-on-surface-r), var(--feather-state-color-on-surface-g), var(--feather-state-color-on-surface-b), var(--feather-state-opacity-focus-on-surface)), rgba(var(--feather-state-color-on-surface-r), var(--feather-state-color-on-surface-g), var(--feather-state-color-on-surface-b), var(--feather-state-opacity-focus-on-surface))), linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0));\n}\n.layout-container[data-v-4c4910a8] {\n display: inline-block;\n line-height: 0;\n}\n.feather-radio[data-v-4c4910a8] {\n cursor: pointer;\n display: inline-flex;\n align-items: center;\n margin-left: -8px;\n}\n.feather-radio .radio[data-v-4c4910a8] {\n height: 36px;\n width: 36px;\n display: inline-block;\n padding: 8px;\n border-radius: 100%;\n}\n.feather-radio .icon[data-v-4c4910a8] {\n height: 20px;\n width: 20px;\n border: 2px solid var(--feather-secondary-text-on-surface);\n background-color: transparent;\n border-radius: 100%;\n position: relative;\n}\n.feather-radio .dot[data-v-4c4910a8] {\n position: absolute;\n height: 16px;\n width: 16px;\n fill: var(--feather-primary);\n border-radius: 100%;\n opacity: 0;\n transform: scale(0);\n}\n.feather-radio .label[data-v-4c4910a8] {\n font-family: var(--feather-font-family);\n font-size: 0.875rem;\n line-height: 1.375rem;\n letter-spacing: 0.01786em;\n font-weight: var(--feather-font-normal);\n color: var(--feather-primary-text-on-surface);\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n color: var(--feather-primary-text-on-surface);\n min-width: 24px;\n padding-right: 12px;\n padding-left: 4px;\n}\n.feather-radio:hover[aria-disabled=true][data-v-4c4910a8] {\n cursor: default;\n}\n.feather-radio[aria-checked=true] .icon[data-v-4c4910a8] {\n border-color: var(--feather-primary);\n}\n.feather-radio[aria-checked=true] .dot[data-v-4c4910a8] {\n transition: all 280ms ease-in-out;\n opacity: 1;\n transform: scale(1);\n}\n.feather-radio[aria-disabled=true].selected[data-v-4c4910a8],\n.feather-radio[aria-disabled=true] .selected[data-v-4c4910a8] {\n background: rgba(0, 0, 0, 0);\n}\n.feather-radio[aria-disabled=true].hover[data-v-4c4910a8]:hover, .feather-radio[aria-disabled=true]:hover .hover[data-v-4c4910a8] {\n background: rgba(0, 0, 0, 0);\n}\n.feather-radio[aria-disabled=true].hover:hover.selected[data-v-4c4910a8], .feather-radio[aria-disabled=true]:hover .hover.selected[data-v-4c4910a8] {\n background: rgba(0, 0, 0, 0);\n}\n.feather-radio[aria-disabled=true]:focus.focus[data-v-4c4910a8], .feather-radio[aria-disabled=true]:focus .focus[data-v-4c4910a8] {\n background: rgba(0, 0, 0, 0);\n}\n.feather-radio[aria-disabled=true]:focus.focus.selected[data-v-4c4910a8], .feather-radio[aria-disabled=true]:focus .focus.selected[data-v-4c4910a8] {\n background: rgba(0, 0, 0, 0);\n}\n.feather-radio[aria-disabled=true]:hover:focus .focus.hover[data-v-4c4910a8], .feather-radio[aria-disabled=true]:hover:focus.focus.hover[data-v-4c4910a8] {\n background: rgba(0, 0, 0, 0);\n}\n.feather-radio[aria-disabled=true]:hover:focus .focus.hover.selected[data-v-4c4910a8], .feather-radio[aria-disabled=true]:hover:focus.focus.hover.selected[data-v-4c4910a8] {\n background: rgba(0, 0, 0, 0);\n}\n.feather-radio[aria-disabled=true] .icon[data-v-4c4910a8] {\n border-color: var(--feather-disabled-text-on-surface);\n}\n.feather-radio[aria-disabled=true] .label[data-v-4c4910a8] {\n color: var(--feather-disabled-text-on-surface);\n}\n.feather-radio[aria-disabled=true] .dot[data-v-4c4910a8] {\n fill: var(--feather-disabled-text-on-surface);\n}"; | ||
var FeatherRadio_vue_vue_type_style_index_0_scoped_true_lang = ""; | ||
var _export_sfc = (sfc, props) => { | ||
@@ -86,7 +83,7 @@ for (const [key, val] of props) { | ||
}; | ||
pushScopeId("data-v-4c4910a8"); | ||
const _withScopeId = (n) => (pushScopeId("data-v-4c4910a8"), n = n(), popScopeId(), n); | ||
const _hoisted_1$1 = { class: "layout-container" }; | ||
const _hoisted_2$1 = ["aria-checked", "aria-disabled", "aria-labelledby", "tabindex"]; | ||
const _hoisted_3 = { class: "radio hover focus" }; | ||
const _hoisted_4 = /* @__PURE__ */ createElementVNode("div", { | ||
const _hoisted_4 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { | ||
class: "icon", | ||
@@ -108,5 +105,4 @@ "aria-hidden": "true" | ||
]) | ||
], -1); | ||
], -1)); | ||
const _hoisted_5 = ["id"]; | ||
popScopeId(); | ||
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) { | ||
@@ -145,3 +141,3 @@ const _component_feather_ripple = resolveComponent("feather-ripple"); | ||
var FeatherRadio = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-4c4910a8"]]); | ||
var FeatherRadioGroup_vue_vue_type_style_index_0_scoped_true_lang = ".group-label[data-v-52544096] {\n font-family: var(--feather-header-font-family);\n color: var(--feather-primary-text-on-surface);\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n font-size: 0.875rem;\n line-height: 1.375rem;\n font-weight: var(--feather-font-bold);\n letter-spacing: 0.00714286em;\n display: block;\n color: var(--feather-primary-text-on-surface);\n min-width: 24px;\n}\n.feather-radio-group-container[data-v-52544096] {\n padding-top: 12px;\n padding-bottom: 12px;\n line-height: 0;\n}\n.feather-radio-group-container[data-v-52544096] .layout-container {\n margin-right: 48px;\n}\n.feather-radio-group-container[data-v-52544096] .layout-container:last-of-type {\n margin-right: 0;\n}\n.feather-radio-group-container.vertical[data-v-52544096] .layout-container {\n display: block;\n margin-bottom: 16px;\n margin-right: 0;\n}\n.feather-radio-group-container label[data-v-52544096] {\n margin-bottom: 16px;\n}\n.feather-radio-group-container .feather-input-sub-text[data-v-52544096] {\n padding: 16px 0 0 0;\n}"; | ||
var FeatherRadioGroup_vue_vue_type_style_index_0_scoped_true_lang = ""; | ||
const _sfc_main = { | ||
@@ -195,6 +191,4 @@ model: { | ||
}; | ||
pushScopeId("data-v-52544096"); | ||
const _hoisted_1 = ["for"]; | ||
const _hoisted_2 = ["id"]; | ||
popScopeId(); | ||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { | ||
@@ -201,0 +195,0 @@ const _component_InputSubText = resolveComponent("InputSubText"); |
{ | ||
"name": "@featherds/radio", | ||
"version": "0.2.9", | ||
"version": "0.2.10", | ||
"publishConfig": { | ||
@@ -12,6 +12,6 @@ "access": "public" | ||
"dependencies": { | ||
"@featherds/composables": "^0.2.9", | ||
"@featherds/input-helper": "^0.2.9", | ||
"@featherds/ripple": "^0.2.9", | ||
"@featherds/styles": "^0.2.9", | ||
"@featherds/composables": "^0.2.10", | ||
"@featherds/input-helper": "^0.2.10", | ||
"@featherds/ripple": "^0.2.10", | ||
"@featherds/styles": "^0.2.10", | ||
"vue": "^3.1.0-0" | ||
@@ -24,3 +24,3 @@ }, | ||
"types": "./src/index.d.ts", | ||
"gitHead": "28578b1da72bd2bf1f56dded784e513fa34333d8" | ||
"gitHead": "945b2b349bd8bab6b37b573ae2bb7fb70e170f4d" | ||
} |
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
1
54318
800
Updated@featherds/ripple@^0.2.10
Updated@featherds/styles@^0.2.10