@wallarm-org/design-system 4.10.0 → 4.10.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.
@@ -1,11 +1,12 @@
1
1
  import type { FC } from 'react';
2
2
  import { Checkbox as ArkUiCheckbox } from '@ark-ui/react/checkbox';
3
3
  import { type VariantProps } from 'class-variance-authority';
4
+ import { type TestableProps } from '../../utils/testId.js';
4
5
  declare const checkboxGroupVariants: (props?: ({
5
6
  variant?: "card" | "default" | null | undefined;
6
7
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
8
  type CheckboxGroupVariantsProps = VariantProps<typeof checkboxGroupVariants>;
8
9
  type CheckboxGroupNativeProps = Omit<ArkUiCheckbox.GroupProps, 'className'>;
9
- export type CheckboxGroupProps = CheckboxGroupNativeProps & CheckboxGroupVariantsProps;
10
+ export type CheckboxGroupProps = CheckboxGroupNativeProps & CheckboxGroupVariantsProps & TestableProps;
10
11
  export declare const CheckboxGroup: FC<CheckboxGroupProps>;
11
12
  export {};
@@ -13,40 +13,43 @@ const checkboxGroupVariants = cva("flex flex-col gap-8", {
13
13
  }
14
14
  });
15
15
  const CheckboxGroup = (t0)=>{
16
- const $ = c(9);
16
+ const $ = c(10);
17
17
  let props;
18
18
  let t1;
19
+ let testIdProp;
19
20
  if ($[0] !== t0) {
20
- ({ variant: t1, ...props } = t0);
21
+ ({ variant: t1, "data-testid": testIdProp, ...props } = t0);
21
22
  $[0] = t0;
22
23
  $[1] = props;
23
24
  $[2] = t1;
25
+ $[3] = testIdProp;
24
26
  } else {
25
27
  props = $[1];
26
28
  t1 = $[2];
29
+ testIdProp = $[3];
27
30
  }
28
31
  const variant = void 0 === t1 ? "default" : t1;
29
- const testId = useTestId("group");
32
+ const testId = useTestId("group", testIdProp);
30
33
  let t2;
31
- if ($[3] !== variant) {
34
+ if ($[4] !== variant) {
32
35
  t2 = cn(checkboxGroupVariants({
33
36
  variant
34
37
  }));
35
- $[3] = variant;
36
- $[4] = t2;
37
- } else t2 = $[4];
38
+ $[4] = variant;
39
+ $[5] = t2;
40
+ } else t2 = $[5];
38
41
  let t3;
39
- if ($[5] !== props || $[6] !== t2 || $[7] !== testId) {
42
+ if ($[6] !== props || $[7] !== t2 || $[8] !== testId) {
40
43
  t3 = /*#__PURE__*/ jsx(Checkbox.Group, {
41
44
  ...props,
42
45
  "data-testid": testId,
43
46
  className: t2
44
47
  });
45
- $[5] = props;
46
- $[6] = t2;
47
- $[7] = testId;
48
- $[8] = t3;
49
- } else t3 = $[8];
48
+ $[6] = props;
49
+ $[7] = t2;
50
+ $[8] = testId;
51
+ $[9] = t3;
52
+ } else t3 = $[9];
50
53
  return t3;
51
54
  };
52
55
  CheckboxGroup.displayName = "CheckboxGroup";
@@ -1,11 +1,12 @@
1
1
  import type { FC } from 'react';
2
2
  import { RadioGroup as ArkUiRadioGroup } from '@ark-ui/react/radio-group';
3
3
  import { type VariantProps } from 'class-variance-authority';
4
+ import { type TestableProps } from '../../utils/testId.js';
4
5
  declare const radioGroupVariants: (props?: ({
5
6
  variant?: "card" | "default" | null | undefined;
6
7
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
8
  export type RadioGroupNativeProps = Omit<ArkUiRadioGroup.RootProps, 'className'>;
8
9
  export type RadioGroupVariantsProps = VariantProps<typeof radioGroupVariants>;
9
- export type RadioGroupProps = RadioGroupNativeProps & RadioGroupVariantsProps;
10
+ export type RadioGroupProps = RadioGroupNativeProps & RadioGroupVariantsProps & TestableProps;
10
11
  export declare const RadioGroup: FC<RadioGroupProps>;
11
12
  export {};
@@ -13,40 +13,43 @@ const radioGroupVariants = cva("", {
13
13
  }
14
14
  });
15
15
  const RadioGroup_RadioGroup = (t0)=>{
16
- const $ = c(9);
16
+ const $ = c(10);
17
17
  let props;
18
18
  let t1;
19
+ let testIdProp;
19
20
  if ($[0] !== t0) {
20
- ({ variant: t1, ...props } = t0);
21
+ ({ variant: t1, "data-testid": testIdProp, ...props } = t0);
21
22
  $[0] = t0;
22
23
  $[1] = props;
23
24
  $[2] = t1;
25
+ $[3] = testIdProp;
24
26
  } else {
25
27
  props = $[1];
26
28
  t1 = $[2];
29
+ testIdProp = $[3];
27
30
  }
28
31
  const variant = void 0 === t1 ? "default" : t1;
29
- const testId = useTestId("group");
32
+ const testId = useTestId("group", testIdProp);
30
33
  let t2;
31
- if ($[3] !== variant) {
34
+ if ($[4] !== variant) {
32
35
  t2 = cn(radioGroupVariants({
33
36
  variant
34
37
  }), "flex flex-col gap-8");
35
- $[3] = variant;
36
- $[4] = t2;
37
- } else t2 = $[4];
38
+ $[4] = variant;
39
+ $[5] = t2;
40
+ } else t2 = $[5];
38
41
  let t3;
39
- if ($[5] !== props || $[6] !== t2 || $[7] !== testId) {
42
+ if ($[6] !== props || $[7] !== t2 || $[8] !== testId) {
40
43
  t3 = /*#__PURE__*/ jsx(RadioGroup.Root, {
41
44
  ...props,
42
45
  "data-testid": testId,
43
46
  className: t2
44
47
  });
45
- $[5] = props;
46
- $[6] = t2;
47
- $[7] = testId;
48
- $[8] = t3;
49
- } else t3 = $[8];
48
+ $[6] = props;
49
+ $[7] = t2;
50
+ $[8] = testId;
51
+ $[9] = t3;
52
+ } else t3 = $[9];
50
53
  return t3;
51
54
  };
52
55
  RadioGroup_RadioGroup.displayName = "RadioGroup";
@@ -5,7 +5,7 @@ const horizontalBarStackBarClasses = "flex h-8 w-full overflow-hidden rounded-4"
5
5
  const horizontalBarStackRemainderClasses = "bg-bg-strong-primary";
6
6
  const horizontalBarStackHeaderClasses = "px-16 pt-8";
7
7
  const horizontalBarStackSkeletonHeaderClasses = horizontalBarStackHeaderClasses;
8
- const horizontalBarStackLegendClasses = "flex flex-row flex-wrap items-center gap-6 px-12 py-2";
8
+ const horizontalBarStackLegendClasses = "flex flex-row flex-wrap items-center gap-6 px-12 pt-2 pb-8";
9
9
  const horizontalBarStackLegendDotClasses = "inline-block size-8 rounded-2 shrink-0";
10
10
  const horizontalBarStackLegendLabelClasses = "text-xs font-mono text-text-primary";
11
11
  const horizontalBarStackSegmentVariants = cva('h-full min-w-px transition-opacity', {
@@ -1,6 +1,6 @@
1
1
  {
2
- "version": "4.9.0",
3
- "generatedAt": "2026-11-06T16:11:07.249Z",
2
+ "version": "4.10.1",
3
+ "generatedAt": "2026-11-07T17:05:21.543Z",
4
4
  "components": [
5
5
  {
6
6
  "name": "Accordion",
@@ -8224,6 +8224,11 @@
8224
8224
  "type": "{ default: string; card: string; }",
8225
8225
  "required": false,
8226
8226
  "defaultValue": "default"
8227
+ },
8228
+ {
8229
+ "name": "data-testid",
8230
+ "type": "string | undefined",
8231
+ "required": false
8227
8232
  }
8228
8233
  ]
8229
8234
  },
@@ -27880,6 +27885,11 @@
27880
27885
  "type": "{ default: string; card: string; }",
27881
27886
  "required": false,
27882
27887
  "defaultValue": "default"
27888
+ },
27889
+ {
27890
+ "name": "data-testid",
27891
+ "type": "string | undefined",
27892
+ "required": false
27883
27893
  }
27884
27894
  ]
27885
27895
  },
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "4.9.0",
2
+ "version": "4.10.1",
3
3
  "rules": "Every numeric utility is in px, not 4px steps: p-16 is 16px, p-4 is 4px. Translate Tailwind habits (p-4 → p-16, gap-6 → gap-24, w-64 → w-256).\n\nBefore composing a screen, call get_guideline for the pattern (app shell, list page, table, drawer, form, dialog, filters, empty state, settings, auth). Wrong → right:\n\n- p-5, gap-3, p-10 → stay on the scale: 1, 2, 4, 6, 8, 12, 16, 20, 24, 28, 32, 40, 48, 64…\n- space-y-4, margins per child → <VStack gap={16}>, <HStack gap={8}>\n- Padded page wrapper → PageHeader / PageToolbar / PageContent own the 24px gutter\n- p-* on Card, DrawerBody, DialogBody, PageToolbar, Table → none; they own their padding\n- className on Text, Heading, Field, Drawer/Dialog Header/Body/Footer → wrap in your own element\n- Raw <h1>, <p>, <label> → <Heading as=\"h2\" size=\"lg\">, <Text size=\"sm\">, Field\n- <Text> default (16px) for body → size=\"sm\"\n- leading-none (0px), leading-5 (5px) → leading-sm, leading-20\n- weight=\"semibold\" → weight is light|regular|medium|bold (medium = 450)\n- bg-primary, text-muted, bg-card, bg-white → bg-bg-primary, text-text-secondary, bg-bg-surface-1\n- text-error, bg-red-500 → danger tokens; categorical color → Badge color\n- dark: variant, setting data-theme → semantic tokens, useTheme().setTheme()\n- rounded-lg, rounded, rounded-[15px] → rounded-8 (controls), rounded-12 (panels)\n- shadow-* on DS components, z-* on overlays → never; they own both\n- focus:ring → focus-visible:ring-3 ring-focus-primary outline-none\n- size, DIALOG/DRAWER_SIZES → width: Dialog 400 confirm, 560 default, 960 picker; Drawer 640 default, 700 Timeline form\n- Dialog, useToast from the root → @wallarm-org/design-system/Dialog, /Toast\n- Field invalid → error on the control + FieldError\n- Table actions column → meta.renderMenuAction on the master column\n- Hand-built side menu → RemoteShell config={NavConfig}\n- ConfirmDialog, FilterBar, Combobox → compose Dialog parts, PageToolbar + FilterDropdown, Select + useSelectSearch\n- data-slot in tests → data-testid\n",
4
4
  "guidelines": [
5
5
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wallarm-org/design-system",
3
- "version": "4.10.0",
3
+ "version": "4.10.2",
4
4
  "description": "Core design system library with React components and Storybook documentation",
5
5
  "publishConfig": {
6
6
  "access": "public",