ar-design 0.0.0
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/LICENSE +21 -0
- package/README.md +0 -0
- package/dist/components/button/index.d.ts +5 -0
- package/dist/components/button/index.js +54 -0
- package/dist/components/button/type.d.ts +155 -0
- package/dist/components/button/type.js +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -0
- package/dist/libs/styles/button/button.css +8 -0
- package/dist/libs/styles/button/core/border.css +18 -0
- package/dist/libs/styles/button/core/core.css +16 -0
- package/dist/libs/styles/button/core/icon.css +21 -0
- package/dist/libs/styles/button/core/shape.css +19 -0
- package/dist/libs/styles/button/variant/filled/animation.css +95 -0
- package/dist/libs/styles/button/variant/filled/core.css +84 -0
- package/dist/libs/styles/button/variant/outlined/animation.css +95 -0
- package/dist/libs/styles/button/variant/outlined/border.css +64 -0
- package/dist/libs/styles/button/variant/outlined/core.css +85 -0
- package/dist/libs/styles/theme.public.css +109 -0
- package/dist/libs/types/colors.d.ts +1 -0
- package/dist/libs/types/colors.js +1 -0
- package/package.json +41 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Kaan ÇETİN
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
File without changes
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { __rest } from "tslib";
|
|
3
|
+
import React, { useRef } from "react";
|
|
4
|
+
import "../../libs/styles/button/button.css";
|
|
5
|
+
const Button = (_a) => {
|
|
6
|
+
var { children, variant = "filled", shape, color = "primary", border, width = "auto", icon, upperCase } = _a, attributes = __rest(_a, ["children", "variant", "shape", "color", "border", "width", "icon", "upperCase"]);
|
|
7
|
+
// refs
|
|
8
|
+
const _button = useRef(null);
|
|
9
|
+
// methods
|
|
10
|
+
const handleClassName = () => {
|
|
11
|
+
var _a;
|
|
12
|
+
let className = `ar-button-core ${variant} ${color} ${width}`;
|
|
13
|
+
if (shape)
|
|
14
|
+
className += ` ar-button-shape ${shape}`;
|
|
15
|
+
if (variant !== "filled" && border) {
|
|
16
|
+
if (border.style)
|
|
17
|
+
className += ` border-style-${border.style}`;
|
|
18
|
+
if (border.radius)
|
|
19
|
+
className += ` border-radius-${border === null || border === void 0 ? void 0 : border.radius}`;
|
|
20
|
+
}
|
|
21
|
+
if (icon) {
|
|
22
|
+
if (icon.element && !shape)
|
|
23
|
+
className += ` icon`;
|
|
24
|
+
if (icon.direction)
|
|
25
|
+
className += ` icon-${icon.direction}`;
|
|
26
|
+
if (icon.position)
|
|
27
|
+
className += ` icon-${(_a = icon.direction) !== null && _a !== void 0 ? _a : "row"}-${icon.position}`;
|
|
28
|
+
}
|
|
29
|
+
if (attributes.disabled)
|
|
30
|
+
className += ` disabled`;
|
|
31
|
+
if (attributes.className)
|
|
32
|
+
className += ` ${attributes.className}`;
|
|
33
|
+
return className;
|
|
34
|
+
};
|
|
35
|
+
return (React.createElement("button", Object.assign({ ref: _button }, attributes, { className: handleClassName(), onClick: (event) => {
|
|
36
|
+
// Disabled gelmesi durumunda işlem yapmasına izin verme...
|
|
37
|
+
if (attributes.disabled)
|
|
38
|
+
return;
|
|
39
|
+
(() => {
|
|
40
|
+
const _current = _button.current;
|
|
41
|
+
const addClass = "active";
|
|
42
|
+
if (_current && !_current.classList.contains(addClass)) {
|
|
43
|
+
// Sınıf ekleniyor...
|
|
44
|
+
_current.classList.add(addClass);
|
|
45
|
+
// Sınıf 500 milisaniye sonra kaldırlacak.
|
|
46
|
+
setTimeout(() => _current.classList.remove(addClass), 750);
|
|
47
|
+
}
|
|
48
|
+
})();
|
|
49
|
+
(() => attributes.onClick && attributes.onClick(event))();
|
|
50
|
+
} }), icon === null || icon === void 0 ? void 0 :
|
|
51
|
+
icon.element,
|
|
52
|
+
typeof children === "string" && upperCase ? children.toLocaleUpperCase() : children));
|
|
53
|
+
};
|
|
54
|
+
export default Button;
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import { Colors } from "../../libs/types/colors";
|
|
2
|
+
export type Props = {
|
|
3
|
+
/**
|
|
4
|
+
* Bileşenin içinde render edilecek içeriği belirtir.
|
|
5
|
+
* Bu içerik bir dize (string) veya bir React JSX elemanı olabilir.
|
|
6
|
+
*
|
|
7
|
+
* Örneğin;
|
|
8
|
+
* - Bir dize: "Hello, World!"
|
|
9
|
+
* - Bir React JSX elemanı: <span>Hello, World!</span>
|
|
10
|
+
*
|
|
11
|
+
* ```jsx
|
|
12
|
+
* <Button>Hello, World!</Button>
|
|
13
|
+
*
|
|
14
|
+
* <Button>
|
|
15
|
+
* <span>Hello, World!</span>
|
|
16
|
+
* </Button>
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
children?: string | React.JSX.Element;
|
|
20
|
+
/**
|
|
21
|
+
* Bileşenin stil varyantını belirtir.
|
|
22
|
+
* Üç seçenekten biri olabilir: "filled", "outlined" veya "text".
|
|
23
|
+
*
|
|
24
|
+
* - `"filled"`: Dolu arka plan rengi ile stilize edilmiş bir varyant.
|
|
25
|
+
* - `"outlined"`: Sadece kenarlıkları olan, arka planı şeffaf olan bir varyant.
|
|
26
|
+
* - `"text"`: Arka plan ve kenarlık olmadan sadece metni gösteren bir varyant.
|
|
27
|
+
*
|
|
28
|
+
* Bu seçenekler, bileşenin görünümünü ve stilini değiştirir.
|
|
29
|
+
*
|
|
30
|
+
* Örneğin;
|
|
31
|
+
*
|
|
32
|
+
* ```jsx
|
|
33
|
+
* <Button variant="filled">Hello, World!</Button>
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
variant?: "filled" | "outlined" | "text";
|
|
37
|
+
/**
|
|
38
|
+
* Bileşenin şekil varyantını belirtir ve genellikle sadece ikon için kullanılmalıdır.
|
|
39
|
+
* İki seçenekten biri olabilir: "circle" veya "square".
|
|
40
|
+
*
|
|
41
|
+
* - `"circle"`: Daire şeklinde stilize edilmiş bir varyant.
|
|
42
|
+
* - `"square"`: Kare şeklinde stilize edilmiş bir varyant.
|
|
43
|
+
*
|
|
44
|
+
* Bu seçenekler, bileşenin şekilsel görünümünü değiştirir.
|
|
45
|
+
*
|
|
46
|
+
* Örneğin;
|
|
47
|
+
*
|
|
48
|
+
* ```jsx
|
|
49
|
+
* <Button shape="circle">Hello, World!</Button>
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
shape?: "circle" | "square";
|
|
53
|
+
/**
|
|
54
|
+
* Bileşenin renk özelliğini belirtir.
|
|
55
|
+
* Renklerin tanımlandığı bir `Colors` türü kullanılır.
|
|
56
|
+
*
|
|
57
|
+
* `Colors` türü, belirli renklerin ve renk şemalarının tanımlandığı bir enum veya benzeri bir yapıyı temsil eder.
|
|
58
|
+
*
|
|
59
|
+
* Örneğin;
|
|
60
|
+
*
|
|
61
|
+
* ```jsx
|
|
62
|
+
* <Button color="success">Hello, World!</Button>
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
65
|
+
color?: Colors;
|
|
66
|
+
/**
|
|
67
|
+
* Bileşenine ikon eklemeyi sağlar.
|
|
68
|
+
* İkonun kendisini, yönünü ve pozisyonunu tanımlamak için kullanılır.
|
|
69
|
+
*
|
|
70
|
+
* - `element`: İkon olarak kullanılacak React JSX elemanı.
|
|
71
|
+
* - `direction` (isteğe bağlı): İkonun ve metnin hizalanma yönünü belirtir.
|
|
72
|
+
* - `"row"`: İkon ve metin yatay olarak hizalanır.
|
|
73
|
+
* - `"column"`: İkon ve metin dikey olarak hizalanır.
|
|
74
|
+
* - `position` (isteğe bağlı): İkonun metne göre konumunu belirtir.
|
|
75
|
+
* - `"start"`: İkon metnin başında yer alır.
|
|
76
|
+
* - `"end"`: İkon metnin sonunda yer alır.
|
|
77
|
+
*
|
|
78
|
+
* Örneğin;
|
|
79
|
+
*
|
|
80
|
+
* ```jsx
|
|
81
|
+
* <Button
|
|
82
|
+
* icon={{
|
|
83
|
+
* element: <MyIcon />,
|
|
84
|
+
* direction: "row",
|
|
85
|
+
* position: "start"
|
|
86
|
+
* }}
|
|
87
|
+
* >
|
|
88
|
+
* Click Me!
|
|
89
|
+
* </Button>
|
|
90
|
+
* ```
|
|
91
|
+
*/
|
|
92
|
+
icon?: {
|
|
93
|
+
element: React.JSX.Element;
|
|
94
|
+
direction?: "row" | "column";
|
|
95
|
+
position?: "start" | "end";
|
|
96
|
+
};
|
|
97
|
+
/**
|
|
98
|
+
* Bileşendeki metni büyük harflere dönüştürüp dönüştürmeyeceğini belirtir.
|
|
99
|
+
* Boolean (true/false) değeri alır.
|
|
100
|
+
*
|
|
101
|
+
* - `true`: Metin büyük harflerle yazılır.
|
|
102
|
+
* - `false`: Metin olduğu gibi, yani küçük/büyük harf karışımı şeklinde yazılır.
|
|
103
|
+
*
|
|
104
|
+
* Bu özellik, metnin stilini özelleştirmek için kullanılır ve isteğe bağlı şekilde çalışır.
|
|
105
|
+
*/
|
|
106
|
+
upperCase?: boolean;
|
|
107
|
+
/**
|
|
108
|
+
* Bileşenin çervesinde düzenleme yapılmasına olanak tanır.
|
|
109
|
+
* Kenarlığın stilini ve köşe yuvarlama derecesini tanımlamak için kullanılır.
|
|
110
|
+
*
|
|
111
|
+
* - `style` (isteğe bağlı): Kenarlığın stilini belirtir.
|
|
112
|
+
* - `"solid"`: Düz çizgi şeklinde kenarlık.
|
|
113
|
+
* - `"dashed"`: Kesik çizgi şeklinde kenarlık.
|
|
114
|
+
* - `"none"`: Kenarlık yok.
|
|
115
|
+
* - `radius` (isteğe bağlı): Köşe yuvarlama derecesini belirtir.
|
|
116
|
+
* - `"sm"`: Küçük yuvarlama.
|
|
117
|
+
* - `"lg"`: Büyük yuvarlama.
|
|
118
|
+
* - `"xl"`: Ekstra büyük yuvarlama.
|
|
119
|
+
* - `"xxl"`: Çok büyük yuvarlama.
|
|
120
|
+
* - `"pill"`: Hap şeklinde yuvarlama.
|
|
121
|
+
* - `"none"`: Yuvarlama yok.
|
|
122
|
+
*
|
|
123
|
+
* Örneğin;
|
|
124
|
+
*
|
|
125
|
+
* ```jsx
|
|
126
|
+
* <Button
|
|
127
|
+
* border={{
|
|
128
|
+
* style: "solid",
|
|
129
|
+
* radius: "lg"
|
|
130
|
+
* }}
|
|
131
|
+
* >
|
|
132
|
+
* Test
|
|
133
|
+
* </Button>
|
|
134
|
+
* ```
|
|
135
|
+
*/
|
|
136
|
+
border?: {
|
|
137
|
+
style?: "solid" | "dashed" | "none";
|
|
138
|
+
radius?: "sm" | "lg" | "xl" | "xxl" | "pill" | "none";
|
|
139
|
+
};
|
|
140
|
+
/**
|
|
141
|
+
* Bileşenin genişlik özelliğini belirtir.
|
|
142
|
+
* Genişliğin nasıl ayarlanacağını tanımlamak için kullanılır.
|
|
143
|
+
*
|
|
144
|
+
* - `width` (isteğe bağlı): Genişlik ayarını belirtir.
|
|
145
|
+
* - `"max-width"`: Maksimum genişliğe göre ayarlanır.
|
|
146
|
+
* - `"auto"`: Otomatik olarak genişliğe göre ayarlanır.
|
|
147
|
+
*
|
|
148
|
+
* Örneğin;
|
|
149
|
+
*
|
|
150
|
+
* ```jsx
|
|
151
|
+
* <Button width="max-width">Submit</Button>
|
|
152
|
+
* ```
|
|
153
|
+
*/
|
|
154
|
+
width?: "max-width" | "auto";
|
|
155
|
+
} & React.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
@import url("./core/core.css");
|
|
2
|
+
@import url("./core/shape.css");
|
|
3
|
+
@import url("./core/icon.css");
|
|
4
|
+
@import url("./core/border.css");
|
|
5
|
+
@import url("./variant/filled/core.css");
|
|
6
|
+
@import url("./variant/outlined/core.css");
|
|
7
|
+
|
|
8
|
+
/* Ek CSS kuralları buraya eklenebilir */
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
.ar-button-core.border-radius-sm {
|
|
2
|
+
border-radius: var(--border-radius-sm);
|
|
3
|
+
}
|
|
4
|
+
.ar-button-core.border-radius-lg {
|
|
5
|
+
border-radius: var(--border-radius-lg);
|
|
6
|
+
}
|
|
7
|
+
.ar-button-core.border-radius-xl {
|
|
8
|
+
border-radius: var(--border-radius-xl);
|
|
9
|
+
}
|
|
10
|
+
.ar-button-core.border-radius-xxl {
|
|
11
|
+
border-radius: var(--border-radius-xxl);
|
|
12
|
+
}
|
|
13
|
+
.ar-button-core.border-radius-pill {
|
|
14
|
+
border-radius: var(--border-radius-pill);
|
|
15
|
+
}
|
|
16
|
+
.ar-button-core.border-radius-none {
|
|
17
|
+
border-radius: 0;
|
|
18
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
.ar-button-core {
|
|
2
|
+
position: relative;
|
|
3
|
+
padding: 0.5rem 1rem;
|
|
4
|
+
border: none;
|
|
5
|
+
border-radius: var(--border-radius-sm);
|
|
6
|
+
cursor: pointer;
|
|
7
|
+
transition: background-color 150ms, border 150ms, color 150ms ease-in-out;
|
|
8
|
+
overflow: hidden;
|
|
9
|
+
}
|
|
10
|
+
.ar-button-core.disabled {
|
|
11
|
+
cursor: no-drop;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.ar-button-core.max-width {
|
|
15
|
+
width: 100%;
|
|
16
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
.ar-button-core.icon {
|
|
2
|
+
display: -webkit-box;
|
|
3
|
+
display: -ms-flexbox;
|
|
4
|
+
display: flex;
|
|
5
|
+
-webkit-box-align: start;
|
|
6
|
+
-ms-flex-align: start;
|
|
7
|
+
align-items: flex-start;
|
|
8
|
+
gap: 0 0.5rem;
|
|
9
|
+
}
|
|
10
|
+
.ar-button-core.icon-row {
|
|
11
|
+
flex-direction: row;
|
|
12
|
+
}
|
|
13
|
+
.ar-button-core.icon-row-end {
|
|
14
|
+
flex-direction: row-reverse;
|
|
15
|
+
}
|
|
16
|
+
.ar-button-core.icon-column {
|
|
17
|
+
flex-direction: column;
|
|
18
|
+
}
|
|
19
|
+
.ar-button-core.icon-column-end {
|
|
20
|
+
flex-direction: column-reverse;
|
|
21
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
.ar-button-core.ar-button-shape {
|
|
2
|
+
display: -webkit-box;
|
|
3
|
+
display: -ms-flexbox;
|
|
4
|
+
display: flex;
|
|
5
|
+
-webkit-box-pack: center;
|
|
6
|
+
-ms-flex-pack: center;
|
|
7
|
+
justify-content: center;
|
|
8
|
+
-webkit-box-align: center;
|
|
9
|
+
-ms-flex-align: center;
|
|
10
|
+
align-items: center;
|
|
11
|
+
min-width: 2rem;
|
|
12
|
+
min-height: 2rem;
|
|
13
|
+
padding: 0 !important;
|
|
14
|
+
}
|
|
15
|
+
.ar-button-core.ar-button-shape.circle {
|
|
16
|
+
border-radius: var(--border-radius-pill);
|
|
17
|
+
}
|
|
18
|
+
.ar-button-core.ar-button-shape.square {
|
|
19
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
@keyframes filled-primary-active-animation {
|
|
2
|
+
0% {
|
|
3
|
+
box-shadow: 0 0 0 0px rgba(var(--primary-rgb), 0);
|
|
4
|
+
}
|
|
5
|
+
25% {
|
|
6
|
+
box-shadow: 0 0 0 5px rgba(var(--primary-rgb), 0.25);
|
|
7
|
+
}
|
|
8
|
+
100% {
|
|
9
|
+
box-shadow: 0 0 0 7.5px rgba(var(--primary-rgb), 0);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@keyframes filled-secondary-active-animation {
|
|
14
|
+
0% {
|
|
15
|
+
box-shadow: 0 0 0 0px rgba(var(--secondary-rgb), 0);
|
|
16
|
+
}
|
|
17
|
+
25% {
|
|
18
|
+
box-shadow: 0 0 0 5px rgba(var(--secondary-rgb), 0.25);
|
|
19
|
+
}
|
|
20
|
+
100% {
|
|
21
|
+
box-shadow: 0 0 0 7.5px rgba(var(--secondary-rgb), 0);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@keyframes filled-success-active-animation {
|
|
26
|
+
0% {
|
|
27
|
+
box-shadow: 0 0 0 0px rgba(var(--success-rgb), 0);
|
|
28
|
+
}
|
|
29
|
+
25% {
|
|
30
|
+
box-shadow: 0 0 0 5px rgba(var(--success-rgb), 0.25);
|
|
31
|
+
}
|
|
32
|
+
100% {
|
|
33
|
+
box-shadow: 0 0 0 7.5px rgba(var(--success-rgb), 0);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@keyframes filled-warning-active-animation {
|
|
38
|
+
0% {
|
|
39
|
+
box-shadow: 0 0 0 0px rgba(var(--warning-rgb), 0);
|
|
40
|
+
}
|
|
41
|
+
25% {
|
|
42
|
+
box-shadow: 0 0 0 5px rgba(var(--warning-rgb), 0.25);
|
|
43
|
+
}
|
|
44
|
+
100% {
|
|
45
|
+
box-shadow: 0 0 0 7.5px rgba(var(--warning-rgb), 0);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
@keyframes filled-danger-active-animation {
|
|
50
|
+
0% {
|
|
51
|
+
box-shadow: 0 0 0 0px rgba(var(--danger-rgb), 0);
|
|
52
|
+
}
|
|
53
|
+
25% {
|
|
54
|
+
box-shadow: 0 0 0 5px rgba(var(--danger-rgb), 0.25);
|
|
55
|
+
}
|
|
56
|
+
100% {
|
|
57
|
+
box-shadow: 0 0 0 7.5px rgba(var(--danger-rgb), 0);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
@keyframes filled-information-active-animation {
|
|
62
|
+
0% {
|
|
63
|
+
box-shadow: 0 0 0 0px rgba(var(--information-rgb), 0);
|
|
64
|
+
}
|
|
65
|
+
25% {
|
|
66
|
+
box-shadow: 0 0 0 5px rgba(var(--information-rgb), 0.25);
|
|
67
|
+
}
|
|
68
|
+
100% {
|
|
69
|
+
box-shadow: 0 0 0 7.5px rgba(var(--information-rgb), 0);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
@keyframes filled-light-active-animation {
|
|
74
|
+
0% {
|
|
75
|
+
box-shadow: 0 0 0 0px rgba(var(--dark-rgb), 0);
|
|
76
|
+
}
|
|
77
|
+
25% {
|
|
78
|
+
box-shadow: 0 0 0 5px rgba(var(--dark-rgb), 0.25);
|
|
79
|
+
}
|
|
80
|
+
100% {
|
|
81
|
+
box-shadow: 0 0 0 7.5px rgba(var(--dark-rgb), 0);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
@keyframes filled-dark-active-animation {
|
|
86
|
+
0% {
|
|
87
|
+
box-shadow: 0 0 0 0px rgba(var(--dark-rgb), 0);
|
|
88
|
+
}
|
|
89
|
+
25% {
|
|
90
|
+
box-shadow: 0 0 0 5px rgba(var(--dark-rgb), 0.25);
|
|
91
|
+
}
|
|
92
|
+
100% {
|
|
93
|
+
box-shadow: 0 0 0 7.5px rgba(var(--dark-rgb), 0);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
@import url("./animation.css");
|
|
2
|
+
|
|
3
|
+
.ar-button-core.filled {
|
|
4
|
+
border-color: transparent;
|
|
5
|
+
color: var(--white);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.ar-button-core.filled.disabled {
|
|
9
|
+
background-color: var(--gray-100);
|
|
10
|
+
color: var(--gray-500);
|
|
11
|
+
border: solid 1px var(--gray-500);
|
|
12
|
+
}
|
|
13
|
+
.ar-button-core.filled:not(.disabled):active::before {
|
|
14
|
+
position: absolute;
|
|
15
|
+
inset: 0;
|
|
16
|
+
content: "";
|
|
17
|
+
background-color: rgba(var(--black-rgb), 0.25);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.ar-button-core.filled:not(.disabled).primary {
|
|
21
|
+
background-color: var(--primary);
|
|
22
|
+
}
|
|
23
|
+
.ar-button-core.filled:not(.disabled).primary.active {
|
|
24
|
+
/* Sırasıyla; Ad, Süre, Hız, Gecikme Süresi, Tekrar Sayısı, Yön, Bitiş Süreci */
|
|
25
|
+
animation: filled-primary-active-animation ease-in-out 750ms 0s 1 normal both;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.ar-button-core.filled:not(.disabled).secondary {
|
|
29
|
+
background-color: var(--secondary);
|
|
30
|
+
}
|
|
31
|
+
.ar-button-core.filled:not(.disabled).secondary.active {
|
|
32
|
+
/* Sırasıyla; Ad, Süre, Hız, Gecikme Süresi, Tekrar Sayısı, Yön, Bitiş Süreci */
|
|
33
|
+
animation: filled-secondary-active-animation ease-in-out 750ms 0s 1 normal both;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.ar-button-core.filled:not(.disabled).success {
|
|
37
|
+
background-color: var(--success);
|
|
38
|
+
}
|
|
39
|
+
.ar-button-core.filled:not(.disabled).success.active {
|
|
40
|
+
/* Sırasıyla; Ad, Süre, Hız, Gecikme Süresi, Tekrar Sayısı, Yön, Bitiş Süreci */
|
|
41
|
+
animation: filled-success-active-animation ease-in-out 750ms 0s 1 normal both;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.ar-button-core.filled:not(.disabled).warning {
|
|
45
|
+
background-color: var(--warning);
|
|
46
|
+
color: var(--warning-font-color);
|
|
47
|
+
}
|
|
48
|
+
.ar-button-core.filled:not(.disabled).warning.active {
|
|
49
|
+
/* Sırasıyla; Ad, Süre, Hız, Gecikme Süresi, Tekrar Sayısı, Yön, Bitiş Süreci */
|
|
50
|
+
animation: filled-warning-active-animation ease-in-out 750ms 0s 1 normal both;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.ar-button-core.filled:not(.disabled).danger {
|
|
54
|
+
background-color: var(--danger);
|
|
55
|
+
}
|
|
56
|
+
.ar-button-core.filled:not(.disabled).danger.active {
|
|
57
|
+
/* Sırasıyla; Ad, Süre, Hız, Gecikme Süresi, Tekrar Sayısı, Yön, Bitiş Süreci */
|
|
58
|
+
animation: filled-danger-active-animation ease-in-out 750ms 0s 1 normal both;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.ar-button-core.filled:not(.disabled).information {
|
|
62
|
+
background-color: var(--information);
|
|
63
|
+
}
|
|
64
|
+
.ar-button-core.filled:not(.disabled).information.active {
|
|
65
|
+
/* Sırasıyla; Ad, Süre, Hız, Gecikme Süresi, Tekrar Sayısı, Yön, Bitiş Süreci */
|
|
66
|
+
animation: filled-information-active-animation ease-in-out 750ms 0s 1 normal both;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.ar-button-core.filled:not(.disabled).light {
|
|
70
|
+
background-color: var(--light);
|
|
71
|
+
color: var(--gray-800);
|
|
72
|
+
}
|
|
73
|
+
.ar-button-core.filled:not(.disabled).light.active {
|
|
74
|
+
/* Sırasıyla; Ad, Süre, Hız, Gecikme Süresi, Tekrar Sayısı, Yön, Bitiş Süreci */
|
|
75
|
+
animation: filled-light-active-animation ease-in-out 750ms 0s 1 normal both;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.ar-button-core.filled:not(.disabled).dark {
|
|
79
|
+
background-color: var(--dark);
|
|
80
|
+
}
|
|
81
|
+
.ar-button-core.filled:not(.disabled).dark.active {
|
|
82
|
+
/* Sırasıyla; Ad, Süre, Hız, Gecikme Süresi, Tekrar Sayısı, Yön, Bitiş Süreci */
|
|
83
|
+
animation: filled-dark-active-animation ease-in-out 750ms 0s 1 normal both;
|
|
84
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
@keyframes outlined-primary-active-animation {
|
|
2
|
+
0% {
|
|
3
|
+
box-shadow: 0 0 0 0px rgba(var(--primary-rgb), 0);
|
|
4
|
+
}
|
|
5
|
+
25% {
|
|
6
|
+
box-shadow: 0 0 0 5px rgba(var(--primary-rgb), 0.25);
|
|
7
|
+
}
|
|
8
|
+
100% {
|
|
9
|
+
box-shadow: 0 0 0 7.5px rgba(var(--primary-rgb), 0);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@keyframes outlined-secondary-active-animation {
|
|
14
|
+
0% {
|
|
15
|
+
box-shadow: 0 0 0 0px rgba(var(--secondary-rgb), 0);
|
|
16
|
+
}
|
|
17
|
+
25% {
|
|
18
|
+
box-shadow: 0 0 0 5px rgba(var(--secondary-rgb), 0.25);
|
|
19
|
+
}
|
|
20
|
+
100% {
|
|
21
|
+
box-shadow: 0 0 0 7.5px rgba(var(--secondary-rgb), 0);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@keyframes outlined-success-active-animation {
|
|
26
|
+
0% {
|
|
27
|
+
box-shadow: 0 0 0 0px rgba(var(--success-rgb), 0);
|
|
28
|
+
}
|
|
29
|
+
25% {
|
|
30
|
+
box-shadow: 0 0 0 5px rgba(var(--success-rgb), 0.25);
|
|
31
|
+
}
|
|
32
|
+
100% {
|
|
33
|
+
box-shadow: 0 0 0 7.5px rgba(var(--success-rgb), 0);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@keyframes outlined-warning-active-animation {
|
|
38
|
+
0% {
|
|
39
|
+
box-shadow: 0 0 0 0px rgba(var(--warning-rgb), 0);
|
|
40
|
+
}
|
|
41
|
+
25% {
|
|
42
|
+
box-shadow: 0 0 0 5px rgba(var(--warning-rgb), 0.25);
|
|
43
|
+
}
|
|
44
|
+
100% {
|
|
45
|
+
box-shadow: 0 0 0 7.5px rgba(var(--warning-rgb), 0);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
@keyframes outlined-danger-active-animation {
|
|
50
|
+
0% {
|
|
51
|
+
box-shadow: 0 0 0 0px rgba(var(--danger-rgb), 0);
|
|
52
|
+
}
|
|
53
|
+
25% {
|
|
54
|
+
box-shadow: 0 0 0 5px rgba(var(--danger-rgb), 0.25);
|
|
55
|
+
}
|
|
56
|
+
100% {
|
|
57
|
+
box-shadow: 0 0 0 7.5px rgba(var(--danger-rgb), 0);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
@keyframes outlined-information-active-animation {
|
|
62
|
+
0% {
|
|
63
|
+
box-shadow: 0 0 0 0px rgba(var(--information-rgb), 0);
|
|
64
|
+
}
|
|
65
|
+
25% {
|
|
66
|
+
box-shadow: 0 0 0 5px rgba(var(--information-rgb), 0.25);
|
|
67
|
+
}
|
|
68
|
+
100% {
|
|
69
|
+
box-shadow: 0 0 0 7.5px rgba(var(--information-rgb), 0);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
@keyframes outlined-light-active-animation {
|
|
74
|
+
0% {
|
|
75
|
+
box-shadow: 0 0 0 0px rgba(var(--dark-rgb), 0);
|
|
76
|
+
}
|
|
77
|
+
25% {
|
|
78
|
+
box-shadow: 0 0 0 5px rgba(var(--dark-rgb), 0.25);
|
|
79
|
+
}
|
|
80
|
+
100% {
|
|
81
|
+
box-shadow: 0 0 0 7.5px rgba(var(--dark-rgb), 0);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
@keyframes outlined-dark-active-animation {
|
|
86
|
+
0% {
|
|
87
|
+
box-shadow: 0 0 0 0px rgba(var(--dark-rgb), 0);
|
|
88
|
+
}
|
|
89
|
+
25% {
|
|
90
|
+
box-shadow: 0 0 0 5px rgba(var(--dark-rgb), 0.25);
|
|
91
|
+
}
|
|
92
|
+
100% {
|
|
93
|
+
box-shadow: 0 0 0 7.5px rgba(var(--dark-rgb), 0);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
.ar-button-core.outlined.border-style-solid {
|
|
2
|
+
border-style: solid;
|
|
3
|
+
}
|
|
4
|
+
.ar-button-core.outlined.border-style-dashed {
|
|
5
|
+
border-style: dashed;
|
|
6
|
+
}
|
|
7
|
+
.ar-button-core.outlined.border-style-none {
|
|
8
|
+
border-style: none;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.ar-button-core.outlined.border-style-none:not(.disabled)::before {
|
|
12
|
+
position: absolute;
|
|
13
|
+
inset: 0;
|
|
14
|
+
content: "";
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.ar-button-core.outlined.primary.border-style-none:not(.disabled):hover::before {
|
|
18
|
+
background-color: rgba(var(--primary-rgb), 0.1);
|
|
19
|
+
}
|
|
20
|
+
.ar-button-core.outlined.primary.border-style-none:not(.disabled):active::before {
|
|
21
|
+
background-color: rgba(var(--primary-rgb), 0.2);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.ar-button-core.outlined.secondary.border-style-none:not(.disabled):hover::before {
|
|
25
|
+
background-color: rgba(var(--secondary-rgb), 0.1);
|
|
26
|
+
}
|
|
27
|
+
.ar-button-core.outlined.secondary.border-style-none:not(.disabled):active::before {
|
|
28
|
+
background-color: rgba(var(--secondary-rgb), 0.2);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.ar-button-core.outlined.success.border-style-none:not(.disabled):hover::before {
|
|
32
|
+
background-color: rgba(var(--success-rgb), 0.1);
|
|
33
|
+
}
|
|
34
|
+
.ar-button-core.outlined.success.border-style-none:not(.disabled):active::before {
|
|
35
|
+
background-color: rgba(var(--success-rgb), 0.2);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.ar-button-core.outlined.warning.border-style-none:not(.disabled):hover::before {
|
|
39
|
+
background-color: rgba(var(--warning-rgb), 0.1);
|
|
40
|
+
}
|
|
41
|
+
.ar-button-core.outlined.warning.border-style-none:not(.disabled):active::before {
|
|
42
|
+
background-color: rgba(var(--warning-rgb), 0.2);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.ar-button-core.outlined.danger.border-style-none:not(.disabled):hover::before {
|
|
46
|
+
background-color: rgba(var(--danger-rgb), 0.1);
|
|
47
|
+
}
|
|
48
|
+
.ar-button-core.outlined.danger.border-style-none:not(.disabled):active::before {
|
|
49
|
+
background-color: rgba(var(--danger-rgb), 0.2);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.ar-button-core.outlined.information.border-style-none:not(.disabled):hover::before {
|
|
53
|
+
background-color: rgba(var(--information-rgb), 0.1);
|
|
54
|
+
}
|
|
55
|
+
.ar-button-core.outlined.information.border-style-none:not(.disabled):active::before {
|
|
56
|
+
background-color: rgba(var(--information-rgb), 0.2);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.ar-button-core.outlined.dark.border-style-none:not(.disabled):hover::before {
|
|
60
|
+
background-color: rgba(var(--dark-rgb), 0.1);
|
|
61
|
+
}
|
|
62
|
+
.ar-button-core.outlined.dark.border-style-none:not(.disabled):active::before {
|
|
63
|
+
background-color: rgba(var(--dark-rgb), 0.2);
|
|
64
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
@import url("./animation.css");
|
|
2
|
+
@import url("./border.css");
|
|
3
|
+
|
|
4
|
+
.ar-button-core.outlined {
|
|
5
|
+
background-color: transparent;
|
|
6
|
+
border-width: 1px;
|
|
7
|
+
border-color: transparent;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.ar-button-core.outlined.disabled {
|
|
11
|
+
border-color: var(--gray-500);
|
|
12
|
+
color: var(--gray-500);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.ar-button-core.outlined:not(.disabled).primary {
|
|
16
|
+
border-color: var(--primary);
|
|
17
|
+
color: var(--primary);
|
|
18
|
+
}
|
|
19
|
+
.ar-button-core.outlined:not(.disabled).primary.active {
|
|
20
|
+
/* Sırasıyla; Ad, Süre, Hız, Gecikme Süresi, Tekrar Sayısı, Yön, Bitiş Süreci */
|
|
21
|
+
animation: outlined-primary-active-animation ease-in-out 750ms 0s 1 normal both;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.ar-button-core.outlined:not(.disabled).secondary {
|
|
25
|
+
border-color: var(--secondary);
|
|
26
|
+
color: var(--secondary);
|
|
27
|
+
}
|
|
28
|
+
.ar-button-core.outlined:not(.disabled).secondary.active {
|
|
29
|
+
/* Sırasıyla; Ad, Süre, Hız, Gecikme Süresi, Tekrar Sayısı, Yön, Bitiş Süreci */
|
|
30
|
+
animation: outlined-secondary-active-animation ease-in-out 750ms 0s 1 normal both;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.ar-button-core.outlined:not(.disabled).success {
|
|
34
|
+
border-color: var(--success);
|
|
35
|
+
color: var(--success);
|
|
36
|
+
}
|
|
37
|
+
.ar-button-core.outlined:not(.disabled).success.active {
|
|
38
|
+
/* Sırasıyla; Ad, Süre, Hız, Gecikme Süresi, Tekrar Sayısı, Yön, Bitiş Süreci */
|
|
39
|
+
animation: outlined-success-active-animation ease-in-out 750ms 0s 1 normal both;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.ar-button-core.outlined:not(.disabled).warning {
|
|
43
|
+
border-color: var(--warning);
|
|
44
|
+
color: var(--warning);
|
|
45
|
+
}
|
|
46
|
+
.ar-button-core.outlined:not(.disabled).warning.active {
|
|
47
|
+
/* Sırasıyla; Ad, Süre, Hız, Gecikme Süresi, Tekrar Sayısı, Yön, Bitiş Süreci */
|
|
48
|
+
animation: outlined-warning-active-animation ease-in-out 750ms 0s 1 normal both;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.ar-button-core.outlined:not(.disabled).danger {
|
|
52
|
+
border-color: var(--danger);
|
|
53
|
+
color: var(--danger);
|
|
54
|
+
}
|
|
55
|
+
.ar-button-core.outlined:not(.disabled).danger.active {
|
|
56
|
+
/* Sırasıyla; Ad, Süre, Hız, Gecikme Süresi, Tekrar Sayısı, Yön, Bitiş Süreci */
|
|
57
|
+
animation: outlined-danger-active-animation ease-in-out 750ms 0s 1 normal both;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.ar-button-core.outlined:not(.disabled).information {
|
|
61
|
+
border-color: var(--information);
|
|
62
|
+
color: var(--information);
|
|
63
|
+
}
|
|
64
|
+
.ar-button-core.outlined:not(.disabled).information.active {
|
|
65
|
+
/* Sırasıyla; Ad, Süre, Hız, Gecikme Süresi, Tekrar Sayısı, Yön, Bitiş Süreci */
|
|
66
|
+
animation: outlined-information-active-animation ease-in-out 750ms 0s 1 normal both;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.ar-button-core.outlined:not(.disabled).light {
|
|
70
|
+
border-color: var(--light);
|
|
71
|
+
color: var(--gray-500);
|
|
72
|
+
}
|
|
73
|
+
.ar-button-core.outlined:not(.disabled).light.active {
|
|
74
|
+
/* Sırasıyla; Ad, Süre, Hız, Gecikme Süresi, Tekrar Sayısı, Yön, Bitiş Süreci */
|
|
75
|
+
animation: outlined-light-active-animation ease-in-out 750ms 0s 1 normal both;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.ar-button-core.outlined:not(.disabled).dark {
|
|
79
|
+
border-color: var(--dark);
|
|
80
|
+
color: var(--dark);
|
|
81
|
+
}
|
|
82
|
+
.ar-button-core.outlined:not(.disabled).dark.active {
|
|
83
|
+
/* Sırasıyla; Ad, Süre, Hız, Gecikme Süresi, Tekrar Sayısı, Yön, Bitiş Süreci */
|
|
84
|
+
animation: outlined-dark-active-animation ease-in-out 750ms 0s 1 normal both;
|
|
85
|
+
}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
/* #region General */
|
|
2
|
+
*,
|
|
3
|
+
*::before,
|
|
4
|
+
*::after {
|
|
5
|
+
margin: 0;
|
|
6
|
+
padding: 0;
|
|
7
|
+
box-sizing: border-box;
|
|
8
|
+
list-style-type: none;
|
|
9
|
+
font-size: 0.8rem;
|
|
10
|
+
outline: none;
|
|
11
|
+
letter-spacing: 0.5px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
html {
|
|
15
|
+
font-size: 1rem;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
body {
|
|
19
|
+
background-color: var(--pantone-black);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
a {
|
|
23
|
+
text-decoration: none;
|
|
24
|
+
color: inherit;
|
|
25
|
+
}
|
|
26
|
+
/* #endregion */
|
|
27
|
+
/* General */
|
|
28
|
+
|
|
29
|
+
/* #region Color Palette */
|
|
30
|
+
:root {
|
|
31
|
+
--white: #fff;
|
|
32
|
+
--white-rgb: 255, 255, 255;
|
|
33
|
+
--black: #000000;
|
|
34
|
+
--black-rgb: 0, 0, 0;
|
|
35
|
+
--gray-100: #f8f9fa;
|
|
36
|
+
--gray-200: #e9ecef;
|
|
37
|
+
--gray-300: #dee2e6;
|
|
38
|
+
--gray-400: #ced4da;
|
|
39
|
+
--gray-500: #adb5bd;
|
|
40
|
+
--gray-600: #6c757d;
|
|
41
|
+
--gray-700: #495057;
|
|
42
|
+
--gray-800: #343a40;
|
|
43
|
+
--gray-900: #212529;
|
|
44
|
+
--gray-dark: #343a40;
|
|
45
|
+
--red: #f11a7b;
|
|
46
|
+
--red-rgb: 241, 26, 123;
|
|
47
|
+
--green: #00ff00;
|
|
48
|
+
--green-rgb: 0, 255, 0;
|
|
49
|
+
--blue: #0000ff;
|
|
50
|
+
--blue-rgb: 0, 0, 255;
|
|
51
|
+
|
|
52
|
+
/* ... */
|
|
53
|
+
--primary: #007bff;
|
|
54
|
+
--primary-active: #005abb;
|
|
55
|
+
--primary-rgb: 0, 123, 255;
|
|
56
|
+
/* --primary-font: #004a99; */
|
|
57
|
+
--secondary: #6c757d;
|
|
58
|
+
--secondary-active: #495055;
|
|
59
|
+
--secondary-rgb: 108, 117, 125;
|
|
60
|
+
/* --secondary-font: #40454a; */
|
|
61
|
+
--success: #28a745;
|
|
62
|
+
--success-active: #1c7a32;
|
|
63
|
+
--success-rgb: 40, 167, 69;
|
|
64
|
+
/* --success-font: #176027; */
|
|
65
|
+
--warning: #ffc107;
|
|
66
|
+
--warning-active: #cf9c05;
|
|
67
|
+
--warning-rgb: 255, 193, 7;
|
|
68
|
+
--warning-font-color: #463500;
|
|
69
|
+
--danger: #dc3545;
|
|
70
|
+
--danger-active: #af2936;
|
|
71
|
+
--danger-rgb: 220, 53, 69;
|
|
72
|
+
/* --danger-font: #a22531; */
|
|
73
|
+
--information: #17a2b8;
|
|
74
|
+
--information-active: #107c8c;
|
|
75
|
+
--information-rgb: 23, 162, 184;
|
|
76
|
+
/* --info-font: #0b5460; */
|
|
77
|
+
--light: #f8f9fa;
|
|
78
|
+
--light-active: #a0a1a3;
|
|
79
|
+
--light-rgb: 248, 249, 250;
|
|
80
|
+
/* --light-font: var(--gray-300); */
|
|
81
|
+
--dark: #343a40;
|
|
82
|
+
--dark-active: #23272b;
|
|
83
|
+
--dark-rgb: 52, 58, 64;
|
|
84
|
+
/* --dark-font: var(--gray-800); */
|
|
85
|
+
}
|
|
86
|
+
/* #endregion */
|
|
87
|
+
/* Color Palette */
|
|
88
|
+
|
|
89
|
+
/* #region Border */
|
|
90
|
+
:root {
|
|
91
|
+
/* Border */
|
|
92
|
+
|
|
93
|
+
/* Border Radius */
|
|
94
|
+
--border-radius: 0.465rem;
|
|
95
|
+
--border-radius-sm: 0.25rem;
|
|
96
|
+
--border-radius-lg: 0.5rem;
|
|
97
|
+
--border-radius-xl: 1rem;
|
|
98
|
+
--border-radius-xxl: 2rem;
|
|
99
|
+
--border-radius-pill: 50rem;
|
|
100
|
+
}
|
|
101
|
+
/* #endregion */
|
|
102
|
+
/* Border */
|
|
103
|
+
|
|
104
|
+
/* #region Box Shadow */
|
|
105
|
+
:root {
|
|
106
|
+
--box-shadow: 0 0.5rem 1.5rem -0.5rem var(--gray-500);
|
|
107
|
+
}
|
|
108
|
+
/* #endregion */
|
|
109
|
+
/* Box Shadow */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type Colors = "primary" | "secondary" | "success" | "danger" | "warning" | "information" | "light" | "dark";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "ar-design",
|
|
3
|
+
"version": "0.0.0",
|
|
4
|
+
"main": "./dist/index.js",
|
|
5
|
+
"module": "./dist/index.js",
|
|
6
|
+
"types": "./dist/index.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist"
|
|
9
|
+
],
|
|
10
|
+
"scripts": {
|
|
11
|
+
"build": "rm -rf dist/ && npm run build:esm && npm run build:post-mac",
|
|
12
|
+
"build:esm": "tsc",
|
|
13
|
+
"build:cjs": "tsc --module commonjs --outdir dist/cjs",
|
|
14
|
+
"build:post-mac": "mkdir -p dist/libs/styles && cp -r ./src/libs/styles dist/libs/"
|
|
15
|
+
},
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": "https://github.com/kaancetin-f/ar-design.git"
|
|
19
|
+
},
|
|
20
|
+
"keywords": [
|
|
21
|
+
"react",
|
|
22
|
+
"next",
|
|
23
|
+
"ui",
|
|
24
|
+
"desing"
|
|
25
|
+
],
|
|
26
|
+
"author": "Kaan ÇETİN",
|
|
27
|
+
"license": "MIT",
|
|
28
|
+
"description": "AR Design...",
|
|
29
|
+
"peerDependencies": {
|
|
30
|
+
"react": "^18.3.1",
|
|
31
|
+
"react-dom": "^18.3.1"
|
|
32
|
+
},
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"@types/node": "^22.2.0",
|
|
35
|
+
"@types/react": "^18.3.3",
|
|
36
|
+
"@types/react-dom": "^18.3.0",
|
|
37
|
+
"ts-node": "^10.9.2",
|
|
38
|
+
"tslib": "^2.6.3",
|
|
39
|
+
"typescript": "^5.5.4"
|
|
40
|
+
}
|
|
41
|
+
}
|