@sqrzro/admin 2.1.0-bz.17 → 2.1.0-bz.19

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/dist/components/AppLayout/index.js +5 -5
  2. package/dist/components/AppNavigation/index.d.ts +2 -2
  3. package/dist/components/AppNavigation/index.js +4 -12
  4. package/dist/components/AppNavigationComponent/index.d.ts +12 -0
  5. package/dist/components/AppNavigationComponent/index.js +19 -0
  6. package/dist/components/Auth/index.d.ts +10 -5
  7. package/dist/components/Auth/index.js +1 -6
  8. package/dist/components/Badge/index.d.ts +1 -1
  9. package/dist/components/Badge/index.js +6 -6
  10. package/dist/components/FilterBar/index.d.ts +2 -1
  11. package/dist/components/FilterBar/index.js +16 -3
  12. package/dist/components/FilterBarClearButton/index.d.ts +6 -0
  13. package/dist/components/FilterBarClearButton/index.js +5 -0
  14. package/dist/components/FilterBarItem/index.d.ts +4 -2
  15. package/dist/components/FilterBarItem/index.js +2 -1
  16. package/dist/components/GridList/index.d.ts +1 -1
  17. package/dist/components/GridListItem/index.d.ts +1 -1
  18. package/dist/components/GridListItem/index.js +2 -2
  19. package/dist/components/InfoPanel/index.js +10 -14
  20. package/dist/components/List/index.d.ts +3 -20
  21. package/dist/components/List/index.js +8 -24
  22. package/dist/components/ListActions/index.d.ts +6 -3
  23. package/dist/components/ListActions/index.js +10 -3
  24. package/dist/components/ListClientComponent/index.d.ts +15 -0
  25. package/dist/components/ListClientComponent/index.js +14 -0
  26. package/dist/components/ListComponent/index.d.ts +14 -0
  27. package/dist/components/ListComponent/index.js +21 -0
  28. package/dist/components/ListItem/index.d.ts +14 -9
  29. package/dist/components/ListItem/index.js +16 -6
  30. package/dist/components/ListSkeleton/index.d.ts +5 -0
  31. package/dist/components/ListSkeleton/index.js +5 -0
  32. package/dist/components/MeActions/index.js +2 -2
  33. package/dist/components/MePanel/index.d.ts +2 -1
  34. package/dist/components/MePanel/index.js +3 -2
  35. package/dist/components/Menu/index.d.ts +8 -0
  36. package/dist/components/Menu/index.js +7 -0
  37. package/dist/components/MenuItem/index.d.ts +5 -0
  38. package/dist/components/MenuItem/index.js +20 -0
  39. package/dist/components/Page/index.d.ts +4 -2
  40. package/dist/components/Page/index.js +4 -5
  41. package/dist/components/Panel/index.d.ts +3 -1
  42. package/dist/components/Panel/index.js +3 -2
  43. package/dist/components/RootLayout/index.d.ts +2 -1
  44. package/dist/components/RootLayout/index.js +3 -9
  45. package/dist/components/SettingsForm/index.d.ts +1 -3
  46. package/dist/components/SettingsForm/index.js +5 -5
  47. package/dist/components/SettingsPage/index.d.ts +1 -1
  48. package/dist/components/SettingsPage/index.js +2 -2
  49. package/dist/components/TableClientComponent/index.js +0 -8
  50. package/dist/components/Tabs/index.d.ts +2 -6
  51. package/dist/components/Tabs/index.js +5 -8
  52. package/dist/components/TabsComponent/index.d.ts +8 -0
  53. package/dist/components/TabsComponent/index.js +9 -0
  54. package/dist/components/index.d.ts +5 -5
  55. package/dist/components/index.js +2 -2
  56. package/dist/hooks/useNavigation.d.ts +11 -0
  57. package/dist/hooks/useNavigation.js +27 -0
  58. package/dist/index.cjs +1266 -0
  59. package/dist/index.cjs.map +1 -0
  60. package/dist/index.js.map +1 -0
  61. package/dist/interfaces.d.ts +8 -2
  62. package/dist/services/ConfigService.d.ts +7 -1
  63. package/dist/services/ConfigService.js +1 -1
  64. package/dist/services/PermissionService.d.ts +3 -0
  65. package/dist/services/PermissionService.js +25 -0
  66. package/dist/services/SettingsService.d.ts +8 -0
  67. package/dist/services/{LayoutService.js → SettingsService.js} +2 -2
  68. package/dist/styles/config.js +57 -21
  69. package/dist/styles/tailwind.d.ts +1 -1
  70. package/dist/styles/tailwind.js +6 -2
  71. package/package.json +27 -16
  72. package/dist/components/Icon/index.d.ts +0 -8
  73. package/dist/components/Icon/index.js +0 -23
  74. package/dist/icons/ErrorIcon/index.d.ts +0 -3
  75. package/dist/icons/ErrorIcon/index.js +0 -5
  76. package/dist/icons/InfoIcon/index.d.ts +0 -3
  77. package/dist/icons/InfoIcon/index.js +0 -5
  78. package/dist/icons/SuccessIcon/index.d.ts +0 -3
  79. package/dist/icons/SuccessIcon/index.js +0 -5
  80. package/dist/icons/WarningIcon/index.d.ts +0 -3
  81. package/dist/icons/WarningIcon/index.js +0 -5
  82. package/dist/services/LayoutService.d.ts +0 -7
  83. /package/{postcss.js → postcss.cjs} +0 -0
  84. /package/{tailwind.js → tailwind.cjs} +0 -0
