uiconfig-blueprint 0.1.0-dev.15 → 0.1.0-dev.17

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 (153) hide show
  1. package/NOTICE +13 -0
  2. package/README.md +26 -15
  3. package/dist/ConfigObject.d.ts +7 -7
  4. package/dist/UiConfigRendererBlueprint.d.ts +3 -3
  5. package/dist/bpComponents/BPButtonComponent.d.ts +4 -4
  6. package/dist/bpComponents/BPColorInputComponent.d.ts +4 -4
  7. package/dist/bpComponents/BPComponent.d.ts +4 -4
  8. package/dist/bpComponents/BPContainerComponent.d.ts +4 -4
  9. package/dist/bpComponents/BPDropdownInputComponent.d.ts +4 -4
  10. package/dist/bpComponents/BPFileComponent.d.ts +5 -5
  11. package/dist/bpComponents/BPFolderComponent.d.ts +6 -6
  12. package/dist/bpComponents/BPInputComponent.d.ts +5 -5
  13. package/dist/bpComponents/BPLabelledComponent.d.ts +1 -1
  14. package/dist/bpComponents/BPNumberInputComponent.d.ts +5 -4
  15. package/dist/bpComponents/BPPanelComponent.d.ts +5 -5
  16. package/dist/bpComponents/BPSliderInputComponent.d.ts +4 -4
  17. package/dist/bpComponents/BPTextInputComponent.d.ts +7 -4
  18. package/dist/bpComponents/BPToggleInputComponent.d.ts +4 -4
  19. package/dist/bpComponents/BPValueComponent.d.ts +3 -3
  20. package/dist/bpComponents/BPVectorInputComponent.d.ts +6 -5
  21. package/dist/bpComponents/InputGroup2.d.ts +2 -2
  22. package/dist/components/AppToaster.d.ts +2 -2
  23. package/dist/components/ConfigurationPanelComponent.d.ts +2 -1
  24. package/dist/components/DialogContext.d.ts +4 -4
  25. package/dist/components/DraggableIcon.d.ts +2 -2
  26. package/dist/components/ExtendedNumericInput.d.ts +3 -3
  27. package/dist/components/FileComponent.d.ts +3 -3
  28. package/dist/components/FormGroupComponent.d.ts +2 -2
  29. package/dist/components/InspectorStackComponent.d.ts +5 -4
  30. package/dist/components/NumericInput.d.ts +4 -3
  31. package/dist/components/VisualStyleContext.d.ts +3 -3
  32. package/dist/components/axesIcons.d.ts +7 -7
  33. package/dist/components/bpIconWrapper.d.ts +2 -2
  34. package/dist/components/iconMapping.d.ts +195 -195
  35. package/dist/components/shapesIcons.d.ts +100 -100
  36. package/dist/components/variableIcons.d.ts +40 -40
  37. package/dist/dependencies.txt +1329 -0
  38. package/dist/index.cjs +102 -0
  39. package/dist/index.cjs.map +1 -0
  40. package/dist/index.d.ts +1 -1
  41. package/dist/index.js +41 -40
  42. package/dist/index.js.map +1 -1
  43. package/dist/index.mjs +2500 -5
  44. package/dist/index.mjs.map +1 -1
  45. package/dist/lib.d.ts +35 -35
  46. package/docs/assets/icons.js +15 -0
  47. package/docs/assets/icons.svg +1 -0
  48. package/docs/assets/main.js +4 -4
  49. package/docs/assets/navigation.js +1 -1
  50. package/docs/assets/search.js +1 -1
  51. package/docs/assets/style.css +40 -22
  52. package/docs/classes/UI.html +27 -27
  53. package/docs/classes/UiConfigRendererBlueprint.html +27 -27
  54. package/docs/hierarchy.html +1 -0
  55. package/docs/index.html +22 -15
  56. package/docs/modules.html +3 -3
  57. package/lib/css/renderer.css +4 -2
  58. package/lib/css/renderer.css.map +1 -1
  59. package/lib/esm/ConfigObject.d.ts +3 -3
  60. package/lib/esm/UiConfigRendererBlueprint.d.ts +1 -1
  61. package/lib/esm/UiConfigRendererBlueprint.js +25 -23
  62. package/lib/esm/UiConfigRendererBlueprint.js.map +1 -1
  63. package/lib/esm/bpComponents/BPButtonComponent.d.ts +3 -3
  64. package/lib/esm/bpComponents/BPColorInputComponent.d.ts +4 -3
  65. package/lib/esm/bpComponents/BPColorInputComponent.js +1 -1
  66. package/lib/esm/bpComponents/BPColorInputComponent.js.map +1 -1
  67. package/lib/esm/bpComponents/BPComponent.d.ts +2 -1
  68. package/lib/esm/bpComponents/BPComponent.js +15 -4
  69. package/lib/esm/bpComponents/BPComponent.js.map +1 -1
  70. package/lib/esm/bpComponents/BPContainerComponent.d.ts +4 -4
  71. package/lib/esm/bpComponents/BPDropdownInputComponent.d.ts +5 -4
  72. package/lib/esm/bpComponents/BPFileComponent.d.ts +6 -5
  73. package/lib/esm/bpComponents/BPFileComponent.js +1 -1
  74. package/lib/esm/bpComponents/BPFileComponent.js.map +1 -1
  75. package/lib/esm/bpComponents/BPFolderComponent.d.ts +3 -3
  76. package/lib/esm/bpComponents/BPFolderComponent.js +1 -2
  77. package/lib/esm/bpComponents/BPFolderComponent.js.map +1 -1
  78. package/lib/esm/bpComponents/BPInputComponent.d.ts +3 -3
  79. package/lib/esm/bpComponents/BPLabelledComponent.d.ts +1 -1
  80. package/lib/esm/bpComponents/BPNumberInputComponent.d.ts +5 -4
  81. package/lib/esm/bpComponents/BPNumberInputComponent.js +1 -1
  82. package/lib/esm/bpComponents/BPNumberInputComponent.js.map +1 -1
  83. package/lib/esm/bpComponents/BPPanelComponent.d.ts +5 -4
  84. package/lib/esm/bpComponents/BPSliderInputComponent.d.ts +5 -4
  85. package/lib/esm/bpComponents/BPTextInputComponent.d.ts +7 -4
  86. package/lib/esm/bpComponents/BPTextInputComponent.js +11 -2
  87. package/lib/esm/bpComponents/BPTextInputComponent.js.map +1 -1
  88. package/lib/esm/bpComponents/BPToggleInputComponent.d.ts +5 -4
  89. package/lib/esm/bpComponents/BPValueComponent.d.ts +2 -2
  90. package/lib/esm/bpComponents/BPValueComponent.js +4 -4
  91. package/lib/esm/bpComponents/BPValueComponent.js.map +1 -1
  92. package/lib/esm/bpComponents/BPVectorInputComponent.d.ts +5 -4
  93. package/lib/esm/bpComponents/BPVectorInputComponent.js +1 -1
  94. package/lib/esm/bpComponents/BPVectorInputComponent.js.map +1 -1
  95. package/lib/esm/components/AppToaster.d.ts +2 -1
  96. package/lib/esm/components/ConfigurationPanelComponent.d.ts +2 -1
  97. package/lib/esm/components/ConfigurationPanelComponent.js +1 -2
  98. package/lib/esm/components/ConfigurationPanelComponent.js.map +1 -1
  99. package/lib/esm/components/DialogContext.d.ts +3 -3
  100. package/lib/esm/components/DialogContext.js +1 -2
  101. package/lib/esm/components/DialogContext.js.map +1 -1
  102. package/lib/esm/components/DraggableIcon.d.ts +1 -1
  103. package/lib/esm/components/ExtendedNumericInput.d.ts +1 -1
  104. package/lib/esm/components/FileComponent.d.ts +2 -2
  105. package/lib/esm/components/FormGroupComponent.d.ts +1 -1
  106. package/lib/esm/components/InspectorStackComponent.d.ts +3 -2
  107. package/lib/esm/components/NumericInput.d.ts +2 -1
  108. package/lib/esm/components/VisualStyleContext.d.ts +2 -2
  109. package/lib/esm/components/VisualStyleContext.js +1 -2
  110. package/lib/esm/components/VisualStyleContext.js.map +1 -1
  111. package/lib/esm/components/axesIcons.d.ts +8 -7
  112. package/lib/esm/components/bpIconWrapper.d.ts +1 -1
  113. package/lib/esm/components/iconMapping.d.ts +146 -146
  114. package/lib/esm/components/shapesIcons.d.ts +99 -99
  115. package/lib/esm/components/variableIcons.d.ts +41 -40
  116. package/lib/esm/index.d.ts +1 -1
  117. package/lib/esm/lib.d.ts +35 -35
  118. package/lib/esm/renderer.css.js +1 -1
  119. package/package.json +30 -26
  120. package/src/UiConfigRendererBlueprint.tsx +26 -23
  121. package/src/bpComponents/BPComponent.tsx +20 -7
  122. package/src/bpComponents/BPFolderComponent.tsx +2 -2
  123. package/src/bpComponents/BPTextInputComponent.tsx +15 -2
  124. package/src/components/ConfigurationPanelComponent.tsx +1 -2
  125. package/src/components/DialogContext.tsx +1 -2
  126. package/src/components/VisualStyleContext.tsx +1 -2
  127. package/dist/allPaths-vhUhWron.js +0 -23
  128. package/dist/allPaths-vhUhWron.js.map +0 -1
  129. package/dist/allPathsLoader-BeDEFia4.js +0 -27
  130. package/dist/allPathsLoader-BeDEFia4.js.map +0 -1
  131. package/dist/index-BaIbKicL.js +0 -695
  132. package/dist/index-BaIbKicL.js.map +0 -1
  133. package/dist/index-Bh4sHBxX.js +0 -695
  134. package/dist/index-Bh4sHBxX.js.map +0 -1
  135. package/dist/index-C8ABKThN.js +0 -13501
  136. package/dist/index-C8ABKThN.js.map +0 -1
  137. package/dist/splitPathsBySizeLoader-CYAuGCeX.js +0 -36
  138. package/dist/splitPathsBySizeLoader-CYAuGCeX.js.map +0 -1
  139. package/lib/esm/bpComponents/BPTreeComponent.d.ts +0 -46
  140. package/lib/esm/bpComponents/BPTreeComponent.js +0 -221
  141. package/lib/esm/bpComponents/BPTreeComponent.js.map +0 -1
  142. package/lib/esm/bpComponents/BPTreeFolderComponent.d.ts +0 -10
  143. package/lib/esm/bpComponents/BPTreeFolderComponent.js +0 -37
  144. package/lib/esm/bpComponents/BPTreeFolderComponent.js.map +0 -1
  145. package/lib/esm/components/Tree2.d.ts +0 -52
  146. package/lib/esm/components/Tree2.js +0 -177
  147. package/lib/esm/components/Tree2.js.map +0 -1
  148. package/lib/esm/components/TreeNode2.d.ts +0 -43
  149. package/lib/esm/components/TreeNode2.js +0 -113
  150. package/lib/esm/components/TreeNode2.js.map +0 -1
  151. package/lib/esm/components/treeTypes.d.ts +0 -19
  152. package/lib/esm/components/treeTypes.js +0 -2
  153. package/lib/esm/components/treeTypes.js.map +0 -1
