@demos-europe/demosplan-ui 0.3.19 → 0.3.20

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 (84) hide show
  1. package/.idea/shelf/Uncommitted_changes_before_Update_at_17_07_2024_15_21_[Changes]/shelved.patch +36 -0
  2. package/.idea/shelf/Uncommitted_changes_before_Update_at_17_07_2024_15_21__Changes_.xml +4 -0
  3. package/.idea/workspace.xml +57 -47
  4. package/.yarn/install-state.gz +0 -0
  5. package/CHANGELOG.md +8 -1
  6. package/buildTokens.js +157 -41
  7. package/dist/demosplan-ui.umd.js +1 -1
  8. package/package.json +4 -3
  9. package/storybook-static/favicon.svg +7 -0
  10. package/storybook-static/index.html +123 -0
  11. package/storybook-static/index.json +1 -0
  12. package/storybook-static/project.json +1 -0
  13. package/storybook-static/sb-addons/essentials-actions-2/manager-bundle.js +3 -0
  14. package/storybook-static/sb-addons/essentials-actions-2/manager-bundle.js.LEGAL.txt +0 -0
  15. package/storybook-static/sb-addons/essentials-backgrounds-3/manager-bundle.js +12 -0
  16. package/storybook-static/sb-addons/essentials-backgrounds-3/manager-bundle.js.LEGAL.txt +0 -0
  17. package/storybook-static/sb-addons/essentials-controls-1/manager-bundle.js +63 -0
  18. package/storybook-static/sb-addons/essentials-controls-1/manager-bundle.js.LEGAL.txt +18 -0
  19. package/storybook-static/sb-addons/essentials-measure-6/manager-bundle.js +3 -0
  20. package/storybook-static/sb-addons/essentials-measure-6/manager-bundle.js.LEGAL.txt +0 -0
  21. package/storybook-static/sb-addons/essentials-outline-7/manager-bundle.js +3 -0
  22. package/storybook-static/sb-addons/essentials-outline-7/manager-bundle.js.LEGAL.txt +0 -0
  23. package/storybook-static/sb-addons/essentials-toolbars-5/manager-bundle.js +3 -0
  24. package/storybook-static/sb-addons/essentials-toolbars-5/manager-bundle.js.LEGAL.txt +0 -0
  25. package/storybook-static/sb-addons/essentials-viewport-4/manager-bundle.js +3 -0
  26. package/storybook-static/sb-addons/essentials-viewport-4/manager-bundle.js.LEGAL.txt +0 -0
  27. package/storybook-static/sb-addons/links-0/manager-bundle.js +3 -0
  28. package/storybook-static/sb-addons/links-0/manager-bundle.js.LEGAL.txt +0 -0
  29. package/storybook-static/sb-common-assets/fonts.css +31 -0
  30. package/storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
  31. package/storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
  32. package/storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
  33. package/storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
  34. package/storybook-static/sb-manager/WithTooltip-V3YHNWJZ-TRLNWEGW.js +1 -0
  35. package/storybook-static/sb-manager/chunk-4IYAVH3S.js +348 -0
  36. package/storybook-static/sb-manager/chunk-CXYKRFSY.js +9 -0
  37. package/storybook-static/sb-manager/chunk-LVLAH4SI.js +7 -0
  38. package/storybook-static/sb-manager/chunk-VFHDXWEA.js +406 -0
  39. package/storybook-static/sb-manager/chunk-ZEU7PDD3.js +1 -0
  40. package/storybook-static/sb-manager/formatter-SWP5E3XI-7BGIK6BL.js +156 -0
  41. package/storybook-static/sb-manager/globals-module-info.js +1 -0
  42. package/storybook-static/sb-manager/globals.js +1 -0
  43. package/storybook-static/sb-manager/index.js +1 -0
  44. package/storybook-static/sb-manager/runtime.js +1 -0
  45. package/storybook-static/sb-manager/syntaxhighlighter-B5GMVT5T-EA5ASEYD.js +1 -0
  46. package/storybook-static/stories.json +1 -0
  47. package/tailwind.config.js +27 -1
  48. package/tokens/dist/js/boxShadow.js +13 -81
  49. package/tokens/dist/js/breakpoints.js +1 -1
  50. package/tokens/dist/js/color.brand.js +19 -7
  51. package/tokens/dist/js/color.data.js +85 -29
  52. package/tokens/dist/js/color.palette.js +175 -59
  53. package/tokens/dist/js/color.ui-tailwind.js +1759 -0
  54. package/tokens/dist/js/color.ui.js +1923 -57
  55. package/tokens/dist/js/fontSize.js +1 -1
  56. package/tokens/dist/js/rounded.js +1 -77
  57. package/tokens/dist/js/space.js +1 -1
  58. package/tokens/dist/js/zIndex.js +1 -1
  59. package/tokens/dist/scss/_boxShadow.scss +1 -1
  60. package/tokens/dist/scss/_breakpoints.scss +1 -1
  61. package/tokens/dist/scss/_color.brand.scss +1 -1
  62. package/tokens/dist/scss/_color.data.scss +1 -1
  63. package/tokens/dist/scss/_color.palette.scss +1 -1
  64. package/tokens/dist/scss/_color.ui.scss +1 -1
  65. package/tokens/dist/scss/_fontSize.scss +1 -1
  66. package/tokens/dist/scss/_rounded.scss +1 -1
  67. package/tokens/dist/scss/_space.scss +1 -1
  68. package/tokens/dist/scss/_zIndex.scss +1 -1
  69. package/tokens/dist/tailwind/backgroundColor.js +24 -0
  70. package/tokens/dist/tailwind/borderColor.js +9 -0
  71. package/tokens/dist/tailwind/color.brand.js +8 -0
  72. package/tokens/dist/tailwind/color.data.js +30 -0
  73. package/tokens/dist/tailwind/color.js +5 -0
  74. package/tokens/dist/tailwind/color.palette.js +60 -0
  75. package/tokens/dist/tailwind/textColor.js +32 -0
  76. package/tokens/src/boxShadow.json +16 -8
  77. package/tokens/src/color/color.brand.json +12 -6
  78. package/tokens/src/color/color.data.json +56 -28
  79. package/tokens/src/color/color.palette.json +116 -58
  80. package/tokens/src/color/color.ui-tailwind.json +376 -0
  81. package/tokens/src/color/color.ui.json +114 -57
  82. package/tokens/tokens.color.stories.mdx +83 -34
  83. package/tokens/tokens.space.stories.mdx +20 -20
  84. package/style/index.css +0 -7
