@apia/tree 2.0.2 → 3.0.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.
- package/dist/SearchLabel.js +2 -1
- package/dist/SearchLabel.js.map +1 -1
- package/package.json +6 -6
package/dist/SearchLabel.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { jsx, jsxs } from '@apia/theme/jsx-runtime';
|
|
2
|
-
import {
|
|
2
|
+
import { IconButton } from '@apia/components';
|
|
3
3
|
import { Box, getVariant } from '@apia/theme';
|
|
4
4
|
import { formatMessage } from '@apia/util';
|
|
5
|
+
import LoaderSpinner from './components/src/components/loaders/LoaderSpinner.js';
|
|
5
6
|
|
|
6
7
|
const SearchLabel = ({
|
|
7
8
|
isLoading: isSearching,
|
package/dist/SearchLabel.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchLabel.js","sources":["../src/SearchLabel.tsx"],"sourcesContent":["import { IconButton
|
|
1
|
+
{"version":3,"file":"SearchLabel.js","sources":["../src/SearchLabel.tsx"],"sourcesContent":["import { IconButton } from '@apia/components';\nimport { getVariant } from '@apia/theme';\nimport { formatMessage } from '@apia/util';\nimport { Box } from '@apia/theme';\nimport LoaderSpinner from '../../components/src/components/loaders/LoaderSpinner';\nconst SearchLabel = ({\n isLoading: isSearching,\n onDelete,\n searchString,\n}: {\n isLoading: boolean;\n onDelete?: () => unknown;\n searchString: string;\n}) => {\n if (!searchString && !isSearching) return null;\n return (\n <Box className={`tree__searchLabelBox ${isSearching ? 'isLoading' : ''}`}>\n {isSearching ? (\n <LoaderSpinner className=\"tree__loading\" />\n ) : (\n <Box as=\"label\" className=\"tree__searchLabel\">\n {formatMessage(window.LBL_FILTERING_BY, { TOK1: searchString })}\n <IconButton\n icon=\"Close\"\n aria-label={window.LBL_DELETE_FILTER}\n onClick={onDelete}\n title={window.LBL_DELETE_FILTER}\n size=\"Sm\"\n {...getVariant('icon-inherit')}\n />\n </Box>\n )}\n </Box>\n );\n};\n\nexport default SearchLabel;\n"],"names":[],"mappings":";;;;;;AAKA,MAAM,cAAc,CAAC;AAAA,EACnB,SAAW,EAAA,WAAA;AAAA,EACX,QAAA;AAAA,EACA,YAAA;AACF,CAIM,KAAA;AACJ,EAAI,IAAA,CAAC,gBAAgB,CAAC,WAAA;AAAa,IAAO,OAAA,IAAA,CAAA;AAC1C,EAAA,2BACG,GAAI,EAAA,EAAA,SAAA,EAAW,wBAAwB,WAAc,GAAA,WAAA,GAAc,EAAE,CACnE,CAAA,EAAA,QAAA,EAAA,WAAA,uBACE,aAAc,EAAA,EAAA,SAAA,EAAU,iBAAgB,CAEzC,mBAAA,IAAA,CAAC,OAAI,EAAG,EAAA,OAAA,EAAQ,WAAU,mBACvB,EAAA,QAAA,EAAA;AAAA,IAAA,aAAA,CAAc,MAAO,CAAA,gBAAA,EAAkB,EAAE,IAAA,EAAM,cAAc,CAAA;AAAA,oBAC9D,GAAA;AAAA,MAAC,UAAA;AAAA,MAAA;AAAA,QACC,IAAK,EAAA,OAAA;AAAA,QACL,cAAY,MAAO,CAAA,iBAAA;AAAA,QACnB,OAAS,EAAA,QAAA;AAAA,QACT,OAAO,MAAO,CAAA,iBAAA;AAAA,QACd,IAAK,EAAA,IAAA;AAAA,QACJ,GAAG,WAAW,cAAc,CAAA;AAAA,OAAA;AAAA,KAC/B;AAAA,GAAA,EACF,CAEJ,EAAA,CAAA,CAAA;AAEJ,CAAA,CAAA;AAEA,oBAAe,WAAA;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apia/tree",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"author": "Alexis Leite <alexisleite@live.com>",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
"libWatch": "rollup --watch --config ../../config/rollup.common.mjs --environment MODE:development,ENTRY:index.ts,WATCH:true"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@apia/components": "^
|
|
17
|
-
"@apia/icons": "^
|
|
18
|
-
"@apia/theme": "^
|
|
19
|
-
"@apia/util": "^
|
|
16
|
+
"@apia/components": "^3.0.1",
|
|
17
|
+
"@apia/icons": "^3.0.1",
|
|
18
|
+
"@apia/theme": "^3.0.1",
|
|
19
|
+
"@apia/util": "^3.0.1",
|
|
20
20
|
"ahooks": "^3.7.10"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"access": "public",
|
|
35
35
|
"registry": "https://registry.npmjs.org/"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "1fc338a96b6dc90632052f9bd032992f6aedb6a6"
|
|
38
38
|
}
|