flowstudio 0.0.14 → 0.0.18

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 (135) hide show
  1. package/README.md +2 -2
  2. package/dist/ai_creator.d.ts +1 -0
  3. package/dist/ai_creator.js +140 -0
  4. package/dist/ai_creator.js.map +1 -0
  5. package/dist/app_analytics.d.ts +1 -0
  6. package/dist/app_analytics.js +81 -0
  7. package/dist/app_analytics.js.map +1 -0
  8. package/dist/app_details.d.ts +1 -0
  9. package/dist/app_details.js +84 -0
  10. package/dist/app_details.js.map +1 -0
  11. package/dist/app_layout.js +11 -0
  12. package/dist/app_layout.js.map +1 -0
  13. package/dist/app_settings.d.ts +1 -0
  14. package/dist/app_settings.js +15 -0
  15. package/dist/app_settings.js.map +1 -0
  16. package/dist/components/combo_box/index.d.ts +1 -0
  17. package/dist/components/combo_box/index.js +118 -33
  18. package/dist/components/combo_box/index.js.map +1 -1
  19. package/dist/components/date_picker/index.d.ts +1 -0
  20. package/dist/components/date_picker/index.js +46 -0
  21. package/dist/components/date_picker/index.js.map +1 -0
  22. package/dist/components/gtable.d.ts +15 -0
  23. package/dist/components/gtable.js +122 -0
  24. package/dist/components/gtable.js.map +1 -0
  25. package/dist/components/mention_input/index.d.ts +1 -0
  26. package/dist/components/mention_input/index.js +125 -0
  27. package/dist/components/mention_input/index.js.map +1 -0
  28. package/dist/components/paginator_table.d.ts +7 -0
  29. package/dist/components/paginator_table.js +38 -0
  30. package/dist/components/paginator_table.js.map +1 -0
  31. package/dist/components/sheet/index.d.ts +1 -1
  32. package/dist/components/sheet/index.js +3 -3
  33. package/dist/components/sheet/index.js.map +1 -1
  34. package/dist/context.d.ts +1 -0
  35. package/dist/context.js +7 -0
  36. package/dist/context.js.map +1 -0
  37. package/dist/envs.d.ts +2 -0
  38. package/dist/envs.js +135 -0
  39. package/dist/envs.js.map +1 -0
  40. package/dist/functions.d.ts +5 -0
  41. package/dist/functions.js +204 -0
  42. package/dist/functions.js.map +1 -0
  43. package/dist/getcode.d.ts +1 -0
  44. package/dist/getcode.js +8 -0
  45. package/dist/getcode.js.map +1 -0
  46. package/dist/home.d.ts +1 -0
  47. package/dist/home.js +47 -0
  48. package/dist/home.js.map +1 -0
  49. package/dist/index.d.ts +2 -2
  50. package/dist/index.js +157 -3
  51. package/dist/index.js.map +1 -1
  52. package/dist/new_project.d.ts +1 -0
  53. package/dist/new_project.js +101 -0
  54. package/dist/new_project.js.map +1 -0
  55. package/dist/node.d.ts +3 -0
  56. package/dist/node.js +219 -0
  57. package/dist/node.js.map +1 -0
  58. package/dist/project_widget.d.ts +1 -0
  59. package/dist/project_widget.js +23 -0
  60. package/dist/project_widget.js.map +1 -0
  61. package/dist/simulator.d.ts +1 -0
  62. package/dist/simulator.js +73 -0
  63. package/dist/simulator.js.map +1 -0
  64. package/dist/studio_pane.d.ts +1 -0
  65. package/dist/studio_pane.js +309 -0
  66. package/dist/studio_pane.js.map +1 -0
  67. package/dist/top_center_panel.d.ts +1 -0
  68. package/dist/top_center_panel.js +9 -0
  69. package/dist/top_center_panel.js.map +1 -0
  70. package/dist/top_left_panel.d.ts +1 -0
  71. package/dist/top_left_panel.js +46 -0
  72. package/dist/top_left_panel.js.map +1 -0
  73. package/dist/top_right_panel.d.ts +1 -0
  74. package/dist/top_right_panel.js +80 -0
  75. package/dist/top_right_panel.js.map +1 -0
  76. package/dist/triggers.d.ts +2 -0
  77. package/dist/triggers.js +156 -0
  78. package/dist/triggers.js.map +1 -0
  79. package/dist/zustand/store.d.ts +465 -285
  80. package/dist/zustand/store.js +33 -37
  81. package/dist/zustand/store.js.map +1 -1
  82. package/package.json +33 -13
  83. package/src/components/date_picker/style.css +204 -0
  84. package/src/components/sheet/style.css +5 -5
  85. package/src/studio.css +19 -0
  86. package/src/styes/date_picker.css +204 -0
  87. package/src/styes/sheet.css +155 -0
  88. package/src/styes/studio.css +19 -0
  89. package/dist/components/app_layout.js +0 -14
  90. package/dist/components/app_layout.js.map +0 -1
  91. package/dist/components/app_settings/data_sources.d.ts +0 -1
  92. package/dist/components/app_settings/data_sources.js +0 -57
  93. package/dist/components/app_settings/data_sources.js.map +0 -1
  94. package/dist/components/app_settings/deploy.d.ts +0 -1
  95. package/dist/components/app_settings/deploy.js +0 -14
  96. package/dist/components/app_settings/deploy.js.map +0 -1
  97. package/dist/components/app_settings/index.d.ts +0 -1
  98. package/dist/components/app_settings/index.js +0 -53
  99. package/dist/components/app_settings/index.js.map +0 -1
  100. package/dist/components/app_settings/service_providers.d.ts +0 -1
  101. package/dist/components/app_settings/service_providers.js +0 -17
  102. package/dist/components/app_settings/service_providers.js.map +0 -1
  103. package/dist/components/app_settings/simulator.d.ts +0 -1
  104. package/dist/components/app_settings/simulator.js +0 -34
  105. package/dist/components/app_settings/simulator.js.map +0 -1
  106. package/dist/components/context.d.ts +0 -1
  107. package/dist/components/context.js +0 -19
  108. package/dist/components/context.js.map +0 -1
  109. package/dist/components/dock_panel.d.ts +0 -2
  110. package/dist/components/dock_panel.js +0 -46
  111. package/dist/components/dock_panel.js.map +0 -1
  112. package/dist/components/end.d.ts +0 -1
  113. package/dist/components/end.js +0 -6
  114. package/dist/components/end.js.map +0 -1
  115. package/dist/components/input.d.ts +0 -1
  116. package/dist/components/input.js +0 -11
  117. package/dist/components/input.js.map +0 -1
  118. package/dist/components/normal.d.ts +0 -1
  119. package/dist/components/normal.js +0 -6
  120. package/dist/components/normal.js.map +0 -1
  121. package/dist/components/start.d.ts +0 -1
  122. package/dist/components/start.js +0 -13
  123. package/dist/components/start.js.map +0 -1
  124. package/dist/components/studio/index.d.ts +0 -1
  125. package/dist/components/studio/index.js +0 -78
  126. package/dist/components/studio/index.js.map +0 -1
  127. package/dist/components/xnode.d.ts +0 -2
  128. package/dist/components/xnode.js +0 -28
  129. package/dist/components/xnode.js.map +0 -1
  130. package/dist/service_providers.json +0 -74
  131. package/dist/styles/sheet.css +0 -155
  132. package/src/styles/combo_box.css +0 -10
  133. package/src/styles/sheet.css +0 -155
  134. /package/dist/{components/app_layout.d.ts → app_layout.d.ts} +0 -0
  135. /package/{dist/styles/combo_box.css → src/components/combo_box/style.css} +0 -0