@@ -0,0 +1,36 @@
1
+ Index: package.json
2
+ IDEA additional info:
3
+ Subsystem: com.intellij.openapi.diff.impl.patch.BaseRevisionTextPatchEP
4
+ <+>{\n \"name\": \"@demos-europe/demosplan-ui\",\n \"version\": \"0.3.19\",\n \"license\": \"MIT\",\n \"private\": false,\n \"description\": \"Vue components, Vue directives, Design Token and Scss files to build interfaces for demosPlan.\",\n \"main\": \"./dist/demosplan-ui.umd.js\",\n \"dependencies\": {\n \"@braintree/sanitize-url\": \"^7.0.0\",\n \"@floating-ui/dom\": \"^1.4.5\",\n \"@tiptap/core\": \"^2.0.3\",\n \"@tiptap/extension-bold\": \"^2.0.3\",\n \"@tiptap/extension-bullet-list\": \"^2.0.3\",\n \"@tiptap/extension-document\": \"^2.0.3\",\n \"@tiptap/extension-hard-break\": \"^2.0.3\",\n \"@tiptap/extension-heading\": \"^2.0.3\",\n \"@tiptap/extension-history\": \"^2.0.3\",\n \"@tiptap/extension-italic\": \"^2.0.3\",\n \"@tiptap/extension-link\": \"^2.0.3\",\n \"@tiptap/extension-list-item\": \"^2.0.3\",\n \"@tiptap/extension-mention\": \"^2.0.3\",\n \"@tiptap/extension-ordered-list\": \"^2.0.3\",\n \"@tiptap/extension-paragraph\": \"^2.0.3\",\n \"@tiptap/extension-strike\": \"^2.0.3\",\n \"@tiptap/extension-table\": \"^2.0.3\",\n \"@tiptap/extension-table-cell\": \"^2.0.3\",\n \"@tiptap/extension-table-header\": \"^2.0.3\",\n \"@tiptap/extension-table-row\": \"^2.0.3\",\n \"@tiptap/extension-text\": \"^2.0.3\",\n \"@tiptap/extension-underline\": \"^2.0.3\",\n \"@tiptap/pm\": \"^2.0.3\",\n \"@tiptap/suggestion\": \"^2.0.3\",\n \"@tiptap/vue-2\": \"^2.0.3\",\n \"@uppy/core\": \"^3.0.1\",\n \"@uppy/drag-drop\": \"^3.0.0\",\n \"@uppy/progress-bar\": \"^3.0.0\",\n \"@uppy/tus\": \"^3.0.1\",\n \"a11y-datepicker\": \" ^0.9.0\",\n \"dayjs\": \"^1.11.5\",\n \"dompurify\": \"^3.0.0\",\n \"fscreen\": \"^1.2.0\",\n \"ismobilejs\": \"^1.1.1\",\n \"lscache\": \"^1.3.2\",\n \"plyr\": \"^3.7.2\",\n \"qs\": \"^6.11.0\",\n \"tippy.js\": \"^6.3.7\",\n \"uuid\": \"^9.0.0\",\n \"v-tooltip\": \"2.1.3\",\n \"vue-click-outside\": \"^1.1.0\",\n \"vue-multiselect\": \"^2.1.6\",\n \"vue-omnibox\": \"^0.3.7\",\n \"vue-sliding-pagination\": \"^1.3.2\",\n \"vuedraggable\": \"^2.24.3\",\n \"vuex\": \"^3.6.2\"\n },\n \"devDependencies\": {\n \"@babel/core\": \"^7.21.4\",\n \"@babel/preset-env\": \"^7.21.4\",\n \"@babel/preset-react\": \"^7.23.3\",\n \"@babel/preset-typescript\": \"^7.21.4\",\n \"@jest/globals\": \"^29.5.0\",\n \"@jest/transform\": \"^29.5.0\",\n \"@storybook/addon-actions\": \"7.6.17\",\n \"@storybook/addon-docs\": \"7.6.17\",\n \"@storybook/addon-essentials\": \"7.6.17\",\n \"@storybook/addon-links\": \"7.6.17\",\n \"@storybook/addon-styling-webpack\": \"^0.0.6\",\n \"@storybook/vue\": \"7.6.17\",\n \"@storybook/vue-webpack5\": \"7.6.17\",\n \"@types/jest\": \"^29.5.1\",\n \"@types/qs\": \"^6.9.7\",\n \"@typescript-eslint/eslint-plugin\": \"^5.4.0\",\n \"@typescript-eslint/parser\": \"^5.4.0\",\n \"@vue/cli-plugin-typescript\": \"~5.0.0\",\n \"@vue/eslint-config-typescript\": \"^12.0.0\",\n \"@vue/test-utils\": \"^1.3.5\",\n \"@vue/vue2-jest\": \"^29.2.4\",\n \"@webpack-cli/generators\": \"^3.0.0\",\n \"autoprefixer\": \"^10.4.14\",\n \"babel-core\": \"^7.0.0-bridge.0\",\n \"babel-jest\": \"^29.5.0\",\n \"babel-loader\": \"^9.1.2\",\n \"babel-plugin-syntax-jsx\": \"^6.18.0\",\n \"babel-plugin-transform-vue-jsx\": \"^3.7.0\",\n \"css-loader\": \"^7.0.0\",\n \"glob\": \"^10.3.1\",\n \"jest\": \"^29.5.0\",\n \"jest-environment-jsdom\": \"^29.3.1\",\n \"jest-junit\": \"^16.0.0\",\n \"jest-transform-stub\": \"^2.0.0\",\n \"js-beautify\": \"^1.14.7\",\n \"mini-css-extract-plugin\": \"^2.7.0\",\n \"path\": \"^0.12.7\",\n \"postcss\": \"^8.4.26\",\n \"postcss-loader\": \"^8.0.0\",\n \"react\": \"^18.2.0\",\n \"react-dom\": \"^18.2.0\",\n \"storybook\": \"7.6.17\",\n \"storybook-addon-vue-slots\": \"^0.9.21\",\n \"string-width\": \"7.1.0\",\n \"style-dictionary\": \"^3.9.2\",\n \"style-loader\": \"^4.0.0\",\n \"tailwindcss\": \"^3.2.1\",\n \"ts-jest\": \"^29.1.0\",\n \"ts-loader\": \"^9.4.4\",\n \"typescript\": \"~5.4.2\",\n \"vue-jest\": \"^3.0.7\",\n \"vue-loader\": \"^15\",\n \"vue-template-compiler\": \"^2.7.15\",\n \"webpack\": \"^5.75.0\",\n \"webpack-bundle-analyzer\": \"^4.7.0\",\n \"webpack-cli\": \"^5.0.0\"\n },\n \"engines\": {\n \"node\": \">= 18.13.0\"\n },\n \"peerDependencies\": {\n \"prosemirror-history\": \"^1.3.0\",\n \"prosemirror-model\": \"^1.18.1\",\n \"prosemirror-schema-basic\": \"^1.2.0\",\n \"prosemirror-schema-list\": \"^1.2.2\",\n \"prosemirror-state\": \"^1.4.1\",\n \"prosemirror-tables\": \"^1.3.0\",\n \"prosemirror-utils\": \"^1.2.0\",\n \"prosemirror-view\": \"^1.28.2\",\n \"vue\": \"^2.7.15\"\n },\n \"peerDependenciesMeta\": {\n \"prosemirror-history\": {\n \"optional\": true\n },\n \"prosemirror-model\": {\n \"optional\": true\n },\n \"prosemirror-schema-basic\": {\n \"optional\": true\n },\n \"prosemirror-schema-list\": {\n \"optional\": true\n },\n \"prosemirror-state\": {\n \"optional\": true\n },\n \"prosemirror-tables\": {\n \"optional\": true\n },\n \"prosemirror-utils\": {\n \"optional\": true\n },\n \"prosemirror-view\": {\n \"optional\": true\n }\n },\n \"scripts\": {\n \"build:storybook\": \"storybook build\",\n \"build:tokens\": \"node buildTokens.js\",\n \"prepack\": \"yarn build && yarn build:tokens\",\n \"storybook\": \"storybook dev -p 6006\",\n \"build\": \"yarn test && yarn build:prod\",\n \"build:dev\": \"webpack --mode=development\",\n \"build:prod\": \"webpack --mode=production --define-process-env-node-env=production\",\n \"test\": \"jest\",\n \"watch\": \"webpack --watch\"\n }\n}\n
5
+ Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
6
+ <+>UTF-8
7
+ ===================================================================
8
+ diff --git a/package.json b/package.json
9
+ --- a/package.json (revision 5c74b3474bb044112bc8eb7b0c99ecedada54235)
10
+ +++ b/package.json (date 1721222454849)
11
+ @@ -1,6 +1,6 @@
12
+ {
13
+ "name": "@demos-europe/demosplan-ui",
14
+ - "version": "0.3.19",
15
+ + "version": "0.3.18",
16
+ "license": "MIT",
17
+ "private": false,
18
+ "description": "Vue components, Vue directives, Design Token and Scss files to build interfaces for demosPlan.",
19
+ @@ -44,7 +44,7 @@
20
+ "plyr": "^3.7.2",
21
+ "qs": "^6.11.0",
22
+ "tippy.js": "^6.3.7",
23
+ - "uuid": "^9.0.0",
24
+ + "uuid": "^10.0.0",
25
+ "v-tooltip": "2.1.3",
26
+ "vue-click-outside": "^1.1.0",
27
+ "vue-multiselect": "^2.1.6",
28
+ @@ -103,7 +103,7 @@
29
+ "tailwindcss": "^3.2.1",
30
+ "ts-jest": "^29.1.0",
31
+ "ts-loader": "^9.4.4",
32
+ - "typescript": "~5.4.2",
33
+ + "typescript": "~5.5.3",
34
+ "vue-jest": "^3.0.7",
35
+ "vue-loader": "^15",
36
+ "vue-template-compiler": "^2.7.15",
@@ -0,0 +1,4 @@
1
+ <changelist name="Uncommitted_changes_before_Update_at_17_07_2024_15_21_[Changes]" date="1721222513247" recycled="true" deleted="true">
2
+ <option name="PATH" value="$PROJECT_DIR$/.idea/shelf/Uncommitted_changes_before_Update_at_17_07_2024_15_21_[Changes]/shelved.patch" />
3
+ <option name="DESCRIPTION" value="Uncommitted changes before Update at 17 07 2024 15:21 [Changes]" />
4
+ </changelist>
@@ -4,10 +4,8 @@
4
4
  <option name="autoReloadType" value="SELECTIVE" />
5
5
  </component>
6
6
  <component name="ChangeListManager">
7
- <list default="true" id="0afade99-d5c9-4644-8d94-9e61461e1bbe" name="Changes" comment="chore: fix merge issues">
7
+ <list default="true" id="0afade99-d5c9-4644-8d94-9e61461e1bbe" name="Changes" comment="chore: prepare release">
8
8
  <change beforePath="$PROJECT_DIR$/CHANGELOG.md" beforeDir="false" afterPath="$PROJECT_DIR$/CHANGELOG.md" afterDir="false" />
9
- <change beforePath="$PROJECT_DIR$/package.json" beforeDir="false" afterPath="$PROJECT_DIR$/package.json" afterDir="false" />
10
- <change beforePath="$PROJECT_DIR$/yarn.lock" beforeDir="false" afterPath="$PROJECT_DIR$/yarn.lock" afterDir="false" />
11
9
  </list>
12
10
  <option name="SHOW_DIALOG" value="false" />
13
11
  <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -20,7 +18,7 @@
20
18
  <component name="Git.Settings">
21
19
  <option name="RECENT_BRANCH_BY_REPOSITORY">
22
20
  <map>
23
- <entry key="$PROJECT_DIR$" value="f_build_as_module" />
21
+ <entry key="$PROJECT_DIR$" value="f_tw_colors" />
24
22
  </map>
25
23
  </option>
26
24
  <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
@@ -38,49 +36,49 @@
38
36
  <option name="hideEmptyMiddlePackages" value="true" />
39
37
  <option name="showLibraryContents" value="true" />
40
38
  </component>
41
- <component name="PropertiesComponent">{
42
- &quot;keyToString&quot;: {
43
- &quot;RunOnceActivity.OpenProjectViewOnStart&quot;: &quot;true&quot;,
44
- &quot;RunOnceActivity.ShowReadmeOnStart&quot;: &quot;true&quot;,
45
- &quot;SONARLINT_PRECOMMIT_ANALYSIS&quot;: &quot;true&quot;,
46
- &quot;WebServerToolWindowFactoryState&quot;: &quot;false&quot;,
47
- &quot;git-widget-placeholder&quot;: &quot;main&quot;,
48
- &quot;node.js.detected.package.eslint&quot;: &quot;true&quot;,
49
- &quot;node.js.detected.package.tslint&quot;: &quot;true&quot;,
50
- &quot;node.js.selected.package.eslint&quot;: &quot;(autodetect)&quot;,
51
- &quot;node.js.selected.package.tslint&quot;: &quot;(autodetect)&quot;,
52
- &quot;nodejs_package_manager_path&quot;: &quot;yarn&quot;,
53
- &quot;settings.editor.selected.configurable&quot;: &quot;preferences.sourceCode.JavaScript&quot;,
54
- &quot;timeTracker.activityTracker&quot;: &quot;null&quot;,
55
- &quot;timeTracker.comment&quot;: &quot;&quot;,
56
- &quot;timeTracker.inactivityPeriodInMills&quot;: &quot;600000&quot;,
57
- &quot;timeTracker.isAutoTrackingEnable&quot;: &quot;false&quot;,
58
- &quot;timeTracker.isAutoTrackingTemporaryDisabled&quot;: &quot;false&quot;,
59
- &quot;timeTracker.isManualTrackingEnable&quot;: &quot;false&quot;,
60
- &quot;timeTracker.isPaused&quot;: &quot;true&quot;,
61
- &quot;timeTracker.isPostAfterCommitEnabled&quot;: &quot;false&quot;,
62
- &quot;timeTracker.isPostedScheduled&quot;: &quot;true&quot;,
63
- &quot;timeTracker.isRunning&quot;: &quot;false&quot;,
64
- &quot;timeTracker.isScheduledEnabled&quot;: &quot;false&quot;,
65
- &quot;timeTracker.isWhenProjectClosedEnabled&quot;: &quot;false&quot;,
66
- &quot;timeTracker.issueId&quot;: &quot;Default&quot;,
67
- &quot;timeTracker.issueIdReadable&quot;: &quot;Default&quot;,
68
- &quot;timeTracker.pausedTime&quot;: &quot;0&quot;,
69
- &quot;timeTracker.query&quot;: &quot;&quot;,
70
- &quot;timeTracker.recordedTime&quot;: &quot;0&quot;,
71
- &quot;timeTracker.scheduledPeriod&quot;: &quot;19:00:0&quot;,
72
- &quot;timeTracker.startTime&quot;: &quot;0&quot;,
73
- &quot;timeTracker.timeInMills&quot;: &quot;0&quot;,
74
- &quot;timeTracker.type&quot;: &quot;None&quot;,
75
- &quot;ts.external.directory.path&quot;: &quot;/home/florian/Dev/demosplan-ui/node_modules/typescript/lib&quot;,
76
- &quot;vue.rearranger.settings.migration&quot;: &quot;true&quot;
39
+ <component name="PropertiesComponent"><![CDATA[{
40
+ "keyToString": {
41
+ "RunOnceActivity.OpenProjectViewOnStart": "true",
42
+ "RunOnceActivity.ShowReadmeOnStart": "true",
43
+ "SONARLINT_PRECOMMIT_ANALYSIS": "true",
44
+ "WebServerToolWindowFactoryState": "false",
45
+ "git-widget-placeholder": "main",
46
+ "node.js.detected.package.eslint": "true",
47
+ "node.js.detected.package.tslint": "true",
48
+ "node.js.selected.package.eslint": "(autodetect)",
49
+ "node.js.selected.package.tslint": "(autodetect)",
50
+ "nodejs_package_manager_path": "yarn",
51
+ "settings.editor.selected.configurable": "preferences.sourceCode.JavaScript",
52
+ "timeTracker.activityTracker": "null",
53
+ "timeTracker.comment": "",
54
+ "timeTracker.inactivityPeriodInMills": "600000",
55
+ "timeTracker.isAutoTrackingEnable": "false",
56
+ "timeTracker.isAutoTrackingTemporaryDisabled": "false",
57
+ "timeTracker.isManualTrackingEnable": "false",
58
+ "timeTracker.isPaused": "true",
59
+ "timeTracker.isPostAfterCommitEnabled": "false",
60
+ "timeTracker.isPostedScheduled": "true",
61
+ "timeTracker.isRunning": "false",
62
+ "timeTracker.isScheduledEnabled": "false",
63
+ "timeTracker.isWhenProjectClosedEnabled": "false",
64
+ "timeTracker.issueId": "Default",
65
+ "timeTracker.issueIdReadable": "Default",
66
+ "timeTracker.pausedTime": "0",
67
+ "timeTracker.query": "",
68
+ "timeTracker.recordedTime": "0",
69
+ "timeTracker.scheduledPeriod": "19:00:0",
70
+ "timeTracker.startTime": "0",
71
+ "timeTracker.timeInMills": "0",
72
+ "timeTracker.type": "None",
73
+ "ts.external.directory.path": "/home/florian/Dev/demosplan-ui/node_modules/typescript/lib",
74
+ "vue.rearranger.settings.migration": "true"
77
75
  },
78
- &quot;keyToStringList&quot;: {
79
- &quot;com.intellij.ide.scratch.ScratchImplUtil$2/New Scratch File&quot;: [
80
- &quot;Markdown&quot;
76
+ "keyToStringList": {
77
+ "com.intellij.ide.scratch.ScratchImplUtil$2/New Scratch File": [
78
+ "Markdown"
81
79
  ]
82
80
  }
83
- }</component>
81
+ }]]></component>
84
82
  <component name="SharedIndexes">
85
83
  <attachedChunks>
86
84
  <set>
@@ -211,7 +209,10 @@
211
209
  <workItem from="1720696714630" duration="599000" />
212
210
  <workItem from="1720766569205" duration="1962000" />
213
211
  <workItem from="1720777997277" duration="1548000" />
214
- <workItem from="1720786658380" duration="1990000" />
212
+ <workItem from="1720786658380" duration="2854000" />
213
+ <workItem from="1720790401314" duration="1875000" />
214
+ <workItem from="1721114731372" duration="1062000" />
215
+ <workItem from="1721211812675" duration="3247000" />
215
216
  </task>
216
217
  <task id="LOCAL-00001" summary="chore: update yarn.lock">
217
218
  <option name="closed" value="true" />
@@ -429,7 +430,15 @@
429
430
  <option name="project" value="LOCAL" />
430
431
  <updated>1720767813168</updated>
431
432
  </task>
432
- <option name="localTasksCounter" value="28" />
433
+ <task id="LOCAL-00028" summary="chore: prepare release">
434
+ <option name="closed" value="true" />
435
+ <created>1720789010880</created>
436
+ <option name="number" value="00028" />
437
+ <option name="presentableId" value="LOCAL-00028" />
438
+ <option name="project" value="LOCAL" />
439
+ <updated>1720789010880</updated>
440
+ </task>
441
+ <option name="localTasksCounter" value="29" />
433
442
  <servers>
434
443
  <YouTrack url="https://demoseurope.youtrack.cloud">
435
444
  <username>random</username>
@@ -488,6 +497,7 @@
488
497
  <MESSAGE value="chore: Add changelog" />
489
498
  <MESSAGE value="chore: Move changelog entry to the right place" />
490
499
  <MESSAGE value="chore: fix merge issues" />
491
- <option name="LAST_COMMIT_MESSAGE" value="chore: fix merge issues" />
500
+ <MESSAGE value="chore: prepare release" />
501
+ <option name="LAST_COMMIT_MESSAGE" value="chore: prepare release" />
492
502
  </component>
493
503
  </project>
Binary file
package/CHANGELOG.md CHANGED
@@ -4,6 +4,13 @@ Since v0.0.10, this Changelog is formatted according to the [Common Changelog][c
4
4
 
5
5
  ## UNRELEASED
6
6
 
7
+ ## v0.3.19 - 2024-07-17
8
+
9
+ ### Added
10
+
11
+ - ([#932](https://github.com/demos-europe/demosplan-ui/pull/932)) BREAKING: Make color tokens available to Tailwind config, with that the default tokens are not longer available. ([@spiess-demos](https://github.com/spiess-demos))
12
+
13
+
7
14
  ## v0.3.19 - 2024-07-12
8
15
 
9
16
  ### Fixed
@@ -28,7 +35,7 @@ Since v0.0.10, this Changelog is formatted according to the [Common Changelog][c
28
35
 
29
36
  ### Fixed
30
37
 
31
- - ([#891](https://github.com/demos-europe/demosplan-ui/pull/891)) DpDataTabele: Escape whitespaces and plus signs for searching ([@gruenbergerdemos](https://github.com/gruenbergerdemos))
38
+ - ([#891](https://github.com/demos-europe/demosplan-ui/pull/891)) DpDataTable: Escape whitespaces and plus signs for searching ([@gruenbergerdemos](https://github.com/gruenbergerdemos))
32
39
 
33
40
  ### Added
34
41
 
package/buildTokens.js CHANGED
@@ -17,10 +17,23 @@ const files = glob
17
17
  .replace('tokens/src/', '')
18
18
  .replace('color/', '')
19
19
  .replace('.json', ''))
20
- // Do not render tokens only used internally
21
- .filter(filePath => !filePath.startsWith('_'))
20
+ .filter(filePath => !filePath.startsWith('_')) // Do not render tokens only used internally
22
21
 
23
- // Adds prefix to variables
22
+ // Resolve token values with fallback, for css variables nesting
23
+ function resolveValue(token, dictionary) {
24
+ let value = token.value
25
+ const seen = new Set()
26
+
27
+ while (dictionary.usesReference(value)) {
28
+ seen.add(value)
29
+ value = dictionary.getReferences(value)[0].value
30
+ if (seen.has(value)) break
31
+ }
32
+
33
+ return value
34
+ }
35
+
36
+ // Adds prefix to variables. Keeps uppercase path parts, which is needed later.
24
37
  StyleDictionary.registerTransform({
25
38
  name: 'name/scss',
26
39
  type: 'name',
@@ -33,6 +46,120 @@ StyleDictionary.registerTransformGroup({
33
46
  transforms: StyleDictionary.transformGroup.scss.concat(['name/scss'])
34
47
  })
35
48
 
49
+ // Adds prefix to variables. Keeps uppercase path parts, which is needed later.
50
+ StyleDictionary.registerTransform({
51
+ name: 'name/web',
52
+ type: 'name',
53
+ transformer: (token) => token.path.join('-')
54
+ })
55
+
56
+ // Adds prefix transform to default scss transform group
57
+ StyleDictionary.registerTransformGroup({
58
+ name: 'custom/web',
59
+ transforms: StyleDictionary.transformGroup.web.concat(['name/web'])
60
+ })
61
+
62
+ /**
63
+ * In the json tokens sources, some nesting is used for better structuring token groups.
64
+ * This must be resolved when transforming them into target formats.
65
+ * @param tokenName
66
+ * @param tokenPath
67
+ * @param targetFormat
68
+ * @return {*}
69
+ */
70
+ const transformTokenName = (tokenName, tokenPath, targetFormat) => {
71
+ // The domain part within color tokens should not be part of the variable name.
72
+ if (tokenPath[0] === 'color') {
73
+ tokenName = tokenName.replace(/-(brand|data|palette|ui-tailwind|ui)/g, '')
74
+
75
+ if (tokenPath[1] === 'ui-tailwind' && tokenPath[2] !== 'color') {
76
+ tokenName = tokenName.replace(/color-/g, '')
77
+ } else if (tokenPath[1] === 'ui-tailwind' && tokenPath[2] === 'color') {
78
+ tokenName = tokenName.replace(/color-color-/g, 'color-')
79
+ }
80
+ }
81
+
82
+ // The domain part within font-size tokens should not be part of the variable name.
83
+ if (tokenPath[0] === 'font-size') {
84
+ tokenName = tokenName.replace(/-(scale|brand|heading|ui)/g, '')
85
+ }
86
+
87
+ // The key "z-index" should be shortened in the variable name to match Tailwind syntax
88
+ if (tokenPath[0] === 'z-index') {
89
+ tokenName = tokenName.replace(/z-index-/g, 'z-')
90
+ }
91
+
92
+ // "DEFAULT" is a Tailwind convention that should not be part of the Scss name
93
+ tokenName = tokenName.replace(/-DEFAULT/g, '')
94
+
95
+ if (targetFormat === 'scss') {
96
+ // Scss does not like variable names with dots in them, but Tailwind does, apparently.
97
+ if (tokenPath[0] === 'space') {
98
+ tokenName = tokenName.replace(/\./g, '_')
99
+ }
100
+ }
101
+
102
+ if (targetFormat === 'tailwind') {
103
+ if (tokenPath[0] === 'color' || tokenPath[1] === 'ui-tailwind') {
104
+ tokenName = tokenName.replace(/color-/g, '')
105
+ }
106
+ if (tokenPath[0] === 'color' && tokenPath[1] === 'ui-tailwind') {
107
+ tokenName = tokenName.replace(/(textColor|backgroundColor|borderColor)-/g, '')
108
+ }
109
+ }
110
+
111
+ return tokenName
112
+ }
113
+
114
+ const corePlugins = ['color', 'color.palette', 'color.brand', 'color.data', 'textColor', 'backgroundColor', 'borderColor']
115
+
116
+ /**
117
+ * Custom format that generates javascript modules ready to be used as Tailwind config files.
118
+ * The values use a nested set of css variables to enable theming on multiple levels.
119
+ */
120
+ StyleDictionary.registerFormat({
121
+ name: 'tailwind/variables',
122
+ formatter({ dictionary, file }) {
123
+ const groupedTokens = {}
124
+ corePlugins.forEach(plugin => {
125
+ groupedTokens[plugin] = {}
126
+ })
127
+
128
+ dictionary.allTokens.forEach(token => {
129
+ const tokenName = transformTokenName(token.name, token.path, 'tailwind')
130
+ const varName = `--${prefix}${transformTokenName(token.name, token.path).replace(/\./g, '-')}`
131
+ let fallback = resolveValue(token, dictionary)
132
+
133
+ let current = token
134
+ let cssVar = `var(${varName}`
135
+ while (current.original && current.original.value.startsWith('{')) {
136
+ const ref = dictionary.getReferences(current.original.value)[0]
137
+ let refName = transformTokenName(ref.name, ref.path)
138
+ refName = `--${prefix}${refName.replace(/\./g, '-')}`
139
+ cssVar += `, var(${refName}`
140
+
141
+ current = ref
142
+ }
143
+
144
+ cssVar += `, ${fallback})`.repeat(cssVar.match(/var\(/g).length)
145
+
146
+ let regex = /#([0-9a-fA-F]{6})\), #([0-9a-fA-F]{6})/
147
+ let replaced = cssVar.replace(regex, '#$1)')
148
+
149
+ // Sort token definition into respective group
150
+ corePlugins.forEach(plugin => {
151
+ const isCorePluginDefinition = token.path[2] === plugin
152
+ const isColorDefinition = token.path[1] === plugin.replace('color.', '') && token.path[0] === 'color'
153
+ if (isCorePluginDefinition || isColorDefinition) {
154
+ groupedTokens[plugin][tokenName.replace(/\./g, '-')] = replaced + ';'
155
+ }
156
+ })
157
+ })
158
+
159
+ return `module.exports = ${JSON.stringify(groupedTokens[file.destination.replace('.js', '')], null, 2)};`
160
+ }
161
+ })
162
+
36
163
  /**
37
164
  * This format is a customized version of the implementation
38
165
  * in `formattedVariables`. It applies some transformations
@@ -42,7 +169,7 @@ StyleDictionary.registerTransformGroup({
42
169
  StyleDictionary.registerFormat({
43
170
  name: 'scss/customVariables',
44
171
  formatter: ({dictionary, options, file}) => {
45
- const { outputReferences, themeable = false, formatting} = options
172
+ const { outputReferences, themeable = false, formatting } = options
46
173
  let { allTokens } = dictionary
47
174
 
48
175
  if (outputReferences) {
@@ -53,32 +180,7 @@ StyleDictionary.registerFormat({
53
180
 
54
181
  const tokens = allTokens
55
182
  .map(token => {
56
- let formattedVar = propertyFormatter(token)
57
-
58
- // The domain part within color tokens should not be part of the variable name.
59
- if (token.path[0] === 'color') {
60
- formattedVar = formattedVar.replace(/-(brand|data|palette|ui)/g, '')
61
- }
62
-
63
- // The domain part within font-size tokens should not be part of the variable name.
64
- if (token.path[0] === 'font-size') {
65
- formattedVar = formattedVar.replace(/-(scale|brand|heading|ui)/g, '')
66
- }
67
-
68
- // The key "z-index" should be shortened in the variable name to match Tailwind syntax
69
- if (token.path[0] === 'z-index') {
70
- formattedVar = formattedVar.replace(/z-index-/g, 'z-')
71
- }
72
-
73
- // Scss does not like variable names with dots in them, but Tailwind does, apparently.
74
- if (token.path[0] === 'space') {
75
- formattedVar = formattedVar.replace(/\./g, '_')
76
- }
77
-
78
- // "DEFAULT" is a Tailwind convention that should not be part of the Scss name
79
- formattedVar = formattedVar.replace(/-DEFAULT/g, '')
80
-
81
- return formattedVar
183
+ return transformTokenName(propertyFormatter(token), token.path, 'scss')
82
184
  })
83
185
  .filter(function(strVal) { return !!strVal })
84
186
  .join('\n')
@@ -92,17 +194,19 @@ const StyleDictionaryExtended = StyleDictionary.extend({
92
194
  platforms: {
93
195
  scss: {
94
196
  transformGroup: 'custom/scss',
197
+ prefix,
95
198
  buildPath: 'tokens/dist/scss/',
96
- files: files.map((filePath) => {
97
- return {
98
- destination: `_${filePath}.scss`,
99
- format: 'scss/customVariables',
100
- filter: (token) => token.filePath.includes(filePath),
101
- options: {
102
- outputReferences: true
199
+ files: files
200
+ .map((filePath) => {
201
+ return {
202
+ destination: `_${filePath}.scss`,
203
+ format: 'scss/customVariables',
204
+ filter: (token) => token.filePath.includes(filePath) && !token.filePath.includes('color.ui-tailwind'),
205
+ options: {
206
+ outputReferences: true
207
+ }
103
208
  }
104
- }
105
- })
209
+ })
106
210
  },
107
211
  js: {
108
212
  transformGroup: 'js',
@@ -111,13 +215,25 @@ const StyleDictionaryExtended = StyleDictionary.extend({
111
215
  return {
112
216
  destination: `${filePath}.js`,
113
217
  format: 'javascript/module',
114
- filter: (token) => token.filePath.includes(filePath),
218
+ filter: (token) => {
219
+ return token.filePath.includes(filePath) && token.$status !== 'Deprecated'
220
+ },
115
221
  options: {
116
222
  outputReferences: true
117
223
  }
118
224
  }
119
225
  })
120
- }
226
+ },
227
+ web: {
228
+ transformGroup: 'custom/web',
229
+ buildPath: 'tokens/dist/tailwind/',
230
+ files: corePlugins.map((plugin) => {
231
+ return {
232
+ destination: `${plugin}.js`,
233
+ format: 'tailwind/variables'
234
+ }
235
+ }),
236
+ },
121
237
  }
122
238
  })
123
239