@x15ventures/x15-ui-library 3.11.4 → 3.13.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.
Files changed (113) hide show
  1. package/dist/cjs/autoGenerated/libraryThemes.js +12 -12
  2. package/dist/cjs/autoGenerated/libraryThemes.js.map +1 -1
  3. package/dist/cjs/autoGenerated/libraryThemes.json +12 -12
  4. package/dist/cjs/components/design/accordion/Accordion.js +16 -7
  5. package/dist/cjs/components/design/accordion/Accordion.js.map +1 -1
  6. package/dist/cjs/components/design/tooltip/index.js +12 -20
  7. package/dist/cjs/components/design/tooltip/index.js.map +1 -1
  8. package/dist/cjs/components/index.js +102 -87
  9. package/dist/cjs/components/index.js.map +1 -1
  10. package/dist/cjs/constants/index.js +108 -48
  11. package/dist/cjs/constants/index.js.map +1 -1
  12. package/dist/cjs/helpers/index.js +408 -80
  13. package/dist/cjs/helpers/index.js.map +1 -1
  14. package/dist/cjs/hooks/InertAttribute.js +28 -0
  15. package/dist/cjs/hooks/InertAttribute.js.map +1 -0
  16. package/dist/cjs/hooks/index.js +7 -0
  17. package/dist/cjs/hooks/index.js.map +1 -1
  18. package/dist/cjs/images/emails/emailBannerOnboarding1.jpg +0 -0
  19. package/dist/cjs/images/emails/emailFooterEmailIcon.png +0 -0
  20. package/dist/cjs/images/emails/emailFooterGlobeIcon.png +0 -0
  21. package/dist/cjs/index.js +1216 -51
  22. package/dist/cjs/index.js.map +1 -1
  23. package/dist/cjs/package.json +26 -35
  24. package/dist/cjs/styles/themes/doshii/_buttonMixin.css +0 -0
  25. package/dist/cjs/types/react.d.js +6 -0
  26. package/dist/cjs/types/react.d.js.map +1 -0
  27. package/dist/components/design/accordion/Accordion.d.ts.map +1 -1
  28. package/dist/components/design/tooltip/index.d.ts +4 -2
  29. package/dist/components/design/tooltip/index.d.ts.map +1 -1
  30. package/dist/components/index.d.ts +5 -3
  31. package/dist/components/index.d.ts.map +1 -1
  32. package/dist/constants/index.d.ts +5 -4
  33. package/dist/constants/index.d.ts.map +1 -1
  34. package/dist/esm/autoGenerated/libraryThemes.js +12 -12
  35. package/dist/esm/autoGenerated/libraryThemes.js.map +1 -1
  36. package/dist/esm/autoGenerated/libraryThemes.json +12 -12
  37. package/dist/esm/components/design/accordion/Accordion.js +15 -7
  38. package/dist/esm/components/design/accordion/Accordion.js.map +1 -1
  39. package/dist/esm/components/design/tooltip/index.js +2 -2
  40. package/dist/esm/components/design/tooltip/index.js.map +1 -1
  41. package/dist/esm/components/index.js +3 -4
  42. package/dist/esm/components/index.js.map +1 -1
  43. package/dist/esm/constants/index.js +4 -4
  44. package/dist/esm/constants/index.js.map +1 -1
  45. package/dist/esm/helpers/index.js +8 -8
  46. package/dist/esm/helpers/index.js.map +1 -1
  47. package/dist/esm/hooks/InertAttribute.js +21 -0
  48. package/dist/esm/hooks/InertAttribute.js.map +1 -0
  49. package/dist/esm/hooks/index.js +1 -0
  50. package/dist/esm/hooks/index.js.map +1 -1
  51. package/dist/esm/images/emails/emailBannerOnboarding1.jpg +0 -0
  52. package/dist/esm/images/emails/emailFooterEmailIcon.png +0 -0
  53. package/dist/esm/images/emails/emailFooterGlobeIcon.png +0 -0
  54. package/dist/esm/index.js +25 -5
  55. package/dist/esm/index.js.map +1 -1
  56. package/dist/esm/package.json +26 -35
  57. package/dist/esm/styles/themes/doshii/_buttonMixin.css +0 -0
  58. package/dist/esm/types/react.d.js +6 -0
  59. package/dist/esm/types/react.d.js.map +1 -0
  60. package/dist/helpers/index.d.ts +9 -8
  61. package/dist/helpers/index.d.ts.map +1 -1
  62. package/dist/hooks/InertAttribute.d.ts +4 -0
  63. package/dist/hooks/InertAttribute.d.ts.map +1 -0
  64. package/dist/hooks/index.d.ts +1 -0
  65. package/dist/hooks/index.d.ts.map +1 -1
  66. package/dist/images/emails/emailBannerOnboarding1.jpg +0 -0
  67. package/dist/images/emails/emailFooterEmailIcon.png +0 -0
  68. package/dist/images/emails/emailFooterGlobeIcon.png +0 -0
  69. package/dist/index.d.ts +16 -5
  70. package/dist/index.d.ts.map +1 -1
  71. package/dist/package.json +26 -35
  72. package/package.json +26 -31
  73. package/readme.md +2 -2
  74. package/dist/styles/index.css +0 -4742
  75. package/dist/styles/index.css.map +0 -1
  76. package/dist/styles/index.min.3.11.4.css +0 -1
  77. package/dist/styles/index.min.3.11.4.css.map +0 -1
  78. package/dist/styles/index.min.css +0 -1
  79. package/dist/styles/index.min.css.map +0 -1
  80. package/dist/styles/storybook.css +0 -394
  81. package/dist/styles/themes/cba/cba.css +0 -668
  82. package/dist/styles/themes/cba/cba.css.map +0 -1
  83. package/dist/styles/themes/cba/cba.min.3.11.4.css +0 -1
  84. package/dist/styles/themes/cba/cba.min.3.11.4.css.map +0 -1
  85. package/dist/styles/themes/cba/cba.min.css +0 -1
  86. package/dist/styles/themes/cba/cba.min.css.map +0 -1
  87. package/dist/styles/themes/creditSavvy/creditSavvy.css +0 -664
  88. package/dist/styles/themes/creditSavvy/creditSavvy.css.map +0 -1
  89. package/dist/styles/themes/creditSavvy/creditSavvy.min.3.11.4.css +0 -1
  90. package/dist/styles/themes/creditSavvy/creditSavvy.min.3.11.4.css.map +0 -1
  91. package/dist/styles/themes/creditSavvy/creditSavvy.min.css +0 -1
  92. package/dist/styles/themes/creditSavvy/creditSavvy.min.css.map +0 -1
  93. package/dist/styles/themes/doshii/doshii.css +0 -1196
  94. package/dist/styles/themes/doshii/doshii.css.map +0 -1
  95. package/dist/styles/themes/doshii/doshii.min.3.11.4.css +0 -1
  96. package/dist/styles/themes/doshii/doshii.min.3.11.4.css.map +0 -1
  97. package/dist/styles/themes/doshii/doshii.min.css +0 -1
  98. package/dist/styles/themes/doshii/doshii.min.css.map +0 -1
  99. package/dist/styles/themes/homeIn/homeIn.css +0 -1511
  100. package/dist/styles/themes/homeIn/homeIn.css.map +0 -1
  101. package/dist/styles/themes/homeIn/homeIn.min.3.11.4.css +0 -1
  102. package/dist/styles/themes/homeIn/homeIn.min.3.11.4.css.map +0 -1
  103. package/dist/styles/themes/homeIn/homeIn.min.css +0 -1
  104. package/dist/styles/themes/homeIn/homeIn.min.css.map +0 -1
  105. package/dist/styles/themes/icons/fonts/icomoon.svg +0 -553
  106. package/dist/styles/themes/icons/fonts/icomoon.ttf +0 -0
  107. package/dist/styles/themes/icons/fonts/icomoon.woff +0 -0
  108. package/dist/styles/themes/x15Core/x15Core.css +0 -747
  109. package/dist/styles/themes/x15Core/x15Core.css.map +0 -1
  110. package/dist/styles/themes/x15Core/x15Core.min.3.11.4.css +0 -1
  111. package/dist/styles/themes/x15Core/x15Core.min.3.11.4.css.map +0 -1
  112. package/dist/styles/themes/x15Core/x15Core.min.css +0 -1
  113. package/dist/styles/themes/x15Core/x15Core.min.css.map +0 -1
