@commercetools-uikit/accessible-button
Advanced tools
Comparing version 0.0.0-canary-20240716102951 to 0.0.0-canary-20240719104735
@@ -63,3 +63,3 @@ 'use strict'; | ||
label: "Button" | ||
})(process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImFjY2Vzc2libGUtYnV0dG9uLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUF5QjRCIiwiZmlsZSI6ImFjY2Vzc2libGUtYnV0dG9uLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7XG4gIGZvcndhcmRSZWYsXG4gIHVzZUNhbGxiYWNrLFxuICBSZWFjdE5vZGUsXG4gIEtleWJvYXJkRXZlbnQsXG4gIEVsZW1lbnRUeXBlLFxuICBDb21wb25lbnRUeXBlLFxuICBNb3VzZUV2ZW50SGFuZGxlcixcbiAgS2V5Ym9hcmRFdmVudEhhbmRsZXIsXG4gIE1vdXNlRXZlbnQsXG59IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGlzVmFsaWRFbGVtZW50VHlwZSB9IGZyb20gJ3JlYWN0LWlzJztcbmltcG9ydCBvbWl0IGZyb20gJ2xvZGFzaC9vbWl0JztcbmltcG9ydCB7IGZpbHRlckFyaWFBdHRyaWJ1dGVzLCB3YXJuaW5nIH0gZnJvbSAnQGNvbW1lcmNldG9vbHMtdWlraXQvdXRpbHMnO1xuaW1wb3J0IHsgZGVzaWduVG9rZW5zIH0gZnJvbSAnQGNvbW1lcmNldG9vbHMtdWlraXQvZGVzaWduLXN5c3RlbSc7XG5pbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5pbXBvcnQgeyBub3JtYWxpemVkQnV0dG9uU3R5bGVzIH0gZnJvbSAnLi9hY2Nlc3NpYmxlLWJ1dHRvbi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gICAgIGlmIChwcm9wcy5pc0Rpc2FibGVkKSB7XG4gICAgICAgICAgZXZlbnQucHJldmVudERlZmF1bHQoKTtcbiAgICAgICAgICByZXR1cm4gZmFsc2U7XG4gICAgICAgIH1cbiAgICAgICAgaWYgKCFwcm9wcy5pc0Rpc2FibGVkICYmIG9uQ2xpY2sgJiYgZ2V0SXNFbnRlck9yU3BhY2UoZXZlbnQpKSB7XG4gICAgICAgICAgcmV0dXJuIG9uQ2xpY2soZXZlbnQpO1xuICAgICAgICB9XG4gICAgICAgIHJldHVybjtcbiAgICAgIH0sXG4gICAgICBbb25DbGljaywgcHJvcHMuaXNEaXNhYmxlZF1cbiAgICApO1xuXG4gICAgbGV0IGJ1dHRvblByb3BzID0ge307XG4gICAgaWYgKGlzQnV0dG9uKSB7XG4gICAgICBidXR0b25Qcm9wcyA9IHtcbiAgICAgICAgdHlwZTogcHJvcHMudHlwZSxcbiAgICAgIH07XG4gICAgfSBlbHNlIHtcbiAgICAgIGJ1dHRvblByb3BzID0ge1xuICAgICAgICByb2xlOiAnYnV0dG9uJyxcbiAgICAgICAgdGFiSW5kZXg6ICcwJyxcbiAgICAgICAgb25LZXlQcmVzczogaGFuZGxlS2V5UHJlc3MsXG4gICAgICB9O1xuICAgIH1cblxuICAgIHJldHVybiAoXG4gICAgICA8QnV0dG9uXG4gICAgICAgIGFzPXtwcm9wcy5hcyBhcyBFbGVtZW50VHlwZX1cbiAgICAgICAgaWQ9e3Byb3BzLmlkfVxuICAgICAgICByZWY9e3JlZn1cbiAgICAgICAgYXJpYS1sYWJlbD17cHJvcHMubGFiZWx9XG4gICAgICAgIG9uQ2xpY2s9e2hhbmRsZUNsaWNrfVxuICAgICAgICBjc3M9e2Nzc2BcbiAgICAgICAgICAke25vcm1hbGl6ZWRCdXR0b25TdHlsZXN9XG4gICAgICAgICAgZGlzcGxheTogaW5saW5lLWZsZXg7XG4gICAgICAgICAgZm9udC1zaXplOiAke2Rlc2lnblRva2Vucy5mb250U2l6ZTI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1dHRvbi5kaXNwbGF5TmFtZSA9ICdBY2Nlc3NpYmxlQnV0dG9uJztcbkFjY2Vzc2libGVCdXR0b24uZGVmYXVsdFByb3BzID0gZGVmYXVsdFByb3BzO1xuXG5leHBvcnQgZGVmYXVsdCBBY2Nlc3NpYmxlQnV0dG9uO1xuIl19 */"); | ||
})(process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImFjY2Vzc2libGUtYnV0dG9uLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUE2QjRCIiwiZmlsZSI6ImFjY2Vzc2libGUtYnV0dG9uLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7XG4gIGZvcndhcmRSZWYsXG4gIHVzZUNhbGxiYWNrLFxuICBSZWFjdE5vZGUsXG4gIEtleWJvYXJkRXZlbnQsXG4gIEVsZW1lbnRUeXBlLFxuICBDb21wb25lbnRUeXBlLFxuICBNb3VzZUV2ZW50SGFuZGxlcixcbiAgS2V5Ym9hcmRFdmVudEhhbmRsZXIsXG4gIE1vdXNlRXZlbnQsXG59IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGlzVmFsaWRFbGVtZW50VHlwZSB9IGZyb20gJ3JlYWN0LWlzJztcbmltcG9ydCBvbWl0IGZyb20gJ2xvZGFzaC9vbWl0JztcbmltcG9ydCB7XG4gIGZpbHRlckFyaWFBdHRyaWJ1dGVzLFxuICBmaWx0ZXJEYXRhQXR0cmlidXRlcyxcbiAgd2FybmluZyxcbn0gZnJvbSAnQGNvbW1lcmNldG9vbHMtdWlraXQvdXRpbHMnO1xuaW1wb3J0IHsgZGVzaWduVG9rZW5zIH0gZnJvbSAnQGNvbW1lcmNldG9vbHMtdWlraXQvZGVzaWduLXN5c3RlbSc7XG5pbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgc3R5bG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nV0ZXMocHJvcHMpfVxuICAgICAgICB7Li4uZmlsdGVyRGF0YUF0dHJpYnV0ZXMocHJvcHMpfVxuICAgICAgPlxuICAgICAgICB7cHJvcHMuY2hpbGRyZW59XG4gICAgICA8L0J1dHRvbj5cbiAgICApO1xuICB9XG4pO1xuQWNjZXNzaWJsZUJ1dHRvbi5kaXNwbGF5TmFtZSA9ICdBY2Nlc3NpYmxlQnV0dG9uJztcbkFjY2Vzc2libGVCdXR0b24uZGVmYXVsdFByb3BzID0gZGVmYXVsdFByb3BzO1xuXG5leHBvcnQgZGVmYXVsdCBBY2Nlc3NpYmxlQnV0dG9uO1xuIl19 */"); | ||
const defaultProps = { | ||
@@ -109,3 +109,3 @@ type: 'button', | ||
} | ||
return jsxRuntime.jsx(Button, _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({ | ||
return jsxRuntime.jsx(Button, _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({ | ||
as: props.as, | ||
@@ -116,3 +116,3 @@ id: props.id, | ||
onClick: handleClick, | ||
css: /*#__PURE__*/react$1.css(normalizedButtonStyles, " display:inline-flex;font-size:", designSystem.designTokens.fontSize20, ";font-weight:", designSystem.designTokens.fontWeight500, ";cursor:", props.isDisabled ? 'not-allowed' : 'pointer', ";&:disabled{cursor:not-allowed;}" + (process.env.NODE_ENV === "production" ? "" : ";label:AccessibleButton;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImFjY2Vzc2libGUtYnV0dG9uLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUErSmdCIiwiZmlsZSI6ImFjY2Vzc2libGUtYnV0dG9uLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7XG4gIGZvcndhcmRSZWYsXG4gIHVzZUNhbGxiYWNrLFxuICBSZWFjdE5vZGUsXG4gIEtleWJvYXJkRXZl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uKSB7XG4gICAgICBidXR0b25Qcm9wcyA9IHtcbiAgICAgICAgdHlwZTogcHJvcHMudHlwZSxcbiAgICAgIH07XG4gICAgfSBlbHNlIHtcbiAgICAgIGJ1dHRvblByb3BzID0ge1xuICAgICAgICByb2xlOiAnYnV0dG9uJyxcbiAgICAgICAgdGFiSW5kZXg6ICcwJyxcbiAgICAgICAgb25LZXlQcmVzczogaGFuZGxlS2V5UHJlc3MsXG4gICAgICB9O1xuICAgIH1cblxuICAgIHJldHVybiAoXG4gICAgICA8QnV0dG9uXG4gICAgICAgIGFzPXtwcm9wcy5hcyBhcyBFbGVtZW50VHlwZX1cbiAgICAgICAgaWQ9e3Byb3BzLmlkfVxuICAgICAgICByZWY9e3JlZn1cbiAgICAgICAgYXJpYS1sYWJlbD17cHJvcHMubGFiZWx9XG4gICAgICAgIG9uQ2xpY2s9e2hhbmRsZUNsaWNrfVxuICAgICAgICBjc3M9e2Nzc2BcbiAgICAgICAgICAke25vcm1hbGl6ZWRCdXR0b25TdHlsZXN9XG4gICAgICAgICAgZGlzcGxheTogaW5saW5lLWZsZXg7XG4gICAgICAgICAgZm9udC1zaXplOiAke2Rlc2lnblRva2Vucy5mb250U2l6ZTIwfTtcbiAgICAgICAgICBmb250LXdlaWdodDogJHtkZXNpZ25Ub2tlbnMuZm9udFdlaWdodDUwMH07XG4gICAgICAgICAgY3Vyc29yOiAke3Byb3BzLmlzRGlzYWJsZWQgPyAnbm90LWFsbG93ZWQnIDogJ3BvaW50ZXInfTtcbiAgICAgICAgICAmOmRpc2FibGVkIHtcbiAgICAgICAgICAgIGN1cnNvcjogbm90LWFsbG93ZWQ7XG4gICAgICAgICAgfVxuICAgICAgICBgfVxuICAgICAgICAvLyBBbGxvdyB0byBvdmVycmlkZSB0aGUgc3R5bGVzIGJ5IHBhc3NpbmcgYSBgY2xhc3NOYW1lYCBwcm9wLlxuICAgICAgICAvLyBDdXN0b20gc3R5bGVzIGNhbiBhbHNvIGJlIHBhc3NlZCB1c2luZyB0aGUgYGNzc2AgcHJvcCBmcm9tIGVtb3Rpb24uXG4gICAgICAgIC8vIGh0dHBzOi8vZW1vdGlvbi5zaC9kb2NzL2Nzcy1wcm9wI3N0eWxlLXByZWNlZGVuY2VcbiAgICAgICAgY2xhc3NOYW1lPXtwcm9wcy5jbGFzc05hbWV9XG4gICAgICAgIGRpc2FibGVkPXtwcm9wcy5pc0Rpc2FibGVkfVxuICAgICAgICBhcmlhLWRpc2FibGVkPXtwcm9wcy5pc0Rpc2FibGVkfVxuICAgICAgICB7Li4uKHByb3BzLmlzVG9nZ2xlQnV0dG9uID8geyAnYXJpYS1wcmVzc2VkJzogcHJvcHMuaXNUb2dnbGVkIH0gOiB7fSl9XG4gICAgICAgIHsuLi5vbWl0KHByb3BzLmJ1dHRvbkF0dHJpYnV0ZXMsIHByb3BzVG9PbWl0KX1cbiAgICAgICAgey4uLmJ1dHRvblByb3BzfVxuICAgICAgICB7Li4uZmlsdGVyQXJpYUF0dHJpYnV0ZXMocHJvcHMpfVxuICAgICAgPlxuICAgICAgICB7cHJvcHMuY2hpbGRyZW59XG4gICAgICA8L0J1dHRvbj5cbiAgICApO1xuICB9XG4pO1xuQWNjZXNzaWJsZUJ1dHRvbi5kaXNwbGF5TmFtZSA9ICdBY2Nlc3NpYmxlQnV0dG9uJztcbkFjY2Vzc2libGVCdXR0b24uZGVmYXVsdFByb3BzID0gZGVmYXVsdFByb3BzO1xuXG5leHBvcnQgZGVmYXVsdCBBY2Nlc3NpYmxlQnV0dG9uO1xuIl19 */") | ||
css: /*#__PURE__*/react$1.css(normalizedButtonStyles, " display:inline-flex;font-size:", designSystem.designTokens.fontSize20, ";font-weight:", designSystem.designTokens.fontWeight500, ";cursor:", props.isDisabled ? 'not-allowed' : 'pointer', ";&:disabled{cursor:not-allowed;}" + (process.env.NODE_ENV === "production" ? "" : ";label:AccessibleButton;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJza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AgICAgICAgaWYgKCFwcm9wcy5pc0Rpc2FibGVkICYmIG9uQ2xpY2sgJiYgZ2V0SXNFbnRlck9yU3BhY2UoZXZlbnQpKSB7XG4gICAgICAgICAgcmV0dXJuIG9uQ2xpY2soZXZlbnQpO1xuICAgICAgICB9XG4gICAgICAgIHJldHVybjtcbiAgICAgIH0sXG4gICAgICBbb25DbGljaywgcHJvcHMuaXNEaXNhYmxlZF1cbiAgICApO1xuXG4gICAgbGV0IGJ1dHRvblByb3BzID0ge307XG4gICAgaWYgKGlzQnV0dG9uKSB7XG4gICAgICBidXR0b25Qcm9wcyA9IHtcbiAgICAgICAgdHlwZTogcHJvcHMudHlwZSxcbiAgICAgIH07XG4gICAgfSBlbHNlIHtcbiAgICAgIGJ1dHRvblByb3BzID0ge1xuICAgICAgICByb2xlOiAnYnV0dG9uJyxcbiAgICAgICAgdGFiSW5kZXg6ICcwJyxcbiAgICAgICAgb25LZXlQcmVzczogaGFuZGxlS2V5UHJlc3MsXG4gICAgICB9O1xuICAgIH1cblxuICAgIHJldHVybiAoXG4gICAgICA8QnV0dG9uXG4gICAgICAgIGFzPXtwcm9wcy5hcyBhcyBFbGVtZW50VHlwZX1cbiAgICAgICAgaWQ9e3Byb3BzLmlkfVxuICAgICAgICByZWY9e3JlZn1cbiAgICAgICAgYXJpYS1sYWJlbD17cHJvcHMubGFiZWx9XG4gICAgICAgIG9uQ2xpY2s9e2hhbmRsZUNsaWNrfVxuICAgICAgICBjc3M9e2Nzc2BcbiAgICAgICAgICAke25vcm1hbGl6ZWRCdXR0b25TdHlsZXN9XG4gICAgICAgICAgZGlzcGxheTogaW5saW5lLWZsZXg7XG4gICAgICAgICAgZm9udC1zaXplOiAke2Rlc2lnblRva2Vucy5mb250U2l6ZTIwfTtcbiAgICAgICAgICBmb250LXdlaWdodDogJHtkZXNpZ25Ub2tlbnMuZm9udFdlaWdodDUwMH07XG4gICAgICAgICAgY3Vyc29yOiAke3Byb3BzLmlzRGlzYWJsZWQgPyAn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VCdXR0b24uZGVmYXVsdFByb3BzID0gZGVmYXVsdFByb3BzO1xuXG5leHBvcnQgZGVmYXVsdCBBY2Nlc3NpYmxlQnV0dG9uO1xuIl19 */") | ||
// Allow to override the styles by passing a `className` prop. | ||
@@ -127,3 +127,3 @@ // Custom styles can also be passed using the `css` prop from emotion. | ||
'aria-pressed': props.isToggled | ||
} : {}), omit__default["default"](props.buttonAttributes, propsToOmit)), buttonProps), utils.filterAriaAttributes(props)), {}, { | ||
} : {}), omit__default["default"](props.buttonAttributes, propsToOmit)), buttonProps), utils.filterAriaAttributes(props)), utils.filterDataAttributes(props)), {}, { | ||
children: props.children | ||
@@ -130,0 +130,0 @@ })); |
@@ -95,3 +95,3 @@ 'use strict'; | ||
} | ||
return jsxRuntime.jsx(Button, _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({ | ||
return jsxRuntime.jsx(Button, _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({ | ||
as: props.as, | ||
@@ -112,3 +112,3 @@ id: props.id, | ||
'aria-pressed': props.isToggled | ||
} : {}), omit__default["default"](props.buttonAttributes, propsToOmit)), buttonProps), utils.filterAriaAttributes(props)), {}, { | ||
} : {}), omit__default["default"](props.buttonAttributes, propsToOmit)), buttonProps), utils.filterAriaAttributes(props)), utils.filterDataAttributes(props)), {}, { | ||
children: props.children | ||
@@ -115,0 +115,0 @@ })); |
@@ -14,3 +14,3 @@ import _Object$keys from '@babel/runtime-corejs3/core-js-stable/object/keys'; | ||
import omit from 'lodash/omit'; | ||
import { warning, filterAriaAttributes } from '@commercetools-uikit/utils'; | ||
import { warning, filterAriaAttributes, filterDataAttributes } from '@commercetools-uikit/utils'; | ||
import { designTokens } from '@commercetools-uikit/design-system'; | ||
@@ -47,3 +47,3 @@ import { css } from '@emotion/react'; | ||
label: "Button" | ||
})(process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3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iYgZ2V0SXNFbnRlck9yU3BhY2UoZXZlbnQpKSB7XG4gICAgICAgICAgcmV0dXJuIG9uQ2xpY2soZXZlbnQpO1xuICAgICAgICB9XG4gICAgICAgIHJldHVybjtcbiAgICAgIH0sXG4gICAgICBbb25DbGljaywgcHJvcHMuaXNEaXNhYmxlZF1cbiAgICApO1xuXG4gICAgbGV0IGJ1dHRvblByb3BzID0ge307XG4gICAgaWYgKGlzQnV0dG9uKSB7XG4gICAgICBidXR0b25Qcm9wcyA9IHtcbiAgICAgICAgdHlwZTogcHJvcHMudHlwZSxcbiAgICAgIH07XG4gICAgfSBlbHNlIHtcbiAgICAgIGJ1dHRvblByb3BzID0ge1xuICAgICAgICByb2xlOiAnYnV0dG9uJyxcbiAgICAgICAgdGFiSW5kZXg6ICcwJyxcbiAgICAgICAgb25LZXlQcmVzczogaGFuZGxlS2V5UHJlc3MsXG4gICAgICB9O1xuICAgIH1cblxuICAgIHJldHVybiAoXG4gICAgICA8QnV0dG9uXG4gICAgICAgIGFzPXtwcm9wcy5hcyBhcyBFbGVtZW50VHlwZX1cbiAgICAgICAgaWQ9e3Byb3BzLmlkfVxuICAgICAgICByZWY9e3JlZn1cbiAgICAgICAgYXJpYS1sYWJlbD17cHJvcHMubGFiZWx9XG4gICAgICAgIG9uQ2xpY2s9e2hhbmRsZUNsaWNrfVxuICAgICAgICBjc3M9e2Nzc2BcbiAgICAgICAgICAke25vcm1hbGl6ZWRCdXR0b25TdHlsZXN9XG4gICAgICAgICAgZGlzcGxheTogaW5saW5lLWZsZXg7XG4gICAgICAgICAgZm9udC1zaXplOiAke2Rlc2lnblRva2Vucy5mb250U2l6ZTIwfTtcbiAgICAgICAgICBmb250LXdlaWdodDogJHtkZXNpZ25Ub2tlbnMuZm9udFdlaWdodDUwMH07XG4gICAgICAgICAgY3Vyc29yOiAke3Byb3BzLmlzRGlzYWJsZWQgPyAnbm90LWFsbG93ZWQnIDogJ3BvaW50ZXInfTtcbiAgICAgICAgICAmOmRpc2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ldmVudERlZmF1bHQoKTtcbiAgICAgICAgICByZXR1cm4gZmFsc2U7XG4gICAgICAgIH1cbiAgICAgICAgaWYgKCFwcm9wcy5pc0Rpc2FibGVkICYmIG9uQ2xpY2sgJiYgZ2V0SXNFbnRlck9yU3BhY2UoZXZlbnQpKSB7XG4gICAgICAgICAgcmV0dXJuIG9uQ2xpY2soZXZlbnQpO1xuICAgICAgICB9XG4gICAgICAgIHJldHVybjtcbiAgICAgIH0sXG4gICAgICBbb25DbGljaywgcHJvcHMuaXNEaXNhYmxlZF1cbiAgICApO1xuXG4gICAgbGV0IGJ1dHRvblByb3BzID0ge307XG4gICAgaWYgKGlzQnV0dG9uKSB7XG4gICAgICBidXR0b25Qcm9wcyA9IHtcbiAgICAgICAgdHlwZTogcHJvcHMudHlwZSxcbiAgICAgIH07XG4gICAgfSBlbHNlIHtcbiAgICAgIGJ1dHRvblByb3BzID0ge1xuICAgICAgICByb2xlOiAnYnV0dG9uJyxcbiAgICAgICAgdGFiSW5kZXg6ICcwJyxcbiAgICAgICAgb25LZXlQcmVzczogaGFuZGxlS2V5UHJlc3MsXG4gICAgICB9O1xuICAgIH1cblxuICAgIHJldHVybiAoXG4gICAgICA8QnV0dG9uXG4gICAgICAgIGFzPXtwcm9wcy5hcyBhcyBFbGVtZW50VHlwZX1cbiAgICAgICAgaWQ9e3Byb3BzLmlkfVxuICAgICAgICByZWY9e3JlZn1cbiAgICAgICAgYXJpYS1sYWJlbD17cHJvcHMubGFiZWx9XG4gICAgICAgIG9uQ2xpY2s9e2hhbmRsZUNsaWNrfVxuICAgICAgICBjc3M9e2Nzc2BcbiAgICAgICAgICAke25vcm1hbGl6ZWRCdXR0b25TdHlsZXN9XG4gICAgICAgICAgZGlzcGxheTogaW5saW5lLWZsZXg7XG4gICAgICAgICAgZm9udC1zaXplOiAke2Rlc2lnblRva2Vucy5mb250U2l6ZTIwfTtcbiAgICAgICAgICBmb250LXdlaWdodDogJHtkZXNpZ25Ub2tlbnMuZm9udFdl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vbi5kaXNwbGF5TmFtZSA9ICdBY2Nlc3NpYmxlQnV0dG9uJztcbkFjY2Vzc2libGVCdXR0b24uZGVmYXVsdFByb3BzID0gZGVmYXVsdFByb3BzO1xuXG5leHBvcnQgZGVmYXVsdCBBY2Nlc3NpYmxlQnV0dG9uO1xuIl19 */"); | ||
const defaultProps = { | ||
@@ -93,3 +93,3 @@ type: 'button', | ||
} | ||
return jsx(Button, _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({ | ||
return jsx(Button, _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({ | ||
as: props.as, | ||
@@ -100,3 +100,3 @@ id: props.id, | ||
onClick: handleClick, | ||
css: /*#__PURE__*/css(normalizedButtonStyles, " display:inline-flex;font-size:", designTokens.fontSize20, ";font-weight:", designTokens.fontWeight500, ";cursor:", props.isDisabled ? 'not-allowed' : 'pointer', ";&:disabled{cursor:not-allowed;}" + (process.env.NODE_ENV === "production" ? "" : ";label:AccessibleButton;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImFjY2Vzc2libGUtYnV0dG9uLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUErSmdCIiwiZmlsZSI6ImFjY2Vzc2libGUtYnV0dG9uLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7XG4gIGZvcndhcmRSZWYsXG4gIHVzZUNhbGxiYWNrLFxuICBSZWFjdE5vZGUsXG4gIEtleWJvYXJkRXZlbnQsXG4gIEVsZW1lbnRUeXBlLFxuICBDb21wb25lbnRUeXBlLFxuICBNb3VzZUV2ZW50SGFuZGxlcixcbiAgS2V5Ym9hcmRFdmVudEhhbmRsZXIsXG4gIE1vdXNlRXZlbnQsXG59IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGlzVmFsaWRFbGVtZW50VHlwZSB9IGZyb20gJ3JlYWN0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FibGVkKSB7XG4gICAgICAgICAgZXZlbnQucHJldmVudERlZmF1bHQoKTtcbiAgICAgICAgICByZXR1cm4gZmFsc2U7XG4gICAgICAgIH1cbiAgICAgICAgaWYgKCFwcm9wcy5pc0Rpc2FibGVkICYmIG9uQ2xpY2spIHtcbiAgICAgICAgICByZXR1cm4gb25DbGljayhldmVudCk7XG4gICAgICAgIH1cbiAgICAgICAgcmV0dXJuO1xuICAgICAgfSxcbiAgICAgIFtvbkNsaWNrLCBwcm9wcy5pc0Rpc2FibGVkXVxuICAgICk7XG4gICAgY29uc3QgaGFuZGxlS2V5UHJlc3MgPSB1c2VDYWxsYmFjazxLZXlib2FyZEV2ZW50SGFuZGxlcjxIVE1MQnV0dG9uRWxlbWVudD4+KFxuICAgICAgKGV2ZW50KSA9PiB7XG4gICAgICAgIGlmIChwcm9wcy5pc0Rpc2FibGVkKSB7XG4gICAgICAgICAgZXZlbnQucHJldmVudERlZmF1bHQoKTtcbiAgICAgICAgICByZXR1cm4gZmFsc2U7XG4gICAgICAgIH1cbiAgICAgICAgaWYgKCFwcm9wcy5pc0Rpc2FibGVkICYmIG9uQ2xpY2sgJiYgZ2V0SXNFbnRlck9yU3BhY2UoZXZlbnQpKSB7XG4gICAgICAgICAgcmV0dXJuIG9uQ2xpY2soZXZlbnQpO1xuICAgICAgICB9XG4gICAgICAgIHJldHVybjtcbiAgICAgIH0sXG4gICAgICBbb25DbGljaywgcHJvcHMuaXNEaXNhYmxlZF1cbiAgICApO1xuXG4gICAgbGV0IGJ1dHRvblByb3BzID0ge307XG4gICAgaWYgKGlzQnV0dG9uKSB7XG4gICAgICBidXR0b25Qcm9wcyA9IHtcbiAgICAgICAgdHlwZTogcHJvcHMudHlwZSxcbiAgICAgIH07XG4gICAgfSBlbHNlIHtcbiAgICAgIGJ1dHRvblByb3BzID0ge1xuICAgICAgICByb2xlOiAnYnV0dG9uJyxcbiAgICAgICAgdGFiSW5kZXg6ICcwJyxcbiAgICAgICAgb25LZXlQcmVz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rpc2FibGVkfVxuICAgICAgICBhcmlhLWRpc2FibGVkPXtwcm9wcy5pc0Rpc2FibGVkfVxuICAgICAgICB7Li4uKHByb3BzLmlzVG9nZ2xlQnV0dG9uID8geyAnYXJpYS1wcmVzc2VkJzogcHJvcHMuaXNUb2dnbGVkIH0gOiB7fSl9XG4gICAgICAgIHsuLi5vbWl0KHByb3BzLmJ1dHRvbkF0dHJpYnV0ZXMsIHByb3BzVG9PbWl0KX1cbiAgICAgICAgey4uLmJ1dHRvblByb3BzfVxuICAgICAgICB7Li4uZmlsdGVyQXJpYUF0dHJpYnV0ZXMocHJvcHMpfVxuICAgICAgPlxuICAgICAgICB7cHJvcHMuY2hpbGRyZW59XG4gICAgICA8L0J1dHRvbj5cbiAgICApO1xuICB9XG4pO1xuQWNjZXNzaWJsZUJ1dHRvbi5kaXNwbGF5TmFtZSA9ICdBY2Nlc3NpYmxlQnV0dG9uJztcbkFjY2Vzc2libGVCdXR0b24uZGVmYXVsdFByb3BzID0gZGVmYXVsdFByb3BzO1xuXG5leHBvcnQgZGVmYXVsdCBBY2Nlc3NpYmxlQnV0dG9uO1xuIl19 */") | ||
css: /*#__PURE__*/css(normalizedButtonStyles, " display:inline-flex;font-size:", designTokens.fontSize20, ";font-weight:", designTokens.fontWeight500, ";cursor:", props.isDisabled ? 'not-allowed' : 'pointer', ";&:disabled{cursor:not-allowed;}" + (process.env.NODE_ENV === "production" ? "" : ";label:AccessibleButton;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImFjY2Vzc2libGUtYnV0dG9uLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFtS2dCIiwiZmlsZSI6ImFjY2Vzc2libGUtYnV0dG9uLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7XG4gIGZvcndhcmRSZWYsXG4gIHVzZUNhbGxiYWNrLFxuICBSZWFjdE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F1cbiAgICApO1xuXG4gICAgbGV0IGJ1dHRvblByb3BzID0ge307XG4gICAgaWYgKGlzQnV0dG9uKSB7XG4gICAgICBidXR0b25Qcm9wcyA9IHtcbiAgICAgICAgdHlwZTogcHJvcHMudHlwZSxcbiAgICAgIH07XG4gICAgfSBlbHNlIHtcbiAgICAgIGJ1dHRvblByb3BzID0ge1xuICAgICAgICByb2xlOiAnYnV0dG9uJyxcbiAgICAgICAgdGFiSW5kZXg6ICcwJyxcbiAgICAgICAgb25LZXlQcmVzczogaGFuZGxlS2V5UHJlc3MsXG4gICAgICB9O1xuICAgIH1cblxuICAgIHJldHVybiAoXG4gICAgICA8QnV0dG9uXG4gICAgICAgIGFzPXtwcm9wcy5hcyBhcyBFbGVtZW50VHlwZX1cbiAgICAgICAgaWQ9e3Byb3BzLmlkfVxuICAgICAgICByZWY9e3JlZn1cbiAgICAgICAgYXJpYS1sYWJlbD17cHJvcHMubGFiZWx9XG4gICAgICAgIG9uQ2xpY2s9e2hhbmRsZUNsaWNrfVxuICAgICAgICBjc3M9e2Nzc2BcbiAgICAgICAgICAke25vcm1hbGl6ZWRCdXR0b25TdHlsZXN9XG4gICAgICAgICAgZGlzcGxheTogaW5saW5lLWZsZXg7XG4gICAgICAgICAgZm9udC1zaXplOiAke2Rlc2lnblRva2Vucy5mb250U2l6ZTIwfTtcbiAgICAgICAgICBmb250LXdlaWdodDogJHtkZXNpZ25Ub2tlbnMuZm9udFdlaWdodDUwMH07XG4gICAgICAgICAgY3Vyc29yOiAke3Byb3BzLmlzRGlzYWJsZWQgPyAnbm90LWFsbG93ZWQnIDogJ3BvaW50ZXInfTtcbiAgICAgICAgICAmOmRpc2FibGVkIHtcbiAgICAgICAgICAgIGN1cnNvcjogbm90LWFsbG93ZWQ7XG4gICAgICAgICAgfVxuICAgICAgICBgfVxuICAgICAgICAvLyBBbGxvdyB0byBvdmVycmlkZSB0aGUgc3R5bGVzIGJ5IHBhc3NpbmcgYSBgY2xhc3NOYW1lYCBwcm9wLlxuICAgICAgICAvLyBDdXN0b20gc3R5bGVzIGNhbiBhbHNvIGJlIHBhc3NlZCB1c2luZyB0aGUgYGNzc2AgcHJvcCBmcm9tIGVtb3Rpb24uXG4gICAgICAgIC8vIGh0dHBzOi8vZW1vdGlvbi5zaC9kb2NzL2Nzcy1wcm9wI3N0eWxlLXByZWNlZGVuY2VcbiAgICAgICAgY2xhc3NOYW1lPXtwcm9wcy5jbGFzc05hbWV9XG4gICAgICAgIGRpc2FibGVkPXtwcm9wcy5pc0Rpc2FibGVkfVxuICAgICAgICBhcmlhLWRpc2FibGVkPXtwcm9wcy5pc0Rpc2FibGVkfVxuICAgICAgICB7Li4uKHByb3BzLmlzVG9nZ2xlQnV0dG9uID8geyAnYXJpYS1wcmVzc2VkJzogcHJvcHMuaXNUb2dnbGVkIH0gOiB7fSl9XG4gICAgICAgIHsuLi5vbWl0KHByb3BzLmJ1dHRvbkF0dHJpYnV0ZXMsIHByb3BzVG9PbWl0KX1cbiAgICAgICAgey4uLmJ1dHRvblByb3BzfVxuICAgICAgICB7Li4uZmlsdGVyQXJpYUF0dHJpYnV0ZXMocHJvcHMpfVxuICAgICAgICB7Li4uZmlsdGVyRGF0YUF0dHJpYnV0ZXMocHJvcHMpfVxuICAgICAgPlxuICAgICAgICB7cHJvcHMuY2hpbGRyZW59XG4gICAgICA8L0J1dHRvbj5cbiAgICApO1xuICB9XG4pO1xuQWNjZXNzaWJsZUJ1dHRvbi5kaXNwbGF5TmFtZSA9ICdBY2Nlc3NpYmxlQnV0dG9uJztcbkFjY2Vzc2libGVCdXR0b24uZGVmYXVsdFByb3BzID0gZGVmYXVsdFByb3BzO1xuXG5leHBvcnQgZGVmYXVsdCBBY2Nlc3NpYmxlQnV0dG9uO1xuIl19 */") | ||
// Allow to override the styles by passing a `className` prop. | ||
@@ -111,3 +111,3 @@ // Custom styles can also be passed using the `css` prop from emotion. | ||
'aria-pressed': props.isToggled | ||
} : {}), omit(props.buttonAttributes, propsToOmit)), buttonProps), filterAriaAttributes(props)), {}, { | ||
} : {}), omit(props.buttonAttributes, propsToOmit)), buttonProps), filterAriaAttributes(props)), filterDataAttributes(props)), {}, { | ||
children: props.children | ||
@@ -114,0 +114,0 @@ })); |
{ | ||
"name": "@commercetools-uikit/accessible-button", | ||
"description": "A React component that you can use to wrap your buttons in an accessible <button/> element.", | ||
"version": "0.0.0-canary-20240716102951", | ||
"version": "0.0.0-canary-20240719104735", | ||
"bugs": "https://github.com/commercetools/ui-kit/issues", | ||
@@ -32,4 +32,4 @@ "repository": { | ||
"@babel/runtime-corejs3": "^7.20.13", | ||
"@commercetools-uikit/design-system": "0.0.0-canary-20240716102951", | ||
"@commercetools-uikit/utils": "0.0.0-canary-20240716102951", | ||
"@commercetools-uikit/design-system": "0.0.0-canary-20240719104735", | ||
"@commercetools-uikit/utils": "0.0.0-canary-20240719104735", | ||
"@emotion/react": "^11.10.5", | ||
@@ -36,0 +36,0 @@ "@emotion/styled": "^11.10.5", |
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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
67764
+ Added@commercetools-uikit/design-system@0.0.0-canary-20240719104735(transitive)
+ Added@commercetools-uikit/hooks@0.0.0-canary-20240719104735(transitive)
+ Added@commercetools-uikit/utils@0.0.0-canary-20240719104735(transitive)
- Removed@commercetools-uikit/design-system@0.0.0-canary-20240716102951(transitive)
- Removed@commercetools-uikit/hooks@0.0.0-canary-20240716102951(transitive)
- Removed@commercetools-uikit/utils@0.0.0-canary-20240716102951(transitive)
Updated@commercetools-uikit/design-system@0.0.0-canary-20240719104735
Updated@commercetools-uikit/utils@0.0.0-canary-20240719104735