@astryxdesign/core 0.7.9-canary.9bd11b3 → 0.7.9-canary.cfd25ce

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.
@@ -59,7 +59,8 @@ export interface InputGroupProps extends Omit<BaseProps<HTMLDivElement>, 'childr
59
59
  */
60
60
  size?: InputGroupSize;
61
61
  /**
62
- * Status indicator applied to the group border.
62
+ * Validation status. Its message shows below the group. The group border
63
+ * does not change; a theme can style the row from `data-status`.
63
64
  */
64
65
  status?: InputStatus;
65
66
  /**
@@ -72,8 +73,8 @@ export interface InputGroupProps extends Omit<BaseProps<HTMLDivElement>, 'childr
72
73
  'data-testid'?: string;
73
74
  }
74
75
  /**
75
- * Groups an input with prefix/suffix addons in a visually connected
76
- * container with shared border and focus ring.
76
+ * Groups an input with prefix and suffix addons in one connected row. A
77
+ * focused member stays above its neighbours, so its focus ring shows in full.
77
78
  *
78
79
  * @example
79
80
  * ```
@@ -1 +1 @@
1
- {"version":3,"file":"InputGroup.d.ts","sourceRoot":"","sources":["../../src/InputGroup/InputGroup.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAsB,KAAK,SAAS,EAAC,MAAM,OAAO,CAAC;AAG1D,OAAO,EAAQ,KAAK,WAAW,EAAC,MAAM,UAAU,CAAC;AAGjD,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AAK5C,MAAM,MAAM,cAAc,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AA0BhD,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAC3C,SAAS,CAAC,cAAc,CAAC,EACzB,UAAU,CACX;IACC,mDAAmD;IACnD,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;IAEhC;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IAEpB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;OAGG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KAAK,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;IAEhC;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IAEpB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;;OAGG;IACH,IAAI,CAAC,EAAE,cAAc,CAAC;IAEtB;;;OAGG;IACH,MAAM,CAAC,EAAE,WAAW,CAAC;IAErB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,UAAU,CAAC,EACzB,QAAQ,EACR,KAAK,EACL,aAAqB,EACrB,WAAW,EACX,UAAU,EAAE,cAAsB,EAClC,UAAkB,EAClB,UAAkB,EAClB,IAAI,EAAE,QAAQ,EACd,MAAM,EACN,YAAY,EACZ,MAAM,EACN,SAAS,EACT,KAAK,EACL,GAAG,EACH,aAAa,EAAE,MAAM,EACrB,GAAG,IAAI,EACR,EAAE,eAAe,+BA8EjB;yBA/Fe,UAAU"}
@@ -57,8 +57,8 @@ const sizeStyles = {
57
57
  }
58
58
  };
59
59
  /**
60
- * Groups an input with prefix/suffix addons in a visually connected
61
- * container with shared border and focus ring.
60
+ * Groups an input with prefix and suffix addons in one connected row. A
61
+ * focused member stays above its neighbours, so its focus ring shows in full.
62
62
  *
63
63
  * @example
64
64
  * ```
@@ -33,7 +33,7 @@ export declare const groupStyles: Readonly<{
33
33
  readonly borderStartEndRadius: stylex.StyleXClassNameFor<"borderStartEndRadius", 0 | "8px">;
34
34
  readonly borderEndEndRadius: stylex.StyleXClassNameFor<"borderEndEndRadius", 0 | "8px">;
35
35
  readonly ':focus-within': stylex.StyleXClassNameFor<":focus-within", {
36
- readonly zIndex: 1;
36
+ readonly zIndex: 2;
37
37
  }>;
38
38
  }>;
39
39
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"groupStyles.d.ts","sourceRoot":"","sources":["../../src/InputGroup/groupStyles.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AAEH,OAAO,KAAK,MAAM,MAAM,kBAAkB,CAAC;AAG3C;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB;;CAEtB,CAAC;AA0BX,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;EAwDtB,CAAC"}
1
+ {"version":3,"file":"groupStyles.d.ts","sourceRoot":"","sources":["../../src/InputGroup/groupStyles.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AAEH,OAAO,KAAK,MAAM,MAAM,kBAAkB,CAAC;AAG3C;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB;;CAEtB,CAAC;AA0BX,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;EA0DtB,CAAC"}
@@ -62,7 +62,7 @@ export const groupStyles = {
62
62
  kVL7Gh: "xbiv7yw x1xrp5p4",
63
63
  kfmiAY: "x1ga7v0g x1ursdma",
64
64
  kT0f0o: "x16uus16 x1qa286i",
65
- kXnDq0: "x1rm9qnc",
65
+ kXnDq0: "x1pc0aet",
66
66
  $$css: true
67
67
  }
68
68
  };
package/dist/astryx.css CHANGED
@@ -1633,7 +1633,7 @@
1633
1633
  .xttggg:is([dir="rtl"] *):not(#\#):not(#\#):not(#\#){transform:translateX(100%)}
1634
1634
  .x1nyx83j:is([dir="rtl"] *):not(#\#):not(#\#):not(#\#){transform:translateX(50%)}
1635
1635
  .x9cjr8z:popover-open:not(#\#):not(#\#):not(#\#){transform:translateY(0)}
1636
- .x1rm9qnc:focus-within:not(#\#):not(#\#):not(#\#){z-index:1}
1636
+ .x1pc0aet:focus-within:not(#\#):not(#\#):not(#\#){z-index:2}
1637
1637
  .xf5goe6.xf5goe6:where(.astryx-input-group > [data-astryx-input-group-item]):focus-visible:not(#\#):not(#\#):not(#\#){z-index:2}
1638
1638
  .x151j4nw:has(input[aria-disabled="true"]:focus-visible):not(#\#):not(#\#):not(#\#){box-shadow:inset 0 0 0 2px var(--color-accent-muted)}
1639
1639
  .xwmge8v:has(> [aria-disabled="true"]:focus-visible):not(#\#):not(#\#):not(#\#){box-shadow:inset 0 0 0 2px var(--color-accent-muted)}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astryxdesign/core",
3
- "version": "0.7.9-canary.9bd11b3",
3
+ "version": "0.7.9-canary.cfd25ce",
4
4
  "displayName": "Astryx Core",
5
5
  "description": "The component library. Accessible, themeable React components with built-in spacing, dark mode, and StyleX styling.",
6
6
  "author": "Meta Open Source",
@@ -870,9 +870,9 @@
870
870
  "react-dom": ">=19.0.0"
871
871
  },
872
872
  "devDependencies": {
873
- "@astryxdesign/a11y-spec": "0.7.9-canary.9bd11b3",
874
- "@astryxdesign/cli": "0.7.9-canary.9bd11b3",
875
- "@astryxdesign/interaction-harness": "0.7.9-canary.9bd11b3",
873
+ "@astryxdesign/a11y-spec": "0.7.9-canary.cfd25ce",
874
+ "@astryxdesign/cli": "0.7.9-canary.cfd25ce",
875
+ "@astryxdesign/interaction-harness": "0.7.9-canary.cfd25ce",
876
876
  "@babel/cli": "^7.29.7",
877
877
  "@babel/core": "^7.29.7",
878
878
  "@babel/preset-react": "^7.29.7",
@@ -24,7 +24,7 @@ export const docs = {
24
24
  ],
25
25
  },
26
26
  description:
27
- 'Groups an input with prefix/suffix addons in a visually connected container with shared border and focus ring.',
27
+ 'Groups an input with prefix and suffix addons in one connected row. A focused member stays above its neighbours, so its focus ring shows in full.',
28
28
  props: [
29
29
  {
30
30
  name: 'children',
@@ -59,7 +59,7 @@ export const docs = {
59
59
  {
60
60
  name: 'isOptional',
61
61
  type: 'boolean',
62
- description: 'Show "(optional)" indicator.',
62
+ description: 'Show the "Optional" indicator after the label.',
63
63
  default: 'false',
64
64
  },
65
65
  {
@@ -77,7 +77,8 @@ export const docs = {
77
77
  {
78
78
  name: 'status',
79
79
  type: "{type: 'warning' | 'error' | 'success', message?: string}",
80
- description: 'Status indicator applied to the group border.',
80
+ description:
81
+ 'Validation status. Its message shows below the group. The group border does not change; a theme can style the row from `data-status`.',
81
82
  },
82
83
  {
83
84
  name: 'labelTooltip',
@@ -109,7 +109,8 @@ export interface InputGroupProps extends Omit<
109
109
  size?: InputGroupSize;
110
110
 
111
111
  /**
112
- * Status indicator applied to the group border.
112
+ * Validation status. Its message shows below the group. The group border
113
+ * does not change; a theme can style the row from `data-status`.
113
114
  */
114
115
  status?: InputStatus;
115
116
 
@@ -125,8 +126,8 @@ export interface InputGroupProps extends Omit<
125
126
  }
126
127
 
127
128
  /**
128
- * Groups an input with prefix/suffix addons in a visually connected
129
- * container with shared border and focus ring.
129
+ * Groups an input with prefix and suffix addons in one connected row. A
130
+ * focused member stays above its neighbours, so its focus ring shows in full.
130
131
  *
131
132
  * @example
132
133
  * ```
@@ -96,8 +96,10 @@ export const groupStyles = stylex.create({
96
96
  default: 0,
97
97
  [IS_LAST_ITEM]: radiusVars['--radius-element'],
98
98
  },
99
+ // Input wrappers already sit at z-index 1. A focused member goes one
100
+ // higher, so an unfocused input beside it cannot cover its focus ring.
99
101
  ':focus-within': {
100
- zIndex: 1,
102
+ zIndex: 2,
101
103
  },
102
104
  },
103
105
  });