ar-design 0.1.7 → 0.1.8
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/dist/assest/css/css/form/button/button.css +1 -0
- package/dist/assest/css/css/form/input/core/border.css +6 -0
- package/dist/assest/css/css/form/input/input.css +5 -0
- package/dist/assest/css/form/button/button.css +1 -0
- package/dist/assest/css/form/input/core/border.css +6 -0
- package/dist/assest/css/form/input/input.css +5 -0
- package/dist/components/{divider → data-display/divider}/index.d.ts +1 -1
- package/dist/components/{divider → data-display/divider}/index.js +1 -1
- package/dist/components/{syntax-highlighter → data-display/syntax-highlighter}/index.d.ts +1 -1
- package/dist/components/{syntax-highlighter → data-display/syntax-highlighter}/index.js +2 -2
- package/dist/components/{typography → data-display/typography}/index.d.ts +1 -1
- package/dist/components/{typography → data-display/typography}/index.js +1 -1
- package/dist/components/{typography → data-display/typography}/paragraph/Types.d.ts +1 -1
- package/dist/components/{alert → feedback/alert}/Types.d.ts +1 -1
- package/dist/components/{alert → feedback/alert}/index.d.ts +1 -1
- package/dist/components/{alert → feedback/alert}/index.js +1 -1
- package/dist/components/form/button-group/index.js +1 -1
- package/dist/components/form/input/index.js +4 -1
- package/dist/components/layout/Aside.js +1 -1
- package/dist/components/layout/Header.js +1 -1
- package/dist/components/layout/Types.d.ts +1 -1
- package/dist/components/{grid-system → layout/grid-system}/index.d.ts +1 -1
- package/dist/components/{grid-system → layout/grid-system}/index.js +1 -1
- package/dist/components/{menu → navigation/menu}/index.d.ts +1 -1
- package/dist/components/{menu → navigation/menu}/index.js +2 -2
- package/dist/index.d.ts +7 -7
- package/dist/index.js +6 -6
- package/package.json +1 -1
- /package/dist/assest/css/css/{divider → data-display/divider}/divider.css +0 -0
- /package/dist/assest/css/css/{syntax-highlighter → data-display/syntax-highlighter}/core/jsx.template.css +0 -0
- /package/dist/assest/css/css/{syntax-highlighter → data-display/syntax-highlighter}/syntax-highlighter.css +0 -0
- /package/dist/assest/css/css/{typography → data-display/typography}/paragraph/align.css +0 -0
- /package/dist/assest/css/css/{typography → data-display/typography}/paragraph/color.css +0 -0
- /package/dist/assest/css/css/{typography → data-display/typography}/paragraph/core.css +0 -0
- /package/dist/assest/css/css/{typography → data-display/typography}/title/align.css +0 -0
- /package/dist/assest/css/css/{typography → data-display/typography}/title/color.css +0 -0
- /package/dist/assest/css/css/{typography → data-display/typography}/title/core.css +0 -0
- /package/dist/assest/css/css/{typography → data-display/typography}/title/size.css +0 -0
- /package/dist/assest/css/css/{typography → data-display/typography}/typography.css +0 -0
- /package/dist/assest/css/{alert → css/feedback/alert}/alert.css +0 -0
- /package/dist/assest/css/{alert → css/feedback/alert}/core/border.css +0 -0
- /package/dist/assest/css/{alert → css/feedback/alert}/core/color.css +0 -0
- /package/dist/assest/css/css/{grid-system → layout/grid-system}/column/large.css +0 -0
- /package/dist/assest/css/css/{grid-system → layout/grid-system}/column/medium.css +0 -0
- /package/dist/assest/css/css/{grid-system → layout/grid-system}/column/small.css +0 -0
- /package/dist/assest/css/css/{grid-system → layout/grid-system}/column/x-large.css +0 -0
- /package/dist/assest/css/css/{grid-system → layout/grid-system}/column/x-small.css +0 -0
- /package/dist/assest/css/css/{grid-system → layout/grid-system}/grid-system.css +0 -0
- /package/dist/assest/css/css/{grid-system → layout/grid-system}/row/core.css +0 -0
- /package/dist/assest/css/css/{menu → navigation/menu}/core/open-or-close.css +0 -0
- /package/dist/assest/css/css/{menu → navigation/menu}/core/selected.css +0 -0
- /package/dist/assest/css/css/{menu → navigation/menu}/menu.css +0 -0
- /package/dist/assest/css/css/{menu → navigation/menu}/variant/horizontal.css +0 -0
- /package/dist/assest/css/css/{menu → navigation/menu}/variant/vertical.css +0 -0
- /package/dist/assest/css/{divider → data-display/divider}/divider.css +0 -0
- /package/dist/assest/css/{syntax-highlighter → data-display/syntax-highlighter}/core/jsx.template.css +0 -0
- /package/dist/assest/css/{syntax-highlighter → data-display/syntax-highlighter}/syntax-highlighter.css +0 -0
- /package/dist/assest/css/{typography → data-display/typography}/paragraph/align.css +0 -0
- /package/dist/assest/css/{typography → data-display/typography}/paragraph/color.css +0 -0
- /package/dist/assest/css/{typography → data-display/typography}/paragraph/core.css +0 -0
- /package/dist/assest/css/{typography → data-display/typography}/title/align.css +0 -0
- /package/dist/assest/css/{typography → data-display/typography}/title/color.css +0 -0
- /package/dist/assest/css/{typography → data-display/typography}/title/core.css +0 -0
- /package/dist/assest/css/{typography → data-display/typography}/title/size.css +0 -0
- /package/dist/assest/css/{typography → data-display/typography}/typography.css +0 -0
- /package/dist/assest/css/{css → feedback}/alert/alert.css +0 -0
- /package/dist/assest/css/{css → feedback}/alert/core/border.css +0 -0
- /package/dist/assest/css/{css → feedback}/alert/core/color.css +0 -0
- /package/dist/assest/css/{grid-system → layout/grid-system}/column/large.css +0 -0
- /package/dist/assest/css/{grid-system → layout/grid-system}/column/medium.css +0 -0
- /package/dist/assest/css/{grid-system → layout/grid-system}/column/small.css +0 -0
- /package/dist/assest/css/{grid-system → layout/grid-system}/column/x-large.css +0 -0
- /package/dist/assest/css/{grid-system → layout/grid-system}/column/x-small.css +0 -0
- /package/dist/assest/css/{grid-system → layout/grid-system}/grid-system.css +0 -0
- /package/dist/assest/css/{grid-system → layout/grid-system}/row/core.css +0 -0
- /package/dist/assest/css/{menu → navigation/menu}/core/open-or-close.css +0 -0
- /package/dist/assest/css/{menu → navigation/menu}/core/selected.css +0 -0
- /package/dist/assest/css/{menu → navigation/menu}/menu.css +0 -0
- /package/dist/assest/css/{menu → navigation/menu}/variant/horizontal.css +0 -0
- /package/dist/assest/css/{menu → navigation/menu}/variant/vertical.css +0 -0
- /package/dist/components/{syntax-highlighter → data-display/syntax-highlighter}/classes/Compiler.d.ts +0 -0
- /package/dist/components/{syntax-highlighter → data-display/syntax-highlighter}/classes/Compiler.js +0 -0
- /package/dist/components/{syntax-highlighter → data-display/syntax-highlighter}/classes/Parser.d.ts +0 -0
- /package/dist/components/{syntax-highlighter → data-display/syntax-highlighter}/classes/Parser.js +0 -0
- /package/dist/components/{typography → data-display/typography}/paragraph/Paragraph.d.ts +0 -0
- /package/dist/components/{typography → data-display/typography}/paragraph/Paragraph.js +0 -0
- /package/dist/components/{alert → data-display/typography/paragraph}/Types.js +0 -0
- /package/dist/components/{typography → data-display/typography}/title/Title.d.ts +0 -0
- /package/dist/components/{typography → data-display/typography}/title/Title.js +0 -0
- /package/dist/components/{typography → data-display/typography}/title/Types.d.ts +0 -0
- /package/dist/components/{grid-system/column → data-display/typography/title}/Types.js +0 -0
- /package/dist/components/{grid-system/row → feedback/alert}/Types.js +0 -0
- /package/dist/components/{grid-system → layout/grid-system}/column/Column.d.ts +0 -0
- /package/dist/components/{grid-system → layout/grid-system}/column/Column.js +0 -0
- /package/dist/components/{grid-system → layout/grid-system}/column/Types.d.ts +0 -0
- /package/dist/components/{menu → layout/grid-system/column}/Types.js +0 -0
- /package/dist/components/{grid-system → layout/grid-system}/row/Row.d.ts +0 -0
- /package/dist/components/{grid-system → layout/grid-system}/row/Row.js +0 -0
- /package/dist/components/{grid-system → layout/grid-system}/row/Types.d.ts +0 -0
- /package/dist/components/{typography/paragraph → layout/grid-system/row}/Types.js +0 -0
- /package/dist/components/{menu → navigation/menu}/Types.d.ts +0 -0
- /package/dist/components/{typography/title → navigation/menu}/Types.js +0 -0
|
@@ -15,6 +15,12 @@
|
|
|
15
15
|
border-radius: var(--border-radius-pill);
|
|
16
16
|
} */
|
|
17
17
|
|
|
18
|
+
.ar-input-wrapper:has(> .ar-button:is(.filled, .border-style-solid, .border-style-dashed))
|
|
19
|
+
> .ar-input
|
|
20
|
+
> input {
|
|
21
|
+
border-right-color: transparent !important;
|
|
22
|
+
}
|
|
23
|
+
|
|
18
24
|
/* Addon */
|
|
19
25
|
.ar-input-wrapper:is(.addon) > .addon-before.border-radius-sm {
|
|
20
26
|
border-top-left-radius: var(--border-radius-sm);
|
|
@@ -21,6 +21,11 @@
|
|
|
21
21
|
box-sizing: border-box;
|
|
22
22
|
transition: background 250ms, border 250ms, box-shadow 250ms ease-in-out;
|
|
23
23
|
}
|
|
24
|
+
.ar-input-wrapper > .ar-input > input.disabled {
|
|
25
|
+
background-color: var(--gray-100);
|
|
26
|
+
border-color: var(--gray-500);
|
|
27
|
+
cursor: no-drop;
|
|
28
|
+
}
|
|
24
29
|
|
|
25
30
|
/* Core Css */
|
|
26
31
|
@import url("./core/icon.css");
|
|
@@ -15,6 +15,12 @@
|
|
|
15
15
|
border-radius: var(--border-radius-pill);
|
|
16
16
|
} */
|
|
17
17
|
|
|
18
|
+
.ar-input-wrapper:has(> .ar-button:is(.filled, .border-style-solid, .border-style-dashed))
|
|
19
|
+
> .ar-input
|
|
20
|
+
> input {
|
|
21
|
+
border-right-color: transparent !important;
|
|
22
|
+
}
|
|
23
|
+
|
|
18
24
|
/* Addon */
|
|
19
25
|
.ar-input-wrapper:is(.addon) > .addon-before.border-radius-sm {
|
|
20
26
|
border-top-left-radius: var(--border-radius-sm);
|
|
@@ -21,6 +21,11 @@
|
|
|
21
21
|
box-sizing: border-box;
|
|
22
22
|
transition: background 250ms, border 250ms, box-shadow 250ms ease-in-out;
|
|
23
23
|
}
|
|
24
|
+
.ar-input-wrapper > .ar-input > input.disabled {
|
|
25
|
+
background-color: var(--gray-100);
|
|
26
|
+
border-color: var(--gray-500);
|
|
27
|
+
cursor: no-drop;
|
|
28
|
+
}
|
|
24
29
|
|
|
25
30
|
/* Core Css */
|
|
26
31
|
@import url("./core/icon.css");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import "
|
|
2
|
+
import "../../../assest/css/data-display/divider/divider.css";
|
|
3
3
|
const Divider = () => React.createElement("hr", { className: "ar-divider" });
|
|
4
4
|
Divider.displayName = "Divider";
|
|
5
5
|
export default Divider;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import "
|
|
2
|
+
import "../../../assest/css/data-display/syntax-highlighter/syntax-highlighter.css";
|
|
3
3
|
declare const SyntaxHighlighter: React.FC<{
|
|
4
4
|
children: React.ReactNode;
|
|
5
5
|
position?: "left" | "center" | "right";
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import React, { useEffect, useRef, useState } from "react";
|
|
3
3
|
import Parser from "./classes/Parser";
|
|
4
4
|
import Compiler from "./classes/Compiler";
|
|
5
|
-
import "
|
|
6
|
-
import Button from "
|
|
5
|
+
import "../../../assest/css/data-display/syntax-highlighter/syntax-highlighter.css";
|
|
6
|
+
import Button from "../../form/button";
|
|
7
7
|
const SyntaxHighlighter = ({ children, position = "left" }) => {
|
|
8
8
|
// refs
|
|
9
9
|
const _div = useRef(null);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "
|
|
1
|
+
import "../../../assest/css/data-display/typography/typography.css";
|
|
2
2
|
declare const Typography: {
|
|
3
3
|
Title: import("react").FC<import("./title/Types").Props>;
|
|
4
4
|
Paragraph: import("react").FC<import("./paragraph/Types").Props>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Colors } from "
|
|
1
|
+
import { Colors } from "../../../../libs/types/Colors";
|
|
2
2
|
export type ParagraphColors = "gray-100" | "gray-200" | "gray-300" | "gray-400" | "gray-500" | "gray-600" | "gray-700" | "gray-800" | "gray-900";
|
|
3
3
|
export type Props = {
|
|
4
4
|
children: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import React, { useRef } from "react";
|
|
3
|
-
import "
|
|
3
|
+
import "../../../assest/css/feedback/alert/alert.css";
|
|
4
4
|
const Alert = ({ message, type, border = true, emphasize }) => {
|
|
5
5
|
// refs
|
|
6
6
|
let _className = useRef("ar-alert").current;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import React, { useEffect, useState } from "react";
|
|
3
3
|
import "../../../assest/css/form/button-group/button-group.css";
|
|
4
4
|
import Button from "../button";
|
|
5
|
-
import Alert from "../../alert";
|
|
5
|
+
import Alert from "../../feedback/alert";
|
|
6
6
|
const ButtonGroup = ({ children }) => {
|
|
7
7
|
// states
|
|
8
8
|
const [error, setError] = useState(null);
|
|
@@ -36,6 +36,9 @@ const Input = ({ variant = "outlined", status = "light", icon, border, button, a
|
|
|
36
36
|
React.createElement("div", { className: _inputWrapperClassName },
|
|
37
37
|
icon?.element && React.createElement("span", { className: "icon-element" }, icon.element),
|
|
38
38
|
React.createElement("input", { ...attributes, className: _inputClassName, onChange: (event) => {
|
|
39
|
+
// Disabled gelmesi durumunda işlem yapmasına izin verme...
|
|
40
|
+
if (attributes.disabled)
|
|
41
|
+
return;
|
|
39
42
|
(() => {
|
|
40
43
|
if (attributes.onChange) {
|
|
41
44
|
// Mevcut değeri alın
|
|
@@ -50,7 +53,7 @@ const Input = ({ variant = "outlined", status = "light", icon, border, button, a
|
|
|
50
53
|
})();
|
|
51
54
|
} })),
|
|
52
55
|
addon?.after && React.createElement("span", { className: _addonAfterClassName }, addon?.after),
|
|
53
|
-
button && (React.createElement(Button, { ...button, color: status, border: { style: button.border?.style, radius: border?.radius || "sm" } }))));
|
|
56
|
+
button && (React.createElement(Button, { ...button, color: status, border: { style: button.border?.style, radius: border?.radius || "sm" }, disabled: attributes.disabled }))));
|
|
54
57
|
};
|
|
55
58
|
Input.displayName = "Input";
|
|
56
59
|
export default Input;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import React from "react";
|
|
3
|
-
import Menu from "../menu";
|
|
3
|
+
import Menu from "../navigation/menu";
|
|
4
4
|
const Header = ({ logo, menu }) => {
|
|
5
5
|
return (React.createElement("div", { className: "ar-header-with-wrap" },
|
|
6
6
|
typeof logo === "string" ? React.createElement("h1", null, logo) : logo,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import React, { useRef, useState } from "react";
|
|
3
|
-
import
|
|
4
|
-
import "../../
|
|
3
|
+
import "../../../assest/css/navigation/menu/menu.css";
|
|
4
|
+
import Divider from "../../data-display/divider";
|
|
5
5
|
const handleOnClick = (event, item, variant, setSelectedItem, setSelectedMenu) => {
|
|
6
6
|
event.stopPropagation();
|
|
7
7
|
if (variant === "vertical" && item.type === "group")
|
package/dist/index.d.ts
CHANGED
|
@@ -2,14 +2,14 @@ import "./assest/css/ar-core.css";
|
|
|
2
2
|
import Button from "./components/form/button";
|
|
3
3
|
import ButtonGroup from "./components/form/button-group";
|
|
4
4
|
import Input from "./components/form/input";
|
|
5
|
-
import Typography from "./components/typography";
|
|
6
|
-
import Divider from "./components/divider";
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
5
|
+
import Typography from "./components/data-display/typography";
|
|
6
|
+
import Divider from "./components/data-display/divider";
|
|
7
|
+
import SyntaxHighlighter from "./components/data-display/syntax-highlighter";
|
|
8
|
+
import Alert from "./components/feedback/alert";
|
|
9
|
+
import Menu from "./components/navigation/menu";
|
|
10
|
+
import type { MenuProps } from "./components/navigation/menu/Types";
|
|
11
|
+
import Grid from "./components/layout/grid-system";
|
|
11
12
|
import Layout from "./components/layout";
|
|
12
13
|
import useLayout from "./libs/core/application/hooks/useLayout";
|
|
13
|
-
import SyntaxHighlighter from "./components/syntax-highlighter";
|
|
14
14
|
export { Button, ButtonGroup, Input, Typography, Divider, Alert, Menu, Grid, Layout, useLayout, SyntaxHighlighter, };
|
|
15
15
|
export type { MenuProps };
|
package/dist/index.js
CHANGED
|
@@ -4,18 +4,18 @@ import Button from "./components/form/button";
|
|
|
4
4
|
import ButtonGroup from "./components/form/button-group";
|
|
5
5
|
import Input from "./components/form/input";
|
|
6
6
|
// Data Display
|
|
7
|
-
import Typography from "./components/typography";
|
|
8
|
-
import Divider from "./components/divider";
|
|
7
|
+
import Typography from "./components/data-display/typography";
|
|
8
|
+
import Divider from "./components/data-display/divider";
|
|
9
|
+
import SyntaxHighlighter from "./components/data-display/syntax-highlighter";
|
|
9
10
|
// Feedback
|
|
10
|
-
import Alert from "./components/alert";
|
|
11
|
+
import Alert from "./components/feedback/alert";
|
|
11
12
|
// Navigation
|
|
12
|
-
import Menu from "./components/menu";
|
|
13
|
+
import Menu from "./components/navigation/menu";
|
|
13
14
|
// Layout
|
|
14
|
-
import Grid from "./components/grid-system";
|
|
15
|
+
import Grid from "./components/layout/grid-system";
|
|
15
16
|
import Layout from "./components/layout";
|
|
16
17
|
import useLayout from "./libs/core/application/hooks/useLayout";
|
|
17
18
|
// Others
|
|
18
|
-
import SyntaxHighlighter from "./components/syntax-highlighter";
|
|
19
19
|
export {
|
|
20
20
|
// Form Elements
|
|
21
21
|
Button, ButtonGroup, Input,
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/components/{syntax-highlighter → data-display/syntax-highlighter}/classes/Compiler.js
RENAMED
|
File without changes
|
/package/dist/components/{syntax-highlighter → data-display/syntax-highlighter}/classes/Parser.d.ts
RENAMED
|
File without changes
|
/package/dist/components/{syntax-highlighter → data-display/syntax-highlighter}/classes/Parser.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|