@@ -1,48 +1,44 @@
1
1
  import { create } from 'zustand';
2
2
  import { devtools, persist } from 'zustand/middleware';
3
3
  const configStore = (set) => ({
4
+ asBusiness: false,
5
+ toggleAsBusiness: () => set((state) => ({ asBusiness: !state.asBusiness })),
6
+ login_pane_visibility: false,
7
+ set_login_pane_visibility: (state) => set(() => ({ login_pane_visibility: state })),
8
+ drawer_visibility: false,
9
+ set_drawer_visibility: (state) => set(() => ({ drawer_visibility: state })),
10
+ user_country_data: {},
11
+ set_user_country_data: (payload) => set(() => ({ user_country_data: payload })),
12
+ payment_open: false,
13
+ set_payment_open: (state) => set(() => ({ payment_open: state })),
14
+ payment_pane_status: false,
15
+ open_payment_pane: () => set(() => ({ payment_pane_status: true })),
16
+ close_payment_pane: () => set(() => ({ payment_pane_status: false })),
17
+ payment_callback: '',
18
+ set_payment_callback: (callback) => set(() => ({ payment_callback: callback })),
19
+ payment_widget_visibility: false,
20
+ set_payment_widget_visibility: (state) => set(() => ({ payment_widget_visibility: state })),
21
+ tutorial_watch_pane: false,
22
+ set_tutorial_watch_pane: (bool) => set(() => ({ tutorial_watch_pane: bool })),
4
23
  pageTitle: ``,
5
24
  setPageTitle: (title) => set(() => ({ pageTitle: `${title}` })),
6
- appTheme: `light`,
25
+ appTheme: `inherit`,
7
26
  setAppTheme: (theme) => set(() => ({ appTheme: `${theme}` })),
27
+ sideBarCollapse: false,
28
+ setSideBarCollapse: (collapse) => set(() => ({ sideBarCollapse: collapse })),
29
+ openedProjects: [],
30
+ setOpenedProjects: (projects) => set(() => ({ openedProjects: projects })),
31
+ activeTab: `home`,
32
+ setActiveTab: (identifier) => set(() => ({ activeTab: `${identifier}` })),
33
+ openSettings: false,
34
+ setOpenSettings: (state) => set(() => ({ openSettings: state })),
35
+ openReports: false,
36
+ setOpenReports: (state) => set(() => ({ openReports: state })),
8
37
  stateType: `design`,
9
38
  setStateType: (state) => set(() => ({ stateType: `${state}` })),
10
- showContextMenu: false,
11
- setShowContextMenu: () => set((state) => ({ showContextMenu: state })),
12
- contextMenuPosition: { x: 0, y: 0 },
13
- setContextMenuPosition: () => set((state) => ({ contextMenuPosition: state })),
14
- nodesData: [
15
- { id: 'node-1', type: 'startNode', dragHandle: '.drag-handle', position: { x: 100, y: 200 }, data: { id: 1, type: "start", value: 123, message: 'Welcome [Michelle] to Grow For Me:', inputs: [{ id: 1, type: 'choice', text: 'I want to Fund/Sponsor' }, { id: 2, type: 'choice', text: 'Check Fund Updates' }, { id: 3, type: 'choice', text: 'I want to Buy' }, { id: 4, type: 'choice', text: 'I want to Sell' }, { id: 5, type: 'choice', text: 'I am a Farmer' }] } },
16
- { id: 'node-2', type: 'normalNode', dragHandle: '.drag-handle', position: { x: 450, y: 50 }, data: { id: 2, type: "normal", value: 321, message: 'Will you like to Sponsor/Fund a Campaign?', inputs: [{ id: 1, type: 'choice', text: 'Yes' }, { id: 2, type: 'choice', text: 'No' }] } },
17
- { id: 'node-3', type: 'normalNode', dragHandle: '.drag-handle', position: { x: 500, y: 500 }, data: { id: 3, type: "normal", value: 321, message: 'Will you like to check your Fund Updates?', inputs: [{ id: 1, type: 'choice', text: 'Yes' }, { id: 2, type: 'choice', text: 'No' }] } },
18
- { id: 'node-4', type: 'normalNode', dragHandle: '.drag-handle', position: { x: 800, y: 60 }, data: { id: 4, type: "normal", value: 321, message: 'How many units will you like to fund?', inputs: [{ id: 1, type: 'user_input', text: '', inputType: 'number' }] } },
19
- { id: 'node-5', type: 'normalNode', dragHandle: '.drag-handle', position: { x: 830, y: 370 }, data: { id: 5, type: "normal", value: 3281, message: 'Is that all you be doing for now?', inputs: [{ id: 1, type: 'choice', text: 'Yes for now' }, { id: 2, type: 'choice', text: 'No, I want to see more' }] } },
20
- { id: 'node-6', type: 'endNode', dragHandle: '.drag-handle', position: { x: 1500, y: 200 }, data: { id: 6, type: "end", value: 3121, message: 'Thank you for trying our service.' } },
21
- { id: 'node-7', type: 'endNode', dragHandle: '.drag-handle', position: { x: 1300, y: 600 }, data: { id: 7, type: "end", value: 3122, message: 'We will surely get back to you with more information' } },
22
- ],
23
- setNodesData: (payload) => set((state) => ({ ...state, nodesData: payload })),
24
- // edgesData: [],
25
- edgesData: [
26
- { id: 'e1-1', source: 'node-1', sourceHandle: '1', target: 'node-2', type: 'smoothstep', animated: false },
27
- { id: 'e1-2', source: 'node-1', sourceHandle: '2', target: 'node-3', type: 'smoothstep', animated: true },
28
- { id: 'e1-3', source: 'node-2', sourceHandle: '1', target: 'node-4', type: 'smoothstep', animated: false },
29
- { id: 'e1-4', source: 'node-3', sourceHandle: '1', target: 'node-5', type: 'smoothstep', animated: true },
30
- { id: 'e1-5', source: 'node-3', sourceHandle: '2', target: 'node-6', type: 'smoothstep', animated: false },
31
- { id: 'e1-6', source: 'node-4', sourceHandle: '1', target: 'node-6', type: 'smoothstep', animated: false },
32
- { id: 'e1-7', source: 'node-5', sourceHandle: '1', target: 'node-6', type: 'smoothstep', animated: false },
33
- { id: 'e1-8', source: 'node-5', sourceHandle: '2', target: 'node-7', type: 'smoothstep', animated: true },
34
- ],
35
- setEdgesData: (payload) => set((state) => ({ ...state, edgesData: payload })),
36
- updateEdgesAnimated: () => set((state) => ({
37
- edgesData: state.edgesData.map((edge) => ({
38
- ...edge,
39
- animated: state.stateType === 'design' ? false : true,
40
- }))
41
- })),
39
+ openNewProject: false,
40
+ setOpenNewProject: (state) => set(() => ({ openNewProject: state })),
42
41
  });
