@webiny/admin-ui 0.0.0-unstable.ac6ebf63c6 → 0.0.0-unstable.c27f4d8a31
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/Alert/Alert.js +5 -1
- package/Alert/Alert.js.map +1 -1
- package/AutoComplete/primitives/AutoCompletePrimitive.js +1 -1
- package/AutoComplete/primitives/AutoCompletePrimitive.js.map +1 -1
- package/Checkbox/primitives/CheckboxPrimitive.d.ts +7 -6
- package/Checkbox/primitives/CheckboxPrimitive.js +4 -1
- package/Checkbox/primitives/CheckboxPrimitive.js.map +1 -1
- package/CheckboxGroup/CheckboxGroup.js +3 -1
- package/CheckboxGroup/CheckboxGroup.js.map +1 -1
- package/CheckboxGroup/primitives/CheckboxGroupPrimitive.d.ts +11 -6
- package/CheckboxGroup/primitives/CheckboxGroupPrimitive.js +5 -2
- package/CheckboxGroup/primitives/CheckboxGroupPrimitive.js.map +1 -1
- package/DataTable/DataTable.d.ts +3 -2
- package/DataTable/DataTable.js +2 -1
- package/DataTable/DataTable.js.map +1 -1
- package/DelayedOnChange/DelayedOnChange.js.map +1 -1
- package/Dialog/Dialog.stories.js +0 -2
- package/Dialog/Dialog.stories.js.map +1 -1
- package/Grid/Grid.d.ts +1 -1
- package/HeaderBar/HeaderBar.js +1 -1
- package/HeaderBar/HeaderBar.js.map +1 -1
- package/IconPicker/IconPicker.stories.js +0 -2
- package/IconPicker/IconPicker.stories.js.map +1 -1
- package/IconPicker/primitives/IconPickerPrimitive.js +1 -0
- package/IconPicker/primitives/IconPickerPrimitive.js.map +1 -1
- package/IconPicker/primitives/IconPickerPrimitive.stories.js +0 -2
- package/IconPicker/primitives/IconPickerPrimitive.stories.js.map +1 -1
- package/MultiAutoComplete/primitives/components/MultiAutoCompleteInput.js +3 -1
- package/MultiAutoComplete/primitives/components/MultiAutoCompleteInput.js.map +1 -1
- package/RadioGroup/RadioGroup.js +3 -1
- package/RadioGroup/RadioGroup.js.map +1 -1
- package/Separator/Separator.js +1 -1
- package/Separator/Separator.js.map +1 -1
- package/Tags/primitives/presenters/TagsValuesPresenter.js +1 -1
- package/Tags/primitives/presenters/TagsValuesPresenter.js.map +1 -1
- package/package.json +22 -22
- package/theme.css +6 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["makeAutoObservable","minimatch","TagItem","TagItemMapper","TagsValuesPresenter","values","constructor","init","params","map","value","create","label","protected","protectedValues","some","pattern","vm","toFormatted","addValue","find","tag","tagItem","push","removeValue","filter","isValueProtected","hasValue"],"sources":["TagsValuesPresenter.ts"],"sourcesContent":["import { makeAutoObservable } from \"mobx\";\nimport minimatch from \"minimatch\";\nimport { TagItem, type TagItemFormatted, TagItemMapper } from \"~/Tags/domain/index.js\";\n\ninterface TagsValuesPresenterParams {\n values?: string[];\n protectedValues?: string[];\n}\n\ninterface ITagsValuesPresenter {\n vm: {\n values: TagItemFormatted[];\n };\n init: (params: TagsValuesPresenterParams) => void;\n addValue: (value: string) => void;\n removeValue: (value: string) => void;\n hasValue: (value: string) => boolean;\n isValueProtected: (value: string) => boolean;\n}\n\nclass TagsValuesPresenter implements ITagsValuesPresenter {\n private values: TagItem[] = [];\n\n constructor() {\n makeAutoObservable(this);\n }\n\n init(params: TagsValuesPresenterParams) {\n this.values =\n params.values?.map(value =>\n TagItem.create({\n label: value,\n protected: params.protectedValues\n ? params.protectedValues.some(pattern => minimatch(value, pattern))\n : false\n })\n ) ?? [];\n }\n\n get vm() {\n return {\n values: this.values.map(value => TagItemMapper.toFormatted(value))\n };\n }\n\n public addValue = (value: string) => {\n if (!value || this.values.find(tag => tag.label === value)) {\n return;\n }\n const tagItem = TagItem.create({ label: value });\n this.values.push(tagItem);\n };\n\n public removeValue = (value: string) => {\n this.values = this.values.filter(\n tagItem => tagItem.label !== value || this.isValueProtected(tagItem.label)\n );\n };\n\n public hasValue = (value: string) => {\n return !!this.values.find(tag => tag.label === value);\n };\n\n public isValueProtected = (value: string) => {\n return !!this.values.find(tag => tag.label === value && tag.protected);\n };\n}\n\nexport { TagsValuesPresenter, type ITagsValuesPresenter, type TagsValuesPresenterParams };\n"],"mappings":"AAAA,SAASA,kBAAkB,QAAQ,MAAM;AACzC,
|
|
1
|
+
{"version":3,"names":["makeAutoObservable","minimatch","TagItem","TagItemMapper","TagsValuesPresenter","values","constructor","init","params","map","value","create","label","protected","protectedValues","some","pattern","vm","toFormatted","addValue","find","tag","tagItem","push","removeValue","filter","isValueProtected","hasValue"],"sources":["TagsValuesPresenter.ts"],"sourcesContent":["import { makeAutoObservable } from \"mobx\";\nimport { minimatch } from \"minimatch\";\nimport { TagItem, type TagItemFormatted, TagItemMapper } from \"~/Tags/domain/index.js\";\n\ninterface TagsValuesPresenterParams {\n values?: string[];\n protectedValues?: string[];\n}\n\ninterface ITagsValuesPresenter {\n vm: {\n values: TagItemFormatted[];\n };\n init: (params: TagsValuesPresenterParams) => void;\n addValue: (value: string) => void;\n removeValue: (value: string) => void;\n hasValue: (value: string) => boolean;\n isValueProtected: (value: string) => boolean;\n}\n\nclass TagsValuesPresenter implements ITagsValuesPresenter {\n private values: TagItem[] = [];\n\n constructor() {\n makeAutoObservable(this);\n }\n\n init(params: TagsValuesPresenterParams) {\n this.values =\n params.values?.map(value =>\n TagItem.create({\n label: value,\n protected: params.protectedValues\n ? params.protectedValues.some(pattern => minimatch(value, pattern))\n : false\n })\n ) ?? [];\n }\n\n get vm() {\n return {\n values: this.values.map(value => TagItemMapper.toFormatted(value))\n };\n }\n\n public addValue = (value: string) => {\n if (!value || this.values.find(tag => tag.label === value)) {\n return;\n }\n const tagItem = TagItem.create({ label: value });\n this.values.push(tagItem);\n };\n\n public removeValue = (value: string) => {\n this.values = this.values.filter(\n tagItem => tagItem.label !== value || this.isValueProtected(tagItem.label)\n );\n };\n\n public hasValue = (value: string) => {\n return !!this.values.find(tag => tag.label === value);\n };\n\n public isValueProtected = (value: string) => {\n return !!this.values.find(tag => tag.label === value && tag.protected);\n };\n}\n\nexport { TagsValuesPresenter, type ITagsValuesPresenter, type TagsValuesPresenterParams };\n"],"mappings":"AAAA,SAASA,kBAAkB,QAAQ,MAAM;AACzC,SAASC,SAAS,QAAQ,WAAW;AACrC,SAASC,OAAO,EAAyBC,aAAa;AAkBtD,MAAMC,mBAAmB,CAAiC;EAC9CC,MAAM,GAAc,EAAE;EAE9BC,WAAWA,CAAA,EAAG;IACVN,kBAAkB,CAAC,IAAI,CAAC;EAC5B;EAEAO,IAAIA,CAACC,MAAiC,EAAE;IACpC,IAAI,CAACH,MAAM,GACPG,MAAM,CAACH,MAAM,EAAEI,GAAG,CAACC,KAAK,IACpBR,OAAO,CAACS,MAAM,CAAC;MACXC,KAAK,EAAEF,KAAK;MACZG,SAAS,EAAEL,MAAM,CAACM,eAAe,GAC3BN,MAAM,CAACM,eAAe,CAACC,IAAI,CAACC,OAAO,IAAIf,SAAS,CAACS,KAAK,EAAEM,OAAO,CAAC,CAAC,GACjE;IACV,CAAC,CACL,CAAC,IAAI,EAAE;EACf;EAEA,IAAIC,EAAEA,CAAA,EAAG;IACL,OAAO;MACHZ,MAAM,EAAE,IAAI,CAACA,MAAM,CAACI,GAAG,CAACC,KAAK,IAAIP,aAAa,CAACe,WAAW,CAACR,KAAK,CAAC;IACrE,CAAC;EACL;EAEOS,QAAQ,GAAIT,KAAa,IAAK;IACjC,IAAI,CAACA,KAAK,IAAI,IAAI,CAACL,MAAM,CAACe,IAAI,CAACC,GAAG,IAAIA,GAAG,CAACT,KAAK,KAAKF,KAAK,CAAC,EAAE;MACxD;IACJ;IACA,MAAMY,OAAO,GAAGpB,OAAO,CAACS,MAAM,CAAC;MAAEC,KAAK,EAAEF;IAAM,CAAC,CAAC;IAChD,IAAI,CAACL,MAAM,CAACkB,IAAI,CAACD,OAAO,CAAC;EAC7B,CAAC;EAEME,WAAW,GAAId,KAAa,IAAK;IACpC,IAAI,CAACL,MAAM,GAAG,IAAI,CAACA,MAAM,CAACoB,MAAM,CAC5BH,OAAO,IAAIA,OAAO,CAACV,KAAK,KAAKF,KAAK,IAAI,IAAI,CAACgB,gBAAgB,CAACJ,OAAO,CAACV,KAAK,CAC7E,CAAC;EACL,CAAC;EAEMe,QAAQ,GAAIjB,KAAa,IAAK;IACjC,OAAO,CAAC,CAAC,IAAI,CAACL,MAAM,CAACe,IAAI,CAACC,GAAG,IAAIA,GAAG,CAACT,KAAK,KAAKF,KAAK,CAAC;EACzD,CAAC;EAEMgB,gBAAgB,GAAIhB,KAAa,IAAK;IACzC,OAAO,CAAC,CAAC,IAAI,CAACL,MAAM,CAACe,IAAI,CAACC,GAAG,IAAIA,GAAG,CAACT,KAAK,KAAKF,KAAK,IAAIW,GAAG,CAACR,SAAS,CAAC;EAC1E,CAAC;AACL;AAEA,SAAST,mBAAmB","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/admin-ui",
|
|
3
|
-
"version": "0.0.0-unstable.
|
|
3
|
+
"version": "0.0.0-unstable.c27f4d8a31",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": {
|
|
@@ -10,61 +10,61 @@
|
|
|
10
10
|
"description": "The UI component library for Webiny's Admin app.",
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@fortawesome/fontawesome-svg-core": "
|
|
14
|
-
"@fortawesome/react-fontawesome": "
|
|
13
|
+
"@fortawesome/fontawesome-svg-core": "7.2.0",
|
|
14
|
+
"@fortawesome/react-fontawesome": "3.2.0",
|
|
15
15
|
"@minoru/react-dnd-treeview": "3.5.3",
|
|
16
16
|
"@monaco-editor/react": "4.7.0",
|
|
17
17
|
"@radix-ui/react-scroll-area": "1.2.10",
|
|
18
18
|
"@tanstack/react-table": "8.21.3",
|
|
19
|
-
"@webiny/icons": "0.0.0-unstable.
|
|
20
|
-
"@webiny/react-composition": "0.0.0-unstable.
|
|
21
|
-
"@webiny/utils": "0.0.0-unstable.
|
|
19
|
+
"@webiny/icons": "0.0.0-unstable.c27f4d8a31",
|
|
20
|
+
"@webiny/react-composition": "0.0.0-unstable.c27f4d8a31",
|
|
21
|
+
"@webiny/utils": "0.0.0-unstable.c27f4d8a31",
|
|
22
22
|
"bytes": "3.1.2",
|
|
23
23
|
"class-variance-authority": "0.7.1",
|
|
24
24
|
"clsx": "2.1.1",
|
|
25
25
|
"cmdk": "1.1.1",
|
|
26
26
|
"lodash": "4.17.23",
|
|
27
|
-
"minimatch": "
|
|
27
|
+
"minimatch": "10.2.4",
|
|
28
28
|
"mobx": "6.15.0",
|
|
29
29
|
"monaco-editor": "0.53.0",
|
|
30
30
|
"radix-ui": "1.4.3",
|
|
31
|
-
"react": "18.
|
|
31
|
+
"react": "18.3.1",
|
|
32
32
|
"react-color": "2.19.3",
|
|
33
33
|
"react-custom-scrollbars": "4.2.1",
|
|
34
34
|
"react-dnd": "16.0.1",
|
|
35
35
|
"react-virtualized": "9.22.6",
|
|
36
36
|
"sonner": "2.0.7",
|
|
37
37
|
"tailwind-merge": "2.6.1",
|
|
38
|
-
"tailwindcss": "4.1
|
|
38
|
+
"tailwindcss": "4.2.1",
|
|
39
39
|
"timeago-react": "3.0.7",
|
|
40
40
|
"tw-animate-css": "1.4.0",
|
|
41
41
|
"type-fest": "5.4.4"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@fortawesome/free-solid-svg-icons": "
|
|
45
|
-
"@storybook/addon-a11y": "9.1.
|
|
46
|
-
"@storybook/addon-docs": "9.1.
|
|
44
|
+
"@fortawesome/free-solid-svg-icons": "7.2.0",
|
|
45
|
+
"@storybook/addon-a11y": "9.1.20",
|
|
46
|
+
"@storybook/addon-docs": "9.1.20",
|
|
47
47
|
"@storybook/addon-webpack5-compiler-babel": "3.0.6",
|
|
48
|
-
"@storybook/react-webpack5": "9.1.
|
|
48
|
+
"@storybook/react-webpack5": "9.1.20",
|
|
49
49
|
"@svgr/webpack": "6.5.1",
|
|
50
|
-
"@tailwindcss/postcss": "4.1
|
|
51
|
-
"@types/react": "18.
|
|
50
|
+
"@tailwindcss/postcss": "4.2.1",
|
|
51
|
+
"@types/react": "18.3.28",
|
|
52
52
|
"@types/react-color": "2.17.12",
|
|
53
53
|
"@types/react-custom-scrollbars": "4.0.13",
|
|
54
54
|
"@types/react-virtualized": "9.22.3",
|
|
55
|
-
"@webiny/build-tools": "0.0.0-unstable.
|
|
56
|
-
"@webiny/project": "0.0.0-unstable.
|
|
55
|
+
"@webiny/build-tools": "0.0.0-unstable.c27f4d8a31",
|
|
56
|
+
"@webiny/project": "0.0.0-unstable.c27f4d8a31",
|
|
57
57
|
"chalk": "4.1.2",
|
|
58
|
-
"css-loader": "7.1.
|
|
59
|
-
"eslint-plugin-storybook": "
|
|
58
|
+
"css-loader": "7.1.4",
|
|
59
|
+
"eslint-plugin-storybook": "10.2.17",
|
|
60
60
|
"file-loader": "6.2.0",
|
|
61
61
|
"postcss-loader": "8.2.1",
|
|
62
62
|
"prettier": "3.6.2",
|
|
63
63
|
"rimraf": "6.1.3",
|
|
64
64
|
"sass": "1.97.3",
|
|
65
|
-
"storybook": "9.1.
|
|
65
|
+
"storybook": "9.1.20",
|
|
66
66
|
"typescript": "5.9.3",
|
|
67
|
-
"vitest": "
|
|
67
|
+
"vitest": "4.0.18"
|
|
68
68
|
},
|
|
69
69
|
"publishConfig": {
|
|
70
70
|
"access": "public",
|
|
@@ -84,5 +84,5 @@
|
|
|
84
84
|
]
|
|
85
85
|
}
|
|
86
86
|
},
|
|
87
|
-
"gitHead": "
|
|
87
|
+
"gitHead": "c27f4d8a31c3af1570817797441855292b6c1f20"
|
|
88
88
|
}
|
package/theme.css
CHANGED
|
@@ -346,6 +346,12 @@
|
|
|
346
346
|
@apply pr-xxl pl-xxl mx-auto w-full;
|
|
347
347
|
}
|
|
348
348
|
|
|
349
|
+
@utility fill-grid {
|
|
350
|
+
background-image: radial-gradient(var(--color-neutral-strong) 1px, transparent 0px);
|
|
351
|
+
background-size: 15px 15px;
|
|
352
|
+
@apply bg-neutral-light;
|
|
353
|
+
}
|
|
354
|
+
|
|
349
355
|
@layer base {
|
|
350
356
|
a {
|
|
351
357
|
@apply text-accent-primary hover:underline focus-visible:outline-none focus-visible:ring-lg focus-visible:ring-primary-dimmed rounded-xs;
|