@sqrzro/admin 2.1.0-r19.39 → 2.1.0-r19.41

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/styles.css ADDED
@@ -0,0 +1,64 @@
1
+ @source "node_modules/@sqrzro/components";
2
+ @source "src";
3
+
4
+ @theme {
5
+ --color-primary: var(--color-teal-600);
6
+
7
+ --color-button-bg: var(--color-primary);
8
+ --color-button-text: var(--color-white);
9
+ --color-link: var(--color-primary);
10
+ --color-panel: var(--color-white);
11
+ }
12
+
13
+ @layer base {
14
+ button {
15
+ @apply cursor-pointer;
16
+ }
17
+
18
+ small {
19
+ @apply text-xs;
20
+ }
21
+
22
+ strong {
23
+ @apply font-semibold;
24
+ }
25
+
26
+ input::-webkit-inner-spin-button {
27
+ appearance: none;
28
+ margin: 0;
29
+ }
30
+
31
+ input[type=number] {
32
+ -moz-appearance: textfield;
33
+ }
34
+ }
35
+
36
+ @layer utilities {
37
+ @keyframes show {
38
+ from {
39
+ opacity: 0;
40
+ transform: scale3d(.9,.9,.9);
41
+ }
42
+ to {
43
+ opacity: 1;
44
+ transform: scale3d(1,1,1);
45
+ }
46
+ }
47
+
48
+ .show {
49
+ animation: show 0.1s ease-in-out;
50
+ }
51
+
52
+ @keyframes fade {
53
+ from {
54
+ opacity: 0;
55
+ }
56
+ to {
57
+ opacity: 1;
58
+ }
59
+ }
60
+
61
+ .fade {
62
+ animation: fade 0.2s ease-in-out;
63
+ }
64
+ }
@@ -1,11 +0,0 @@
1
- /// <reference types="react" />
2
- interface ConfigNavigationObject {
3
- href: string;
4
- label: string;
5
- permission?: string;
6
- }
7
- interface AppNavigationSubProps {
8
- data: ConfigNavigationObject[];
9
- }
10
- declare function AppNavigationSub({ data }: Readonly<AppNavigationSubProps>): React.ReactElement;
11
- export default AppNavigationSub;
@@ -1,12 +0,0 @@
1
- 'use client';
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { Fragment, useState } from 'react';
4
- import { Link } from '@sqrzro/components';
5
- function AppNavigationSub({ data }) {
6
- const [isOpen, setIsOpen] = useState(false);
7
- function toggleIsOpen() {
8
- setIsOpen((prev) => !prev);
9
- }
10
- return (_jsxs(Fragment, { children: [_jsx("button", { onClick: toggleIsOpen, type: "button", children: "Open" }), isOpen ? (_jsx("ul", { children: data.map(({ href, label }) => (_jsx("li", { children: _jsx(Link, { href: href, children: label }) }, href))) })) : null] }));
11
- }
12
- export default AppNavigationSub;
@@ -1,9 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { ConfirmableButton } from '@sqrzro/components';
3
- function ListAction({ id, onClick, label, variant, }) {
4
- function handleClick() {
5
- onClick(id);
6
- }
7
- return (_jsx(ConfirmableButton, { onClick: handleClick, variant: variant, isText: true, children: label }));
8
- }
9
- export default ListAction;
package/tailwind.cjs DELETED
@@ -1 +0,0 @@
1
- module.exports = require('./dist/styles/tailwind');
package/tailwind.d.ts DELETED
@@ -1 +0,0 @@
1
- export * from './dist/styles/tailwind';