package/package.json CHANGED
@@ -137,7 +137,7 @@
137
137
  "files": [
138
138
  "dist"
139
139
  ],
140
- "version": "3.11.4",
140
+ "version": "3.13.2",
141
141
  "packageManager": "pnpm@10.11.0",
142
142
  "repository": {
143
143
  "type": "git",
@@ -150,13 +150,13 @@
150
150
  "watch:react": "nodemon --watch src --ext ts,tsx --exec 'pnpm build:react'",
151
151
  "watch:sass": "nodemon --watch src/styles --ext scss --exec 'pnpm build:sass'",
152
152
  "build": "",
153
- "build:cicd": "pnpm build:sass && pnpm build:react && pnpm build:types && pnpm build:sass",
153
+ "build:cicd": "pnpm build:sass && pnpm build:react && pnpm build:types && pnpm build:sass && pnpm storybook:styles",
154
154
  "build:local": "pnpm build:react && pnpm storybook:build",
155
155
  "build:react": "run-func buildLibrary.js buildLibrary",
156
- "build:sass": "run-func sass.utilities.js buildSassFiles && pnpm storybook:styles",
156
+ "build:sass": "run-func sass.utilities.js buildSassFiles",
157
157
  "build:static": "pnpm build:react && pnpm build:sass",
158
158
  "build:types": "npx tsc --build tsconfig.lib.json --force",
159
- "build:ai:docs": "run-func aiTools/scripts/componentAIDocExtractor.js generateDocumentation",
159
+ "build:ai:docs": "run-func aiTools/scripts/componentAIDocExtractor.js generateDocumentation && pnpm storybook:build && mkdir -p ./aiTools/storybookDocs && cp -R ./storybook-static/* ./aiTools/storybookDocs",
160
160
  "build:ai:library": "run-func buildLibrary.js makeAIReferenceFiles",
161
161
  "build:ai:styles": "node aiTools/scripts/componentAICssExtractor.js",
162
162
  "build:ai:styles:reference": "node aiTools/scripts/buildAiStylesReference.js",
@@ -175,6 +175,7 @@
175
175
  "dependencies": {
176
176
  "@hookform/error-message": "^2.0.1",
177
177
  "@semantic-release/exec": "^7.0.3",
178
+ "@x15stack/aws": "^1.6.5",
178
179
  "@x15ventures/x15-ui-library-icons": "^1.0.4",
179
180
  "babel-plugin-transform-imports": "^2.0.0",
180
181
  "html-react-parser": "^5.1.16",
@@ -206,6 +207,8 @@
206
207
  "@babel/preset-react": "^7",
207
208
  "@babel/preset-typescript": "^7",
208
209
  "@babel/runtime": "^7.26.10",
210
+ "@commitlint/cli": "^20.5.0",
211
+ "@commitlint/config-conventional": "^20.5.0",
209
212
  "@eslint/js": "^9.38.0",
210
213
  "@jest/globals": "^29.7.0",
211
214
  "@jest/types": "^29.6.3",
@@ -253,6 +256,7 @@
253
256
  "babel-loader": "^9.1.3",
254
257
  "babel-plugin-macros": "^3.1.0",
255
258
  "chromatic": "^11.10.1",
259
+ "commitlint": "^20.5.0",
256
260
  "copy-webpack-plugin": "^12.0.2",
257
261
  "cors": "^2.8.5",
258
262
  "cross-env": "^7.0.3",
@@ -272,11 +276,12 @@
272
276
  "file-loader": "^6.2.0",
273
277
  "fs": "0.0.1-security",
274
278
  "fs-extra": "^11.3.0",
275
- "glob": "^11.0.1",
279
+ "glob": "^13.0.6",
276
280
  "globals": "^15.14.0",
277
281
  "jest": "^30.2.0",
278
282
  "jest-environment-jsdom": "^29.7.0",
279
283
  "lefthook": "^1.11.2",
284
+ "minimatch": "^10.2.4",
280
285
  "nodemon": "^3.1.4",
281
286
  "npm-run-all": "^4.1.5",
282
287
  "null-loader": "^4.0.1",
@@ -300,32 +305,22 @@
300
305
  },
301
306
  "pnpm": {
302
307
  "overrides": {
303
- "brace-expansion": "2.0.1",
304
- "form-data": ">=4.0.4",
305
- "react": "^18",
306
- "react-dom": "^18",
307
- "cookie": "1.0.1",
308
- "cross-spawn@<7.0.5": ">=7.0.5",
309
- "vitest-axe>vitest": "3.1.1",
310
- "vite": ">=7.1.11",
311
- "@webpack-contrib/schema-utils>webpack": "5.97.1",
312
- "@octokit/request-error@>=6.0.0 <6.1.7": ">=6.1.7",
313
- "@octokit/endpoint@>=10.0.0 <10.1.3": ">=10.1.3",
314
- "@octokit/request@>=1.0.0 <9.2.1": ">=9.2.1",
315
- "@octokit/plugin-paginate-rest@>=1.0.0 <11.4.1": ">=11.4.1",
316
- "esbuild@<=0.24.2": ">=0.25.0",
317
- "@babel/runtime": "^7.26.10",
318
- "@eslint/plugin-kit": ">=0.3.4",
319
- "brace-expansion@>=1.0.0 <=1.1.11": ">=1.1.12",
320
- "brace-expansion@>=2.0.0 <=2.0.1": ">=2.0.2",
321
- "minimatch>brace-expansion": "2.0.2",
322
- "js-yaml": ">=4.1.1",
323
- "glob": ">=11.1.0",
324
- "mdast-util-to-hast@>=13.0.0 <13.2.1": ">=13.2.1",
325
- "qs@<6.14.1": ">=6.14.1",
326
- "lodash-es": ">=4.17.23",
327
- "lodash": ">=4.17.23",
328
- "undici": ">=7.18.2"
308
+ "@tootallnate/once@<3.0.1": ">=3.0.1",
309
+ "brace-expansion": ">=5.0.5",
310
+ "flatted": ">=3.4.2",
311
+ "flatted@<3.4.0": ">=3.4.0",
312
+ "handlebars": ">=4.7.9",
313
+ "immutable@>=5.0.0 <5.1.5": ">=5.1.5",
314
+ "minimatch": ">=9.0.7",
315
+ "path-to-regexp": ">=8.4.0",
316
+ "picomatch": ">=4.0.4",
317
+ "qs": ">=6.14.2",
318
+ "rollup": ">=4.59.0",
319
+ "serialize-javascript": ">=7.0.3",
320
+ "storybook": ">=10.2.10",
321
+ "undici": ">=7.24.0",
322
+ "webpack": ">=5.104.1",
323
+ "yaml": ">=1.10.3"
329
324
  },
330
325
  "auditConfig": {
331
326
  "ignoreCves": [
package/readme.md CHANGED
@@ -171,7 +171,7 @@ The library is designed to be consumed by other projects and as such, it is more
171
171
  The library supports theming via scss variables and css variables. By having the scss files as separate files, it allows the consuming project to import only the theme that they require or all themes if they wish. In the case of an app that wants to support multiple themes, it can import all the themes and switch between them as required.
172
172
 
173
173
  Alternative methods such as css-in-js or css modules have not been used for a number of reasons:
174
- 1. they are not as flexible as scss and css files.
174
+ 1. they are not as flexible as scss and css files.
175
175
  2. they require more processing
176
176
  3. are not as easy to maintain
177
177
  4. require complex logic to support theming - especially when using css-in-js
@@ -182,7 +182,7 @@ Most bundlers are not designed well to handle more than 2 themes at most in a si
182
182
  ### Why is there an empty build script in the package.json file?
183
183
  The library is designed to be able to run in a turbo repo or as a standalone project. When it is hosted inside a turbo repo, the 'build' command from the turbo repo affects aspects of the library in an undesired manner. As such, the script is left empty so that it doesn't run but exists to not cause issues in the turbo repo. Instead, the library has its own build scripts as follows.
184
184
 
185
- | Build Commands | Description |
185
+ | Build Commands | Description |
186
186
  |------------------|-----------------------------------------------------------------------------------------------|
187
187
  | **pnpm build:cicd** | Used by the CICD process to create the full set of assets required for a distributed package. |
188
188
  | pnpm build:local | Used to build the library for local development. This includes building the storybook. |