ar-design 0.2.61 → 0.2.63

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 (36) hide show
  1. package/dist/components/data-display/card/IProps.d.ts +20 -3
  2. package/dist/components/data-display/chip/IProps.d.ts +11 -2
  3. package/dist/components/data-display/dnd/IProps.d.ts +32 -0
  4. package/dist/components/data-display/grid-system/column/IProps.d.ts +40 -0
  5. package/dist/components/data-display/grid-system/index.d.ts +1 -1
  6. package/dist/components/data-display/grid-system/row/IProps.d.ts +4 -0
  7. package/dist/components/data-display/grid-system/row/Row.d.ts +2 -2
  8. package/dist/components/data-display/table/IProps.d.ts +113 -0
  9. package/dist/components/data-display/tabs/IProps.d.ts +43 -4
  10. package/dist/components/data-display/typography/paragraph/IProps.d.ts +26 -2
  11. package/dist/components/data-display/typography/title/IProps.d.ts +48 -2
  12. package/dist/components/feedback/alert/IProps.d.ts +27 -2
  13. package/dist/components/feedback/modal/IProps.d.ts +29 -5
  14. package/dist/components/feedback/notification/IProps.d.ts +63 -2
  15. package/dist/components/feedback/popover/IProps.d.ts +68 -0
  16. package/dist/components/feedback/progress/IProps.d.ts +30 -0
  17. package/dist/components/feedback/tooltip/IProps.d.ts +25 -0
  18. package/dist/components/form/button/IProps.d.ts +55 -2
  19. package/dist/components/form/checkbox/IProps.d.ts +13 -3
  20. package/dist/components/form/date-picker/Props.d.ts +36 -3
  21. package/dist/components/form/input/IProps.d.ts +31 -4
  22. package/dist/components/form/input-tag/IProps.d.ts +2 -3
  23. package/dist/components/form/radio/IProps.d.ts +24 -3
  24. package/dist/components/form/select/Props.d.ts +118 -7
  25. package/dist/components/form/switch/IProps.d.ts +13 -2
  26. package/dist/components/form/text-editor/IProps.d.ts +85 -4
  27. package/dist/components/form/upload/Props.d.ts +96 -3
  28. package/dist/components/navigation/menu/IProps.d.ts +25 -0
  29. package/dist/components/navigation/pagination/IProps.d.ts +10 -3
  30. package/dist/components/navigation/steps/IProps.d.ts +12 -4
  31. package/dist/libs/types/IGlobalProps.d.ts +91 -45
  32. package/package.json +4 -12
  33. package/dist/components/data-display/grid-system/row/Types.d.ts +0 -4
  34. package/dist/components/data-display/table/_index.d.ts +0 -13
  35. package/dist/components/data-display/table/_index.js +0 -411
  36. /package/dist/components/data-display/grid-system/row/{Types.js → IProps.js} +0 -0
