@handijitcom/ui 2.0.1 → 3.1.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/README.md +202 -71
- package/build/calendar.cjs +1 -1
- package/build/calendar.cjs.map +1 -1
- package/build/calendar.css +1 -1
- package/build/calendar.js +109 -111
- package/build/calendar.js.map +1 -1
- package/build/chat.cjs +1 -1
- package/build/chat.cjs.map +1 -1
- package/build/chat.css +1 -1
- package/build/chat.js +2 -2
- package/build/chat.js.map +1 -1
- package/build/components/Alert/style.css +1 -1
- package/build/components/Avatar/index.cjs.map +1 -1
- package/build/components/Avatar/index.d.cts +1 -1
- package/build/components/Avatar/index.d.ts +1 -1
- package/build/components/Avatar/index.js.map +1 -1
- package/build/components/Avatar/style.css +1 -1
- package/build/components/Badge/index.cjs +1 -1
- package/build/components/Badge/index.cjs.map +1 -1
- package/build/components/Badge/index.d.cts +4 -2
- package/build/components/Badge/index.d.ts +4 -2
- package/build/components/Badge/index.js +1 -1
- package/build/components/Badge/index.js.map +1 -1
- package/build/components/Badge/style.css +1 -1
- package/build/components/BrandSurface/index.cjs +2 -0
- package/build/components/BrandSurface/index.cjs.map +1 -0
- package/build/components/BrandSurface/index.d.cts +46 -0
- package/build/components/BrandSurface/index.d.ts +46 -0
- package/build/components/BrandSurface/index.js +128 -0
- package/build/components/BrandSurface/index.js.map +1 -0
- package/build/components/BrandSurface/style.css +1 -0
- package/build/components/BulkPasteInput/index.cjs +2 -0
- package/build/components/BulkPasteInput/index.cjs.map +1 -0
- package/build/components/BulkPasteInput/index.d.cts +26 -0
- package/build/components/BulkPasteInput/index.d.ts +26 -0
- package/build/components/BulkPasteInput/index.js +80 -0
- package/build/components/BulkPasteInput/index.js.map +1 -0
- package/build/components/BulkPasteInput/style.css +1 -0
- package/build/components/Button/index.cjs +1 -1
- package/build/components/Button/index.js +1 -1
- package/build/components/Button/style.css +1 -1
- package/build/components/Checkbox/index.cjs +1 -1
- package/build/components/Checkbox/index.cjs.map +1 -1
- package/build/components/Checkbox/index.js +6 -6
- package/build/components/Checkbox/index.js.map +1 -1
- package/build/components/CodeBadge/style.css +1 -1
- package/build/components/CopyField/style.css +1 -1
- package/build/components/DataTable/context.cjs +2 -0
- package/build/components/DataTable/context.cjs.map +1 -0
- package/build/components/DataTable/context.d.cts +17 -0
- package/build/components/DataTable/context.d.ts +17 -0
- package/build/components/DataTable/context.js +7 -0
- package/build/components/DataTable/context.js.map +1 -0
- package/build/components/DataTable/index.cjs +1 -1
- package/build/components/DataTable/index.cjs.map +1 -1
- package/build/components/DataTable/index.d.cts +46 -5
- package/build/components/DataTable/index.d.ts +46 -5
- package/build/components/DataTable/index.js +236 -93
- package/build/components/DataTable/index.js.map +1 -1
- package/build/components/DataTable/style.css +1 -1
- package/build/components/DataTableColumnMenu/index.cjs +2 -0
- package/build/components/DataTableColumnMenu/index.cjs.map +1 -0
- package/build/components/DataTableColumnMenu/index.d.cts +13 -0
- package/build/components/DataTableColumnMenu/index.d.ts +13 -0
- package/build/components/DataTableColumnMenu/index.js +69 -0
- package/build/components/DataTableColumnMenu/index.js.map +1 -0
- package/build/components/DataTableColumnMenu/style.css +1 -0
- package/build/components/Eyebrow/index.cjs.map +1 -1
- package/build/components/Eyebrow/index.d.cts +1 -1
- package/build/components/Eyebrow/index.d.ts +1 -1
- package/build/components/Eyebrow/index.js.map +1 -1
- package/build/components/Eyebrow/style.css +1 -1
- package/build/components/Gallery/index.cjs +2 -0
- package/build/components/Gallery/index.cjs.map +1 -0
- package/build/components/Gallery/index.d.cts +56 -0
- package/build/components/Gallery/index.d.ts +56 -0
- package/build/components/Gallery/index.js +253 -0
- package/build/components/Gallery/index.js.map +1 -0
- package/build/components/Gallery/style.css +1 -0
- package/build/components/Modal/style.css +1 -1
- package/build/components/NotificationCenter/index.cjs +2 -0
- package/build/components/NotificationCenter/index.cjs.map +1 -0
- package/build/components/NotificationCenter/index.d.cts +45 -0
- package/build/components/NotificationCenter/index.d.ts +45 -0
- package/build/components/NotificationCenter/index.js +124 -0
- package/build/components/NotificationCenter/index.js.map +1 -0
- package/build/components/NotificationCenter/style.css +1 -0
- package/build/components/Popover/index.cjs +1 -1
- package/build/components/Popover/index.cjs.map +1 -1
- package/build/components/Popover/index.js +16 -16
- package/build/components/Popover/index.js.map +1 -1
- package/build/components/Progress/index.cjs +1 -1
- package/build/components/Progress/index.cjs.map +1 -1
- package/build/components/Progress/index.d.cts +2 -2
- package/build/components/Progress/index.d.ts +2 -2
- package/build/components/Progress/index.js +1 -1
- package/build/components/Progress/index.js.map +1 -1
- package/build/components/Progress/style.css +1 -1
- package/build/components/Rating/style.css +1 -1
- package/build/components/RatingInput/style.css +1 -1
- package/build/components/Stat/style.css +1 -1
- package/build/components/StatStrip/index.cjs +1 -1
- package/build/components/StatStrip/index.cjs.map +1 -1
- package/build/components/StatStrip/index.d.cts +3 -3
- package/build/components/StatStrip/index.d.ts +3 -3
- package/build/components/StatStrip/index.js +1 -1
- package/build/components/StatStrip/index.js.map +1 -1
- package/build/components/StatStrip/style.css +1 -1
- package/build/components/StatusDot/index.cjs +1 -1
- package/build/components/StatusDot/index.cjs.map +1 -1
- package/build/components/StatusDot/index.d.cts +5 -3
- package/build/components/StatusDot/index.d.ts +5 -3
- package/build/components/StatusDot/index.js +1 -1
- package/build/components/StatusDot/index.js.map +1 -1
- package/build/components/StatusDot/style.css +1 -1
- package/build/components/TagInput/style.css +1 -1
- package/build/components/Textarea/style.css +1 -1
- package/build/components/Timeline/style.css +1 -1
- package/build/components/Toast/style.css +1 -1
- package/build/components/TreeSelect/index.cjs +2 -0
- package/build/components/TreeSelect/index.cjs.map +1 -0
- package/build/components/TreeSelect/index.d.cts +40 -0
- package/build/components/TreeSelect/index.d.ts +40 -0
- package/build/components/TreeSelect/index.js +175 -0
- package/build/components/TreeSelect/index.js.map +1 -0
- package/build/components/TreeSelect/style.css +1 -0
- package/build/design/index.cjs +84 -178
- package/build/design/index.cjs.map +1 -1
- package/build/design/index.d.cts +72 -63
- package/build/design/index.d.mts +72 -63
- package/build/design/index.mjs +84 -178
- package/build/design/index.mjs.map +1 -1
- package/build/design/index.umd.cjs +1 -1
- package/build/design/index.umd.cjs.map +1 -1
- package/build/design/tokens.css +62 -177
- package/build/design/tokens.json +66 -168
- package/build/design/tokens.scss +48 -178
- package/build/enums/ui-variant.enum.cjs +1 -1
- package/build/enums/ui-variant.enum.cjs.map +1 -1
- package/build/enums/ui-variant.enum.d.cts +2 -2
- package/build/enums/ui-variant.enum.d.ts +2 -2
- package/build/enums/ui-variant.enum.js +1 -1
- package/build/enums/ui-variant.enum.js.map +1 -1
- package/build/helpers/bulk-paste.helper.cjs +2 -0
- package/build/helpers/bulk-paste.helper.cjs.map +1 -0
- package/build/helpers/bulk-paste.helper.d.cts +38 -0
- package/build/helpers/bulk-paste.helper.d.ts +38 -0
- package/build/helpers/bulk-paste.helper.js +37 -0
- package/build/helpers/bulk-paste.helper.js.map +1 -0
- package/build/index.cjs +1 -1
- package/build/index.d.cts +8 -2
- package/build/index.d.ts +8 -2
- package/build/index.js +122 -110
- package/build/index.js.map +1 -1
- package/build/scss/_mixins.scss +8 -10
- package/build/scss/_variables.scss +19 -39
- package/build/styles.css +31 -21
- package/build/types/calendar/Calendar/index.d.cts +1 -1
- package/build/types/calendar/Calendar/index.d.ts +1 -1
- package/build/types/calendar/core/types.d.cts +3 -2
- package/build/types/calendar/core/types.d.ts +3 -2
- package/build/types/theme.type.d.cts +54 -0
- package/build/types/theme.type.d.ts +54 -0
- package/build/types/types/theme.type.d.cts +54 -0
- package/build/types/types/theme.type.d.ts +54 -0
- package/package.json +61 -11
- package/build/components/Band/index.cjs +0 -2
- package/build/components/Band/index.cjs.map +0 -1
- package/build/components/Band/index.d.cts +0 -45
- package/build/components/Band/index.d.ts +0 -45
- package/build/components/Band/index.js +0 -126
- package/build/components/Band/index.js.map +0 -1
- package/build/components/Band/style.css +0 -1
|
@@ -81,6 +81,60 @@ export type UiLabels = Partial<{
|
|
|
81
81
|
dataTable: Partial<{
|
|
82
82
|
empty: string;
|
|
83
83
|
loading: string;
|
|
84
|
+
/** The column menu: its trigger and panel name ("Sütunlar"), 3.1. */
|
|
85
|
+
columns: string;
|
|
86
|
+
/** Moves a column one place earlier, e.g. `column => column + ' sütununu öne al'` (3.1). */
|
|
87
|
+
moveUp: Formatter<[column: string]>;
|
|
88
|
+
/** Moves a column one place later, e.g. `column => column + ' sütununu geri al'` (3.1). */
|
|
89
|
+
moveDown: Formatter<[column: string]>;
|
|
90
|
+
}>;
|
|
91
|
+
/** `Gallery` (3.1). */
|
|
92
|
+
gallery: Partial<{
|
|
93
|
+
/** The thumbnail strip's name ("Görseller"). */
|
|
94
|
+
thumbnails: string;
|
|
95
|
+
/** One thumbnail, e.g. `(index, total) => 'Görsel ' + index + ' / ' + total`. */
|
|
96
|
+
thumbnail: Formatter<[index: number, total: number]>;
|
|
97
|
+
previous: string;
|
|
98
|
+
next: string;
|
|
99
|
+
/** Opens the full-screen view ("Tam ekran"). */
|
|
100
|
+
fullscreen: string;
|
|
101
|
+
zoomIn: string;
|
|
102
|
+
zoomOut: string;
|
|
103
|
+
}>;
|
|
104
|
+
/** `TreeSelect` (3.1). */
|
|
105
|
+
treeSelect: Partial<{
|
|
106
|
+
/** The search field's name and placeholder ("Kategori ara"). */
|
|
107
|
+
search: string;
|
|
108
|
+
/** No node matches the search ("Eşleşen kategori yok"). */
|
|
109
|
+
empty: string;
|
|
110
|
+
}>;
|
|
111
|
+
/** `NotificationCenter` (3.1). */
|
|
112
|
+
notificationCenter: Partial<{
|
|
113
|
+
/** The bell, e.g. `unread => unread ? 'Bildirimler, ' + unread + ' okunmamış' : 'Bildirimler'`. */
|
|
114
|
+
trigger: Formatter<[unread: number]>;
|
|
115
|
+
/** The panel's title ("Bildirimler"). */
|
|
116
|
+
title: string;
|
|
117
|
+
markAllRead: string;
|
|
118
|
+
markRead: string;
|
|
119
|
+
/** No notification at all ("Bildirim yok"). */
|
|
120
|
+
empty: string;
|
|
121
|
+
/** Read before an unread notification's title ("Okunmamış"): the dot is not read. */
|
|
122
|
+
unread: string;
|
|
123
|
+
/** Day headings of today and yesterday ("Bugün", "Dün"); older days use the date. */
|
|
124
|
+
today: string;
|
|
125
|
+
yesterday: string;
|
|
126
|
+
}>;
|
|
127
|
+
/** `BulkPasteInput` (3.1). */
|
|
128
|
+
bulkPaste: Partial<{
|
|
129
|
+
/** Parsed rows, e.g. `count => count + ' satır okundu'`. */
|
|
130
|
+
summary: Formatter<[count: number]>;
|
|
131
|
+
/** Lines that could not be read, e.g. `count => count + ' satır okunamadı'`. */
|
|
132
|
+
invalidSummary: Formatter<[count: number]>;
|
|
133
|
+
/** A line number, e.g. `line => 'Satır ' + line`. */
|
|
134
|
+
line: Formatter<[line: number]>;
|
|
135
|
+
/** Why a line was skipped. */
|
|
136
|
+
missingCode: string;
|
|
137
|
+
invalidQuantity: string;
|
|
84
138
|
}>;
|
|
85
139
|
/**
|
|
86
140
|
* Sohbet bileşenleri (`@handijitcom/ui/chat`). Çağrı yerine ÖZGÜ metinler buraya girmez:
|
|
@@ -81,6 +81,60 @@ export type UiLabels = Partial<{
|
|
|
81
81
|
dataTable: Partial<{
|
|
82
82
|
empty: string;
|
|
83
83
|
loading: string;
|
|
84
|
+
/** The column menu: its trigger and panel name ("Sütunlar"), 3.1. */
|
|
85
|
+
columns: string;
|
|
86
|
+
/** Moves a column one place earlier, e.g. `column => column + ' sütununu öne al'` (3.1). */
|
|
87
|
+
moveUp: Formatter<[column: string]>;
|
|
88
|
+
/** Moves a column one place later, e.g. `column => column + ' sütununu geri al'` (3.1). */
|
|
89
|
+
moveDown: Formatter<[column: string]>;
|
|
90
|
+
}>;
|
|
91
|
+
/** `Gallery` (3.1). */
|
|
92
|
+
gallery: Partial<{
|
|
93
|
+
/** The thumbnail strip's name ("Görseller"). */
|
|
94
|
+
thumbnails: string;
|
|
95
|
+
/** One thumbnail, e.g. `(index, total) => 'Görsel ' + index + ' / ' + total`. */
|
|
96
|
+
thumbnail: Formatter<[index: number, total: number]>;
|
|
97
|
+
previous: string;
|
|
98
|
+
next: string;
|
|
99
|
+
/** Opens the full-screen view ("Tam ekran"). */
|
|
100
|
+
fullscreen: string;
|
|
101
|
+
zoomIn: string;
|
|
102
|
+
zoomOut: string;
|
|
103
|
+
}>;
|
|
104
|
+
/** `TreeSelect` (3.1). */
|
|
105
|
+
treeSelect: Partial<{
|
|
106
|
+
/** The search field's name and placeholder ("Kategori ara"). */
|
|
107
|
+
search: string;
|
|
108
|
+
/** No node matches the search ("Eşleşen kategori yok"). */
|
|
109
|
+
empty: string;
|
|
110
|
+
}>;
|
|
111
|
+
/** `NotificationCenter` (3.1). */
|
|
112
|
+
notificationCenter: Partial<{
|
|
113
|
+
/** The bell, e.g. `unread => unread ? 'Bildirimler, ' + unread + ' okunmamış' : 'Bildirimler'`. */
|
|
114
|
+
trigger: Formatter<[unread: number]>;
|
|
115
|
+
/** The panel's title ("Bildirimler"). */
|
|
116
|
+
title: string;
|
|
117
|
+
markAllRead: string;
|
|
118
|
+
markRead: string;
|
|
119
|
+
/** No notification at all ("Bildirim yok"). */
|
|
120
|
+
empty: string;
|
|
121
|
+
/** Read before an unread notification's title ("Okunmamış"): the dot is not read. */
|
|
122
|
+
unread: string;
|
|
123
|
+
/** Day headings of today and yesterday ("Bugün", "Dün"); older days use the date. */
|
|
124
|
+
today: string;
|
|
125
|
+
yesterday: string;
|
|
126
|
+
}>;
|
|
127
|
+
/** `BulkPasteInput` (3.1). */
|
|
128
|
+
bulkPaste: Partial<{
|
|
129
|
+
/** Parsed rows, e.g. `count => count + ' satır okundu'`. */
|
|
130
|
+
summary: Formatter<[count: number]>;
|
|
131
|
+
/** Lines that could not be read, e.g. `count => count + ' satır okunamadı'`. */
|
|
132
|
+
invalidSummary: Formatter<[count: number]>;
|
|
133
|
+
/** A line number, e.g. `line => 'Satır ' + line`. */
|
|
134
|
+
line: Formatter<[line: number]>;
|
|
135
|
+
/** Why a line was skipped. */
|
|
136
|
+
missingCode: string;
|
|
137
|
+
invalidQuantity: string;
|
|
84
138
|
}>;
|
|
85
139
|
/**
|
|
86
140
|
* Sohbet bileşenleri (`@handijitcom/ui/chat`). Çağrı yerine ÖZGÜ metinler buraya girmez:
|
|
@@ -81,6 +81,60 @@ export type UiLabels = Partial<{
|
|
|
81
81
|
dataTable: Partial<{
|
|
82
82
|
empty: string;
|
|
83
83
|
loading: string;
|
|
84
|
+
/** The column menu: its trigger and panel name ("Sütunlar"), 3.1. */
|
|
85
|
+
columns: string;
|
|
86
|
+
/** Moves a column one place earlier, e.g. `column => column + ' sütununu öne al'` (3.1). */
|
|
87
|
+
moveUp: Formatter<[column: string]>;
|
|
88
|
+
/** Moves a column one place later, e.g. `column => column + ' sütununu geri al'` (3.1). */
|
|
89
|
+
moveDown: Formatter<[column: string]>;
|
|
90
|
+
}>;
|
|
91
|
+
/** `Gallery` (3.1). */
|
|
92
|
+
gallery: Partial<{
|
|
93
|
+
/** The thumbnail strip's name ("Görseller"). */
|
|
94
|
+
thumbnails: string;
|
|
95
|
+
/** One thumbnail, e.g. `(index, total) => 'Görsel ' + index + ' / ' + total`. */
|
|
96
|
+
thumbnail: Formatter<[index: number, total: number]>;
|
|
97
|
+
previous: string;
|
|
98
|
+
next: string;
|
|
99
|
+
/** Opens the full-screen view ("Tam ekran"). */
|
|
100
|
+
fullscreen: string;
|
|
101
|
+
zoomIn: string;
|
|
102
|
+
zoomOut: string;
|
|
103
|
+
}>;
|
|
104
|
+
/** `TreeSelect` (3.1). */
|
|
105
|
+
treeSelect: Partial<{
|
|
106
|
+
/** The search field's name and placeholder ("Kategori ara"). */
|
|
107
|
+
search: string;
|
|
108
|
+
/** No node matches the search ("Eşleşen kategori yok"). */
|
|
109
|
+
empty: string;
|
|
110
|
+
}>;
|
|
111
|
+
/** `NotificationCenter` (3.1). */
|
|
112
|
+
notificationCenter: Partial<{
|
|
113
|
+
/** The bell, e.g. `unread => unread ? 'Bildirimler, ' + unread + ' okunmamış' : 'Bildirimler'`. */
|
|
114
|
+
trigger: Formatter<[unread: number]>;
|
|
115
|
+
/** The panel's title ("Bildirimler"). */
|
|
116
|
+
title: string;
|
|
117
|
+
markAllRead: string;
|
|
118
|
+
markRead: string;
|
|
119
|
+
/** No notification at all ("Bildirim yok"). */
|
|
120
|
+
empty: string;
|
|
121
|
+
/** Read before an unread notification's title ("Okunmamış"): the dot is not read. */
|
|
122
|
+
unread: string;
|
|
123
|
+
/** Day headings of today and yesterday ("Bugün", "Dün"); older days use the date. */
|
|
124
|
+
today: string;
|
|
125
|
+
yesterday: string;
|
|
126
|
+
}>;
|
|
127
|
+
/** `BulkPasteInput` (3.1). */
|
|
128
|
+
bulkPaste: Partial<{
|
|
129
|
+
/** Parsed rows, e.g. `count => count + ' satır okundu'`. */
|
|
130
|
+
summary: Formatter<[count: number]>;
|
|
131
|
+
/** Lines that could not be read, e.g. `count => count + ' satır okunamadı'`. */
|
|
132
|
+
invalidSummary: Formatter<[count: number]>;
|
|
133
|
+
/** A line number, e.g. `line => 'Satır ' + line`. */
|
|
134
|
+
line: Formatter<[line: number]>;
|
|
135
|
+
/** Why a line was skipped. */
|
|
136
|
+
missingCode: string;
|
|
137
|
+
invalidQuantity: string;
|
|
84
138
|
}>;
|
|
85
139
|
/**
|
|
86
140
|
* Sohbet bileşenleri (`@handijitcom/ui/chat`). Çağrı yerine ÖZGÜ metinler buraya girmez:
|
|
@@ -81,6 +81,60 @@ export type UiLabels = Partial<{
|
|
|
81
81
|
dataTable: Partial<{
|
|
82
82
|
empty: string;
|
|
83
83
|
loading: string;
|
|
84
|
+
/** The column menu: its trigger and panel name ("Sütunlar"), 3.1. */
|
|
85
|
+
columns: string;
|
|
86
|
+
/** Moves a column one place earlier, e.g. `column => column + ' sütununu öne al'` (3.1). */
|
|
87
|
+
moveUp: Formatter<[column: string]>;
|
|
88
|
+
/** Moves a column one place later, e.g. `column => column + ' sütununu geri al'` (3.1). */
|
|
89
|
+
moveDown: Formatter<[column: string]>;
|
|
90
|
+
}>;
|
|
91
|
+
/** `Gallery` (3.1). */
|
|
92
|
+
gallery: Partial<{
|
|
93
|
+
/** The thumbnail strip's name ("Görseller"). */
|
|
94
|
+
thumbnails: string;
|
|
95
|
+
/** One thumbnail, e.g. `(index, total) => 'Görsel ' + index + ' / ' + total`. */
|
|
96
|
+
thumbnail: Formatter<[index: number, total: number]>;
|
|
97
|
+
previous: string;
|
|
98
|
+
next: string;
|
|
99
|
+
/** Opens the full-screen view ("Tam ekran"). */
|
|
100
|
+
fullscreen: string;
|
|
101
|
+
zoomIn: string;
|
|
102
|
+
zoomOut: string;
|
|
103
|
+
}>;
|
|
104
|
+
/** `TreeSelect` (3.1). */
|
|
105
|
+
treeSelect: Partial<{
|
|
106
|
+
/** The search field's name and placeholder ("Kategori ara"). */
|
|
107
|
+
search: string;
|
|
108
|
+
/** No node matches the search ("Eşleşen kategori yok"). */
|
|
109
|
+
empty: string;
|
|
110
|
+
}>;
|
|
111
|
+
/** `NotificationCenter` (3.1). */
|
|
112
|
+
notificationCenter: Partial<{
|
|
113
|
+
/** The bell, e.g. `unread => unread ? 'Bildirimler, ' + unread + ' okunmamış' : 'Bildirimler'`. */
|
|
114
|
+
trigger: Formatter<[unread: number]>;
|
|
115
|
+
/** The panel's title ("Bildirimler"). */
|
|
116
|
+
title: string;
|
|
117
|
+
markAllRead: string;
|
|
118
|
+
markRead: string;
|
|
119
|
+
/** No notification at all ("Bildirim yok"). */
|
|
120
|
+
empty: string;
|
|
121
|
+
/** Read before an unread notification's title ("Okunmamış"): the dot is not read. */
|
|
122
|
+
unread: string;
|
|
123
|
+
/** Day headings of today and yesterday ("Bugün", "Dün"); older days use the date. */
|
|
124
|
+
today: string;
|
|
125
|
+
yesterday: string;
|
|
126
|
+
}>;
|
|
127
|
+
/** `BulkPasteInput` (3.1). */
|
|
128
|
+
bulkPaste: Partial<{
|
|
129
|
+
/** Parsed rows, e.g. `count => count + ' satır okundu'`. */
|
|
130
|
+
summary: Formatter<[count: number]>;
|
|
131
|
+
/** Lines that could not be read, e.g. `count => count + ' satır okunamadı'`. */
|
|
132
|
+
invalidSummary: Formatter<[count: number]>;
|
|
133
|
+
/** A line number, e.g. `line => 'Satır ' + line`. */
|
|
134
|
+
line: Formatter<[line: number]>;
|
|
135
|
+
/** Why a line was skipped. */
|
|
136
|
+
missingCode: string;
|
|
137
|
+
invalidQuantity: string;
|
|
84
138
|
}>;
|
|
85
139
|
/**
|
|
86
140
|
* Sohbet bileşenleri (`@handijitcom/ui/chat`). Çağrı yerine ÖZGÜ metinler buraya girmez:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@handijitcom/ui",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"description": "Accessible React component library on SCSS Modules, themed by its own design tokens (@handijitcom/ui/design): light and dark from one set of --hd-* tokens, a CSP-ready theme boot script, and Bootstrap Icons for iconography.",
|
|
5
5
|
"author": "Ahmet ilhan <ahmetilhan.dev@gmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -66,16 +66,6 @@
|
|
|
66
66
|
"default": "./build/components/Badge/index.cjs"
|
|
67
67
|
}
|
|
68
68
|
},
|
|
69
|
-
"./band": {
|
|
70
|
-
"import": {
|
|
71
|
-
"types": "./build/components/Band/index.d.ts",
|
|
72
|
-
"default": "./build/components/Band/index.js"
|
|
73
|
-
},
|
|
74
|
-
"require": {
|
|
75
|
-
"types": "./build/components/Band/index.d.cts",
|
|
76
|
-
"default": "./build/components/Band/index.cjs"
|
|
77
|
-
}
|
|
78
|
-
},
|
|
79
69
|
"./bottom-sheet": {
|
|
80
70
|
"import": {
|
|
81
71
|
"types": "./build/components/BottomSheet/index.d.ts",
|
|
@@ -86,6 +76,16 @@
|
|
|
86
76
|
"default": "./build/components/BottomSheet/index.cjs"
|
|
87
77
|
}
|
|
88
78
|
},
|
|
79
|
+
"./brand-surface": {
|
|
80
|
+
"import": {
|
|
81
|
+
"types": "./build/components/BrandSurface/index.d.ts",
|
|
82
|
+
"default": "./build/components/BrandSurface/index.js"
|
|
83
|
+
},
|
|
84
|
+
"require": {
|
|
85
|
+
"types": "./build/components/BrandSurface/index.d.cts",
|
|
86
|
+
"default": "./build/components/BrandSurface/index.cjs"
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
89
|
"./breadcrumb": {
|
|
90
90
|
"import": {
|
|
91
91
|
"types": "./build/components/Breadcrumb/index.d.ts",
|
|
@@ -96,6 +96,16 @@
|
|
|
96
96
|
"default": "./build/components/Breadcrumb/index.cjs"
|
|
97
97
|
}
|
|
98
98
|
},
|
|
99
|
+
"./bulk-paste-input": {
|
|
100
|
+
"import": {
|
|
101
|
+
"types": "./build/components/BulkPasteInput/index.d.ts",
|
|
102
|
+
"default": "./build/components/BulkPasteInput/index.js"
|
|
103
|
+
},
|
|
104
|
+
"require": {
|
|
105
|
+
"types": "./build/components/BulkPasteInput/index.d.cts",
|
|
106
|
+
"default": "./build/components/BulkPasteInput/index.cjs"
|
|
107
|
+
}
|
|
108
|
+
},
|
|
99
109
|
"./button": {
|
|
100
110
|
"import": {
|
|
101
111
|
"types": "./build/components/Button/index.d.ts",
|
|
@@ -216,6 +226,16 @@
|
|
|
216
226
|
"default": "./build/components/DataTable/index.cjs"
|
|
217
227
|
}
|
|
218
228
|
},
|
|
229
|
+
"./data-table-column-menu": {
|
|
230
|
+
"import": {
|
|
231
|
+
"types": "./build/components/DataTableColumnMenu/index.d.ts",
|
|
232
|
+
"default": "./build/components/DataTableColumnMenu/index.js"
|
|
233
|
+
},
|
|
234
|
+
"require": {
|
|
235
|
+
"types": "./build/components/DataTableColumnMenu/index.d.cts",
|
|
236
|
+
"default": "./build/components/DataTableColumnMenu/index.cjs"
|
|
237
|
+
}
|
|
238
|
+
},
|
|
219
239
|
"./date-field": {
|
|
220
240
|
"import": {
|
|
221
241
|
"types": "./build/components/DateField/index.d.ts",
|
|
@@ -316,6 +336,16 @@
|
|
|
316
336
|
"default": "./build/components/FilterBar/index.cjs"
|
|
317
337
|
}
|
|
318
338
|
},
|
|
339
|
+
"./gallery": {
|
|
340
|
+
"import": {
|
|
341
|
+
"types": "./build/components/Gallery/index.d.ts",
|
|
342
|
+
"default": "./build/components/Gallery/index.js"
|
|
343
|
+
},
|
|
344
|
+
"require": {
|
|
345
|
+
"types": "./build/components/Gallery/index.d.cts",
|
|
346
|
+
"default": "./build/components/Gallery/index.cjs"
|
|
347
|
+
}
|
|
348
|
+
},
|
|
319
349
|
"./icon-button": {
|
|
320
350
|
"import": {
|
|
321
351
|
"types": "./build/components/IconButton/index.d.ts",
|
|
@@ -376,6 +406,16 @@
|
|
|
376
406
|
"default": "./build/components/MoneyInput/index.cjs"
|
|
377
407
|
}
|
|
378
408
|
},
|
|
409
|
+
"./notification-center": {
|
|
410
|
+
"import": {
|
|
411
|
+
"types": "./build/components/NotificationCenter/index.d.ts",
|
|
412
|
+
"default": "./build/components/NotificationCenter/index.js"
|
|
413
|
+
},
|
|
414
|
+
"require": {
|
|
415
|
+
"types": "./build/components/NotificationCenter/index.d.cts",
|
|
416
|
+
"default": "./build/components/NotificationCenter/index.cjs"
|
|
417
|
+
}
|
|
418
|
+
},
|
|
379
419
|
"./page-header": {
|
|
380
420
|
"import": {
|
|
381
421
|
"types": "./build/components/PageHeader/index.d.ts",
|
|
@@ -786,6 +826,16 @@
|
|
|
786
826
|
"default": "./build/components/Tooltip/index.cjs"
|
|
787
827
|
}
|
|
788
828
|
},
|
|
829
|
+
"./tree-select": {
|
|
830
|
+
"import": {
|
|
831
|
+
"types": "./build/components/TreeSelect/index.d.ts",
|
|
832
|
+
"default": "./build/components/TreeSelect/index.js"
|
|
833
|
+
},
|
|
834
|
+
"require": {
|
|
835
|
+
"types": "./build/components/TreeSelect/index.d.cts",
|
|
836
|
+
"default": "./build/components/TreeSelect/index.cjs"
|
|
837
|
+
}
|
|
838
|
+
},
|
|
789
839
|
"./chat": {
|
|
790
840
|
"import": {
|
|
791
841
|
"types": "./build/types/chat/index.d.ts",
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),u=require("react"),l=require("@handijitcom/ui/design"),x=require("../../helpers/class-name.helper.cjs"),_=require("../../helpers/component.helper.cjs"),a={default:{"band":"ui-band-R7KBU","band__backdrop":"ui-band__backdrop-Af55y","band__stop-from":"ui-band__stop-from-00hAo","band__stop-to":"ui-band__stop-to-DVQUx","band__glow-centre":"ui-band__glow-centre-fJw2q","band__glow-edge":"ui-band__glow-edge-MfIb7","band__dot":"ui-band__dot-Wf9Ap","band__mask":"ui-band__mask-XnF25","band__fade-edge":"ui-band__fade-edge-RwkBW","band__fade-clear":"ui-band__fade-clear-6PPNV","band__artwork":"ui-band__artwork-2jDWA","band__body":"ui-band__body-xJs8K","band--artwork":"ui-band--artwork-YtNLU","band__footer":"ui-band__footer-jzQWy","blueprint":"ui-blueprint-jiZgz","blueprint__stop-from":"ui-blueprint__stop-from-Lcz-1","blueprint__stop-to":"ui-blueprint__stop-to-squap","blueprint__body":"ui-blueprint__body-iq9T5","blueprint__dot":"ui-blueprint__dot-DtmUM"}},$={start:{cx:"8%",cy:"14%",r:"42%"},end:{cx:"92%",cy:"22%",r:"38%"}},b=.24,m=s=>s==="both"?["start","end"]:s==="none"?[]:[s],w=s=>m(s).flatMap(d=>d==="start"?[[0,!0],[b,!1]]:[[1-b,!1],[1,!0]]),p=(s,d)=>`${s}-${d.replace(/[^\w-]/g,"")}`,B=({children:s,as:d="section",glow:i="both",dots:r="end",artwork:o,footer:f,"aria-label":h,"aria-labelledby":j,className:g,id:N,testId:y})=>{const t=p("ui-band",u.useId()),c=w(r);return e.jsxs(d,{id:N,className:x.cx(a.default.band,o!==void 0&&a.default["band--artwork"],g),"aria-label":h,"aria-labelledby":j,"data-ui-band":"","data-testid":y,children:[e.jsxs("svg",{className:a.default.band__backdrop,"aria-hidden":"true",focusable:"false",children:[e.jsxs("defs",{children:[e.jsxs("linearGradient",{id:`${t}-fill`,x1:"0",y1:"0",x2:"0",y2:"1",children:[e.jsx("stop",{offset:"0",className:a.default["band__stop-from"]}),e.jsx("stop",{offset:l.band.gradientHold,className:a.default["band__stop-from"]}),e.jsx("stop",{offset:"1",className:a.default["band__stop-to"]})]}),e.jsxs("radialGradient",{id:`${t}-glow`,children:[e.jsx("stop",{offset:"0",className:a.default["band__glow-centre"]}),e.jsx("stop",{offset:"1",className:a.default["band__glow-edge"]})]}),c.length>0&&e.jsxs(e.Fragment,{children:[e.jsx("pattern",{id:`${t}-dots`,width:l.band.dotCell,height:l.band.dotCell,patternUnits:"userSpaceOnUse",children:e.jsx("circle",{className:a.default.band__dot,cx:l.band.dotCell/2,cy:l.band.dotCell/2,r:l.band.dotRadius})}),e.jsx("linearGradient",{id:`${t}-fade`,x1:"0",y1:"0",x2:"1",y2:"0",children:c.map(([n,v])=>e.jsx("stop",{offset:n,className:v?a.default["band__fade-edge"]:a.default["band__fade-clear"]},n))}),e.jsx("mask",{id:`${t}-mask`,className:a.default.band__mask,children:e.jsx("rect",{width:"100%",height:"100%",fill:`url(#${t}-fade)`})})]})]}),e.jsx("rect",{width:"100%",height:"100%",fill:`url(#${t}-fill)`}),m(i).map(n=>e.jsx("circle",{...$[n],fill:`url(#${t}-glow)`},n)),c.length>0&&e.jsx("rect",{width:"100%",height:"100%",fill:`url(#${t}-dots)`,mask:`url(#${t}-mask)`})]}),o!==void 0&&e.jsx("div",{className:a.default.band__artwork,"aria-hidden":"true",children:o}),e.jsx("div",{className:a.default.band__body,children:s}),f!==void 0&&e.jsx("div",{className:a.default.band__footer,children:f})]})},k=({shape:s,className:d,testId:i})=>{const r=p("ui-blueprint",u.useId());return e.jsxs("svg",{className:x.cx(a.default.blueprint,d),viewBox:s.viewBox,"aria-hidden":"true",focusable:"false","data-testid":i,children:[e.jsx("defs",{children:e.jsxs("linearGradient",{id:`${r}-fill`,x1:"0",y1:"0",x2:"0",y2:"1",children:[e.jsx("stop",{offset:"0",className:a.default["blueprint__stop-from"]}),e.jsx("stop",{offset:l.band.blueprintHold,className:a.default["blueprint__stop-to"]})]})}),e.jsx("path",{className:a.default.blueprint__body,fill:`url(#${r}-fill)`,d:s.body}),s.dot!==void 0&&e.jsx("path",{className:a.default.blueprint__dot,d:s.dot})]})},q=_.named(k,"BandBlueprint"),C=u.memo(_.named(B,"Band"));exports.BandBlueprint=q;exports.default=C;
|
|
2
|
-
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../src/components/Band/index.tsx"],"sourcesContent":["import { type FC, memo, type ReactNode, useId } from 'react';\n\nimport { band } from '@handijitcom/ui/design';\n\nimport { cx } from '../../helpers/class-name.helper';\nimport { named } from '../../helpers/component.helper';\n\nimport styles from './index.module.scss';\n\n/** Where a decorative layer sits; `start` and `end` follow the writing direction. */\nexport type BandSide = 'start' | 'end' | 'both' | 'none';\n\n/** A supergraphic's outline: the shape of `logos.mark` of `@handijitcom/ui/design` fits. */\nexport type BandBlueprintShape = {\n viewBox: string;\n /** Path data of the body, drawn in the blueprint fill and outline. */\n body: string;\n /** Path data of the mark's dot, filled with the accent like the logo's. */\n dot?: string;\n};\n\ntype BandProps = {\n children: ReactNode;\n /** The element. A `section` is a landmark only with a name: pass `aria-labelledby`. */\n as?: 'section' | 'div' | 'header' | 'footer' | 'aside';\n /** Soft cobalt glows at the top corners. */\n glow?: BandSide;\n /** The dot grid, fading out towards the content. */\n dots?: BandSide;\n /** Decorative artwork at the bottom end (a `BandBlueprint`); hidden below the tablet width. */\n artwork?: ReactNode;\n /** A full-width strip under the content, outside its padding (`StatStrip variant=\"band\"`). */\n footer?: ReactNode;\n 'aria-label'?: string;\n 'aria-labelledby'?: string;\n className?: string;\n id?: string;\n testId?: string;\n};\n\ntype BlueprintProps = {\n shape: BandBlueprintShape;\n className?: string;\n testId?: string;\n};\n\n/*\n * The glow circles, in percent of the band: a radius in percent is measured against the band's\n * normalised diagonal, so the glow grows with the band instead of flooding a phone-sized one.\n */\nconst GLOWS = {\n start: { cx: '8%', cy: '14%', r: '42%' },\n end: { cx: '92%', cy: '22%', r: '38%' },\n} as const;\n\n/*\n * Where the dot grid is visible along the band's width: full at the edge, gone by a quarter of\n * the way in, so the content column stays clear.\n */\nconst DOT_REACH = 0.24;\n\nconst sidesOf = (side: BandSide): ('start' | 'end')[] => {\n if (side === 'both') return ['start', 'end'];\n if (side === 'none') return [];\n return [side];\n};\n\n/** The mask stops of the dot grid: `true` is the edge opacity, `false` transparent. */\nconst fadeStops = (side: BandSide): [offset: number, isEdge: boolean][] =>\n sidesOf(side).flatMap(edge =>\n edge === 'start'\n ? [\n [0, true],\n [DOT_REACH, false],\n ]\n : [\n [1 - DOT_REACH, false],\n [1, true],\n ],\n );\n\n/*\n * Ids come from `useId`: two bands on a page, or the same band rendered twice, must not share\n * gradient ids. `useId` also runs in a server component, so the module carries no `'use client'`\n * and the band sends no JavaScript. It returns `:r1:`, `«r1»` or `_r_1_` by React version; an SVG\n * `url(#…)` wants plain characters.\n */\nconst svgId = (prefix: string, id: string): string => `${prefix}-${id.replace(/[^\\w-]/g, '')}`;\n\n/**\n * Band — the brand band: the navy surface of a hero, a closing call or a footer, the same in\n * both themes. Its imagery (gradient, glows, dot grid) is inline SVG, decorative and hidden from\n * assistive technology; nothing of it is a CSS gradient. Descendants draw their focus ring in\n * `band-focus`, and the `ACCENT` button glows softly on it.\n * @example <Band as=\"section\" aria-labelledby=\"cta\" footer={<StatStrip variant=\"band\" … />}>\n */\nconst Band: FC<BandProps> = ({\n children,\n as: Tag = 'section',\n glow = 'both',\n dots = 'end',\n artwork,\n footer,\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledBy,\n className,\n id,\n testId,\n}) => {\n const base = svgId('ui-band', useId());\n const fade = fadeStops(dots);\n\n return (\n <Tag\n id={id}\n className={cx(styles.band, artwork !== undefined && styles['band--artwork'], className)}\n aria-label={ariaLabel}\n aria-labelledby={ariaLabelledBy}\n data-ui-band=\"\"\n data-testid={testId}\n >\n <svg className={styles.band__backdrop} aria-hidden=\"true\" focusable=\"false\">\n <defs>\n <linearGradient id={`${base}-fill`} x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\">\n <stop offset=\"0\" className={styles['band__stop-from']} />\n <stop offset={band.gradientHold} className={styles['band__stop-from']} />\n <stop offset=\"1\" className={styles['band__stop-to']} />\n </linearGradient>\n <radialGradient id={`${base}-glow`}>\n <stop offset=\"0\" className={styles['band__glow-centre']} />\n <stop offset=\"1\" className={styles['band__glow-edge']} />\n </radialGradient>\n {fade.length > 0 && (\n <>\n <pattern\n id={`${base}-dots`}\n width={band.dotCell}\n height={band.dotCell}\n patternUnits=\"userSpaceOnUse\"\n >\n <circle\n className={styles.band__dot}\n cx={band.dotCell / 2}\n cy={band.dotCell / 2}\n r={band.dotRadius}\n />\n </pattern>\n <linearGradient id={`${base}-fade`} x1=\"0\" y1=\"0\" x2=\"1\" y2=\"0\">\n {fade.map(([offset, isEdge]) => (\n <stop\n key={offset}\n offset={offset}\n className={isEdge ? styles['band__fade-edge'] : styles['band__fade-clear']}\n />\n ))}\n </linearGradient>\n <mask id={`${base}-mask`} className={styles.band__mask}>\n <rect width=\"100%\" height=\"100%\" fill={`url(#${base}-fade)`} />\n </mask>\n </>\n )}\n </defs>\n <rect width=\"100%\" height=\"100%\" fill={`url(#${base}-fill)`} />\n {sidesOf(glow).map(side => (\n <circle key={side} {...GLOWS[side]} fill={`url(#${base}-glow)`} />\n ))}\n {fade.length > 0 && (\n <rect\n width=\"100%\"\n height=\"100%\"\n fill={`url(#${base}-dots)`}\n mask={`url(#${base}-mask)`}\n />\n )}\n </svg>\n\n {artwork !== undefined && (\n <div className={styles.band__artwork} aria-hidden=\"true\">\n {artwork}\n </div>\n )}\n\n <div className={styles.band__body}>{children}</div>\n\n {footer !== undefined && <div className={styles.band__footer}>{footer}</div>}\n </Tag>\n );\n};\n\n/**\n * BandBlueprint — a supergraphic in the band's blueprint style: a fill that fades from\n * `band-line` into `band-bg`, a `band-line-strong` outline and the solid coral dot of the logo.\n * Decorative only (`aria-hidden`); give it to `Band`'s `artwork`.\n * @example <BandBlueprint shape={logos.mark} />\n */\nconst Blueprint: FC<BlueprintProps> = ({ shape, className, testId }) => {\n const base = svgId('ui-blueprint', useId());\n\n return (\n <svg\n className={cx(styles.blueprint, className)}\n viewBox={shape.viewBox}\n aria-hidden=\"true\"\n focusable=\"false\"\n data-testid={testId}\n >\n <defs>\n <linearGradient id={`${base}-fill`} x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\">\n <stop offset=\"0\" className={styles['blueprint__stop-from']} />\n <stop offset={band.blueprintHold} className={styles['blueprint__stop-to']} />\n </linearGradient>\n </defs>\n <path className={styles.blueprint__body} fill={`url(#${base}-fill)`} d={shape.body} />\n {shape.dot !== undefined && <path className={styles.blueprint__dot} d={shape.dot} />}\n </svg>\n );\n};\n\nexport const BandBlueprint: FC<BlueprintProps> = /*#__PURE__*/ named(Blueprint, 'BandBlueprint');\n\nexport default /*#__PURE__*/ memo(/*#__PURE__*/ named(Band, 'Band')) as typeof Band;\n"],"names":["GLOWS","DOT_REACH","sidesOf","side","fadeStops","edge","svgId","prefix","id","Band","children","Tag","glow","dots","artwork","footer","ariaLabel","ariaLabelledBy","className","testId","base","useId","fade","jsxs","cx","styles","jsx","band","Fragment","offset","isEdge","Blueprint","shape","BandBlueprint","named","index","memo"],"mappings":"8UAkDMA,EAAQ,CACZ,MAAO,CAAE,GAAI,KAAM,GAAI,MAAO,EAAG,KAAA,EACjC,IAAK,CAAE,GAAI,MAAO,GAAI,MAAO,EAAG,KAAA,CAClC,EAMMC,EAAY,IAEZC,EAAWC,GACXA,IAAS,OAAe,CAAC,QAAS,KAAK,EACvCA,IAAS,OAAe,CAAA,EACrB,CAACA,CAAI,EAIRC,EAAaD,GACjBD,EAAQC,CAAI,EAAE,QAAQE,GACpB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M,CAAC"}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { FC, ReactNode } from 'react';
|
|
2
|
-
/** Where a decorative layer sits; `start` and `end` follow the writing direction. */
|
|
3
|
-
export type BandSide = 'start' | 'end' | 'both' | 'none';
|
|
4
|
-
/** A supergraphic's outline: the shape of `logos.mark` of `@handijitcom/ui/design` fits. */
|
|
5
|
-
export type BandBlueprintShape = {
|
|
6
|
-
viewBox: string;
|
|
7
|
-
/** Path data of the body, drawn in the blueprint fill and outline. */
|
|
8
|
-
body: string;
|
|
9
|
-
/** Path data of the mark's dot, filled with the accent like the logo's. */
|
|
10
|
-
dot?: string;
|
|
11
|
-
};
|
|
12
|
-
type BandProps = {
|
|
13
|
-
children: ReactNode;
|
|
14
|
-
/** The element. A `section` is a landmark only with a name: pass `aria-labelledby`. */
|
|
15
|
-
as?: 'section' | 'div' | 'header' | 'footer' | 'aside';
|
|
16
|
-
/** Soft cobalt glows at the top corners. */
|
|
17
|
-
glow?: BandSide;
|
|
18
|
-
/** The dot grid, fading out towards the content. */
|
|
19
|
-
dots?: BandSide;
|
|
20
|
-
/** Decorative artwork at the bottom end (a `BandBlueprint`); hidden below the tablet width. */
|
|
21
|
-
artwork?: ReactNode;
|
|
22
|
-
/** A full-width strip under the content, outside its padding (`StatStrip variant="band"`). */
|
|
23
|
-
footer?: ReactNode;
|
|
24
|
-
'aria-label'?: string;
|
|
25
|
-
'aria-labelledby'?: string;
|
|
26
|
-
className?: string;
|
|
27
|
-
id?: string;
|
|
28
|
-
testId?: string;
|
|
29
|
-
};
|
|
30
|
-
type BlueprintProps = {
|
|
31
|
-
shape: BandBlueprintShape;
|
|
32
|
-
className?: string;
|
|
33
|
-
testId?: string;
|
|
34
|
-
};
|
|
35
|
-
/**
|
|
36
|
-
* Band — the brand band: the navy surface of a hero, a closing call or a footer, the same in
|
|
37
|
-
* both themes. Its imagery (gradient, glows, dot grid) is inline SVG, decorative and hidden from
|
|
38
|
-
* assistive technology; nothing of it is a CSS gradient. Descendants draw their focus ring in
|
|
39
|
-
* `band-focus`, and the `ACCENT` button glows softly on it.
|
|
40
|
-
* @example <Band as="section" aria-labelledby="cta" footer={<StatStrip variant="band" … />}>
|
|
41
|
-
*/
|
|
42
|
-
declare const Band: FC<BandProps>;
|
|
43
|
-
export declare const BandBlueprint: FC<BlueprintProps>;
|
|
44
|
-
declare const _default: typeof Band;
|
|
45
|
-
export default _default;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { FC, ReactNode } from 'react';
|
|
2
|
-
/** Where a decorative layer sits; `start` and `end` follow the writing direction. */
|
|
3
|
-
export type BandSide = 'start' | 'end' | 'both' | 'none';
|
|
4
|
-
/** A supergraphic's outline: the shape of `logos.mark` of `@handijitcom/ui/design` fits. */
|
|
5
|
-
export type BandBlueprintShape = {
|
|
6
|
-
viewBox: string;
|
|
7
|
-
/** Path data of the body, drawn in the blueprint fill and outline. */
|
|
8
|
-
body: string;
|
|
9
|
-
/** Path data of the mark's dot, filled with the accent like the logo's. */
|
|
10
|
-
dot?: string;
|
|
11
|
-
};
|
|
12
|
-
type BandProps = {
|
|
13
|
-
children: ReactNode;
|
|
14
|
-
/** The element. A `section` is a landmark only with a name: pass `aria-labelledby`. */
|
|
15
|
-
as?: 'section' | 'div' | 'header' | 'footer' | 'aside';
|
|
16
|
-
/** Soft cobalt glows at the top corners. */
|
|
17
|
-
glow?: BandSide;
|
|
18
|
-
/** The dot grid, fading out towards the content. */
|
|
19
|
-
dots?: BandSide;
|
|
20
|
-
/** Decorative artwork at the bottom end (a `BandBlueprint`); hidden below the tablet width. */
|
|
21
|
-
artwork?: ReactNode;
|
|
22
|
-
/** A full-width strip under the content, outside its padding (`StatStrip variant="band"`). */
|
|
23
|
-
footer?: ReactNode;
|
|
24
|
-
'aria-label'?: string;
|
|
25
|
-
'aria-labelledby'?: string;
|
|
26
|
-
className?: string;
|
|
27
|
-
id?: string;
|
|
28
|
-
testId?: string;
|
|
29
|
-
};
|
|
30
|
-
type BlueprintProps = {
|
|
31
|
-
shape: BandBlueprintShape;
|
|
32
|
-
className?: string;
|
|
33
|
-
testId?: string;
|
|
34
|
-
};
|
|
35
|
-
/**
|
|
36
|
-
* Band — the brand band: the navy surface of a hero, a closing call or a footer, the same in
|
|
37
|
-
* both themes. Its imagery (gradient, glows, dot grid) is inline SVG, decorative and hidden from
|
|
38
|
-
* assistive technology; nothing of it is a CSS gradient. Descendants draw their focus ring in
|
|
39
|
-
* `band-focus`, and the `ACCENT` button glows softly on it.
|
|
40
|
-
* @example <Band as="section" aria-labelledby="cta" footer={<StatStrip variant="band" … />}>
|
|
41
|
-
*/
|
|
42
|
-
declare const Band: FC<BandProps>;
|
|
43
|
-
export declare const BandBlueprint: FC<BlueprintProps>;
|
|
44
|
-
declare const _default: typeof Band;
|
|
45
|
-
export default _default;
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
import { jsxs as d, jsx as e, Fragment as B } from "react/jsx-runtime";
|
|
2
|
-
import { memo as k, useId as p } from "react";
|
|
3
|
-
import { band as r } from "@handijitcom/ui/design";
|
|
4
|
-
import { cx as u } from "../../helpers/class-name.helper.js";
|
|
5
|
-
import { named as _ } from "../../helpers/component.helper.js";
|
|
6
|
-
const a = {"band":"ui-band-R7KBU","band__backdrop":"ui-band__backdrop-Af55y","band__stop-from":"ui-band__stop-from-00hAo","band__stop-to":"ui-band__stop-to-DVQUx","band__glow-centre":"ui-band__glow-centre-fJw2q","band__glow-edge":"ui-band__glow-edge-MfIb7","band__dot":"ui-band__dot-Wf9Ap","band__mask":"ui-band__mask-XnF25","band__fade-edge":"ui-band__fade-edge-RwkBW","band__fade-clear":"ui-band__fade-clear-6PPNV","band__artwork":"ui-band__artwork-2jDWA","band__body":"ui-band__body-xJs8K","band--artwork":"ui-band--artwork-YtNLU","band__footer":"ui-band__footer-jzQWy","blueprint":"ui-blueprint-jiZgz","blueprint__stop-from":"ui-blueprint__stop-from-Lcz-1","blueprint__stop-to":"ui-blueprint__stop-to-squap","blueprint__body":"ui-blueprint__body-iq9T5","blueprint__dot":"ui-blueprint__dot-DtmUM"};
|
|
7
|
-
const C = {
|
|
8
|
-
start: { cx: "8%", cy: "14%", r: "42%" },
|
|
9
|
-
end: { cx: "92%", cy: "22%", r: "38%" }
|
|
10
|
-
}, b = 0.24, h = (t) => t === "both" ? ["start", "end"] : t === "none" ? [] : [t], G = (t) => h(t).flatMap(
|
|
11
|
-
(s) => s === "start" ? [
|
|
12
|
-
[0, !0],
|
|
13
|
-
[b, !1]
|
|
14
|
-
] : [
|
|
15
|
-
[1 - b, !1],
|
|
16
|
-
[1, !0]
|
|
17
|
-
]
|
|
18
|
-
), g = (t, s) => `${t}-${s.replace(/[^\w-]/g, "")}`, O = ({
|
|
19
|
-
children: t,
|
|
20
|
-
as: s = "section",
|
|
21
|
-
glow: o = "both",
|
|
22
|
-
dots: n = "end",
|
|
23
|
-
artwork: c,
|
|
24
|
-
footer: m,
|
|
25
|
-
"aria-label": N,
|
|
26
|
-
"aria-labelledby": x,
|
|
27
|
-
className: y,
|
|
28
|
-
id: $,
|
|
29
|
-
testId: v
|
|
30
|
-
}) => {
|
|
31
|
-
const l = g("ui-band", p()), f = G(n);
|
|
32
|
-
return /* @__PURE__ */ d(
|
|
33
|
-
s,
|
|
34
|
-
{
|
|
35
|
-
id: $,
|
|
36
|
-
className: u(a.band, c !== void 0 && a["band--artwork"], y),
|
|
37
|
-
"aria-label": N,
|
|
38
|
-
"aria-labelledby": x,
|
|
39
|
-
"data-ui-band": "",
|
|
40
|
-
"data-testid": v,
|
|
41
|
-
children: [
|
|
42
|
-
/* @__PURE__ */ d("svg", { className: a.band__backdrop, "aria-hidden": "true", focusable: "false", children: [
|
|
43
|
-
/* @__PURE__ */ d("defs", { children: [
|
|
44
|
-
/* @__PURE__ */ d("linearGradient", { id: `${l}-fill`, x1: "0", y1: "0", x2: "0", y2: "1", children: [
|
|
45
|
-
/* @__PURE__ */ e("stop", { offset: "0", className: a["band__stop-from"] }),
|
|
46
|
-
/* @__PURE__ */ e("stop", { offset: r.gradientHold, className: a["band__stop-from"] }),
|
|
47
|
-
/* @__PURE__ */ e("stop", { offset: "1", className: a["band__stop-to"] })
|
|
48
|
-
] }),
|
|
49
|
-
/* @__PURE__ */ d("radialGradient", { id: `${l}-glow`, children: [
|
|
50
|
-
/* @__PURE__ */ e("stop", { offset: "0", className: a["band__glow-centre"] }),
|
|
51
|
-
/* @__PURE__ */ e("stop", { offset: "1", className: a["band__glow-edge"] })
|
|
52
|
-
] }),
|
|
53
|
-
f.length > 0 && /* @__PURE__ */ d(B, { children: [
|
|
54
|
-
/* @__PURE__ */ e(
|
|
55
|
-
"pattern",
|
|
56
|
-
{
|
|
57
|
-
id: `${l}-dots`,
|
|
58
|
-
width: r.dotCell,
|
|
59
|
-
height: r.dotCell,
|
|
60
|
-
patternUnits: "userSpaceOnUse",
|
|
61
|
-
children: /* @__PURE__ */ e(
|
|
62
|
-
"circle",
|
|
63
|
-
{
|
|
64
|
-
className: a.band__dot,
|
|
65
|
-
cx: r.dotCell / 2,
|
|
66
|
-
cy: r.dotCell / 2,
|
|
67
|
-
r: r.dotRadius
|
|
68
|
-
}
|
|
69
|
-
)
|
|
70
|
-
}
|
|
71
|
-
),
|
|
72
|
-
/* @__PURE__ */ e("linearGradient", { id: `${l}-fade`, x1: "0", y1: "0", x2: "1", y2: "0", children: f.map(([i, w]) => /* @__PURE__ */ e(
|
|
73
|
-
"stop",
|
|
74
|
-
{
|
|
75
|
-
offset: i,
|
|
76
|
-
className: w ? a["band__fade-edge"] : a["band__fade-clear"]
|
|
77
|
-
},
|
|
78
|
-
i
|
|
79
|
-
)) }),
|
|
80
|
-
/* @__PURE__ */ e("mask", { id: `${l}-mask`, className: a.band__mask, children: /* @__PURE__ */ e("rect", { width: "100%", height: "100%", fill: `url(#${l}-fade)` }) })
|
|
81
|
-
] })
|
|
82
|
-
] }),
|
|
83
|
-
/* @__PURE__ */ e("rect", { width: "100%", height: "100%", fill: `url(#${l}-fill)` }),
|
|
84
|
-
h(o).map((i) => /* @__PURE__ */ e("circle", { ...C[i], fill: `url(#${l}-glow)` }, i)),
|
|
85
|
-
f.length > 0 && /* @__PURE__ */ e(
|
|
86
|
-
"rect",
|
|
87
|
-
{
|
|
88
|
-
width: "100%",
|
|
89
|
-
height: "100%",
|
|
90
|
-
fill: `url(#${l}-dots)`,
|
|
91
|
-
mask: `url(#${l}-mask)`
|
|
92
|
-
}
|
|
93
|
-
)
|
|
94
|
-
] }),
|
|
95
|
-
c !== void 0 && /* @__PURE__ */ e("div", { className: a.band__artwork, "aria-hidden": "true", children: c }),
|
|
96
|
-
/* @__PURE__ */ e("div", { className: a.band__body, children: t }),
|
|
97
|
-
m !== void 0 && /* @__PURE__ */ e("div", { className: a.band__footer, children: m })
|
|
98
|
-
]
|
|
99
|
-
}
|
|
100
|
-
);
|
|
101
|
-
}, H = ({ shape: t, className: s, testId: o }) => {
|
|
102
|
-
const n = g("ui-blueprint", p());
|
|
103
|
-
return /* @__PURE__ */ d(
|
|
104
|
-
"svg",
|
|
105
|
-
{
|
|
106
|
-
className: u(a.blueprint, s),
|
|
107
|
-
viewBox: t.viewBox,
|
|
108
|
-
"aria-hidden": "true",
|
|
109
|
-
focusable: "false",
|
|
110
|
-
"data-testid": o,
|
|
111
|
-
children: [
|
|
112
|
-
/* @__PURE__ */ e("defs", { children: /* @__PURE__ */ d("linearGradient", { id: `${n}-fill`, x1: "0", y1: "0", x2: "0", y2: "1", children: [
|
|
113
|
-
/* @__PURE__ */ e("stop", { offset: "0", className: a["blueprint__stop-from"] }),
|
|
114
|
-
/* @__PURE__ */ e("stop", { offset: r.blueprintHold, className: a["blueprint__stop-to"] })
|
|
115
|
-
] }) }),
|
|
116
|
-
/* @__PURE__ */ e("path", { className: a.blueprint__body, fill: `url(#${n}-fill)`, d: t.body }),
|
|
117
|
-
t.dot !== void 0 && /* @__PURE__ */ e("path", { className: a.blueprint__dot, d: t.dot })
|
|
118
|
-
]
|
|
119
|
-
}
|
|
120
|
-
);
|
|
121
|
-
}, D = /* @__PURE__ */ _(H, "BandBlueprint"), E = /* @__PURE__ */ k(/* @__PURE__ */ _(O, "Band"));
|
|
122
|
-
export {
|
|
123
|
-
D as BandBlueprint,
|
|
124
|
-
E as default
|
|
125
|
-
};
|
|
126
|
-
//# sourceMappingURL=index.js.map
|