@@ -27,14 +27,38 @@ const classNames = twx({
27
27
  control: 'h-6 w-6 rounded-full border border-slate-300',
28
28
  previous: '-order-1',
29
29
  }),
30
+ checkboxInput: (props) => ({
31
+ root: tw('flex', props?.isInline ? 'gap-6' : 'flex-col gap-2'),
32
+ icon: {
33
+ default: 'h-5 w-5 rounded border border-slate-300',
34
+ checked: 'border-primary bg-primary relative before:absolute before:inset-0.5 before:bg-[url(/admin/images/check-white.svg)] before:bg-contain',
35
+ },
36
+ label: 'flex min-h-5 items-center pl-2',
37
+ }),
30
38
  codeInput: () => ({
31
39
  input: {
32
40
  default: 'focus:border-primary h-10 rounded border border-slate-300 text-center',
33
41
  error: 'border-red-500',
34
42
  },
35
43
  }),
44
+ definitionList: () => ({
45
+ root: 'flex flex-col gap-4',
46
+ row: 'relative border-b border-slate-200 pb-4',
47
+ term: 'pb-1 text-slate-500',
48
+ }),
49
+ dropdown: () => ({
50
+ list: 'overflow-hidden rounded',
51
+ item: {
52
+ default: 'block border-b border-slate-100 p-3 text-sm text-slate-700',
53
+ selected: 'bg-slate-100',
54
+ },
55
+ title: 'block leading-none',
56
+ meta: 'mt-1.5 block text-xs leading-none text-slate-500',
57
+ icon: 'mr-2 h-5 w-5 bg-[url(/admin/images/chevron.svg)] bg-contain bg-center bg-no-repeat',
58
+ clear: 'mr-2 h-4 w-4 bg-[url(/admin/images/close.svg)] bg-contain bg-center bg-no-repeat',
59
+ }),
36
60
  editableFieldset: () => ({
37
- root: 'bg-panel grid grid-cols-[30%_1fr] gap-8 rounded p-8 shadow',
61
+ root: 'bg-panel grid grid-cols-[25%_1fr] gap-20 rounded p-8 shadow',
38
62
  title: 'mb-8 text-lg font-semibold leading-none text-slate-700',
39
63
  description: 'text-slate-600',
40
64
  actions: 'flex justify-end gap-2 border-t border-slate-200 pt-4',
@@ -45,18 +69,13 @@ const classNames = twx({
45
69
  field: 'flex min-h-10 items-center',
46
70
  }),
47
71
  emptyMessage: (props) => ({
48
- root: tw('relative mx-auto mt-4 w-full max-w-2xl p-16 text-center text-slate-500', props?.isMinimal
72
+ root: tw('@md:p-16 relative mx-auto mt-4 w-full max-w-2xl p-4 text-center text-slate-500', props?.isMinimal
49
73
  ? null
50
74
  : 'rounded bg-white shadow before:pointer-events-none before:absolute before:inset-2 before:border-2 before:border-dashed'),
51
- title: 'mb-2 text-pretty text-xl font-semibold leading-tight',
52
- description: 'text-pretty',
75
+ title: '@md:text-xl mb-2 text-pretty font-semibold leading-tight',
76
+ description: '@md:text-sm text-pretty text-xs',
53
77
  action: 'mt-6 flex justify-center',
54
78
  }),
55
- dropdown: () => ({
56
- item: { default: 'block p-3 text-sm text-slate-700', selected: 'bg-slate-100' },
57
- title: 'block leading-none',
58
- meta: 'mt-0.5 block text-xs leading-none text-slate-500',
59
- }),
60
79
  fieldset: () => ({
61
80
  root: 'rounded bg-white p-8 shadow',
62
81
  title: 'mb-8 text-lg font-semibold leading-none text-slate-700',
@@ -66,14 +85,13 @@ const classNames = twx({
66
85
  }),
67
86
  formField: (props) => ({
68
87
  root: {
69
- default: props?.isEditable
70
- ? 'grid grid-cols-[25%_1fr] border-t border-slate-200 py-4'
71
- : '',
88
+ default: tw(props?.isEditable ? 'grid grid-cols-[25%_1fr] border-t border-slate-200 py-4' : ''),
72
89
  },
73
90
  label: tw('flex font-semibold leading-none', props?.isEditable ? 'items-center' : 'mb-2 justify-between'),
74
- details: 'mb-2 text-xs font-normal leading-none text-slate-500',
91
+ field: tw(props?.isEditable ? 'flex min-h-10 flex-col justify-center' : ''),
92
+ details: tw('text-xs font-normal text-slate-500', props?.isEditable ? 'col-start-2 row-start-2 mt-2' : 'mb-2'),
75
93
  optional: 'pl-2 text-xs font-normal leading-none text-slate-500',
76
- error: tw('mt-2 flex items-center gap-2 text-red-700 before:h-4 before:w-4 before:rounded-full before:bg-[url(/admin/images/error.svg)]', props?.isEditable ? 'col-start-2' : ''),
94
+ error: tw('mt-2 flex items-center gap-1.5 text-red-600 before:h-4 before:w-4 before:rounded-full before:bg-[url(/admin/images/danger.svg)] before:bg-contain', props?.isEditable ? 'col-start-2' : ''),
77
95
  }),
78
96
  imageInput: () => ({
79
97
  root: 'h-64 rounded border border-slate-300 bg-slate-50 p-8',
@@ -82,16 +100,20 @@ const classNames = twx({
82
100
  description: 'text-xs italic text-slate-700',
83
101
  }),
84
102
  inputPanel: () => ({
85
- root: 'show mt-1 origin-top rounded border border-slate-300 bg-white shadow-md',
103
+ root: 'show my-1 origin-top rounded border border-slate-300 bg-white shadow-md',
104
+ }),
105
+ loadingModal: () => ({
106
+ root: 'open:backdrop:fade py-16 backdrop:bg-slate-700/50 backdrop:backdrop-blur-sm',
107
+ panel: 'text-center text-lg font-semibold text-white',
86
108
  }),
87
109
  modal: () => ({
88
110
  root: 'open:backdrop:fade py-16 backdrop:bg-slate-700/50 backdrop:backdrop-blur-sm',
89
111
  panel: 'show bg-panel row-start-2 mx-auto w-full max-w-lg rounded p-6 text-left shadow-xl',
90
112
  title: 'mb-6 text-lg font-semibold',
91
- actions: 'flex justify-end',
113
+ actions: 'flex justify-end border-t border-slate-200 pt-6',
92
114
  }),
93
115
  multiInput: () => ({
94
- root: 'flex flex-col gap-2',
116
+ root: 'flex flex-col gap-2 pt-2',
95
117
  row: 'grid grid-cols-[1fr_auto] has-[>_button]:gap-2',
96
118
  }),
97
119
  objectInput: () => ({
@@ -103,24 +125,35 @@ const classNames = twx({
103
125
  selected: 'bg-bottom',
104
126
  },
105
127
  }),
128
+ radioInput: (props) => ({
129
+ root: tw('flex', props?.isInline ? 'gap-6' : 'flex-col gap-2'),
130
+ icon: {
131
+ default: 'h-5 w-5 rounded border border-slate-300',
132
+ checked: 'border-primary bg-primary relative before:absolute before:inset-0.5 before:bg-[url(/admin/images/check-white.svg)] before:bg-contain',
133
+ },
134
+ label: 'flex min-h-5 items-center pl-2',
135
+ }),
106
136
  staticTextInput: () => ({
107
137
  root: {
108
- default: 'text-md h-10 rounded border border-slate-300 bg-white px-3',
138
+ default: 'text-md flex min-h-10 flex-col justify-center rounded border border-slate-300 bg-white p-3',
109
139
  error: 'border-red-500',
110
140
  },
141
+ label: 'block leading-none',
142
+ meta: 'mt-1 block text-xs leading-none text-slate-500',
143
+ placeholder: 'block leading-none text-slate-500',
111
144
  }),
112
145
  switch: () => ({
113
146
  root: 'flex gap-4',
114
147
  input: {
115
148
  default: 'h-6 w-10 flex-none cursor-pointer rounded-full bg-slate-300 p-1 transition-colors',
116
- checked: 'bg-green-500',
149
+ checked: 'bg-primary',
117
150
  },
118
151
  control: {
119
152
  default: 'h-4 w-4 translate-x-0 transform rounded-full bg-white shadow-md transition-transform',
120
153
  checked: 'translate-x-full',
121
154
  },
122
- label: 'font-semibold',
123
- details: 'block text-xs text-slate-500',
155
+ label: 'block flex min-h-6 flex-col justify-center',
156
+ details: 'mt-1 block text-xs text-slate-500',
124
157
  }),
125
158
  textArea: () => ({
126
159
  root: {
@@ -136,6 +169,9 @@ const classNames = twx({
136
169
  default: 'text-md focus:border-primary h-10 rounded border border-slate-300 px-3',
137
170
  error: 'border-red-500',
138
171
  },
172
+ prefix: {
173
+ default: 'peer-focus:border-primary relative -mr-1 rounded-l border border-slate-300 bg-white px-3 text-sm text-slate-600',
174
+ },
139
175
  }),
140
176
  toast: () => ({
141
177
  root: {
@@ -6,5 +6,5 @@ interface Theme {
6
6
  primary: string;
7
7
  }>;
8
8
  }
9
- declare function config(resolves: string[], customization?: Theme): Record<string, unknown>;
9
+ declare function config(resolves: string[], customization: Theme, plugins: unknown[]): Record<string, unknown>;
10
10
  export default config;
@@ -1,6 +1,6 @@
1
1
  import path from 'path';
2
- import plugin from 'tailwindcss/plugin';
3
- function config(resolves, customization) {
2
+ import plugin from 'tailwindcss/plugin'; // eslint-disable-line import/no-extraneous-dependencies
3
+ function config(resolves, customization, plugins) {
4
4
  return {
5
5
  content: [
6
6
  './app/**/*.tsx',
@@ -24,6 +24,7 @@ function config(resolves, customization) {
24
24
  },
25
25
  },
26
26
  plugins: [
27
+ ...plugins,
27
28
  plugin(({ addBase, addUtilities, theme }) => {
28
29
  addBase({
29
30
  body: {
@@ -38,6 +39,9 @@ function config(resolves, customization) {
38
39
  'body.dark': {
39
40
  '--color-panel': theme('colors.gray.700'),
40
41
  },
42
+ strong: {
43
+ fontWeight: theme('fontWeight.semibold'),
44
+ },
41
45
  });
42
46
  addUtilities({
43
47
  '@keyframes show': {
package/package.json CHANGED
@@ -1,28 +1,35 @@
1
1
  {
2
2
  "name": "@sqrzro/admin",
3
- "version": "2.1.0-bz.17",
3
+ "type": "module",
4
+ "version": "2.1.0-bz.19",
4
5
  "main": "dist/index.js",
5
6
  "types": "dist/index.d.ts",
6
7
  "license": "ISC",
8
+ "exports": {
9
+ ".": "./dist/index.js",
10
+ "./postcss": "./postcss.cjs",
11
+ "./tailwind": "./tailwind.cjs"
12
+ },
7
13
  "files": [
8
- "dist",
9
- "postcss.js",
10
- "tailwind.js",
14
+ "dist/**/*",
15
+ "postcss.cjs",
16
+ "tailwind.cjs",
11
17
  "tailwind.d.ts"
12
18
  ],
13
19
  "dependencies": {
14
20
  "@sqrzro/components": "bz",
15
21
  "@sqrzro/hooks": "bz",
16
22
  "@sqrzro/interfaces": "bz",
17
- "next": "^14.1.3",
18
- "react": "18.3.0-canary-98b8359f6-20240223",
19
- "react-dom": "18.3.0-canary-98b8359f6-20240223"
23
+ "@sqrzro/utility": "bz",
24
+ "next": "^14.1.4",
25
+ "react": "^18.2.0",
26
+ "react-dom": "^18.2.0"
20
27
  },
21
28
  "devDependencies": {
22
- "@babel/core": "^7.24.0",
23
- "@babel/preset-env": "^7.24.0",
24
- "@babel/preset-react": "^7.23.3",
25
- "@babel/preset-typescript": "^7.23.3",
29
+ "@babel/core": "^7.24.4",
30
+ "@babel/preset-env": "^7.24.4",
31
+ "@babel/preset-react": "^7.24.1",
32
+ "@babel/preset-typescript": "^7.24.1",
26
33
  "@sqrzro/eslint-plugin": "bz",
27
34
  "@sqrzro/prettier-config": "bz",
28
35
  "@sqrzro/tailwind-plugin": "bz",
@@ -34,6 +41,7 @@
34
41
  "@storybook/react": "^7.6.17",
35
42
  "@storybook/react-webpack5": "7.0.7",
36
43
  "@storybook/testing-library": "^0.1.0",
44
+ "@tailwindcss/container-queries": "^0.1.1",
37
45
  "@testing-library/dom": "^8.20.1",
38
46
  "@testing-library/jest-dom": "^5.17.0",
39
47
  "@testing-library/react": "^13.4.0",
@@ -41,7 +49,8 @@
41
49
  "@types/bcrypt": "^5.0.2",
42
50
  "@types/jest": "^29.5.12",
43
51
  "@types/node": "18.14.6",
44
- "@types/react": "^18.2.64",
52
+ "@types/react": "^18.2.74",
53
+ "@types/react-dom": "^18.2.24",
45
54
  "babel-loader": "^8.3.0",
46
55
  "concurrently": "^7.6.0",
47
56
  "eslint": "^8.57.0",
@@ -50,13 +59,15 @@
50
59
  "prettier": "^3.2.5",
51
60
  "rimraf": "^4.4.1",
52
61
  "storybook": "^7.6.17",
53
- "tailwindcss": "^3.4.1",
54
- "typescript": "^5.4.2"
62
+ "tailwindcss": "^3.4.3",
63
+ "tslib": "^2.6.2",
64
+ "tsup": "^8.0.2",
65
+ "typescript": "^5.4.4"
55
66
  },
56
67
  "scripts": {
57
- "build": "pnpm clean && tsc -p tsconfig.build.json",
68
+ "build": "tsc -p tsconfig.build.json",
58
69
  "clean": "rimraf ./dist",
59
- "dev": "tsc -p tsconfig.build.json -w",
70
+ "dev": "pnpm build --watch",
60
71
  "docs": "storybook dev -p 6006",
61
72
  "lint": "tsc --noEmit && eslint \"./src/**/*.tsx\" \"./src/**/*.ts\"",
62
73
  "prettier": "prettier --write \"./src/**/*.tsx\" \"./src/**/*.ts\"",
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- export type IconType = 'danger' | 'error' | 'info' | 'success' | 'warning';
3
- declare const icons: Record<IconType, () => React.ReactElement>;
4
- export interface IconProps {
5
- type?: keyof typeof icons;
6
- }
7
- declare function Icon({ type }: Readonly<IconProps>): React.ReactElement | null;
8
- export default Icon;
@@ -1,23 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import ErrorIcon from '../../icons/ErrorIcon';
3
- import InfoIcon from '../../icons/InfoIcon';
4
- import SuccessIcon from '../../icons/SuccessIcon';
5
- import WarningIcon from '../../icons/WarningIcon';
6
- const icons = {
7
- danger: ErrorIcon,
8
- error: ErrorIcon,
9
- info: InfoIcon,
10
- success: SuccessIcon,
11
- warning: WarningIcon,
12
- };
13
- function Icon({ type }) {
14
- if (!type) {
15
- return null;
16
- }
17
- const IconComponent = icons[type];
18
- if (!IconComponent) {
19
- return null;
20
- }
21
- return _jsx(IconComponent, {});
22
- }
23
- export default Icon;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- declare function ErrorIcon(): React.ReactElement;
3
- export default ErrorIcon;
@@ -1,5 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- function ErrorIcon() {
3
- return (_jsx("svg", { "aria-hidden": "true", className: "h-5 w-5 text-red-400", fill: "currentColor", viewBox: "0 0 20 20", xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { clipRule: "evenodd", d: "M10 18a8 8 0 100-16 8 8 0 000 16zM8.28 7.22a.75.75 0 00-1.06 1.06L8.94 10l-1.72 1.72a.75.75 0 101.06 1.06L10 11.06l1.72 1.72a.75.75 0 101.06-1.06L11.06 10l1.72-1.72a.75.75 0 00-1.06-1.06L10 8.94 8.28 7.22z", fillRule: "evenodd" }) }));
4
- }
5
- export default ErrorIcon;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- declare function InfoIcon(): React.ReactElement;
3
- export default InfoIcon;
@@ -1,5 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- function InfoIcon() {
3
- return (_jsx("svg", { "aria-hidden": "true", className: "h-5 w-5 text-blue-400", fill: "currentColor", viewBox: "0 0 20 20", xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { clipRule: "evenodd", d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z", fillRule: "evenodd" }) }));
4
- }
5
- export default InfoIcon;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- declare function SuccessIcon(): React.ReactElement;
3
- export default SuccessIcon;
@@ -1,5 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- function SuccessIcon() {
3
- return (_jsx("svg", { "aria-hidden": "true", className: "h-5 w-5 text-green-400", fill: "currentColor", viewBox: "0 0 20 20", xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { clipRule: "evenodd", d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z", fillRule: "evenodd" }) }));
4
- }
5
- export default SuccessIcon;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- declare function WarningIcon(): React.ReactElement;
3
- export default WarningIcon;
@@ -1,5 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- function WarningIcon() {
3
- return (_jsx("svg", { "aria-hidden": "true", className: "h-5 w-5 text-yellow-400", fill: "currentColor", viewBox: "0 0 20 20", xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { clipRule: "evenodd", d: "M8.485 2.495c.673-1.167 2.357-1.167 3.03 0l6.28 10.875c.673 1.167-.17 2.625-1.516 2.625H3.72c-1.347 0-2.189-1.458-1.515-2.625L8.485 2.495zM10 5a.75.75 0 01.75.75v3.5a.75.75 0 01-1.5 0v-3.5A.75.75 0 0110 5zm0 9a1 1 0 100-2 1 1 0 000 2z", fillRule: "evenodd" }) }));
4
- }
5
- export default WarningIcon;
@@ -1,7 +0,0 @@
1
- import type { SerializedErrorable } from '@sqrzro/interfaces';
2
- type Layout = 'sidebar' | 'topbar';
3
- export declare function getLayout(): Promise<string>;
4
- export declare function submitLayoutForm(formData: {
5
- layout: Layout;
6
- }): Promise<SerializedErrorable<boolean>>;
7
- export {};
File without changes
File without changes