@open-pioneer/chakra-snippets 4.0.0-dev.20250516115755 → 4.0.0

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.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @open-pioneer/chakra-snippets
2
2
 
3
- ## 4.0.0-dev.20250516115755
3
+ ## 4.0.0
4
4
 
5
5
  ### Major Changes
6
6
 
@@ -8,8 +8,10 @@
8
8
 
9
9
  ### Patch Changes
10
10
 
11
+ - 434bd04: Bump dependencies.
11
12
  - Updated dependencies [9f074d8]
13
+ - Updated dependencies [434bd04]
12
14
  - Updated dependencies [53c92ba]
13
15
  - Updated dependencies [9f074d8]
14
- - @open-pioneer/runtime@4.0.0-dev.20250516115755
15
- - @open-pioneer/core@4.0.0-dev.20250516115755
16
+ - @open-pioneer/runtime@4.0.0
17
+ - @open-pioneer/core@4.0.0
package/close-button.js CHANGED
@@ -1,12 +1,19 @@
1
1
  import { jsx } from 'react/jsx-runtime';
2
- import { IconButton } from '@chakra-ui/react';
2
+ import { IconButton, Icon } from '@chakra-ui/react';
3
3
  import { useIntl } from './_virtual/_virtual-pioneer-module_react-hooks.js';
4
4
  import * as React from 'react';
5
5
  import { LuX } from 'react-icons/lu';
6
6
 
7
7
  const CloseButton = React.forwardRef(function CloseButton2(props, ref) {
8
8
  const intl = useIntl();
9
- return /* @__PURE__ */ jsx(IconButton, { variant: "ghost", "aria-label": intl.formatMessage({ id: "close-button.ariaLabel" }), ref, ...props, children: props.children ?? /* @__PURE__ */ jsx(LuX, {}) });
9
+ return /* @__PURE__ */ jsx(IconButton, {
10
+ variant: "ghost",
11
+ "aria-label": intl.formatMessage({ id: "close-button.ariaLabel" }),
12
+ ref,
13
+ ...props,
14
+ /* patch: surround with <Icon /> for aria-hidden attribute */
15
+ children: props.children ?? /* @__PURE__ */ jsx(Icon, { children: /* @__PURE__ */ jsx(LuX, {}) })
16
+ });
10
17
  });
11
18
 
12
19
  export { CloseButton };
@@ -1 +1 @@
1
- {"version":3,"file":"close-button.js","sources":["close-button.tsx"],"sourcesContent":["import type { ButtonProps } from \"@chakra-ui/react\"\nimport { IconButton as ChakraIconButton } from \"@chakra-ui/react\"\nimport { useIntl } from \"open-pioneer:react-hooks\"\nimport * as React from \"react\"\nimport { LuX } from \"react-icons/lu\"\n\nexport type CloseButtonProps = ButtonProps\n\nexport const CloseButton = React.forwardRef<\n HTMLButtonElement,\n CloseButtonProps\n>(function CloseButton(props, ref) {\n const intl = useIntl()\n\n //PATCH START add i18n\n return (\n <ChakraIconButton variant=\"ghost\" aria-label={intl.formatMessage({id: \"close-button.ariaLabel\"})} ref={ref} {...props}>\n {props.children ?? <LuX />}\n </ChakraIconButton>\n )\n //PATCH END\n})\n"],"names":["CloseButton","ChakraIconButton"],"mappings":";;;;;;AAQO,MAAM,cAAc,KAAM,CAAA,UAAA,CAG/B,SAASA,YAAAA,CAAY,OAAO,GAAK,EAAA;AAChC,EAAA,MAAM,OAAO,OAAQ,EAAA;AAGtB,EAAA,2BACGC,UAAiB,EAAA,EAAA,OAAA,EAAQ,SAAQ,YAAY,EAAA,IAAA,CAAK,cAAc,EAAC,EAAA,EAAI,0BAAyB,CAAA,EAAG,KAAW,GAAG,KAAA,EAC7G,gBAAM,QAAY,oBAAA,GAAA,CAAC,OAAI,CAC1B,EAAA,CAAA;AAGJ,CAAC;;;;"}
1
+ {"version":3,"file":"close-button.js","sources":["close-button.tsx"],"sourcesContent":["import type { ButtonProps } from \"@chakra-ui/react\"\nimport { IconButton as ChakraIconButton, Icon } from \"@chakra-ui/react\"\nimport { useIntl } from \"open-pioneer:react-hooks\"\nimport * as React from \"react\"\nimport { LuX } from \"react-icons/lu\"\n\nexport type CloseButtonProps = ButtonProps\n\nexport const CloseButton = React.forwardRef<\n HTMLButtonElement,\n CloseButtonProps\n>(function CloseButton(props, ref) {\n const intl = useIntl()\n\n //PATCH START add i18n\n return (\n <ChakraIconButton variant=\"ghost\" aria-label={intl.formatMessage({id: \"close-button.ariaLabel\"})} ref={ref} {...props}>\n {\n /* patch: surround with <Icon /> for aria-hidden attribute */\n props.children ?? <Icon><LuX /></Icon>\n } \n </ChakraIconButton>\n )\n //PATCH END\n})\n"],"names":["CloseButton","ChakraIconButton"],"mappings":";;;;;;AAQO,MAAM,cAAc,KAAM,CAAA,UAAA,CAG/B,SAASA,YAAAA,CAAY,OAAO,GAAK,EAAA;AAChC,EAAA,MAAM,OAAO,OAAQ,EAAA;AAGtB,EAAA,uBACG,GAAA,CAAAC,UAAA,EAAA;AAAA,IAAiB,OAAQ,EAAA,OAAA;AAAA,IAAQ,cAAY,IAAK,CAAA,aAAA,CAAc,EAAC,EAAA,EAAI,0BAAyB,CAAA;AAAA,IAAG,GAAA;AAAA,IAAW,GAAG,KAAA;AAAA;AAAA,IAG3G,gBAAM,QAAY,oBAAA,GAAA,CAAC,IAAK,EAAA,EAAA,QAAA,kBAAA,GAAA,CAAC,OAAI,CAAE,EAAA;AAAA,GAEpC,CAAA;AAGJ,CAAC;;;;"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@open-pioneer/chakra-snippets",
4
- "version": "4.0.0-dev.20250516115755",
4
+ "version": "4.0.0",
5
5
  "description": "Contains snippets for Chakra UI.",
6
6
  "keywords": [
7
7
  "open-pioneer-trails"
@@ -14,11 +14,11 @@
14
14
  "directory": "src/packages/chakra-snippets"
15
15
  },
16
16
  "dependencies": {
17
- "@chakra-ui/react": "^3.17.0",
17
+ "@chakra-ui/react": "^3.19.2",
18
18
  "react": "^19.1.0",
19
19
  "react-icons": "^5.5.0",
20
- "@open-pioneer/core": "4.0.0-dev.20250516115755",
21
- "@open-pioneer/runtime": "4.0.0-dev.20250516115755"
20
+ "@open-pioneer/core": "^4.0.0",
21
+ "@open-pioneer/runtime": "^4.0.0"
22
22
  },
23
23
  "exports": {
24
24
  "./package.json": "./package.json",