duck-dev-lib 0.0.19 → 0.0.21

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.
@@ -2,7 +2,68 @@ var tabs = {
2
2
  buttons: "Buttons",
3
3
  loaders: "Loaders",
4
4
  tabs: "Tabs",
5
- svg: "SVG icon"
5
+ svg: "SVG icon",
6
+ input: "Input",
7
+ notifications: "Notifications"
8
+ };
9
+ var notifications = {
10
+ title: "Duck Dev UI Library - Notifications",
11
+ quickDemo: "Show notification",
12
+ clearAll: "Clear all",
13
+ basic: {
14
+ title: "Notification",
15
+ description: "Component for displaying status messages. Appearance and disappearance animations are implemented strictly in CSS. Colors are taken from the library palette. The notification can be positioned at the top, center, or bottom of the screen.",
16
+ usage: "Usage:",
17
+ inputs: "Input Parameters:",
18
+ inputType: "type of notification: 'success' | 'warning' | 'error'",
19
+ inputTitle: "title text",
20
+ inputMessage: "message text",
21
+ inputDuration: "lifetime in milliseconds; 0 disables auto-close",
22
+ inputPosition: "vertical position: 'top' | 'center' | 'bottom'",
23
+ examples: "Examples:"
24
+ },
25
+ service: {
26
+ title: "Service and Container",
27
+ description: "Use DuckDevNotificationService to show messages from anywhere. Place a single container once in your app to render notifications.",
28
+ install: "How to use:"
29
+ },
30
+ api: {
31
+ title: "API",
32
+ show: "show a notification with full options and returns its id",
33
+ success: "shortcut for type: 'success'",
34
+ warning: "shortcut for type: 'warning'",
35
+ error: "shortcut for type: 'error'",
36
+ remove: "remove a notification by id",
37
+ clear: "remove all notifications",
38
+ optionsTitle: "NotificationOptions",
39
+ durationHint: "0 disables auto-close; value is in milliseconds"
40
+ },
41
+ positions: {
42
+ title: "Positions and duration",
43
+ description: "You can place the notification at the top, center or bottom and control auto-close duration.",
44
+ top: "Top (auto close)",
45
+ centerNoAuto: "Center (no auto close)",
46
+ bottomLong: "Bottom (6s)"
47
+ },
48
+ advanced: {
49
+ title: "Advanced",
50
+ cssOnly: "CSS-only transitions for enter/leave states.",
51
+ palette: "Colors are taken from the Duck Dev palette (CSS variables).",
52
+ stacking: "Notifications stack and can be dismissed individually or all at once.",
53
+ accessibility: "Each notification is focusable and closable with a button; you can set titles/messages programmatically."
54
+ },
55
+ tip: {
56
+ clickToClose: "Tip: click a notification to close it."
57
+ },
58
+ snippets: {
59
+ titleSuccess: "Success",
60
+ sampleMessage: "Operation completed successfully"
61
+ },
62
+ examples: {
63
+ successTop: "Success (top)",
64
+ warningCenter: "Warning (center)",
65
+ errorBottom: "Error (bottom)"
66
+ }
6
67
  };
7
68
  var buttons = {
8
69
  title: "Duck Dev UI Library - Button Components",
@@ -38,6 +99,25 @@ var buttons = {
38
99
  exampleOrange: "Orange",
39
100
  exampleGray: "Gray",
40
101
  exampleDark: "Dark"
102
+ },
103
+ flip: {
104
+ title: "Button Flip",
105
+ description: "Button with flip animation and background color change. Now you can choose the color like for other buttons.",
106
+ usage: "Usage",
107
+ inputs: "Input Parameters:",
108
+ examples: "Examples:",
109
+ inputText: "button text",
110
+ inputColorButton: "button color (White, Violet, Orange, Gray, Dark)",
111
+ inputDisabled: "disable the button",
112
+ inputDirection: "arrow direction: 'previous' | 'next'",
113
+ inputArrowIndex: "arrow offset (number)",
114
+ exampleWhite: "White (default)",
115
+ exampleViolet: "Violet",
116
+ exampleOrange: "Orange",
117
+ exampleGray: "Gray",
118
+ exampleDark: "Dark",
119
+ examplePrev: "Direction: previous",
120
+ exampleNext: "Direction: next"
41
121
  }
42
122
  };