43
42
  // Apply middlewares (devtools and persist)
44
- export const useConfigStore = create(devtools(persist(configStore, { name: 'uxxd_config' })));
45
- // configStore = devtools(configStore);
46
- // configStore = persist(configStore, { name: 'uxxd_config' });
47
- // export const useConfigStore = create(configStore)
43
+ export const useConfigStore = create(devtools(persist(configStore, { name: 'flowstudio_config' })));
48
44
  //# sourceMappingURL=store.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"store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@@ -1,10 +1,9 @@
1
1
  {
2
2
  "name": "flowstudio",
3
- "version": "0.0.14",
3
+ "version": "0.0.18",
4
4
  "private": false,
5
5
  "description": "Enterprise Flow Designer",
6
6
  "license": "MIT",
7
- "repository": "https://github.com/godfrednanaowusu/flowstudio",
8
7
  "bugs": "https://github.com/godfrednanaowusu/flowstudio/issues",
9
8
  "homepage": "https://flowstudio.vercel.app",
10
9
  "main": "dist/index.js",
@@ -15,28 +14,49 @@
15
14
  "clean": "rm -rf dist"
16
15
  },
17
16
  "dependencies": {
17
+ "react": "latest",
18
+ "react-dom": "latest"
19
+ },
20
+ "devDependencies": {
18
21
  "@hookform/resolvers": "latest",
19
- "@radix-ui/react-collapsible": "^1.1.3",
22
+ "@radix-ui/react-collapsible": "latest",
20
23
  "@radix-ui/react-form": "latest",
21
24
  "@radix-ui/react-icons": "latest",
22
25
  "@radix-ui/themes": "latest",
23
26
  "@tanstack/react-query": "latest",
27
+ "@types/node": "latest",
28
+ "@types/react": "latest",
29
+ "@types/react-table": "latest",
24
30
  "@xyflow/react": "latest",
31
+ "ace-builds": "latest",
32
+ "autoprefixer": "latest",
33
+ "countries-geo": "^0.0.1",
25
34
  "html-react-parser": "^5.2.2",
35
+ "jwt-decode": "latest",
36
+ "lodash": "latest",
26
37
  "lucide-react": "latest",
27
- "react": "latest",
28
- "react-dom": "latest",
38
+ "moment": "latest",
39
+ "next-auth": "5.0.0-beta.25",
40
+ "next-intl": "latest",
41
+ "next-pwa": "latest",
42
+ "next-view-transitions": "latest",
43
+ "prismjs": "latest",
44
+ "rc-mentions": "^2.20.0",
45
+ "react-ace": "latest",
46
+ "react-day-picker": "latest",
29
47
  "react-hook-form": "latest",
30
48
  "react-icons": "latest",
31
- "yup": "latest"
32
- },
33
- "devDependencies": {
34
- "@radix-ui/react-accordion": "^1.2.3",
35
- "@types/node": "latest",
36
- "@types/react": "^19.0.12",
37
- "@types/react-dom": "^19.0.4",
38
- "cpx": "^1.5.0",
49
+ "react-mention": "^1.1.2",
50
+ "react-simple-code-editor": "latest",
51
+ "framer-motion": "latest",
52
+ "usehooks-ts": "latest",
53
+ "react-table": "latest",
54
+ "react-table-sticky": "latest",
55
+ "react-world-flags": "^1.6.0",
56
+ "sonner": "latest",
39
57
  "typescript": "latest",
58
+ "uuid": "latest",
59
+ "yup": "latest",
40
60
  "zustand": "latest"
41
61
  },
