@babylonjs/shared-ui-components 8.30.2 → 8.30.4

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 (80) hide show
  1. package/fluent/hoc/buttonLine.js +1 -0
  2. package/fluent/hoc/buttonLine.js.map +1 -1
  3. package/fluent/hoc/fileUploadLine.js +1 -0
  4. package/fluent/hoc/fileUploadLine.js.map +1 -1
  5. package/fluent/hoc/gradientList.js +3 -0
  6. package/fluent/hoc/gradientList.js.map +1 -1
  7. package/fluent/hoc/propertyLines/booleanBadgePropertyLine.js +4 -1
  8. package/fluent/hoc/propertyLines/booleanBadgePropertyLine.js.map +1 -1
  9. package/fluent/hoc/propertyLines/checkboxPropertyLine.js +1 -0
  10. package/fluent/hoc/propertyLines/checkboxPropertyLine.js.map +1 -1
  11. package/fluent/hoc/propertyLines/colorPropertyLine.js +1 -0
  12. package/fluent/hoc/propertyLines/colorPropertyLine.js.map +1 -1
  13. package/fluent/hoc/propertyLines/dropdownPropertyLine.js +1 -0
  14. package/fluent/hoc/propertyLines/dropdownPropertyLine.js.map +1 -1
  15. package/fluent/hoc/propertyLines/hexPropertyLine.js +1 -0
  16. package/fluent/hoc/propertyLines/hexPropertyLine.js.map +1 -1
  17. package/fluent/hoc/propertyLines/inputPropertyLine.js +5 -1
  18. package/fluent/hoc/propertyLines/inputPropertyLine.js.map +1 -1
  19. package/fluent/hoc/propertyLines/linkPropertyLine.js +1 -0
  20. package/fluent/hoc/propertyLines/linkPropertyLine.js.map +1 -1
  21. package/fluent/hoc/propertyLines/propertyLine.js +1 -0
  22. package/fluent/hoc/propertyLines/propertyLine.js.map +1 -1
  23. package/fluent/hoc/propertyLines/spinButtonPropertyLine.js +4 -1
  24. package/fluent/hoc/propertyLines/spinButtonPropertyLine.js.map +1 -1
  25. package/fluent/hoc/propertyLines/stringifiedPropertyLine.js +1 -0
  26. package/fluent/hoc/propertyLines/stringifiedPropertyLine.js.map +1 -1
  27. package/fluent/hoc/propertyLines/switchPropertyLine.js +1 -0
  28. package/fluent/hoc/propertyLines/switchPropertyLine.js.map +1 -1
  29. package/fluent/hoc/propertyLines/syncedSliderPropertyLine.js +1 -0
  30. package/fluent/hoc/propertyLines/syncedSliderPropertyLine.js.map +1 -1
  31. package/fluent/hoc/propertyLines/textAreaPropertyLine.js +1 -0
  32. package/fluent/hoc/propertyLines/textAreaPropertyLine.js.map +1 -1
  33. package/fluent/hoc/propertyLines/textPropertyLine.js +1 -0
  34. package/fluent/hoc/propertyLines/textPropertyLine.js.map +1 -1
  35. package/fluent/hoc/propertyLines/vectorPropertyLine.js +3 -0
  36. package/fluent/hoc/propertyLines/vectorPropertyLine.js.map +1 -1
  37. package/fluent/primitives/accordion.js +2 -0
  38. package/fluent/primitives/accordion.js.map +1 -1
  39. package/fluent/primitives/button.js +1 -0
  40. package/fluent/primitives/button.js.map +1 -1
  41. package/fluent/primitives/checkbox.js +1 -0
  42. package/fluent/primitives/checkbox.js.map +1 -1
  43. package/fluent/primitives/collapse.js +1 -0
  44. package/fluent/primitives/collapse.js.map +1 -1
  45. package/fluent/primitives/colorPicker.js +69 -45
  46. package/fluent/primitives/colorPicker.js.map +1 -1
  47. package/fluent/primitives/comboBox.js +1 -0
  48. package/fluent/primitives/comboBox.js.map +1 -1
  49. package/fluent/primitives/draggable.js +1 -0
  50. package/fluent/primitives/draggable.js.map +1 -1
  51. package/fluent/primitives/dropdown.js +19 -9
  52. package/fluent/primitives/dropdown.js.map +1 -1
  53. package/fluent/primitives/gradient.js +1 -0
  54. package/fluent/primitives/gradient.js.map +1 -1
  55. package/fluent/primitives/infoLabel.js +1 -0
  56. package/fluent/primitives/infoLabel.js.map +1 -1
  57. package/fluent/primitives/messageBar.js +1 -0
  58. package/fluent/primitives/messageBar.js.map +1 -1
  59. package/fluent/primitives/positionedPopover.js +1 -0
  60. package/fluent/primitives/positionedPopover.js.map +1 -1
  61. package/fluent/primitives/searchBar.js +1 -0
  62. package/fluent/primitives/searchBar.js.map +1 -1
  63. package/fluent/primitives/searchBox.js +1 -0
  64. package/fluent/primitives/searchBox.js.map +1 -1
  65. package/fluent/primitives/spinButton.js +4 -2
  66. package/fluent/primitives/spinButton.js.map +1 -1
  67. package/fluent/primitives/switch.js +1 -0
  68. package/fluent/primitives/switch.js.map +1 -1
  69. package/fluent/primitives/syncedSlider.js +1 -0
  70. package/fluent/primitives/syncedSlider.js.map +1 -1
  71. package/fluent/primitives/textInput.js +4 -2
  72. package/fluent/primitives/textInput.js.map +1 -1
  73. package/fluent/primitives/textarea.js +1 -0
  74. package/fluent/primitives/textarea.js.map +1 -1
  75. package/fluent/primitives/toggleButton.js +1 -0
  76. package/fluent/primitives/toggleButton.js.map +1 -1
  77. package/fluent/primitives/utils.d.ts +1 -1
  78. package/fluent/primitives/utils.js +9 -2
  79. package/fluent/primitives/utils.js.map +1 -1
  80. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../dev/sharedUiComponents/src/fluent/primitives/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAKhE,MAAM,CAAC,MAAM,YAAY,GAAG;IACxB,UAAU,EAAE,OAAO;IACnB,UAAU,EAAE,MAAM;IAClB,aAAa,EAAE,MAAM;IACrB,cAAc,EAAE,MAAM;IACtB,cAAc,EAAE,MAAM;IACtB,gBAAgB,EAAE,MAAM;CAC3B,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAiB,EAAE,KAAK,EAAE,YAAY,CAAC,UAAU,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAC;AAEjI,MAAM,CAAC,MAAM,cAAc,GAAG,UAAU,CAAC;IACrC,OAAO,EAAE,EAAE,eAAe,EAAE,MAAM,CAAC,0BAA0B,EAAE,GAAG,mBAAmB,EAAE;IACvF,KAAK,EAAE,mBAAmB;CAC7B,CAAC,CAAC;AAEH,MAAM,UAAU,YAAY,CAAC,KAAmC;IAC5D,KAAK,CAAC,eAAe,EAAE,CAAC;IACxB,KAAK,CAAC,cAAc,EAAE,CAAC;AAC3B,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,KAAsC;IAChE,KAAK,CAAC,eAAe,EAAE,CAAC,CAAC,4BAA4B;IAErD,oEAAoE;IACpE,IAAI,KAAK,CAAC,GAAG,KAAK,OAAO,EAAE,CAAC;QACxB,KAAK,CAAC,cAAc,EAAE,CAAC;IAC3B,CAAC;AACL,CAAC","sourcesContent":["import { makeStyles, tokens } from \"@fluentui/react-components\";\r\nimport type { GriffelStyle } from \"@fluentui/react-components\";\r\n\r\nimport type { KeyboardEvent, FocusEvent } from \"react\";\r\n\r\nexport const CustomTokens = {\r\n inputWidth: \"150px\",\r\n lineHeight: \"36px\",\r\n labelMinWidth: \"50px\",\r\n sliderMinWidth: \"30px\",\r\n sliderMaxWidth: \"80px\",\r\n rightAlignOffset: \"-8px\",\r\n};\r\n\r\nexport const UniformWidthStyling: GriffelStyle = { width: CustomTokens.inputWidth, textAlign: \"right\", boxSizing: \"border-box\" };\r\n\r\nexport const useInputStyles = makeStyles({\r\n invalid: { backgroundColor: tokens.colorPaletteRedBackground2, ...UniformWidthStyling },\r\n valid: UniformWidthStyling,\r\n});\r\n\r\nexport function HandleOnBlur(event: FocusEvent<HTMLInputElement>) {\r\n event.stopPropagation();\r\n event.preventDefault();\r\n}\r\n\r\nexport function HandleKeyDown(event: KeyboardEvent<HTMLInputElement>) {\r\n event.stopPropagation(); // Prevent event propagation\r\n\r\n // Prevent Enter key from causing form submission or value reversion\r\n if (event.key === \"Enter\") {\r\n event.preventDefault();\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../dev/sharedUiComponents/src/fluent/primitives/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAKhE,MAAM,CAAC,MAAM,YAAY,GAAG;IACxB,UAAU,EAAE,OAAO;IACnB,UAAU,EAAE,MAAM;IAClB,aAAa,EAAE,MAAM;IACrB,cAAc,EAAE,MAAM;IACtB,cAAc,EAAE,MAAM;IACtB,gBAAgB,EAAE,MAAM;CAC3B,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAiB,EAAE,KAAK,EAAE,YAAY,CAAC,UAAU,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAC;AACjI,MAAM,CAAC,MAAM,cAAc,GAAG,UAAU,CAAC;IACrC,KAAK,EAAE,mBAAmB;IAC1B,OAAO,EAAE,EAAE,eAAe,EAAE,MAAM,CAAC,0BAA0B,EAAE;IAC/D,SAAS,EAAE;QACP,IAAI,EAAE,CAAC;QACP,OAAO,EAAE,MAAM;QACf,aAAa,EAAE,QAAQ;QACvB,cAAc,EAAE,QAAQ,EAAE,yBAAyB;QACnD,GAAG,EAAE,KAAK;KACb;CACJ,CAAC,CAAC;AAEH,MAAM,UAAU,YAAY,CAAC,KAAmC;IAC5D,KAAK,CAAC,eAAe,EAAE,CAAC;IACxB,KAAK,CAAC,cAAc,EAAE,CAAC;AAC3B,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,KAAsC;IAChE,KAAK,CAAC,eAAe,EAAE,CAAC,CAAC,4BAA4B;IAErD,oEAAoE;IACpE,IAAI,KAAK,CAAC,GAAG,KAAK,OAAO,EAAE,CAAC;QACxB,KAAK,CAAC,cAAc,EAAE,CAAC;IAC3B,CAAC;AACL,CAAC","sourcesContent":["import { makeStyles, tokens } from \"@fluentui/react-components\";\r\nimport type { GriffelStyle } from \"@fluentui/react-components\";\r\n\r\nimport type { KeyboardEvent, FocusEvent } from \"react\";\r\n\r\nexport const CustomTokens = {\r\n inputWidth: \"150px\",\r\n lineHeight: \"36px\",\r\n labelMinWidth: \"50px\",\r\n sliderMinWidth: \"30px\",\r\n sliderMaxWidth: \"80px\",\r\n rightAlignOffset: \"-8px\",\r\n};\r\n\r\nexport const UniformWidthStyling: GriffelStyle = { width: CustomTokens.inputWidth, textAlign: \"right\", boxSizing: \"border-box\" };\r\nexport const useInputStyles = makeStyles({\r\n input: UniformWidthStyling,\r\n invalid: { backgroundColor: tokens.colorPaletteRedBackground2 },\r\n container: {\r\n flex: 1,\r\n display: \"flex\",\r\n flexDirection: \"column\",\r\n justifyContent: \"center\", // align items vertically\r\n gap: \"4px\",\r\n },\r\n});\r\n\r\nexport function HandleOnBlur(event: FocusEvent<HTMLInputElement>) {\r\n event.stopPropagation();\r\n event.preventDefault();\r\n}\r\n\r\nexport function HandleKeyDown(event: KeyboardEvent<HTMLInputElement>) {\r\n event.stopPropagation(); // Prevent event propagation\r\n\r\n // Prevent Enter key from causing form submission or value reversion\r\n if (event.key === \"Enter\") {\r\n event.preventDefault();\r\n }\r\n}\r\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babylonjs/shared-ui-components",
3
- "version": "8.30.2",
3
+ "version": "8.30.4",
4
4
  "main": "index.js",
5
5
  "module": "index.js",
6
6
  "types": "index.d.ts",