package/package.json CHANGED
@@ -1,19 +1,24 @@
1
1
  {
2
2
  "name": "uiconfig-blueprint",
3
3
  "name:umd": "bpui",
4
- "version": "0.1.0-dev.15",
4
+ "version": "0.1.0-dev.17",
5
+ "publishConfig": {
6
+ "tag": "latest"
7
+ },
5
8
  "description": "Blueprint.js wrapper and custom components for web controls UI. To be used with uiconfig.",
6
- "main": "dist/index.js",
9
+ "main": "dist/index.cjs",
7
10
  "module": "dist/index.mjs",
8
11
  "browser": "dist/index.js",
9
12
  "types": "dist/index.d.ts",
10
13
  "source": "src/index.ts",
11
- "sideEffects": false,
14
+ "sideEffects": [
15
+ "**/*.css"
16
+ ],
12
17
  "exports": {
13
18
  ".": {
14
19
  "types": "./dist/index.d.ts",
15
20
  "import": "./dist/index.mjs",
16
- "require": "./dist/index.js",
21
+ "require": "./dist/index.cjs",
17
22
  "browser": "./dist/index.js"
18
23
  },
19
24
  "./dist/": {
@@ -48,35 +53,43 @@
48
53
  "src",
49
54
  "docs",
50
55
  "tsconfig.json",
51
- "README.md"
56
+ "README.md",
57
+ "NOTICE"
52
58
  ],
53
59
  "repository": {
54
60
  "type": "git",
55
- "url": "git+https://github.com/repalash/uiconfig-blueprint.git"
61
+ "url": "git+https://github.com/repalash/uiconfig.js.git",
62
+ "directory": "packages/uiconfig-blueprint"
56
63
  },
57
64
  "keywords": [
58
- "javascript",
59
- "typescript",
60
- "json",
61
65
  "ui",
62
- "three.js",
63
- "html",
66
+ "gui",
67
+ "panel",
68
+ "inspector",
69
+ "editor",
70
+ "controls",
64
71
  "blueprint",
65
- "library"
72
+ "blueprintjs",
73
+ "react",
74
+ "config",
75
+ "uiconfig",
76
+ "three.js",
77
+ "typescript"
66
78
  ],
67
79
  "author": "repalash <palash@shaders.app>",
68
80
  "license": "Apache-2.0",
69
81
  "bugs": {
70
- "url": "https://github.com/repalash/uiconfig-blueprint/issues"
82
+ "url": "https://github.com/repalash/uiconfig.js/issues"
71
83
  },
72
- "homepage": "https://github.com/repalash/uiconfig-blueprint#readme",
84
+ "homepage": "https://repalash.com/uiconfig.js/",
73
85
  "dependencies": {
74
- "ts-browser-helpers": "^0.19.4",
75
- "uiconfig.js": "^0.3.1",
86
+ "ts-browser-helpers": ">=0.19.4",
87
+ "uiconfig.js": "^0.4.1",
76
88
  "@blueprintjs/icons": "^5.23.0",
77
89
  "@blueprintjs/select": "^5.3.21",
78
90
  "blueprint-styler": "^5.0.2",
79
- "react-colorful": "^5.6.1"
91
+ "react-colorful": "^5.6.1",
92
+ "classnames": "^2.5.1"
80
93
  },
81
94
  "peerDependencies": {
82
95
  "@blueprintjs/core": "^5.19.1",
@@ -88,9 +101,6 @@
88
101
  "react-dom": "^18.2.0"
89
102
  },
90
103
  "peerDependenciesMeta": {
91
- "@blueprintjs/core": {
92
- "optional": true
93
- },
94
104
  "@types/three": {
95
105
  "optional": true
96
106
  },
@@ -102,12 +112,6 @@
102
112
  },
103
113
  "@types/react-dom": {
104
114
  "optional": true
105
- },
106
- "react": {
107
- "optional": true
108
- },
109
- "react-dom": {
110
- "optional": true
111
115
  }
112
116
  },
113
117
  "//": {
@@ -21,33 +21,36 @@ export class UiConfigRendererBlueprint extends UiConfigRenderer {
21
21
  FocusStyleManager.onlyShowFocusOnTabs();
22
22
 
23
23
  const container = createDiv({id: 'blueprintUiContainer', addToBody: false})
24
- createStyles(css`
25
- :root {
26
- --blueprint-ui-container-width: 300px;
27
- }
28
-
29
- @media only screen and (min-width: 1500px) {
24
+ // the styles (about 3 MB) are added to the document once, not for each renderer
25
+ if (!document.querySelector('style[data-uiconfig-blueprint]')) {
26
+ createStyles(css`
30
27
  :root {
31
- --blueprint-ui-container-width: 400px;
28
+ --blueprint-ui-container-width: 300px;
32
29
  }
33
- }
34
- @media only screen and (min-width: 2500px) {
35
- :root {
36
- --blueprint-ui-container-width: 500px;
30
+
31
+ @media only screen and (min-width: 1500px) {
32
+ :root {
33
+ --blueprint-ui-container-width: 400px;
34
+ }
37
35
  }
38
- }
39
-
40
- @media only screen and (min-width: 600px) {
41
- #blueprintUiContainer {
42
- min-width: var(--blueprint-ui-container-width);
43
- min-height: 200px;
44
- max-height: 100%;
45
- max-width: 100%;
46
- resize: both;
36
+ @media only screen and (min-width: 2500px) {
37
+ :root {
38
+ --blueprint-ui-container-width: 500px;
39
+ }
47
40
  }
48
- }
49
- `)
50
- createStyles(rendererCss)
41
+
42
+ @media only screen and (min-width: 600px) {
43
+ #blueprintUiContainer {
44
+ min-width: var(--blueprint-ui-container-width);
45
+ min-height: 200px;
46
+ max-height: 100%;
47
+ max-width: 100%;
48
+ resize: both;
49
+ }
50
+ }
51
+ `).dataset.uiconfigBlueprint = 'container'
52
+ createStyles(rendererCss).dataset.uiconfigBlueprint = 'renderer'
53
+ }
51
54
 
52
55
  this._root = createRoot(container, {
53
56
  identifierPrefix: 'bpUi',
@@ -68,6 +68,8 @@ export abstract class BPComponent<TValue, TState extends BPComponentState, TProp
68
68
 
69
69
  private _refreshing = false;
70
70
 
71
+ private _refreshAgain = false
72
+
71
73
  /**
72
74
  * Refreshes the state from the config
73
75
  *
@@ -76,14 +78,25 @@ export abstract class BPComponent<TValue, TState extends BPComponentState, TProp
76
78
  */
77
79
  async refreshConfigState(state?: TState) {
78
80
  if (!this.props.config) return;
79
- if (this._refreshing) return;
81
+ if (this._refreshing) {
82
+ // a refresh asked for while one runs: run once more after it, so that the latest value shows
83
+ this._refreshAgain = true
84
+ return;
85
+ }
80
86
  this._refreshing = true
81
- const s = this.getUpdatedState(state || this.state)
82
- // console.log('set state', s)
83
- await this.setStatePromise(s)
84
- // todo debug refresh frequency etc
85
- // console.log('refreshing', this.props.config.label, this.props.config.type, this.state)
86
- this._refreshing = false
87
+ try {
88
+ const s = this.getUpdatedState(state || this.state)
89
+ // console.log('set state', s)
90
+ await this.setStatePromise(s)
91
+ } finally {
92
+ // todo debug refresh frequency etc
93
+ // console.log('refreshing', this.props.config.label, this.props.config.type, this.state)
94
+ this._refreshing = false
95
+ }
96
+ if (this._refreshAgain) {
97
+ this._refreshAgain = false
98
+ await this.refreshConfigState()
99
+ }
87
100
  }
88
101
 
89
102
  /**
@@ -8,14 +8,14 @@ import {
8
8
  Icon,
9
9
  IconName,
10
10
  Intent,
11
- MaybeElement, Menu, MenuItem, Popover
11
+ MaybeElement, Menu, MenuItem, Popover,
12
+ Classes,
12
13
  } from "@blueprintjs/core";
13
14
  import {ConfigObject} from "../ConfigObject";
14
15
  import {PanelActions} from "@blueprintjs/core/lib/esm/components/panel-stack2/panelTypes";
15
16
  import {getOrCall, safeSetProperty} from 'ts-browser-helpers'
16
17
  import {BPContainerComponent, BPContainerComponentState, BPContainerComponentProps} from './BPContainerComponent'
17
18
  import classNames from "classnames";
18
- import {Classes} from "@blueprintjs/core/src/common";
19
19
  import {AnimationStates} from "@blueprintjs/core/lib/esm/components/collapse/collapse";
20
20
 
21
21
  export type BPFolderComponentState = BPContainerComponentState & {
@@ -21,11 +21,22 @@ export class BPTextInputComponent extends BPInputComponent<string> {
21
21
  }
22
22
  }
23
23
 
24
+ private _edited = false
24
25
  private _onChange: ChangeEventHandler<HTMLInputElement> = (e) => {
25
26
  this._iv+=1
27
+ this._edited = true
26
28
  this.setValue(e.target.value, false); // todo: set loading while this promise is happening.
27
29
  }
28
30
 
31
+ // after an edit, blur sets the value once more with `last: true`: the change event marks the end of the edit and
32
+ // the undo manager closes the step that merged the keystrokes
33
+ private _onBlur = (e: React.FocusEvent<HTMLInputElement | HTMLTextAreaElement>) => {
34
+ if (!this._edited) return
35
+ this._edited = false
36
+ this._iv+=1
37
+ this.setValue(e.target.value, true);
38
+ }
39
+
29
40
  renderInput() {
30
41
  const config = this.props.config as any;
31
42
  const isMultiline = config.multiline === true;
@@ -42,7 +53,8 @@ export class BPTextInputComponent extends BPInputComponent<string> {
42
53
  rows={config.rows}
43
54
  cols={config.cols}
44
55
  autoResize={config.autoResize}
45
- onChange={this._onChange as any}/>
56
+ onChange={this._onChange as any}
57
+ onBlur={this._onBlur}/>
46
58
  )
47
59
  }
48
60
 
@@ -54,7 +66,8 @@ export class BPTextInputComponent extends BPInputComponent<string> {
54
66
  readOnly={this.state.readOnly}
55
67
  key={this.props.config.uuid}
56
68
  fill={true}
57
- onChange={this._onChange}/>
69
+ onChange={this._onChange}
70
+ onBlur={this._onBlur}/>
58
71
  )
59
72
  }
60
73
  }
@@ -1,9 +1,8 @@
1
1
  import React from "react";
2
- import {Button, Card, Panel, PanelStack2, Popover} from "@blueprintjs/core";
2
+ import {Button, Card, Classes, Panel, PanelStack2, Popover} from "@blueprintjs/core";
3
3
  import {ConfigObject, ConfigProps} from "../ConfigObject";
4
4
  import {UiObjectConfig} from 'uiconfig.js'
5
5
  import {UiConfigRendererContext} from '../bpComponents/BPComponent'
6
- import {Classes} from '@blueprintjs/core/src/common'
7
6
  import {
8
7
  defaultVisualStyle,
9
8
  setupVisualStyle,
@@ -1,7 +1,6 @@
1
1
  import {createContext, Dispatch, ReactNode, SetStateAction, useCallback, useContext, useState} from 'react'
2
- import {Button, Dialog, DialogBody, DialogFooter, FormGroup, InputGroup} from '@blueprintjs/core'
2
+ import {Button, Dialog, DialogBody, DialogFooter, FormGroup, InputGroup, Intent} from '@blueprintjs/core'
3
3
  import {useLoadingState} from './loadingState'
4
- import {Intent} from '@blueprintjs/core/src/common/intent'
5
4
 
6
5
  export type DialogStateType = {
7
6
  isOpen: boolean,
@@ -1,6 +1,5 @@
1
1
  import React from 'react'
2
- import {Menu, MenuItem} from '@blueprintjs/core'
3
- import {Classes} from '@blueprintjs/core/src/common'
2
+ import {Classes, Menu, MenuItem} from '@blueprintjs/core'
4
3
 
5
4
  export const defaultVisualStyle = {
6
5
  darkMode: true,
@@ -1,23 +0,0 @@
1
- import { I as n } from "./index-Bh4sHBxX.js";
2
- import { I as e } from "./index-BaIbKicL.js";
3
- import { p as r, I as s } from "./index-C8ABKThN.js";
4
- /**
5
- * @license
6
- * uiconfig-blueprint v0.1.0-dev.15
7
- * Copyright 2022-2025 repalash <palash@shaders.app>
8
- * Apache-2.0 License
9
- */
10
- function I(o, t) {
11
- var a = r(o);
12
- return t === s.STANDARD ? n[a] : e[a];
13
- }
14
- function p(o) {
15
- return r(o);
16
- }
17
- export {
18
- n as IconSvgPaths16,
19
- e as IconSvgPaths20,
20
- I as getIconPaths,
21
- p as iconNameToPathsRecordKey
22
- };
23
- //# sourceMappingURL=allPaths-vhUhWron.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"allPaths-vhUhWron.js","sources":["../node_modules/@blueprintjs/icons/lib/esm/allPaths.js"],"sourcesContent":["/*\n * Copyright 2021 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { pascalCase } from \"change-case\";\nimport * as IconSvgPaths16 from \"./generated/16px/paths\";\nimport * as IconSvgPaths20 from \"./generated/20px/paths\";\nimport { IconSize } from \"./iconTypes\";\nexport { IconSvgPaths16, IconSvgPaths20 };\n/**\n * Get the list of vector paths that define a given icon. These path strings are used to render `<path>`\n * elements inside an `<svg>` icon element. For full implementation details and nuances, see the icon component\n * handlebars template and `generate-icon-components` script in the __@blueprintjs/icons__ package.\n *\n * Note: this function loads all icon definitions __statically__, which means every icon is included in your\n * JS bundle. Only use this API if your app is likely to use all Blueprint icons at runtime. If you are looking for a\n * dynamic icon loader which loads icon definitions on-demand, use `{ Icons } from \"@blueprintjs/icons\"` instead.\n */\nexport function getIconPaths(name, size) {\n var key = pascalCase(name);\n return size === IconSize.STANDARD ? IconSvgPaths16[key] : IconSvgPaths20[key];\n}\n/**\n * Type safe string literal conversion of snake-case icon names to PascalCase icon names.\n * This is useful for indexing into the SVG paths record to extract a single icon's SVG path definition.\n *\n * @deprecated use `getIconPaths` instead\n */\nexport function iconNameToPathsRecordKey(name) {\n return pascalCase(name);\n}\n//# sourceMappingURL=allPaths.js.map"],"names":["getIconPaths","name","size","key","pascalCase","IconSize","IconSvgPaths16","IconSvgPaths20","iconNameToPathsRecordKey"],"mappings":";;;;;;;;;AA6BO,SAASA,EAAaC,GAAMC,GAAM;AACrC,MAAIC,IAAMC,EAAWH,CAAI;AACzB,SAAOC,MAASG,EAAS,WAAWC,EAAeH,CAAG,IAAII,EAAeJ,CAAG;AAChF;AAOO,SAASK,EAAyBP,GAAM;AAC3C,SAAOG,EAAWH,CAAI;AAC1B;","x_google_ignoreList":[0]}
@@ -1,27 +0,0 @@
1
- import { _ as n, a as o } from "./index-C8ABKThN.js";
2
- /**
3
- * @license
4
- * uiconfig-blueprint v0.1.0-dev.15
5
- * Copyright 2022-2025 repalash <palash@shaders.app>
6
- * Apache-2.0 License
7
- */
8
- var s = function(a, e) {
9
- return n(void 0, void 0, void 0, function() {
10
- var t;
11
- return o(this, function(r) {
12
- switch (r.label) {
13
- case 0:
14
- return [4, import(
15
- /* webpackChunkName: "blueprint-icons-all-paths" */
16
- "./allPaths-vhUhWron.js"
17
- )];
18
- case 1:
19
- return t = r.sent().getIconPaths, [2, t(a, e)];
20
- }
21
- });
22
- });
23
- };
24
- export {
25
- s as allPathsLoader
26
- };
27
- //# sourceMappingURL=allPathsLoader-BeDEFia4.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"allPathsLoader-BeDEFia4.js","sources":["../node_modules/@blueprintjs/icons/lib/esm/paths-loaders/allPathsLoader.js"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { __awaiter, __generator } from \"tslib\";\n/**\n * A simple module loader which concatenates all icon paths into a single chunk.\n */\nexport var allPathsLoader = function (name, size) { return __awaiter(void 0, void 0, void 0, function () {\n var getIconPaths;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, import(\n /* webpackChunkName: \"blueprint-icons-all-paths\" */\n \"../allPaths\")];\n case 1:\n getIconPaths = (_a.sent()).getIconPaths;\n return [2 /*return*/, getIconPaths(name, size)];\n }\n });\n}); };\n//# sourceMappingURL=allPathsLoader.js.map"],"names":["allPathsLoader","name","size","__awaiter","getIconPaths","__generator","_a"],"mappings":";;;;;;;AAmBU,IAACA,IAAiB,SAAUC,GAAMC,GAAM;AAAE,SAAOC,EAAU,QAAQ,QAAQ,QAAQ,WAAY;AACrG,QAAIC;AACJ,WAAOC,EAAY,MAAM,SAAUC,GAAI;AACnC,cAAQA,EAAG,OAAK;AAAA,QACZ,KAAK;AAAG,iBAAO,CAAC,GAAa;AAAA;AAAA,YAEzB;AAAA,UAAa,CAAC;AAAA,QAClB,KAAK;AACD,iBAAAF,IAAgBE,EAAG,KAAI,EAAI,cACpB,CAAC,GAAcF,EAAaH,GAAMC,CAAI,CAAC;AAAA,MAC9D;AAAA,IACA,CAAK;AAAA,EACL,CAAC;AAAE;","x_google_ignoreList":[0]}