@@ -1,7 +1,24 @@
1
- import React from "react";
2
- import { IChildren, IGlobalProps } from "../../../libs/types/IGlobalProps";
3
- interface IProps extends IGlobalProps, IChildren {
1
+ import { IChildren } from "../../../libs/types/IGlobalProps";
2
+ interface IProps extends IChildren {
3
+ /**
4
+ * Kart başlığı.
5
+ *
6
+ * Örneğin;
7
+ *
8
+ * ```jsx
9
+ * <Card title="Kullanıcı Bilgileri" />
10
+ * ```
11
+ */
4
12
  title?: string;
13
+ /**
14
+ * Kartın sağ üst köşesinde gösterilecek aksiyonlar (buton, menü vb.).
15
+ *
16
+ * Örneğin;
17
+ *
18
+ * ```jsx
19
+ * <Card actions={<button>Düzenle</button>} />
20
+ * ```
21
+ */
5
22
  actions?: React.JSX.Element;
6
23
  }
7
24
  export default IProps;
@@ -1,5 +1,14 @@
1
- import { IGlobalProps } from "../../../libs/types/IGlobalProps";
2
- interface IProps extends IGlobalProps {
1
+ import { IBorder, IIcon, IStatus, IVariant } from "../../../libs/types/IGlobalProps";
2
+ interface IProps extends IVariant, IStatus, IBorder, IIcon {
3
+ /**
4
+ * Bileşende gösterilecek metin.
5
+ *
6
+ * Örneğin;
7
+ *
8
+ * ```jsx
9
+ * <Chip text="..." />
10
+ * ```
11
+ */
3
12
  text: string;
4
13
  }
5
14
  export default IProps;
@@ -1,7 +1,39 @@
1
1
  import React from "react";
2
2
  interface IProps<T> {
3
+ /**
4
+ * Sürüklenebilir liste verisi.
5
+ *
6
+ * Örneğin;
7
+ *
8
+ * ```jsx
9
+ * <DnD data={[{ id: 1, ... }, { id: 2, ... }]} />
10
+ * ```
11
+ */
3
12
  data: T[];
13
+ /**
14
+ * Her bir öğenin nasıl render edileceğini tanımlar.
15
+ *
16
+ * - `item`: Mevcut öğe.
17
+ * - `index`: Öğenin listedeki sırası.
18
+ *
19
+ * Örneğin;
20
+ *
21
+ * ```jsx
22
+ * <DnD renderItem={(item) => <div>{item.label}</div>} />
23
+ * ```
24
+ */
4
25
  renderItem: (item: T, index: number) => React.JSX.Element;
26
+ /**
27
+ * Sıralama değiştiğinde tetiklenen olay.
28
+ *
29
+ * - `data`: Yeni sıralanmış öğeler.
30
+ *
31
+ * Örneğin;
32
+ *
33
+ * ```jsx
34
+ * <DnD onChange={(data) => console.log("Yeni sıra:", data)} />
35
+ * ```
36
+ */
5
37
  onChange: (data: T[]) => void;
6
38
  }
7
39
  export default IProps;
@@ -1,6 +1,33 @@
1
1
  type Column = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
2
2
  interface IProps {
3
+ /**
4
+ * Kolon içinde gösterilecek içerik.
5
+ *
6
+ * Örneğin;
7
+ *
8
+ * ```jsx
9
+ * <Column>
10
+ * <p>İçerik</p>
11
+ * </Column>
12
+ * ```
13
+ */
3
14
  children: React.ReactNode;
15
+ /**
16
+ * Kolon genişliğini belirler.
17
+ *
18
+ * - Sayı olarak verilirse tüm cihazlarda aynı genişlik uygulanır.
19
+ * - Obje olarak verilirse, farklı ekran boyutlarına göre özel kolon genişlikleri tanımlanabilir.
20
+ *
21
+ * Örneğin;
22
+ *
23
+ * ```jsx
24
+ * <Column size={6}>...</Column>
25
+ * ```
26
+ * veya
27
+ * ```jsx
28
+ * <Column size={{ xl: 3, md: 6, xs: 12 }}>...</Column>
29
+ * ```
30
+ */
4
31
  size?: {
5
32
  xl?: Column;
6
33
  lg?: Column;
@@ -8,6 +35,19 @@ interface IProps {
8
35
  sm?: Column;
9
36
  xs?: Column;
10
37
  } | number;
38
+ /**
39
+ * İçeriğin yatay hizalamasını belirler.
40
+ *
41
+ * - `left`: İçerik sola hizalanır.
42
+ * - `center`: İçerik yatayda ortalanır.
43
+ * - `right`: İçerik sağa hizalanır.
44
+ *
45
+ * Örneğin;
46
+ *
47
+ * ```jsx
48
+ * <Column align="center">...</Column>
49
+ * ```
50
+ */
11
51
  align?: "left" | "center" | "right";
12
52
  }
13
53
  export default IProps;
@@ -4,7 +4,7 @@ declare const Grid: {
4
4
  children: import("react").ReactNode;
5
5
  direction?: "flex-start" | "center" | "flex-end";
6
6
  }>;
7
- Row: import("react").FC<import("./row/Types").Props>;
7
+ Row: import("react").FC<import("./row/IProps").default>;
8
8
  Column: import("react").FC<import("./column/IProps").default>;
9
9
  };
10
10
  export default Grid;
@@ -0,0 +1,4 @@
1
+ import { IChildren } from "../../../../libs/types/IGlobalProps";
2
+ interface IProps extends IChildren {
3
+ }
4
+ export default IProps;
@@ -1,4 +1,4 @@
1
1
  import React from "react";
2
- import { Props } from "./Types";
3
- declare const Row: React.FC<Props>;
2
+ import IProps from "./IProps";
3
+ declare const Row: React.FC<IProps>;
4
4
  export default Row;
@@ -4,52 +4,165 @@ import { IChildren } from "../../../libs/types/IGlobalProps";
4
4
  import { FilterOperator } from "../../../libs/infrastructure/shared/Enums";
5
5
  export type Operator = "Contains" | "DoesNotContains" | "Equals" | "DoesNotEquals" | "BeginsWith" | "EndsWith" | "Blank" | "NotBlank";
6
6
  export type FilterValue = {
7
+ /**
8
+ * Filtre değeri olabilir: string, number veya boolean.
9
+ */
7
10
  value: string | number | boolean;
11
+ /**
12
+ * Uygulanacak filtre operatörü.
13
+ */
8
14
  operator: FilterOperator;
9
15
  };
10
16
  export type SearchedParam = {
11
17
  [key: string]: FilterValue | FilterValue[];
12
18
  };
13
19
  export type Config = {
20
+ /**
21
+ * Verilerin sunucu tarafında mı işlendiğini belirtir.
22
+ */
14
23
  isServerSide?: boolean;
24
+ /**
25
+ * Tablo içinde arama özelliğinin aktif olup olmadığı.
26
+ */
15
27
  isSearchable?: boolean;
28
+ /**
29
+ * Kaydırma özelliği ve maksimum yüksekliği.
30
+ */
16
31
  scroll?: {
32
+ /**
33
+ * Maksimum tablo yüksekliği (piksel cinsinden).
34
+ */
17
35
  maxHeight: number;
18
36
  };
37
+ /**
38
+ * Alt satır (subrow) özellikleri.
39
+ */
19
40
  subrow?: {
41
+ /**
42
+ * Alt satırın otomatik açılıp açılmayacağı.
43
+ */
20
44
  openAutomatically?: boolean;
45
+ /**
46
+ * Alt satırı açmak için seçici (CSS selector) tanımı.
47
+ */
21
48
  selector?: string;
49
+ /**
50
+ * Alt satır açma butonunun gösterilip gösterilmeyeceği.
51
+ */
22
52
  button?: boolean;
23
53
  };
24
54
  };
25
55
  type ImportActionType = {
56
+ /**
57
+ * Import butonunun üzerine gelindiğinde gösterilecek açıklayıcı metin.
58
+ */
26
59
  tooltip: string;
60
+ /**
61
+ * Kabul edilen dosya türleri.
62
+ */
27
63
  allowedTypes?: AllowedTypes[];
64
+ /**
65
+ * Butonun önünde gösterilecek içerik.
66
+ */
28
67
  prefixItem?: React.ReactNode;
68
+ /**
69
+ * Butonun arkasında gösterilecek içerik.
70
+ */
29
71
  suffixItem?: React.ReactNode;
72
+ /**
73
+ * Dosya import işlemi tetiklendiğinde çağrılan fonksiyon.
74
+ *
75
+ * @param formData - Dosyaları içeren FormData nesnesi (undefined olabilir).
76
+ * @param files - Seçilen dosyalar dizisi.
77
+ */
30
78
  onClick: (formData: FormData | undefined, files: File[]) => void;
31
79
  };
32
80
  type CreateActionType = {
81
+ /**
82
+ * Create butonunun üzerine gelindiğinde gösterilecek açıklayıcı metin.
83
+ */
33
84
  tooltip: string;
85
+ /**
86
+ * Butona tıklanıldığında tetiklenen fonksiyon.
87
+ */
34
88
  onClick: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
35
89
  };
36
90
  interface IProps<T> extends IChildren {
91
+ /**
92
+ * Tablo başlığı.
93
+ *
94
+ * Örneğin;
95
+ *
96
+ * ```jsx
97
+ * <Table title="..." />
98
+ * ```
99
+ */
37
100
  title?: string;
101
+ /**
102
+ * Tabloya ait açıklama veya alt metin.
103
+ */
38
104
  description?: string;
105
+ /**
106
+ * Tabloya verilecek veri dizisi.
107
+ */
39
108
  data: T[];
109
+ /**
110
+ * Tablo kolonlarının tanımı.
111
+ */
40
112
  columns: TableColumnType<T>[];
113
+ /**
114
+ * Tablo üzerindeki eylem butonları.
115
+ */
41
116
  actions?: {
117
+ /**
118
+ * Dosya import işlemi için buton ayarları.
119
+ */
42
120
  import?: ImportActionType;
121
+ /**
122
+ * Yeni kayıt oluşturma butonu ayarları.
123
+ */
43
124
  create?: CreateActionType;
44
125
  };
126
+ /**
127
+ * Seçili satırlar değiştiğinde çağrılan fonksiyon.
128
+ *
129
+ * @param selectionItems - Seçilen satırların dizisi.
130
+ */
45
131
  selections?: (selectionItems: T[]) => void;
132
+ /**
133
+ * Daha önce seçilmiş satırlar.
134
+ */
46
135
  previousSelections?: T[];
136
+ /**
137
+ * Arama parametreleri ve sorgu değiştiğinde çağrılan fonksiyon.
138
+ *
139
+ * @param params - Arama parametreleri veya null.
140
+ * @param query - Arama sorgu metni.
141
+ * @param operator - Kullanılan filtre operatörü.
142
+ */
47
143
  searchedParams?: (params: SearchedParam | null, query: string, operator: FilterOperator) => void;
144
+ /**
145
+ * Sayfalama ayarları.
146
+ */
48
147
  pagination?: {
148
+ /**
149
+ * Toplam kayıt sayısı.
150
+ */
49
151
  totalRecords: number;
152
+ /**
153
+ * Sayfa başına gösterilecek kayıt sayısı.
154
+ */
50
155
  perPage: number;
156
+ /**
157
+ * Sayfa değiştirildiğinde tetiklenen fonksiyon.
158
+ *
159
+ * @param currentPage - Yeni sayfa numarası.
160
+ */
51
161
  onChange?: (currentPage: number) => void;
52
162
  };
163
+ /**
164
+ * Tablo yapılandırma ayarları.
165
+ */
53
166
  config?: Config;
54
167
  }
55
168
  export default IProps;
@@ -1,15 +1,54 @@
1
1
  import { TabProps } from "../../../libs/types";
2
- /**
3
- * Stepper component props
4
- */
5
2
  interface IProps {
6
3
  /**
7
4
  * Tab'ları temsil eden dizi.
8
- * Her bir `Tab için gerekli özellikler `TabProps` tipinde olmalıdır.
5
+ * Her bir eleman `TabProps` tipinde olmalıdır.
6
+ *
7
+ * Örneğin;
8
+ *
9
+ * ```jsx
10
+ * <Component
11
+ * tabs={[
12
+ * { title: "Ana Sayfa", content: <HomePage />, config: { canBeClosed: false } },
13
+ * { title: "Profil", content: <Profile />, config: { canBeClosed: true } },
14
+ * ]}
15
+ * />
16
+ * ```
9
17
  */
10
18
  tabs: TabProps[];
19
+ /**
20
+ * Aktif olarak seçili olan tab'ın indeksi.
21
+ *
22
+ * Örneğin;
23
+ *
24
+ * ```jsx
25
+ * <Tabs activeTab={0} />
26
+ * ```
27
+ */
11
28
  activeTab?: number;
29
+ /**
30
+ * Tab değiştirildiğinde çağrılan fonksiyon.
31
+ *
32
+ * @param currentTab - Yeni seçilen tab'ın indeksi.
33
+ *
34
+ * Örneğin;
35
+ *
36
+ * ```jsx
37
+ * <Tabs onChange={(currentTab) => console.log(currentTab)} />
38
+ * ```
39
+ */
12
40
  onChange?: (currentTab: number) => void;
41
+ /**
42
+ * Tab kapatıldığında çağrılan fonksiyon.
43
+ *
44
+ * @param closeTab - Kapatılan tab'ın indeksi.
45
+ *
46
+ * Örneğin;
47
+ *
48
+ * ```jsx
49
+ * <Tabs onClose={(closeTab) => console.log(closeTab)} />
50
+ * ```
51
+ */
13
52
  onClose?: (closeTab: number) => void;
14
53
  }
15
54
  export default IProps;
@@ -1,7 +1,31 @@
1
1
  import { ParagraphColors, Status } from "../../../../libs/types";
2
- import { IChildren, IGlobalProps, ISizes } from "../../../../libs/types/IGlobalProps";
3
- interface IProps extends Omit<IGlobalProps, "status">, IChildren, ISizes {
2
+ import { IChildren, ISize, IUpperCase } from "../../../../libs/types/IGlobalProps";
3
+ interface IProps extends IChildren, ISize, IUpperCase {
4
+ /**
5
+ * Paragraf metninin rengi.
6
+ *
7
+ * `ParagraphColors` veya `Status` tipi değer alabilir.
8
+ *
9
+ * Örneğin;
10
+ *
11
+ * ```jsx
12
+ * <Paragraph color="error" />
13
+ * ```
14
+ */
4
15
  color?: ParagraphColors | Status;
16
+ /**
17
+ * Metnin yatay hizalamasını belirler.
18
+ *
19
+ * - `left`: Metin sola hizalanır.
20
+ * - `center`: Metin ortalanır.
21
+ * - `right`: Metin sağa hizalanır.
22
+ *
23
+ * Örneğin;
24
+ *
25
+ * ```jsx
26
+ * <Paragraph align="left" />
27
+ * ```
28
+ */
5
29
  align?: "left" | "center" | "right";
6
30
  }
7
31
  export default IProps;
@@ -1,7 +1,53 @@
1
- import { IChildren, IGlobalProps } from "../../../../libs/types/IGlobalProps";
2
- interface IProps extends Omit<IGlobalProps, "size">, IChildren {
1
+ import { IChildren, IUpperCase } from "../../../../libs/types/IGlobalProps";
2
+ interface IProps extends IChildren, IUpperCase {
3
+ /**
4
+ * Başlığın HTML seviyesini belirler.
5
+ *
6
+ * - `h1` en büyük başlıktır, `h6` ise en küçük.
7
+ * - Semantik anlamda uygun başlık seviyeleri kullanılması önerilir.
8
+ *
9
+ * Örneğin;
10
+ *
11
+ * ```jsx
12
+ * <Title Level="h2" />
13
+ * ```
14
+ */
3
15
  Level: "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
16
+ /**
17
+ * Başlık metninin yatay hizalamasını belirler.
18
+ *
19
+ * - `"left"`: Metin sola hizalanır.
20
+ * - `"center"`: Metin ortalanır.
21
+ * - `"right"`: Metin sağa hizalanır.
22
+ *
23
+ * Örneğin;
24
+ *
25
+ * ```jsx
26
+ * <Title align="center" />
27
+ * ```
28
+ */
4
29
  align?: "left" | "center" | "right";
30
+ /**
31
+ * Başlık metninin boyutunu belirler.
32
+ *
33
+ * Aşağıdaki CSS'e karşılık gelen değerleri destekler:
34
+ * - `"xx-small"` → Çok çok küçük
35
+ * - `"x-small"` → Çok küçük
36
+ * - `"small"` → Küçük
37
+ * - `"medium"` → Orta (varsayılan)
38
+ * - `"large"` → Büyük
39
+ * - `"x-large"` → Çok büyük
40
+ * - `"xx-large"` → Çok çok büyük
41
+ * - `"xxx-large"` → En büyük
42
+ * - `"smaller"` → Ebeveyn öğeye göre daha küçük
43
+ * - `"larger"` → Ebeveyn öğeye göre daha büyük
44
+ *
45
+ * Örneğin;
46
+ *
47
+ * ```jsx
48
+ * <Title size="x-large" />
49
+ * ```
50
+ */
5
51
  size?: "xx-small" | "x-small" | "small" | "medium" | "large" | "x-large" | "xx-large" | "xxx-large" | "smaller" | "larger";
6
52
  }
7
53
  export default IProps;
@@ -1,7 +1,32 @@
1
- import { IChildren, IGlobalProps } from "../../../libs/types/IGlobalProps";
1
+ import { IBorder, IChildren, IStatus } from "../../../libs/types/IGlobalProps";
2
2
  type message = string | message[];
3
- interface IProps extends Omit<IGlobalProps, "variant" | "icon">, IChildren {
3
+ interface IProps extends IChildren, IStatus, IBorder {
4
+ /**
5
+ * Uyarı mesajı içeriğidir.
6
+ *
7
+ * `string` veya özel `message` tipi olabilir.
8
+ *
9
+ * Örneğin;
10
+ *
11
+ * ```jsx
12
+ * <Alert message="İşlem başarıyla tamamlandı." />
13
+ * ```
14
+ */
4
15
  message?: message;
16
+ /**
17
+ * Mesaj içindeki vurgulanacak kelime veya ifadeleri belirtir.
18
+ *
19
+ * Bu kelimeler mesaj içinde bold veya farklı stillerle öne çıkarılabilir.
20
+ *
21
+ * Örneğin;
22
+ *
23
+ * ```jsx
24
+ * <Alert
25
+ * message="Kritik hata oluştu: sunucuya ulaşılamıyor."
26
+ * emphasize={["...", "..."]}
27
+ * />
28
+ * ```
29
+ */
5
30
  emphasize?: string[];
6
31
  }
7
32
  export default IProps;
@@ -1,19 +1,43 @@
1
- import React from "react";
2
- import { IChildren, ISizes } from "../../../libs/types/IGlobalProps";
3
- interface IProps extends IChildren, ISizes {
1
+ import { IChildren, ISize } from "../../../libs/types/IGlobalProps";
2
+ interface IProps extends IChildren, ISize {
4
3
  /**
4
+ * Modal'ın açık olup olmadığını kontrol eden ve değiştiren değerler.
5
5
  *
6
+ * - `get`: Modal açık mı?
7
+ * - `set`: Aç/kapa işlemini yapan fonksiyon.
8
+ *
9
+ * Örneğin;
10
+ *
11
+ * ```jsx
12
+ * const [isOpen, setIsOpen] = useState(false);
13
+ *
14
+ * <Modal open={{ get: isOpen, set: setIsOpen }} />
15
+ * ```
6
16
  */
7
17
  open: {
8
18
  get: boolean;
9
19
  set: React.Dispatch<React.SetStateAction<boolean>>;
10
20
  };
11
21
  /**
12
- * ...
22
+ * Modal başlığı.
23
+ *
24
+ * Örneğin;
25
+ *
26
+ * ```jsx
27
+ * <Modal title="Bilgilendirme" />
28
+ * ```
13
29
  */
14
30
  title?: string;
15
31
  /**
16
- * ...
32
+ * Modal alt içerik alanı (footer).
33
+ *
34
+ * Genellikle buton veya açıklamalar içerir.
35
+ *
36
+ * Örneğin;
37
+ *
38
+ * ```jsx
39
+ * <Modal footer={<button onClick={onClose}>Kapat</button>} />
40
+ * ```
17
41
  */
18
42
  footer?: React.ReactNode;
19
43
  }
@@ -1,9 +1,70 @@
1
- import { Direction } from "../../../libs/core/application/contexts/Notification";
1
+ import { Direction, Status } from "../../../libs/core/application/contexts/Notification";
2
2
  interface IProps {
3
+ /**
4
+ * Bildirim başlığı.
5
+ *
6
+ * Örneğin;
7
+ *
8
+ * ```jsx
9
+ * <Notification title="Başarılı" />
10
+ * ```
11
+ */
3
12
  title: string;
13
+ /**
14
+ * Bildirimin içeriğinde gösterilecek opsiyonel mesaj.
15
+ *
16
+ * Örneğin;
17
+ *
18
+ * ```jsx
19
+ * <Notification message="İşlem başarıyla tamamlandı." />
20
+ * ```
21
+ */
4
22
  message?: string;
5
- status: string | number;
23
+ /**
24
+ * Bildirimin durumu.
25
+ *
26
+ * `Status` tipinde olmalıdır.
27
+ *
28
+ * Kabul edilen değerler:
29
+ * - `success`: Başarılı durum bildirimi.
30
+ * - `warning`: Uyarı durumu bildirimi.
31
+ * - `information`: Bilgilendirme durumu.
32
+ * - `error`: Hata durumu bildirimi.
33
+ *
34
+ * Örneğin;
35
+ *
36
+ * ```jsx
37
+ * <Notification status="success" />
38
+ * ```
39
+ */
40
+ status: Status | number;
41
+ /**
42
+ * Bildirimin ekranda hangi köşede görüneceği.
43
+ *
44
+ * `Direction` tipinden olmalıdır.
45
+ *
46
+ * Geçerli değerler:
47
+ * - `top-left`: Sol üst köşe
48
+ * - `top-right`: Sağ üst köşe
49
+ * - `bottom-left`: Sol alt köşe
50
+ * - `bottom-right`: Sağ alt köşe
51
+ *
52
+ * Örneğin;
53
+ *
54
+ * ```jsx
55
+ * <Notification direction="top-right" />
56
+ * ```
57
+ */
6
58
  direction: Direction;
59
+ /**
60
+ * Bildirimin tetiklenip tetiklenmediğini belirten boolean değer.
61
+ *
62
+ * Örneğin;
63
+ *
64
+ * ```jsx
65
+ * <Notification trigger={true} />
66
+ * ```
67
+ */
7
68
  trigger: boolean;
8
69
  }
9
70
  export default IProps;