ionbase-ui 0.13.0 → 0.13.1

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 +1 @@
1
- {"version":3,"file":"Link.d.ts","sourceRoot":"","sources":["../../src/components/Link.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAQvE,OAAO,KAAK,EAAE,eAAe,EAAqB,MAAM,YAAY,CAAC;AAGrE,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,YAAY,CAAC;AAElD;;;;GAIG;AACH,KAAK,YAAY,GAAG,IAAI,CACtB,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAC7C,MAAM,eAAe,GAAG,OAAO,CAChC,CAAC;AAEF,MAAM,WAAW,SAAU,SAAQ,eAAe,EAAE,YAAY;IAC9D;;;;;;;OAOG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,sCAAsC;IACtC,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,6EAA6E;IAC7E,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,IAAI,yGAyHf,CAAC"}
1
+ {"version":3,"file":"Link.d.ts","sourceRoot":"","sources":["../../src/components/Link.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAQvE,OAAO,KAAK,EAAE,eAAe,EAAqB,MAAM,YAAY,CAAC;AAQrE,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,YAAY,CAAC;AAElD;;;;GAIG;AACH,KAAK,YAAY,GAAG,IAAI,CACtB,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAC7C,MAAM,eAAe,GAAG,OAAO,CAChC,CAAC;AAEF,MAAM,WAAW,SAAU,SAAQ,eAAe,EAAE,YAAY;IAC9D;;;;;;;OAOG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,sCAAsC;IACtC,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,6EAA6E;IAC7E,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,IAAI,yGAsIf,CAAC"}
@@ -3,6 +3,7 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
3
3
  import { forwardRef, useRef, useImperativeHandle } from 'react';
4
4
  import { useLink, useButton, useHover, useFocusRing, mergeProps, } from 'react-aria';
5
5
  import { resolveDisabled } from './resolve-disabled.js';
6
+ import { ARIA_LINK_NON_DOM_PROPS, ANCHOR_ONLY_DOM_PROPS, omitProps, } from './dom-props.js';
6
7
  /**
7
8
  * Link — Figma `Link` (774:1516).
8
9
  *
@@ -48,6 +49,18 @@ export const Link = forwardRef((props, forwardedRef) => {
48
49
  }, domRef);
49
50
  const interactionProps = isNavigating ? link.linkProps : button.buttonProps;
50
51
  const isPressed = isNavigating ? link.isPressed : button.isPressed;
52
+ /*
53
+ * `useLink`/`useButton` above were handed the FULL props object, so they have
54
+ * already taken `onPress` and friends and wired them up. What is left in
55
+ * `restProps` is a duplicate set with no further use — and spreading it puts
56
+ * `onPress` on the DOM node, which React warns about on every render and
57
+ * then ignores. Button and Input strip theirs the same way.
58
+ *
59
+ * The button branch strips more: `target`, `rel`, `download` and the rest are
60
+ * real anchor attributes and meaningless on a `<button>`.
61
+ */
62
+ const anchorProps = omitProps(restProps, ARIA_LINK_NON_DOM_PROPS);
63
+ const buttonDomProps = omitProps(anchorProps, ANCHOR_ONLY_DOM_PROPS);
51
64
  const { hoverProps, isHovered } = useHover({ isDisabled });
52
65
  const { focusProps, isFocusVisible } = useFocusRing();
53
66
  const classNames = ['ion-link', `ion-link--${variant}`, customClassName || '']
@@ -64,9 +77,9 @@ export const Link = forwardRef((props, forwardedRef) => {
64
77
  };
65
78
  const content = (_jsxs(_Fragment, { children: [startIcon && (_jsx("span", { className: "ion-link__icon-start", "aria-hidden": "true", children: startIcon })), children && _jsx("span", { className: "ion-link__label", children: children }), endIcon && (_jsx("span", { className: "ion-link__icon-end", "aria-hidden": "true", children: endIcon }))] }));
66
79
  if (!href) {
67
- return (_jsx("button", { ...restProps, ...mergeProps(interactionProps, hoverProps, focusProps), ...stateAttributes, ref: domRef, type: "button", disabled: isDisabled, className: classNames, children: content }));
80
+ return (_jsx("button", { ...buttonDomProps, ...mergeProps(interactionProps, hoverProps, focusProps), ...stateAttributes, ref: domRef, type: "button", disabled: isDisabled, className: classNames, children: content }));
68
81
  }
69
- return (_jsx("a", { ...restProps, ...mergeProps(interactionProps, hoverProps, focusProps), ...stateAttributes, ref: domRef,
82
+ return (_jsx("a", { ...anchorProps, ...mergeProps(interactionProps, hoverProps, focusProps), ...stateAttributes, ref: domRef,
70
83
  // A disabled link must not remain navigable. `aria-disabled` alone
71
84
  // still leaves the href clickable and focusable, so the href is
72
85
  // dropped and it is taken out of the tab order — the same treatment
@@ -1 +1 @@
1
- {"version":3,"file":"Link.js","sourceRoot":"","sources":["../../src/components/Link.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAc,EAAE,UAAU,EAAE,MAAM,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAC;AACvE,OAAO,EACL,OAAO,EACP,SAAS,EACT,QAAQ,EACR,YAAY,EACZ,UAAU,GACX,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,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Q,EAC/D,OAAO,IAAI,CACV,eAAM,SAAS,EAAC,oBAAoB,iBAAa,MAAM,YACpD,OAAO,GACH,CACR,IACA,CACJ,CAAC;IAEF,IAAI,CAAC,IAAI,EAAE,CAAC;QACV,OAAO,CACL,oBACO,cAAgE,KACjE,UAAU,CAAC,gBAAgB,EAAE,UAAU,EAAE,UAAU,CAAC,KACpD,eAAe,EACnB,GAAG,EAAE,MAAM,EACX,IAAI,EAAC,QAAQ,EACb,QAAQ,EAAE,UAAU,EACpB,SAAS,EAAE,UAAU,YAEpB,OAAO,GACD,CACV,CAAC;IACJ,CAAC;IAED,OAAO,CACL,eACM,WAAW,KACX,UAAU,CAAC,gBAAgB,EAAE,UAAU,EAAE,UAAU,CAAC,KACpD,eAAe,EACnB,GAAG,EAAE,MAAM;QACX,mEAAmE;QACnE,gEAAgE;QAChE,oEAAoE;QACpE,iCAAiC;QACjC,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,mBACpB,UAAU,IAAI,SAAS,EACtC,QAAQ,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,EACrC,SAAS,EAAE,UAAU,YAEpB,OAAO,GACN,CACL,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC"}
@@ -99,6 +99,36 @@ export declare const ARIA_TEXT_FIELD_NON_DOM_PROPS: readonly ["label", "descript
99
99
  * on the root and are deliberately absent.
100
100
  */
101
101
  export declare const ARIA_TAB_LIST_NON_DOM_PROPS: readonly ["children", "items", "disabledKeys", "isDisabled", "selectedKey", "defaultSelectedKey", "onSelectionChange", "keyboardActivation", "orientation"];
102
+ /**
103
+ * The same, for `AriaLinkOptions` — Link's prop type.
104
+ *
105
+ * Link shipped with this defect: `onPress` reached the DOM and every consuming
106
+ * app logged "Unknown event handler property `onPress`. It will be ignored." on
107
+ * every render. Harmless at runtime — `useLink`/`useButton` were handed the
108
+ * full props object, so the handler still fired — but it is exactly the noise
109
+ * this module exists to prevent, and Button had a story guarding against it
110
+ * while Link did not.
111
+ *
112
+ * Sources, as of react-aria 3.50:
113
+ * PressEvents onPress, onPressStart, onPressEnd, onPressChange, onPressUp
114
+ * FocusEvents onFocusChange
115
+ * LinkDOMProps routerOptions
116
+ * AriaLinkOptions elementType
117
+ *
118
+ * `autoFocus`, `onFocus`, `onBlur`, `id` and `aria-*` are real DOM props and
119
+ * must keep flowing through.
120
+ */
121
+ export declare const ARIA_LINK_NON_DOM_PROPS: readonly ["onPress", "onPressStart", "onPressEnd", "onPressChange", "onPressUp", "onFocusChange", "routerOptions", "elementType"];
122
+ /**
123
+ * Valid on `<a>`, meaningless on `<button>`.
124
+ *
125
+ * Link renders whichever the caller's props imply, so these are legitimate
126
+ * attributes in the anchor branch and unknown ones in the button branch. They
127
+ * are a separate list rather than folded into the set above precisely because
128
+ * the answer differs by element — merging them would silently drop `target`
129
+ * and `rel` from real links.
130
+ */
131
+ export declare const ANCHOR_ONLY_DOM_PROPS: readonly ["hrefLang", "target", "rel", "download", "ping", "referrerPolicy"];
102
132
  /**
103
133
  * Returns `props` without `keys`, leaving `props` untouched.
104
134
  *
@@ -1 +1 @@
1
- {"version":3,"file":"dom-props.d.ts","sourceRoot":"","sources":["../../src/components/dom-props.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;GAaG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,yBAAyB,yLAa2B,CAAC;AAElE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,eAAO,MAAM,6BAA6B,0PAiBgB,CAAC;AAE3D;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,2BAA2B,6JAUwB,CAAC;AAEjE;;;;;;GAMG;AACH,wBAAgB,SAAS,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,SAAS,WAAW,EAAE,EAC1E,KAAK,EAAE,CAAC,EACR,IAAI,EAAE,CAAC,GACN,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAIpB"}
1
+ {"version":3,"file":"dom-props.d.ts","sourceRoot":"","sources":["../../src/components/dom-props.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;GAaG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,yBAAyB,yLAa2B,CAAC;AAElE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,eAAO,MAAM,6BAA6B,0PAiBgB,CAAC;AAE3D;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,2BAA2B,6JAUwB,CAAC;AAEjE;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,uBAAuB,mIASmB,CAAC;AAExD;;;;;;;;GAQG;AACH,eAAO,MAAM,qBAAqB,8EAOqB,CAAC;AAExD;;;;;;GAMG;AACH,wBAAgB,SAAS,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,SAAS,WAAW,EAAE,EAC1E,KAAK,EAAE,CAAC,EACR,IAAI,EAAE,CAAC,GACN,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAIpB"}
@@ -139,6 +139,52 @@ export const ARIA_TAB_LIST_NON_DOM_PROPS = [
139
139
  'keyboardActivation',
140
140
  'orientation',
141
141
  ];
142
+ /**
143
+ * The same, for `AriaLinkOptions` — Link's prop type.
144
+ *
145
+ * Link shipped with this defect: `onPress` reached the DOM and every consuming
146
+ * app logged "Unknown event handler property `onPress`. It will be ignored." on
147
+ * every render. Harmless at runtime — `useLink`/`useButton` were handed the
148
+ * full props object, so the handler still fired — but it is exactly the noise
149
+ * this module exists to prevent, and Button had a story guarding against it
150
+ * while Link did not.
151
+ *
152
+ * Sources, as of react-aria 3.50:
153
+ * PressEvents onPress, onPressStart, onPressEnd, onPressChange, onPressUp
154
+ * FocusEvents onFocusChange
155
+ * LinkDOMProps routerOptions
156
+ * AriaLinkOptions elementType
157
+ *
158
+ * `autoFocus`, `onFocus`, `onBlur`, `id` and `aria-*` are real DOM props and
159
+ * must keep flowing through.
160
+ */
161
+ export const ARIA_LINK_NON_DOM_PROPS = [
162
+ 'onPress',
163
+ 'onPressStart',
164
+ 'onPressEnd',
165
+ 'onPressChange',
166
+ 'onPressUp',
167
+ 'onFocusChange',
168
+ 'routerOptions',
169
+ 'elementType',
170
+ ];
171
+ /**
172
+ * Valid on `<a>`, meaningless on `<button>`.
173
+ *
174
+ * Link renders whichever the caller's props imply, so these are legitimate
175
+ * attributes in the anchor branch and unknown ones in the button branch. They
176
+ * are a separate list rather than folded into the set above precisely because
177
+ * the answer differs by element — merging them would silently drop `target`
178
+ * and `rel` from real links.
179
+ */
180
+ export const ANCHOR_ONLY_DOM_PROPS = [
181
+ 'hrefLang',
182
+ 'target',
183
+ 'rel',
184
+ 'download',
185
+ 'ping',
186
+ 'referrerPolicy',
187
+ ];
142
188
  /**
143
189
  * Returns `props` without `keys`, leaving `props` untouched.
144
190
  *
@@ -1 +1 @@
1
- {"version":3,"file":"dom-props.js","sourceRoot":"","sources":["../../src/components/dom-props.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;GAaG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,SAAS;IACT,cAAc;IACd,YAAY;IACZ,eAAe;IACf,WAAW;IACX,eAAe;IACf,qBAAqB;IACrB,qBAAqB;IACrB,aAAa;IACb,MAAM;IACN,QAAQ;IACR,KAAK;CAC0D,CAAC;AAElE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG;IAC3C,OAAO;IACP,aAAa;IACb,cAAc;IACd,YAAY;IACZ,YAAY;IACZ,YAAY;IACZ,WAAW;IACX,iBAAiB;IACjB,oBAAoB;IACpB,UAAU;IACV,UAAU;IACV,eAAe;IACf,qBAAqB;IACrB,YAAY;IACZ,OAAO;IACP,cAAc;CAC0C,CAAC;AAE3D;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG;IACzC,UAAU;IACV,OAAO;IACP,cAAc;IACd,YAAY;IACZ,aAAa;IACb,oBAAoB;IACpB,mBAAmB;IACnB,oBAAoB;IACpB,aAAa;CACiD,CAAC;AAEjE;;;;;;GAMG;AACH,MAAM,UAAU,SAAS,CACvB,KAAQ,EACR,IAAO;IAEP,MAAM,MAAM,GAAG,EAAE,GAAG,KAAK,EAAkC,CAAC;IAC5D,KAAK,MAAM,GAAG,IAAI,IAAI;QAAE,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC;IAC3C,OAAO,MAA4B,CAAC;AACtC,CAAC"}
1
+ {"version":3,"file":"dom-props.js","sourceRoot":"","sources":["../../src/components/dom-props.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;GAaG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,SAAS;IACT,cAAc;IACd,YAAY;IACZ,eAAe;IACf,WAAW;IACX,eAAe;IACf,qBAAqB;IACrB,qBAAqB;IACrB,aAAa;IACb,MAAM;IACN,QAAQ;IACR,KAAK;CAC0D,CAAC;AAElE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG;IAC3C,OAAO;IACP,aAAa;IACb,cAAc;IACd,YAAY;IACZ,YAAY;IACZ,YAAY;IACZ,WAAW;IACX,iBAAiB;IACjB,oBAAoB;IACpB,UAAU;IACV,UAAU;IACV,eAAe;IACf,qBAAqB;IACrB,YAAY;IACZ,OAAO;IACP,cAAc;CAC0C,CAAC;AAE3D;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG;IACzC,UAAU;IACV,OAAO;IACP,cAAc;IACd,YAAY;IACZ,aAAa;IACb,oBAAoB;IACpB,mBAAmB;IACnB,oBAAoB;IACpB,aAAa;CACiD,CAAC;AAEjE;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,SAAS;IACT,cAAc;IACd,YAAY;IACZ,eAAe;IACf,WAAW;IACX,eAAe;IACf,eAAe;IACf,aAAa;CACwC,CAAC;AAExD;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,UAAU;IACV,QAAQ;IACR,KAAK;IACL,UAAU;IACV,MAAM;IACN,gBAAgB;CACqC,CAAC;AAExD;;;;;;GAMG;AACH,MAAM,UAAU,SAAS,CACvB,KAAQ,EACR,IAAO;IAEP,MAAM,MAAM,GAAG,EAAE,GAAG,KAAK,EAAkC,CAAC;IAC5D,KAAK,MAAM,GAAG,IAAI,IAAI;QAAE,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC;IAC3C,OAAO,MAA4B,CAAC;AACtC,CAAC"}
@@ -10,10 +10,10 @@
10
10
  --text-on-color: #000000;
11
11
  --text-inverse: #131923;
12
12
  --text-primary: #609cf0;
13
- --text-error: #f56b6b;
13
+ --text-error: #ffadad;
14
14
  --text-success: #50c38c;
15
15
  --text-warning: #ef8539;
16
- --text-information: #7e6ff1;
16
+ --text-information: #adadf5;
17
17
  --text-link: #609cf0;
18
18
  --text-link-hover: #9fd5f9;
19
19
  --text-link-visited: #7e6ff1;
@@ -982,7 +982,7 @@ export declare const tokenValues: {
982
982
  };
983
983
  readonly "text/error": {
984
984
  readonly Light: "{error.700}";
985
- readonly Dark: "{error.400}";
985
+ readonly Dark: "{error.300}";
986
986
  };
987
987
  readonly "text/success": {
988
988
  readonly Light: "{success.700}";
@@ -994,7 +994,7 @@ export declare const tokenValues: {
994
994
  };
995
995
  readonly "text/information": {
996
996
  readonly Light: "{information.700}";
997
- readonly Dark: "{information.400}";
997
+ readonly Dark: "{information.300}";
998
998
  };
999
999
  readonly "text/link": {
1000
1000
  readonly Light: "{primary.700}";
@@ -583,7 +583,7 @@ export const tokenValues = {
583
583
  },
584
584
  "text/error": {
585
585
  "Light": "{error.700}",
586
- "Dark": "{error.400}"
586
+ "Dark": "{error.300}"
587
587
  },
588
588
  "text/success": {
589
589
  "Light": "{success.700}",
@@ -595,7 +595,7 @@ export const tokenValues = {
595
595
  },
596
596
  "text/information": {
597
597
  "Light": "{information.700}",
598
- "Dark": "{information.400}"
598
+ "Dark": "{information.300}"
599
599
  },
600
600
  "text/link": {
601
601
  "Light": "{primary.700}",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ionbase-ui",
3
- "version": "0.13.0",
3
+ "version": "0.13.1",
4
4
  "description": "IonBase Design System — accessible React components, styles and design tokens in one package",
5
5
  "license": "MIT",
6
6
  "type": "module",