oneslash-design-system 2.7.1 → 2.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,7 +14,7 @@ export default function Checkbox(_a) {
14
14
  setIsChecked(event.target.checked);
15
15
  onChange === null || onChange === void 0 ? void 0 : onChange(event.target.checked);
16
16
  };
17
- return (<label className={"group flex items-start ".concat(disabled ? 'cursor-not-allowed' : 'cursor-pointer')}>
17
+ return (<label className={"group relative flex items-start ".concat(disabled ? 'cursor-not-allowed' : 'cursor-pointer')}>
18
18
  {/* Native input keeps keyboard focus, Space to toggle and screen-reader semantics */}
19
19
  <input type="checkbox" className="peer sr-only" checked={isChecked} disabled={disabled} onChange={handleChange}/>
20
20
  <span className={"relative flex flex-shrink-0 items-center justify-center w-6 h-6 rounded-full ".concat(stateTransition, "\n peer-focus-visible:outline peer-focus-visible:outline-2 peer-focus-visible:outline-offset-0 peer-focus-visible:outline-fg-primary\n ").concat(disabled ? '' : 'group-hover:bg-action-selected')}>
@@ -8,7 +8,7 @@ export default function RadioGroup(_a) {
8
8
  return (<div role="radiogroup" className={"flex ".concat(direction === 'horizontal' ? 'gap-4' : 'flex-col gap-2')}>
9
9
  {options.map(function (option) {
10
10
  var isSelected = selectedValue === option.value;
11
- return (<label key={option.value} className="group flex items-start cursor-pointer">
11
+ return (<label key={option.value} className="group relative flex items-start cursor-pointer">
12
12
  <input type="radio" name={groupName} value={option.value} checked={isSelected} onChange={function () { return onChange(option.value); }} className="peer sr-only"/>
13
13
  {/* Hover halo and hit area, same as Checkbox */}
14
14
  <span className={"relative flex flex-shrink-0 items-center justify-center w-6 h-6 rounded-full ".concat(stateTransition, "\n group-hover:bg-action-selected\n peer-focus-visible:outline peer-focus-visible:outline-2 peer-focus-visible:outline-offset-0 peer-focus-visible:outline-fg-primary")}>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "oneslash-design-system",
3
3
  "description": "A design system for the Oneslash projects",
4
- "version": "2.7.1",
4
+ "version": "2.7.2",
5
5
  "private": false,
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",