duck-dev-lib 0.0.26 → 0.0.28

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 CHANGED
@@ -31,6 +31,7 @@ This command will compile your project, and the build artifacts will be placed i
31
31
  Once the project is built, you can publish your library by following these steps:
32
32
 
33
33
  1. Navigate to the `dist` directory:
34
+
34
35
  ```bash
35
36
  cd dist/duck-dev-lib
36
37
  ```
@@ -4,9 +4,11 @@ var tabs = {
4
4
  loaders: "Loaders",
5
5
  tabs: "Tabs",
6
6
  svg: "SVG icon",
7
+ card: "Card",
7
8
  input: "Input",
8
9
  notifications: "Notifications",
9
10
  badge: "Badges",
11
+ slider: "Slider",
10
12
  directives: "Directives"
11
13
  };
12
14
  var notifications = {
@@ -68,6 +70,50 @@ var notifications = {
68
70
  errorBottom: "Error (bottom)"
69
71
  }
70
72
  };
73
+ var slider = {
74
+ title: "Duck Dev UI Library - Slider",
75
+ required: "required",
76
+ raindrops: {
77
+ title: "Raindrops slider",
78
+ description: "A flip-style slider with a blurred previous slide and smooth transitions.",
79
+ usage: "Usage:",
80
+ inputs: "Input Parameters:",
81
+ inputItems: "array of slide templates",
82
+ inputInterval: "interval between auto switches in ms (default: 3000)",
83
+ inputAutoplay: "start autoplay on init (default: true)",
84
+ examples: "Examples:",
85
+ exampleBasic: "Basic"
86
+ },
87
+ classic: {
88
+ title: "Classic horizontal slider",
89
+ description: "Simple horizontal slide-in/slide-out transitions. Stretches to the container size.",
90
+ usage: "Usage:",
91
+ inputs: "Input Parameters:",
92
+ inputItems: "array of slide templates",
93
+ inputInterval: "interval between auto switches in ms (default: 3000)",
94
+ inputAutoplay: "start autoplay on init (default: true)",
95
+ examples: "Examples:",
96
+ exampleBasic: "Classic horizontal slide"
97
+ },
98
+ colorDescription: "Button palette color (e.g. 'White'). Used for styling consistency.",
99
+ demo: {
100
+ heroTitle: "Build delightful interfaces faster",
101
+ heroSubtitle: "Duck Dev UI provides accessible, themeable components with sensible defaults so you can ship quickly.",
102
+ heroCta: "Explore components",
103
+ features: {
104
+ accessibleTitle: "Accessible",
105
+ accessibleDesc: "Keyboard-friendly and ARIA‑aware out of the box.",
106
+ themeableTitle: "Themeable",
107
+ themeableDesc: "Uses CSS variables to match your brand palette.",
108
+ lightweightTitle: "Lightweight",
109
+ lightweightDesc: "Small, focused components with zero heavy deps."
110
+ },
111
+ code: {
112
+ quickStartTitle: "Quick start",
113
+ tip: "Tip: Use templates to pass rich content into each slide."
114
+ }
115
+ }
116
+ };
71
117
  var buttons = {
72
118
  title: "Duck Dev UI Library - Button Components",
73
119
  glideOver: {
@@ -286,6 +332,12 @@ var badgeDoc = {
286
332
  inputColor: "color from palette: Violet | Orange | White | Gray | Dark",
287
333
  inputVariant: "visual style: solid | soft | outline",
288
334
  inputSize: "badge size: sm | md",
335
+ inputsDesc: {
336
+ text: "<strong>text</strong> — text that will be displayed inside the badge",
337
+ color: "<strong>color</strong> — color from palette: Violet | Orange | White | Gray | Dark",
338
+ variant: "<strong>variant</strong> — visual style: solid | soft | outline",
339
+ size: "<strong>size</strong> — badge size: sm | md"
340
+ },
289
341
  examples: "Examples",
290
342
  solidViolet: "Solid / Violet",
291
343
  solidOrange: "Solid / Orange",
@@ -305,6 +357,8 @@ var directivesDoc = {
305
357
  inputs: "Inputs",
306
358
  inputDirection: "layout direction: 'row' | 'col' (default: 'row')",
307
359
  inputGap: "space between children: number (px) or string like '12px', '0.5rem'. Default: null",
360
+ inputJustify: "horizontal alignment (justify-content): flex-start | center | flex-end | space-between | space-around | space-evenly (default: center)",
361
+ inputAlign: "vertical alignment (align-items): flex-start | center | flex-end | stretch | baseline (default: center)",
308
362
  examples: "Examples",
309
363
  row8: "Row with 8px gap",
310
364
  col12: "Column with 12px gap",
@@ -346,9 +400,38 @@ var accordionDoc = {
346
400
  }
347
401
  }
348
402
  };
403
+ var cardDoc = {
404
+ title: "Duck Dev UI Library - Card Accent",
405
+ basic: {
406
+ title: "Card Accent",
407
+ description: "A simple card with a colored left border and styled content. Accepts an HTMLElement and an accent color.",
408
+ usage: "Usage:",
409
+ inputs: "Inputs:",
410
+ examples: "Examples:"
411
+ },
412
+ inputsDesc: {
413
+ content: "<strong>content</strong> — HTMLElement that will be displayed inside the card",
414
+ color: "<strong>color</strong> — AccentEnumColor for the left border color"
415
+ },
416
+ examplesDesc: {
417
+ "default": "<strong>Default</strong> accent card with white color",
418
+ violet: "<strong>Violet</strong> accent card",
419
+ orange: "<strong>Orange</strong> accent card",
420
+ gray: "<strong>Gray</strong> accent card",
421
+ dark: "<strong>Dark</strong> accent card"
422
+ },
423
+ examples: {
424
+ defaultWhite: "Default (White)",
425
+ violet: "Violet",
426
+ orange: "Orange",
427
+ gray: "Gray",
428
+ dark: "Dark"
429
+ }
430
+ };
349
431
  var en = {
350
432
  tabs: tabs,
351
433
  notifications: notifications,
434
+ slider: slider,
352
435
  buttons: buttons,
353
436
  loaders: loaders,
354
437
  tabsComponent: tabsComponent,
@@ -356,8 +439,9 @@ var en = {
356
439
  inputComponent: inputComponent,
357
440
  badgeDoc: badgeDoc,
358
441
  directivesDoc: directivesDoc,
359
- accordionDoc: accordionDoc
442
+ accordionDoc: accordionDoc,
443
+ cardDoc: cardDoc
360
444
  };
361
445
 
362
- export { accordionDoc, badgeDoc, buttons, en as default, directivesDoc, inputComponent, loaders, notifications, svgComponent, tabs, tabsComponent };
363
- //# sourceMappingURL=duck-dev-lib-en-4OEFIyu1.mjs.map
446
+ export { accordionDoc, badgeDoc, buttons, cardDoc, en as default, directivesDoc, inputComponent, loaders, notifications, slider, svgComponent, tabs, tabsComponent };
447
+ //# sourceMappingURL=duck-dev-lib-en-mOVobVPA.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"duck-dev-lib-en-4OEFIyu1.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"duck-dev-lib-en-mOVobVPA.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -4,9 +4,11 @@ var tabs = {
4
4
  loaders: "Загрузчики",
5
5
  tabs: "Вкладки",
6
6
  svg: "SVG icon",
7
+ card: "Карточки",
7
8
  input: "Вввод",
8
9
  notifications: "Уведомления",
9
10
  badge: "Бейджи",
11
+ slider: "Слайдер",
10
12
  directives: "Директивы"
11
13
  };
12
14
  var notifications = {
@@ -68,6 +70,50 @@ var notifications = {
68
70
  errorBottom: "Ошибка (снизу)"
69
71
  }
70
72
  };
73
+ var slider = {
74
+ title: "Duck Dev UI Library - Слайдер",
75
+ required: "обязательный",
76
+ raindrops: {
77
+ title: "Слайдер капли дождя",
78
+ description: "Слайдер в стиле flip с размытием предыдущего слайда и плавными переходами.",
79
+ usage: "Использование:",
80
+ inputs: "Входные параметры:",
81
+ inputItems: "массив шаблонов слайдов",
82
+ inputInterval: "интервал авто‑переключения в мс (по умолчанию: 3000)",
83
+ inputAutoplay: "запуск автопрокрутки при инициализации (по умолчанию: true)",
84
+ examples: "Примеры:",
85
+ exampleBasic: "Базовый"
86
+ },
87
+ classic: {
88
+ title: "Классический горизонтальный слайдер",
89
+ description: "Простые горизонтальные переходы входа/выхода. Растягивается под размер контейнера.",
90
+ usage: "Использование:",
91
+ inputs: "Входные параметры:",
92
+ inputItems: "массив шаблонов слайдов",
93
+ inputInterval: "интервал авто‑переключения в мс (по умолчанию: 3000)",
94
+ inputAutoplay: "запуск автопрокрутки при инициализации (по умолчанию: true)",
95
+ examples: "Примеры:",
96
+ exampleBasic: "Классическое горизонтальное листание"
97
+ },
98
+ colorDescription: "Цвет кнопок (например, 'White'). Используется для стилистического соответствия.",
99
+ demo: {
100
+ heroTitle: "Создавайте отличные интерфейсы быстрее",
101
+ heroSubtitle: "Duck Dev UI предоставляет доступные и настраиваемые компоненты с разумными значениями по умолчанию — выпускайте быстрее.",
102
+ heroCta: "Изучить компоненты",
103
+ features: {
104
+ accessibleTitle: "Доступность",
105
+ accessibleDesc: "Дружелюбно к клавиатуре и ARIA из коробки.",
106
+ themeableTitle: "Темизация",
107
+ themeableDesc: "Использует CSS‑переменные под вашу палитру.",
108
+ lightweightTitle: "Легкость",
109
+ lightweightDesc: "Небольшие, сфокусированные компоненты без тяжёлых зависимостей."
110
+ },
111
+ code: {
112
+ quickStartTitle: "Быстрый старт",
113
+ tip: "Совет: передавайте в слайды полноценные шаблоны."
114
+ }
115
+ }
116
+ };
71
117
  var buttons = {
72
118
  title: "Duck Dev UI Library - Компоненты кнопок",
73
119
  glideOver: {
@@ -286,6 +332,12 @@ var badgeDoc = {
286
332
  inputColor: "цвет из палитры: Violet | Orange | White | Gray | Dark",
287
333
  inputVariant: "визуальный стиль: solid | soft | outline",
288
334
  inputSize: "размер бейджа: sm | md",
335
+ inputsDesc: {
336
+ text: "<strong>text</strong> — текст, который будет отображаться внутри бейджа",
337
+ color: "<strong>color</strong> — цвет из палитры: Violet | Orange | White | Gray | Dark",
338
+ variant: "<strong>variant</strong> — визуальный стиль: solid | soft | outline",
339
+ size: "<strong>size</strong> — размер бейджа: sm | md"
340
+ },
289
341
  examples: "Примеры",
290
342
  solidViolet: "Solid / Violet",
291
343
  solidOrange: "Solid / Orange",
@@ -305,6 +357,8 @@ var directivesDoc = {
305
357
  inputs: "Входные параметры",
306
358
  inputDirection: "направление раскладки: 'row' | 'col' (по умолчанию: 'row')",
307
359
  inputGap: "расстояние между дочерними элементами: number (px) или string, например '12px', '0.5rem'. По умолчанию: null",
360
+ inputJustify: "горизонтальное выравнивание (justify-content): flex-start | center | flex-end | space-between | space-around | space-evenly (по умолчанию: center)",
361
+ inputAlign: "вертикальное выравнивание (align-items): flex-start | center | flex-end | stretch | baseline (по умолчанию: center)",
308
362
  examples: "Примеры",
309
363
  row8: "Row с отступом 8px",
310
364
  col12: "Column с отступом 12px",
@@ -346,9 +400,38 @@ var accordionDoc = {
346
400
  }
347
401
  }
348
402
  };
403
+ var cardDoc = {
404
+ title: "Duck Dev UI Library - Карточка с акцентом",
405
+ basic: {
406
+ title: "Карточка с акцентом",
407
+ description: "Простая карточка с цветной левой границей и стилизованным содержимым. Принимает HTMLElement и цвет акцента.",
408
+ usage: "Использование:",
409
+ inputs: "Входные параметры:",
410
+ examples: "Примеры:"
411
+ },
412
+ inputsDesc: {
413
+ content: "<strong>content</strong> — HTMLElement, который будет отображён внутри карточки",
414
+ color: "<strong>color</strong> — AccentEnumColor для цвета левой границы"
415
+ },
416
+ examplesDesc: {
417
+ "default": "<strong>По умолчанию</strong> — карточка с белым акцентом",
418
+ violet: "<strong>Violet</strong> — карточка с фиолетовым акцентом",
419
+ orange: "<strong>Orange</strong> — карточка с оранжевым акцентом",
420
+ gray: "<strong>Gray</strong> — карточка с серым акцентом",
421
+ dark: "<strong>Dark</strong> — карточка с тёмным акцентом"
422
+ },
423
+ examples: {
424
+ defaultWhite: "По умолчанию (White)",
425
+ violet: "Violet",
426
+ orange: "Orange",
427
+ gray: "Gray",
428
+ dark: "Dark"
429
+ }
430
+ };
349
431
  var ru = {
350
432
  tabs: tabs,
351
433
  notifications: notifications,
434
+ slider: slider,
352
435
  buttons: buttons,
353
436
  loaders: loaders,
354
437
  tabsComponent: tabsComponent,
@@ -356,8 +439,9 @@ var ru = {
356
439
  inputComponent: inputComponent,
357
440
  badgeDoc: badgeDoc,
358
441
  directivesDoc: directivesDoc,
359
- accordionDoc: accordionDoc
442
+ accordionDoc: accordionDoc,
443
+ cardDoc: cardDoc
360
444
  };
361
445
 
362
- export { accordionDoc, badgeDoc, buttons, ru as default, directivesDoc, inputComponent, loaders, notifications, svgComponent, tabs, tabsComponent };
363
- //# sourceMappingURL=duck-dev-lib-ru-CcBIFkk3.mjs.map
446
+ export { accordionDoc, badgeDoc, buttons, cardDoc, ru as default, directivesDoc, inputComponent, loaders, notifications, slider, svgComponent, tabs, tabsComponent };
447
+ //# sourceMappingURL=duck-dev-lib-ru-Vu8xDdcB.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"duck-dev-lib-ru-CcBIFkk3.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"duck-dev-lib-ru-Vu8xDdcB.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}