43
123
  var loaders = {
@@ -123,7 +203,10 @@ var svgComponent = {
123
203
  howToAdd: "How to Add New Icon:",
124
204
  step1: "Add the SVG icon to the icons folder.",
125
205
  step2: "Register the icon in the icons configuration file.",
126
- step3: "Use the icon tag with the registered ID in your template."
206
+ step3: "Use the icon tag with the registered ID in your template.",
207
+ searchPlaceholder: "Search icons by name or id...",
208
+ clickToCopy: "Click to copy",
209
+ copied: "Copied!"
127
210
  };
128
211
  var inputComponent = {
129
212
  title: "Input Field Component",
@@ -176,6 +259,7 @@ var inputComponent = {
176
259
  };
177
260
  var en = {
178
261
  tabs: tabs,
262
+ notifications: notifications,
179
263
  buttons: buttons,
180
264
  loaders: loaders,
181
265
  tabsComponent: tabsComponent,
@@ -183,5 +267,5 @@ var en = {
183
267
  inputComponent: inputComponent
184
268
  };
185
269
 
186
- export { buttons, en as default, inputComponent, loaders, svgComponent, tabs, tabsComponent };
187
- //# sourceMappingURL=duck-dev-lib-en-1BsT5Qp6.mjs.map
270
+ export { buttons, en as default, inputComponent, loaders, notifications, svgComponent, tabs, tabsComponent };
271
+ //# sourceMappingURL=duck-dev-lib-en-G203o4VW.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"duck-dev-lib-en-1BsT5Qp6.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"duck-dev-lib-en-G203o4VW.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -2,7 +2,68 @@ var tabs = {
2
2
  buttons: "Кнопки",
3
3
  loaders: "Загрузчики",
4
4
  tabs: "Вкладки",
5
- svg: "SVG icon"
5
+ svg: "SVG icon",
6
+ input: "Вввод",
7
+ notifications: "Уведомления"
8
+ };
9
+ var notifications = {
10
+ title: "Duck Dev UI Library - Уведомления",
11
+ quickDemo: "Показать уведомление",
12
+ clearAll: "Очистить все",
13
+ basic: {
14
+ title: "Уведомление",
15
+ description: "Компонент для отображения статусных сообщений. Анимации появления и исчезновения реализованы строго на CSS. Цвета берутся из палитры библиотеки. Уведомление может располагаться сверху, по центру или снизу экрана.",
16
+ usage: "Использование:",
17
+ inputs: "Входные параметры:",
18
+ inputType: "тип уведомления: 'success' | 'warning' | 'error'",
19
+ inputTitle: "заголовок",
20
+ inputMessage: "сообщение",
21
+ inputDuration: "время жизни в миллисекундах; 0 — без автозакрытия",
22
+ inputPosition: "вертикальное положение: 'top' | 'center' | 'bottom'",
23
+ examples: "Примеры:"
24
+ },
25
+ service: {
26
+ title: "Сервис и контейнер",
27
+ description: "Используйте DuckDevNotificationService, чтобы показывать сообщения из любого места. Разместите контейнер один раз в приложении для рендера уведомлений.",
28
+ install: "Как использовать:"
29
+ },
30
+ api: {
31
+ title: "API",
32
+ show: "показывает уведомление с любыми опциями и возвращает его id",
33
+ success: "шорткат для типа 'success'",
34
+ warning: "шорткат для типа 'warning'",
35
+ error: "шорткат для типа 'error'",
36
+ remove: "удалить уведомление по id",
37
+ clear: "удалить все уведомления",
38
+ optionsTitle: "NotificationOptions",
39
+ durationHint: "0 — без автозакрытия; значение в миллисекундах"
40
+ },
41
+ positions: {
42
+ title: "Позиции и длительность",
43
+ description: "Можно располагать уведомления сверху, по центру или снизу и управлять временем автозакрытия.",
44
+ top: "Сверху (автозакрытие)",
45
+ centerNoAuto: "Центр (без автозакрытия)",
46
+ bottomLong: "Снизу (6с)"
47
+ },
48
+ advanced: {
49
+ title: "Дополнительно",
50
+ cssOnly: "Переходы появления/исчезновения только на CSS.",
51
+ palette: "Цвета берутся из палитры Duck Dev (CSS переменные).",
52
+ stacking: "Уведомления складываются стопкой и могут закрываться по одному или все сразу.",
53
+ accessibility: "Каждое уведомление можно закрыть кнопкой; заголовок и текст задаются программно."
54
+ },
55
+ tip: {
56
+ clickToClose: "Подсказка: кликните по уведомлению, чтобы закрыть."
57
+ },
58
+ snippets: {
59
+ titleSuccess: "Успех",
60
+ sampleMessage: "Операция успешно выполнена"
61
+ },
62
+ examples: {
63
+ successTop: "Успех (сверху)",
64
+ warningCenter: "Предупреждение (центр)",
65
+ errorBottom: "Ошибка (снизу)"
66
+ }
6
67
  };
7
68
  var buttons = {
8
69
  title: "Duck Dev UI Library - Компоненты кнопок",
@@ -38,6 +99,25 @@ var buttons = {
38
99
  exampleOrange: "Orange",
39
100
  exampleGray: "Gray",
40
101
  exampleDark: "Dark"
102
+ },
103
+ flip: {
104
+ title: "Button Flip",
105
+ description: "Кнопка с анимацией переворота и сменой цвета фона. Теперь можно выбирать цвет, как и для других кнопок.",
106
+ usage: "Использование",
107
+ inputs: "Входные параметры:",
108
+ examples: "Примеры:",
109
+ inputText: "текст кнопки",
110
+ inputColorButton: "цвет кнопки (White, Violet, Orange, Gray, Dark)",
111
+ inputDisabled: "отключить кнопку",
112
+ inputDirection: "направление стрелки: 'previous' | 'next'",
113
+ inputArrowIndex: "смещение стрелки (число)",
114
+ exampleWhite: "Белая (по умолчанию)",
115
+ exampleViolet: "Фиолетовая",
116
+ exampleOrange: "Оранжевая",
117
+ exampleGray: "Серая",
118
+ exampleDark: "Тёмная",
119
+ examplePrev: "Направление: previous",
120
+ exampleNext: "Направление: next"
41
121
  }
42
122
  };
43
123
  var loaders = {
@@ -123,7 +203,10 @@ var svgComponent = {
123
203
  howToAdd: "Как добавить новую иконку:",
124
204
  step1: "Добавьте SVG иконку в папку icons.",
125
205
  step2: "Зарегистрируйте иконку в конфигурационном файле icons.",
126
- step3: "Используйте тег иконки с зарегистрированным ID в вашем шаблоне."
206
+ step3: "Используйте тег иконки с зарегистрированным ID в вашем шаблоне.",
207
+ searchPlaceholder: "Поиск иконок по имени или id...",
208
+ clickToCopy: "Кликните, чтобы скопировать",
209
+ copied: "Скопировано!"
127
210
  };
128
211
  var inputComponent = {
129
212
  title: "Компонент поля ввода",
@@ -176,6 +259,7 @@ var inputComponent = {
176
259
  };
177
260
  var ru = {
178
261
  tabs: tabs,
262
+ notifications: notifications,
179
263
  buttons: buttons,
180
264
  loaders: loaders,
181
265
  tabsComponent: tabsComponent,
@@ -183,5 +267,5 @@ var ru = {
183
267
  inputComponent: inputComponent
184
268
  };
185
269
 
186
- export { buttons, ru as default, inputComponent, loaders, svgComponent, tabs, tabsComponent };
187
- //# sourceMappingURL=duck-dev-lib-ru-DZTf4Lop.mjs.map
270
+ export { buttons, ru as default, inputComponent, loaders, notifications, svgComponent, tabs, tabsComponent };
271
+ //# sourceMappingURL=duck-dev-lib-ru-DY4qccwH.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"duck-dev-lib-ru-DZTf4Lop.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"duck-dev-lib-ru-DY4qccwH.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}