42
62
  "files": [
@@ -0,0 +1,204 @@
1
+ .rdp-root {
2
+ --rdp-accent-color: teal; /* The accent color used for selected days and UI elements. */
3
+ --rdp-accent-background-color: #ffffff; /* The accent background color used for selected days and UI elements. */
4
+
5
+ --rdp-day-height: 2.5rem; /* The height of the day cells. */
6
+ --rdp-day-width: 2.5rem; /* The width of the day cells. */
7
+
8
+ --rdp-day_button-border-radius: 10%; /* The border radius of the day cells. */
9
+ --rdp-day_button-border: 4px solid transparent; /* The border of the day cells. */
10
+ --rdp-day_button-height: var(
11
+ --rdp-day-height
12
+ ); /* The height of the day cells. */
13
+ --rdp-day_button-width: var(
14
+ --rdp-day-width
15
+ ); /* The width of the day cells. */
16
+
17
+ --rdp-selected-border: 1px solid var(--rdp-accent-color); /* The border of the selected days. */
18
+ --rdp-disabled-opacity: 0.5; /* The opacity of the disabled days. */
19
+ --rdp-outside-opacity: 0.75; /* The opacity of the days outside the current month. */
20
+ --rdp-today-color: var(
21
+ --rdp-accent-color
22
+ ); /* The color of the today's date. */
23
+
24
+ --rdp-dropdown-gap: 1rem; /* The gap between the dropdowns used in the month captons. */
25
+
26
+ --rdp-months-gap: 2rem; /* The gap between the months in the multi-month view. */
27
+
28
+ --rdp-nav_button-disabled-opacity: 0.5; /* The opacity of the disabled navigation buttons. */
29
+ --rdp-nav_button-height: 2.25rem; /* The height of the navigation buttons. */
30
+ --rdp-nav_button-width: 2.75rem; /* The width of the navigation buttons. */
31
+ --rdp-nav-height: 2.75rem; /* The height of the navigation bar. */
32
+
33
+ --rdp-range_middle-background-color: var(
34
+ --rdp-accent-background-color
35
+ ); /* The color of the background for days in the middle of a range. */
36
+ --rdp-range_middle-foreground-color: white; /* The foregraound color for days in the middle of a range. */
37
+ --rdp-range_middle-color: inherit; /* The color of the range text. */
38
+
39
+ --rdp-range_start-color: white; /* The color of the range text. */
40
+ --rdp-range_start-background: linear-gradient(
41
+ var(--rdp-gradient-direction),
42
+ transparent 50%,
43
+ var(--rdp-range_middle-background-color) 50%
44
+ ); /* Used for the background of the start of the selected range. */
45
+ --rdp-range_start-date-background-color: var(
46
+ --rdp-accent-color
47
+ ); /* The background color of the date when at the start of the selected range. */
48
+
49
+ --rdp-range_end-background: linear-gradient(
50
+ var(--rdp-gradient-direction),
51
+ var(--rdp-range_middle-background-color) 50%,
52
+ transparent 50%
53
+ ); /* Used for the background of the end of the selected range. */
54
+ --rdp-range_end-color: white; /* The color of the range text. */
55
+ --rdp-range_end-date-background-color: var(
56
+ --rdp-accent-color
57
+ ); /* The background color of the date when at the end of the selected range. */
58
+
59
+ --rdp-week_number-border-radius: 50%; /* The border radius of the week number. */
60
+ --rdp-week_number-border: 1px solid transparent; /* The border of the week number. */
61
+
62
+ --rdp-week_number-height: var(
63
+ --rdp-day-height
64
+ ); /* The height of the week number cells. */
65
+ --rdp-week_number-opacity: 0.75; /* The opacity of the week number. */
66
+ --rdp-week_number-width: var(
67
+ --rdp-day-width
68
+ ); /* The width of the week number cells. */
69
+ --rdp-weeknumber-text-align: center; /* The text alignment of the weekday cells. */
70
+
71
+ --rdp-weekday-opacity: 0.75; /* The opacity of the weekday. */
72
+ --rdp-weekday-padding: 0.5rem 0rem; /* The padding of the weekday. */
73
+ --rdp-weekday-text-align: center; /* The text alignment of the weekday cells. */
74
+
75
+ --rdp-gradient-direction: 90deg;
76
+ }
77
+
78
+ .rdp-root[dir="rtl"] {
79
+ --rdp-gradient-direction: -90deg;
80
+ }
81
+
82
+ /* Root of the component. */
83
+ .rdp-root {
84
+ position: relative; /* Required to position the navigation toolbar. */
85
+ box-sizing: border-box;
86
+ }
87
+
88
+ .rdp-root * {
89
+ box-sizing: border-box;
90
+ }
91
+
92
+ .rdp-day {
93
+ width: var(--rdp-day-width);
94
+ height: var(--rdp-day-height);
95
+ text-align: center;
96
+ }
97
+
98
+ .rdp-day_button {
99
+ background: none;
100
+ padding: 0;
101
+ margin: 0;
102
+ cursor: pointer;
103
+ font: inherit;
104
+ color: inherit;
105
+ justify-content: center;
106
+ align-items: center;
107
+ display: flex;
108
+
109
+ width: var(--rdp-day_button-width);
110
+ height: var(--rdp-day_button-height);
111
+ border: var(--rdp-day_button-border);
112
+ border-radius: var(--rdp-day_button-border-radius);
113
+ }
114
+
115
+ .rdp-day_button:disabled {
116
+ cursor: revert;
117
+ }
118
+
119
+ .rdp-caption_label {
120
+ z-index: 1;
121
+
122
+ position: relative;
123
+ display: inline-flex;
124
+ align-items: center;
125
+
126
+ white-space: nowrap;
127
+ border: 0;
128
+ }
129
+
130
+ .rdp-button_next,
131
+ .rdp-button_previous {
132
+ border: none;
133
+ background: none;
134
+ padding: 0;
135
+ margin: 0;
136
+ cursor: pointer;
137
+ font: inherit;
138
+ color: inherit;
139
+ -moz-appearance: none;
140
+ -webkit-appearance: none;
141
+ display: inline-flex;
142
+ align-items: center;
143
+ justify-content: center;
144
+ position: relative;
145
+ appearance: none;
146
+
147
+ width: var(--rdp-nav_button-width);
148
+ height: var(--rdp-nav_button-height);
149
+ }
150
+
151
+ .rdp-button_next:disabled,
152
+ .rdp-button_previous:disabled {
153
+ cursor: revert;
154
+
155
+ opacity: var(--rdp-nav_button-disabled-opacity);
156
+ }
157
+
158
+ .rdp-chevron {
159
+ display: inline-block;
160
+ fill: var(--rdp-accent-color);
161
+ }
162
+
163
+ .rdp-root[dir="rtl"] .rdp-nav .rdp-chevron {
164
+ transform: rotate(180deg);
165
+ }
166
+
167
+ .rdp-root[dir="rtl"] .rdp-nav .rdp-chevron {
168
+ transform: rotate(180deg);
169
+ transform-origin: 50%;
170
+ }
171
+
172
+ .rdp-dropdowns {
173
+ position: relative;
174
+ display: inline-flex;
175
+ align-items: center;
176
+ gap: var(--rdp-dropdown-gap);
177
+ }
178
+ .rdp-dropdown {
179
+ z-index: 2;
180
+
181
+ /* Reset */
182
+ opacity: 0;
183
+ appearance: none;
184
+ position: absolute;
185
+ inset-block-start: 0;
186
+ inset-block-end: 0;
187
+ inset-inline-start: 0;
188
+ width: 100%;
189
+ margin: 0;
190
+ padding: 0;
191
+ cursor: inherit;
192
+ border: none;
193
+ line-height: inherit;
194
+ }
195
+
196
+ .rdp-dropdown_root {
197
+ position: relative;
198
+ display: inline-flex;
199
+ align-items: center;
200
+ }
201
+
202
+ .rdp-dropdown_root[data-disabled="true"] .rdp-chevron {
203
+ opacity: var(--rdp-disabled-opacity);
204
+ }
@@ -1,16 +1,16 @@
1
1
  /* SlidingDialog.css */
2
2
  /* .dialog-overlay {
3
- position: fixed;
3
+ position: absolute !important;
4
4
  inset: 0;
5
5
  background: rgba(0, 0, 0, 0.5);
6
6
  animation: overlayShow 300ms cubic-bezier(0.16, 1, 0.3, 1);
7
7
  } */
8
8
 
9
9
  .dialog-content {
10
- /* background: white; */
11
- position: fixed;
10
+ /* background: 'red' !important; */
11
+ position: absolute !important;
12
12
  /* width: 300px; */
13
- height: 100%;
13
+ /* height: 100%; */
14
14
  overflow: auto;
15
15
  box-shadow: 0 10px 38px -10px rgba(0, 0, 0, 0.35);
16
16
  outline: none;
@@ -152,4 +152,4 @@
152
152
  width: 100%;
153
153
  height: auto;
154
154
  animation: slideOutToBottom 300ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
155
- }
155
+ }
package/src/studio.css ADDED
@@ -0,0 +1,19 @@
1
+ .react-flow__attribution { display: none; }
2
+
3
+ .react-flow__controls-button{border-bottom-color: transparent
4
+ /* rgba(104, 104, 104, 0.4); */
5
+ }
6
+ .react-flow__controls-button:first-child { border-top-left-radius: 5px; border-top-right-radius: 5px;}
7
+ .react-flow__controls-button:last-child { border-bottom-left-radius: 5px; border-bottom-right-radius: 5px;}
8
+ .react-flow__minimap { border-radius: 10px;}
9
+ .react-flow__minimap-svg { border-radius: 10px;}
10
+
11
+ /* .react-flow__background {
12
+ background: white !important;
13
+ opacity: 1 !important;
14
+ }
15
+
16
+ :fullscreen .react-flow__background {
17
+ background: white;
18
+ opacity: 1;
19
+ } */
@@ -0,0 +1,204 @@
1
+ .rdp-root {
2
+ --rdp-accent-color: teal; /* The accent color used for selected days and UI elements. */
3
+ --rdp-accent-background-color: #ffffff; /* The accent background color used for selected days and UI elements. */
4
+
5
+ --rdp-day-height: 2.5rem; /* The height of the day cells. */
6
+ --rdp-day-width: 2.5rem; /* The width of the day cells. */
7
+
8
+ --rdp-day_button-border-radius: 10%; /* The border radius of the day cells. */
9
+ --rdp-day_button-border: 4px solid transparent; /* The border of the day cells. */
10
+ --rdp-day_button-height: var(
11
+ --rdp-day-height
12
+ ); /* The height of the day cells. */
13
+ --rdp-day_button-width: var(
14
+ --rdp-day-width
15
+ ); /* The width of the day cells. */
16
+
17
+ --rdp-selected-border: 1px solid var(--rdp-accent-color); /* The border of the selected days. */
18
+ --rdp-disabled-opacity: 0.5; /* The opacity of the disabled days. */
19
+ --rdp-outside-opacity: 0.75; /* The opacity of the days outside the current month. */
20
+ --rdp-today-color: var(
21
+ --rdp-accent-color
22
+ ); /* The color of the today's date. */
23
+
24
+ --rdp-dropdown-gap: 1rem; /* The gap between the dropdowns used in the month captons. */
25
+
26
+ --rdp-months-gap: 2rem; /* The gap between the months in the multi-month view. */
27
+
28
+ --rdp-nav_button-disabled-opacity: 0.5; /* The opacity of the disabled navigation buttons. */
29
+ --rdp-nav_button-height: 2.25rem; /* The height of the navigation buttons. */
30
+ --rdp-nav_button-width: 2.75rem; /* The width of the navigation buttons. */
31
+ --rdp-nav-height: 2.75rem; /* The height of the navigation bar. */
32
+
33
+ --rdp-range_middle-background-color: var(
34
+ --rdp-accent-background-color
35
+ ); /* The color of the background for days in the middle of a range. */
36
+ --rdp-range_middle-foreground-color: white; /* The foregraound color for days in the middle of a range. */
37
+ --rdp-range_middle-color: inherit; /* The color of the range text. */
38
+
39
+ --rdp-range_start-color: white; /* The color of the range text. */
40
+ --rdp-range_start-background: linear-gradient(
41
+ var(--rdp-gradient-direction),
42
+ transparent 50%,
43
+ var(--rdp-range_middle-background-color) 50%
44
+ ); /* Used for the background of the start of the selected range. */
45
+ --rdp-range_start-date-background-color: var(
46
+ --rdp-accent-color
47
+ ); /* The background color of the date when at the start of the selected range. */
48
+
49
+ --rdp-range_end-background: linear-gradient(
50
+ var(--rdp-gradient-direction),
51
+ var(--rdp-range_middle-background-color) 50%,
52
+ transparent 50%
53
+ ); /* Used for the background of the end of the selected range. */
54
+ --rdp-range_end-color: white; /* The color of the range text. */
55
+ --rdp-range_end-date-background-color: var(
56
+ --rdp-accent-color
57
+ ); /* The background color of the date when at the end of the selected range. */
58
+
59
+ --rdp-week_number-border-radius: 50%; /* The border radius of the week number. */
60
+ --rdp-week_number-border: 1px solid transparent; /* The border of the week number. */
61
+
62
+ --rdp-week_number-height: var(
63
+ --rdp-day-height
64
+ ); /* The height of the week number cells. */
65
+ --rdp-week_number-opacity: 0.75; /* The opacity of the week number. */
66
+ --rdp-week_number-width: var(
67
+ --rdp-day-width
68
+ ); /* The width of the week number cells. */
69
+ --rdp-weeknumber-text-align: center; /* The text alignment of the weekday cells. */
70
+
71
+ --rdp-weekday-opacity: 0.75; /* The opacity of the weekday. */
72
+ --rdp-weekday-padding: 0.5rem 0rem; /* The padding of the weekday. */
73
+ --rdp-weekday-text-align: center; /* The text alignment of the weekday cells. */
74
+
75
+ --rdp-gradient-direction: 90deg;
76
+ }
77
+
78
+ .rdp-root[dir="rtl"] {
79
+ --rdp-gradient-direction: -90deg;
80
+ }
81
+
82
+ /* Root of the component. */
83
+ .rdp-root {
84
+ position: relative; /* Required to position the navigation toolbar. */
85
+ box-sizing: border-box;
86
+ }
87
+
88
+ .rdp-root * {
89
+ box-sizing: border-box;
90
+ }
91
+
92
+ .rdp-day {
93
+ width: var(--rdp-day-width);
94
+ height: var(--rdp-day-height);
95
+ text-align: center;
96
+ }
97
+
98
+ .rdp-day_button {
99
+ background: none;
100
+ padding: 0;
101
+ margin: 0;
102
+ cursor: pointer;
103
+ font: inherit;
104
+ color: inherit;
105
+ justify-content: center;
106
+ align-items: center;
107
+ display: flex;
108
+
109
+ width: var(--rdp-day_button-width);
110
+ height: var(--rdp-day_button-height);
111
+ border: var(--rdp-day_button-border);
112
+ border-radius: var(--rdp-day_button-border-radius);
113
+ }
114
+
115
+ .rdp-day_button:disabled {
116
+ cursor: revert;
117
+ }
118
+
119
+ .rdp-caption_label {
120
+ z-index: 1;
121
+
122
+ position: relative;
123
+ display: inline-flex;
124
+ align-items: center;
125
+
126
+ white-space: nowrap;
127
+ border: 0;
128
+ }
129
+
130
+ .rdp-button_next,
131
+ .rdp-button_previous {
132
+ border: none;
133
+ background: none;
134
+ padding: 0;
135
+ margin: 0;
136
+ cursor: pointer;
137
+ font: inherit;
138
+ color: inherit;
139
+ -moz-appearance: none;
140
+ -webkit-appearance: none;
141
+ display: inline-flex;
142
+ align-items: center;
143
+ justify-content: center;
144
+ position: relative;
145
+ appearance: none;
146
+
147
+ width: var(--rdp-nav_button-width);
148
+ height: var(--rdp-nav_button-height);
149
+ }
150
+
151
+ .rdp-button_next:disabled,
152
+ .rdp-button_previous:disabled {
153
+ cursor: revert;
154
+
155
+ opacity: var(--rdp-nav_button-disabled-opacity);
156
+ }
157
+
158
+ .rdp-chevron {
159
+ display: inline-block;
160
+ fill: var(--rdp-accent-color);
161
+ }
162
+
163
+ .rdp-root[dir="rtl"] .rdp-nav .rdp-chevron {
164
+ transform: rotate(180deg);
165
+ }
166
+
167
+ .rdp-root[dir="rtl"] .rdp-nav .rdp-chevron {
168
+ transform: rotate(180deg);
169
+ transform-origin: 50%;
170
+ }
171
+
172
+ .rdp-dropdowns {
173
+ position: relative;
174
+ display: inline-flex;
175
+ align-items: center;
176
+ gap: var(--rdp-dropdown-gap);
177
+ }
178
+ .rdp-dropdown {
179
+ z-index: 2;
180
+
181
+ /* Reset */
182
+ opacity: 0;
183
+ appearance: none;
184
+ position: absolute;
185
+ inset-block-start: 0;
186
+ inset-block-end: 0;
187
+ inset-inline-start: 0;
188
+ width: 100%;
189
+ margin: 0;
190
+ padding: 0;
191
+ cursor: inherit;
192
+ border: none;
193
+ line-height: inherit;
194
+ }
195
+
196
+ .rdp-dropdown_root {
197
+ position: relative;
198
+ display: inline-flex;
199
+ align-items: center;
200
+ }
201
+
202
+ .rdp-dropdown_root[data-disabled="true"] .rdp-chevron {
203
+ opacity: var(--rdp-disabled-opacity);
204
+ }