@appsbd/vue3-appsbd-ui 1.0.4 → 1.0.6

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 (91) hide show
  1. package/.ai/ai_ref_AbAvatar.md +41 -41
  2. package/.ai/ai_ref_AbBadge.md +36 -36
  3. package/.ai/ai_ref_AbButton.md +52 -51
  4. package/.ai/ai_ref_AbCard.md +51 -51
  5. package/.ai/ai_ref_AbCarousel.md +36 -36
  6. package/.ai/ai_ref_AbChart.md +46 -46
  7. package/.ai/ai_ref_AbColorPicker.md +42 -42
  8. package/.ai/ai_ref_AbConfirmPopover.md +54 -54
  9. package/.ai/ai_ref_AbCustomField.md +66 -66
  10. package/.ai/ai_ref_AbDarkModeToggler.md +33 -33
  11. package/.ai/ai_ref_AbDateTimePicker.md +74 -74
  12. package/.ai/ai_ref_AbEasyModal.md +56 -56
  13. package/.ai/ai_ref_AbField.md +88 -88
  14. package/.ai/ai_ref_AbFileUploader.md +47 -47
  15. package/.ai/ai_ref_AbFilterPanel.md +67 -67
  16. package/.ai/ai_ref_AbFormCheck.md +58 -58
  17. package/.ai/ai_ref_AbImageRadioInput.md +55 -55
  18. package/.ai/ai_ref_AbInputField.md +66 -66
  19. package/.ai/ai_ref_AbInputTag.md +56 -56
  20. package/.ai/ai_ref_AbKbd.md +23 -23
  21. package/.ai/ai_ref_AbKbdGroup.md +21 -21
  22. package/.ai/ai_ref_AbMainLayout.md +106 -0
  23. package/.ai/ai_ref_AbMultiSelect.md +78 -78
  24. package/.ai/ai_ref_AbNumberField.md +59 -59
  25. package/.ai/ai_ref_AbPinInput.md +33 -33
  26. package/.ai/ai_ref_AbPopover.md +54 -54
  27. package/.ai/ai_ref_AbPricingCard.md +56 -56
  28. package/.ai/ai_ref_AbPricingContainer.md +41 -41
  29. package/.ai/ai_ref_AbPricingTable.md +56 -56
  30. package/.ai/ai_ref_AbProgressbar.md +34 -34
  31. package/.ai/ai_ref_AbScrollbar.md +38 -38
  32. package/.ai/ai_ref_AbSettingsForm.md +46 -46
  33. package/.ai/ai_ref_AbSideMenuItem.md +47 -47
  34. package/.ai/ai_ref_AbSidebar.md +62 -62
  35. package/.ai/ai_ref_AbSkeleton.md +23 -23
  36. package/.ai/ai_ref_AbSlider.md +52 -52
  37. package/.ai/ai_ref_AbTab.md +30 -30
  38. package/.ai/ai_ref_AbTable.md +49 -49
  39. package/.ai/ai_ref_AbTabs.md +37 -37
  40. package/.ai/ai_ref_AbToggle.md +46 -46
  41. package/.ai/ai_ref_AbTooltip.md +39 -39
  42. package/.ai/ai_ref_AbWizard.md +64 -64
  43. package/.ai/ai_ref_AbWizardStep.md +36 -36
  44. package/.ai/ai_ref_abEventBus.md +66 -66
  45. package/.ai/ai_ref_abRequestParam.md +40 -40
  46. package/.ai/ai_ref_abVeeRules.md +33 -33
  47. package/.ai/ai_ref_global_config.md +57 -56
  48. package/.ai/ai_ref_useAlert.md +50 -45
  49. package/.ai/ai_ref_useFileValidator.md +31 -31
  50. package/.ai/ai_ref_useResponsive.md +41 -41
  51. package/.ai/ai_ref_useTheme.md +28 -28
  52. package/.ai/ai_ref_useToast.md +30 -30
  53. package/AI_REFERENCE.md +87 -86
  54. package/design-system.md +403 -403
  55. package/dist/skins/black.css +1 -1
  56. package/dist/skins/black.scss +3 -3
  57. package/dist/skins/cyan.css +1 -1
  58. package/dist/skins/cyan.scss +3 -3
  59. package/dist/skins/default.css +1 -1
  60. package/dist/skins/default.scss +5 -5
  61. package/dist/skins/gray.css +1 -1
  62. package/dist/skins/gray.scss +3 -3
  63. package/dist/skins/green.css +1 -1
  64. package/dist/skins/green.scss +5 -5
  65. package/dist/skins/orange.css +1 -1
  66. package/dist/skins/orange.scss +3 -3
  67. package/dist/skins/pink.css +1 -1
  68. package/dist/skins/pink.scss +3 -3
  69. package/dist/skins/purple.css +1 -1
  70. package/dist/skins/purple.scss +3 -3
  71. package/dist/skins/red.css +1 -1
  72. package/dist/skins/red.scss +3 -3
  73. package/dist/skins/themes/_black.scss +18 -6
  74. package/dist/skins/themes/_blue.scss +18 -43
  75. package/dist/skins/themes/_common_variable.scss +695 -685
  76. package/dist/skins/themes/_cyan.scss +18 -6
  77. package/dist/skins/themes/_gray.scss +18 -7
  78. package/dist/skins/themes/_green.scss +18 -6
  79. package/dist/skins/themes/_grid.scss +32 -30
  80. package/dist/skins/themes/_orange.scss +18 -6
  81. package/dist/skins/themes/_pink.scss +18 -6
  82. package/dist/skins/themes/_purple.scss +18 -6
  83. package/dist/skins/themes/_red.scss +18 -6
  84. package/dist/skins/themes/_violet.scss +18 -6
  85. package/dist/skins/violet.css +1 -1
  86. package/dist/skins/violet.scss +3 -3
  87. package/dist/style.css +1 -1
  88. package/dist/vue3-appsbd-ui.cjs.js +130 -142
  89. package/dist/vue3-appsbd-ui.es.js +21544 -20015
  90. package/package.json +72 -72
  91. package/readme.md +194 -194
@@ -1,59 +1,59 @@
1
- # AbNumberField — AI Reference
2
-
3
- Numeric input with minus/plus buttons, min/max clamping, custom step, and VeeValidate integration. Renders as a seamless pill by default; pass `is-border` to show internal dividers between buttons and input.
4
-
5
- ## Usage
6
-
7
- ```vue
8
- <template>
9
- <ab-number-field v-model="qty" name="quantity" label="Quantity" :min="1" :max="10" :step="1" hints="Clamped between 1 and 10" />
10
-
11
- <ab-number-field v-model="qty" name="quantity" label="Quantity" is-border />
12
- </template>
13
-
14
- <script setup>
15
- import { ref } from 'vue';
16
- const qty = ref(1);
17
- </script>
18
- ```
19
-
20
- ## Props
21
-
22
- | Name | Type | Default | Description |
23
- | --- | --- | --- | --- |
24
- | `modelValue` | `any` | `null` | Two-way-bound numeric value. |
25
- | `label` | `String` | `""` | Field label. |
26
- | `placeholder` | `String` | `""` | Input placeholder. |
27
- | `name` | `String` | **required** | VeeValidate field name. |
28
- | `rules` | `String \| Object` | `""` | VeeValidate rules. |
29
- | `containerClass` | `String` | `"mb-3"` | Class on the wrapper `<div>`. |
30
- | `hints` | `String` | `""` | Helper text beneath the input. |
31
- | `prefix` | `String` | `""` | Prefix text/icon (shortcut for `#prefix` slot). |
32
- | `postfix` | `String` | `""` | Postfix text/icon. |
33
- | `min` | `Number \| String` | `null` | Minimum allowed value. Clamps input and disables the minus button at the floor. |
34
- | `max` | `Number \| String` | `null` | Maximum allowed value. Clamps input and disables the plus button at the ceiling. |
35
- | `step` | `Number \| String` | `1` | Increment/decrement amount. |
36
- | `showButtons` | `Boolean` | `true` | Render the minus/plus controls. |
37
- | `disabled` | `Boolean` | `false` | Disable the field and both buttons. |
38
- | `isBorder` | `Boolean` | `false` | Show inner borders between minus/input/plus. Default is a seamless pill. |
39
- | `isLeftIconBorder` | `Boolean` | `false` | Render border between the prefix icon and the input. |
40
- | `isRightIconBorder` | `Boolean` | `false` | Render border between the postfix icon and the input. |
41
-
42
- ## Events
43
-
44
- | Event | Payload | Description |
45
- | --- | --- | --- |
46
- | `update:modelValue` | `number \| null` | v-model sync. Value is `number` after clamping, or `null` when cleared. |
47
- | `input` | `number` | Fired on input after clamping. |
48
- | `keyup` | `KeyboardEvent` | Forwarded native event. |
49
- | `keydown` | `KeyboardEvent` | Forwarded native event. |
50
- | `paste` | `ClipboardEvent` | Forwarded native event. |
51
-
52
- ## Slots
53
-
54
- | Name | Description |
55
- | --- | --- |
56
- | `label` | Custom label content. |
57
- | `prefix` | Prefix icon / text (rendered before the minus button). |
58
- | `postfix` | Postfix icon / text (rendered after the plus button). |
59
- | `hints` | Helper text (overrides `hints` prop). |
1
+ # AbNumberField — AI Reference
2
+
3
+ Numeric input with minus/plus buttons, min/max clamping, custom step, and VeeValidate integration. Renders as a seamless pill by default; pass `is-border` to show internal dividers between buttons and input.
4
+
5
+ ## Usage
6
+
7
+ ```vue
8
+ <template>
9
+ <ab-number-field v-model="qty" name="quantity" label="Quantity" :min="1" :max="10" :step="1" hints="Clamped between 1 and 10" />
10
+
11
+ <ab-number-field v-model="qty" name="quantity" label="Quantity" is-border />
12
+ </template>
13
+
14
+ <script setup>
15
+ import { ref } from 'vue';
16
+ const qty = ref(1);
17
+ </script>
18
+ ```
19
+
20
+ ## Props
21
+
22
+ | Name | Type | Default | Description |
23
+ | --- | --- | --- | --- |
24
+ | `modelValue` | `any` | `null` | Two-way-bound numeric value. |
25
+ | `label` | `String` | `""` | Field label. |
26
+ | `placeholder` | `String` | `""` | Input placeholder. |
27
+ | `name` | `String` | **required** | VeeValidate field name. |
28
+ | `rules` | `String \| Object` | `""` | VeeValidate rules. |
29
+ | `containerClass` | `String` | `"mb-3"` | Class on the wrapper `<div>`. |
30
+ | `hints` | `String` | `""` | Helper text beneath the input. |
31
+ | `prefix` | `String` | `""` | Prefix text/icon (shortcut for `#prefix` slot). |
32
+ | `postfix` | `String` | `""` | Postfix text/icon. |
33
+ | `min` | `Number \| String` | `null` | Minimum allowed value. Clamps input and disables the minus button at the floor. |
34
+ | `max` | `Number \| String` | `null` | Maximum allowed value. Clamps input and disables the plus button at the ceiling. |
35
+ | `step` | `Number \| String` | `1` | Increment/decrement amount. |
36
+ | `showButtons` | `Boolean` | `true` | Render the minus/plus controls. |
37
+ | `disabled` | `Boolean` | `false` | Disable the field and both buttons. |
38
+ | `isBorder` | `Boolean` | `false` | Show inner borders between minus/input/plus. Default is a seamless pill. |
39
+ | `isLeftIconBorder` | `Boolean` | `false` | Render border between the prefix icon and the input. |
40
+ | `isRightIconBorder` | `Boolean` | `false` | Render border between the postfix icon and the input. |
41
+
42
+ ## Events
43
+
44
+ | Event | Payload | Description |
45
+ | --- | --- | --- |
46
+ | `update:modelValue` | `number \| null` | v-model sync. Value is `number` after clamping, or `null` when cleared. |
47
+ | `input` | `number` | Fired on input after clamping. |
48
+ | `keyup` | `KeyboardEvent` | Forwarded native event. |
49
+ | `keydown` | `KeyboardEvent` | Forwarded native event. |
50
+ | `paste` | `ClipboardEvent` | Forwarded native event. |
51
+
52
+ ## Slots
53
+
54
+ | Name | Description |
55
+ | --- | --- |
56
+ | `label` | Custom label content. |
57
+ | `prefix` | Prefix icon / text (rendered before the minus button). |
58
+ | `postfix` | Postfix icon / text (rendered after the plus button). |
59
+ | `hints` | Helper text (overrides `hints` prop). |
@@ -1,33 +1,33 @@
1
- # AbPinInput — AI Reference
2
-
3
- Segmented PIN/OTP entry input. Renders `length` single-character boxes, optionally split into groups with a separator.
4
-
5
- ## Usage
6
-
7
- ```vue
8
- <template>
9
- <ab-pin-input v-model="pin" :length="6" :group-size="3" show-separator />
10
- <p v-if="pin.length === 6">Entered: {{ pin }}</p>
11
- </template>
12
-
13
- <script setup>
14
- import { ref } from 'vue';
15
- const pin = ref('');
16
- </script>
17
- ```
18
-
19
- ## Props
20
-
21
- | Name | Type | Default | Description |
22
- | --- | --- | --- | --- |
23
- | `modelValue` | `String` | — | Two-way-bound PIN string. |
24
- | `length` | `Number` | `6` | Number of digit boxes. |
25
- | `size` | `String` | `"md"` | Size: `sm`, `md`, `lg`. |
26
- | `showSeparator` | `Boolean` | `false` | Render a separator between groups. |
27
- | `groupSize` | `Number` | `3` | Digits per group when `showSeparator` is true. |
28
-
29
- ## Events
30
-
31
- | Event | Payload | Description |
32
- | --- | --- | --- |
33
- | `update:modelValue` | `pin` | v-model sync on every input change. |
1
+ # AbPinInput — AI Reference
2
+
3
+ Segmented PIN/OTP entry input. Renders `length` single-character boxes, optionally split into groups with a separator.
4
+
5
+ ## Usage
6
+
7
+ ```vue
8
+ <template>
9
+ <ab-pin-input v-model="pin" :length="6" :group-size="3" show-separator />
10
+ <p v-if="pin.length === 6">Entered: {{ pin }}</p>
11
+ </template>
12
+
13
+ <script setup>
14
+ import { ref } from 'vue';
15
+ const pin = ref('');
16
+ </script>
17
+ ```
18
+
19
+ ## Props
20
+
21
+ | Name | Type | Default | Description |
22
+ | --- | --- | --- | --- |
23
+ | `modelValue` | `String` | — | Two-way-bound PIN string. |
24
+ | `length` | `Number` | `6` | Number of digit boxes. |
25
+ | `size` | `String` | `"md"` | Size: `sm`, `md`, `lg`. |
26
+ | `showSeparator` | `Boolean` | `false` | Render a separator between groups. |
27
+ | `groupSize` | `Number` | `3` | Digits per group when `showSeparator` is true. |
28
+
29
+ ## Events
30
+
31
+ | Event | Payload | Description |
32
+ | --- | --- | --- |
33
+ | `update:modelValue` | `pin` | v-model sync on every input change. |
@@ -1,54 +1,54 @@
1
- # AbPopover — AI Reference
2
-
3
- Interactive popover with click, hover, focus, touch, or manual triggers. Content slot receives imperative `close`, `hide`, `show`, and `toggle` helpers.
4
-
5
- ## Usage
6
-
7
- ```vue
8
- <template>
9
- <ab-popover placement="bottom" trigger="click">
10
- <ab-button class="btn-primary">Menu</ab-button>
11
- <template #content="{ close }">
12
- <div class="popover-menu">
13
- <button @click="edit(); close()">Edit</button>
14
- <button @click="remove(); close()">Delete</button>
15
- </div>
16
- </template>
17
- </ab-popover>
18
-
19
- <ab-popover :trigger="['hover', 'focus']" placement="top">
20
- <span>Hover me</span>
21
- <template #content>Rich popover content</template>
22
- </ab-popover>
23
- </template>
24
- ```
25
-
26
- ## Props
27
-
28
- | Name | Type | Default | Description |
29
- | --- | --- | --- | --- |
30
- | `placement` | `String` | `"bottom"` | `top`, `bottom`, `left`, `right`, or `auto-*`. |
31
- | `offset` | `Number \| String` | `8` | Offset from the reference. |
32
- | `gap` | `Number \| String` | `null` | Gap override (used instead of `offset` when set). |
33
- | `disabled` | `Boolean` | `false` | Disable the popover. |
34
- | `arrow` | `Boolean` | `true` | Render the arrow pointer. |
35
- | `arrowPadding` | `Number` | `4` | Padding between arrow and corner. |
36
- | `trigger` | `String \| Array` | `"click"` | `click`, `hover`, `focus`, `touch`, `manual`. Space-separated string or array. |
37
- | `autoHide` | `Boolean` | `true` | Close when clicking outside. |
38
- | `contentClass` | `String` | `""` | Extra class on the content element. |
39
- | `referenceSelector` | `String` | `null` | CSS selector inside the trigger to anchor positioning. |
40
-
41
- ## Events
42
-
43
- | Event | Payload | Description |
44
- | --- | --- | --- |
45
- | `update:modelValue` | `visible: Boolean` | Visibility change (supports `v-model`). |
46
- | `show` | — | Popover shown. |
47
- | `hide` | — | Popover hidden. |
48
-
49
- ## Slots
50
-
51
- | Name | Scope | Description |
52
- | --- | --- | --- |
53
- | `default` | — | Trigger element. |
54
- | `content` | `{ close, hide, show, toggle }` | Popover content — receives imperative controls. |
1
+ # AbPopover — AI Reference
2
+
3
+ Interactive popover with click, hover, focus, touch, or manual triggers. Content slot receives imperative `close`, `hide`, `show`, and `toggle` helpers.
4
+
5
+ ## Usage
6
+
7
+ ```vue
8
+ <template>
9
+ <ab-popover placement="bottom" trigger="click">
10
+ <ab-button class="btn-primary">Menu</ab-button>
11
+ <template #content="{ close }">
12
+ <div class="popover-menu">
13
+ <button @click="edit(); close()">Edit</button>
14
+ <button @click="remove(); close()">Delete</button>
15
+ </div>
16
+ </template>
17
+ </ab-popover>
18
+
19
+ <ab-popover :trigger="['hover', 'focus']" placement="top">
20
+ <span>Hover me</span>
21
+ <template #content>Rich popover content</template>
22
+ </ab-popover>
23
+ </template>
24
+ ```
25
+
26
+ ## Props
27
+
28
+ | Name | Type | Default | Description |
29
+ | --- | --- | --- | --- |
30
+ | `placement` | `String` | `"bottom"` | `top`, `bottom`, `left`, `right`, or `auto-*`. |
31
+ | `offset` | `Number \| String` | `8` | Offset from the reference. |
32
+ | `gap` | `Number \| String` | `null` | Gap override (used instead of `offset` when set). |
33
+ | `disabled` | `Boolean` | `false` | Disable the popover. |
34
+ | `arrow` | `Boolean` | `true` | Render the arrow pointer. |
35
+ | `arrowPadding` | `Number` | `4` | Padding between arrow and corner. |
36
+ | `trigger` | `String \| Array` | `"click"` | `click`, `hover`, `focus`, `touch`, `manual`. Space-separated string or array. |
37
+ | `autoHide` | `Boolean` | `true` | Close when clicking outside. |
38
+ | `contentClass` | `String` | `""` | Extra class on the content element. |
39
+ | `referenceSelector` | `String` | `null` | CSS selector inside the trigger to anchor positioning. |
40
+
41
+ ## Events
42
+
43
+ | Event | Payload | Description |
44
+ | --- | --- | --- |
45
+ | `update:modelValue` | `visible: Boolean` | Visibility change (supports `v-model`). |
46
+ | `show` | — | Popover shown. |
47
+ | `hide` | — | Popover hidden. |
48
+
49
+ ## Slots
50
+
51
+ | Name | Scope | Description |
52
+ | --- | --- | --- |
53
+ | `default` | — | Trigger element. |
54
+ | `content` | `{ close, hide, show, toggle }` | Popover content — receives imperative controls. |
@@ -1,56 +1,56 @@
1
- # AbPricingCard — AI Reference
2
-
3
- Single pricing tier card. Use multiple inside `AbPricingContainer` to build a pricing table.
4
-
5
- ## Usage
6
-
7
- ```vue
8
- <template>
9
- <ab-pricing-card
10
- title="Pro"
11
- amount="49"
12
- regular-amount="79"
13
- frequency="/month"
14
- badge="Popular"
15
- color="primary"
16
- variant="highlighted"
17
- recommended
18
- :features="[
19
- { text: 'Unlimited projects' },
20
- { text: 'Priority support' },
21
- { text: 'Custom domain', disabled: true },
22
- ]"
23
- >
24
- <template #action>
25
- <ab-button class="btn-primary w-100">Choose Pro</ab-button>
26
- </template>
27
- </ab-pricing-card>
28
- </template>
29
- ```
30
-
31
- ## Props
32
-
33
- | Name | Type | Default | Description |
34
- | --- | --- | --- | --- |
35
- | `title` | `String` | `""` | Tier title. |
36
- | `amount` | `String \| Number` | `undefined` | Current price. |
37
- | `regularAmount` | `String \| Number` | `undefined` | Original price (rendered with strikethrough). |
38
- | `frequency` | `String` | `""` | Billing frequency suffix (e.g. `/month`). |
39
- | `badge` | `String` | `""` | Badge text (e.g. "Popular"). |
40
- | `active` | `Boolean` | `false` | Highlight this card as currently active. |
41
- | `recommended` | `Boolean` | `false` | Show a "Recommended" ribbon. |
42
- | `color` | `String` | `"primary"` | Color theme (Bootstrap color). |
43
- | `variant` | `String` | `"default"` | `default`, `minimal`, `highlighted`, `badge-price`. |
44
- | `features` | `Array` | `[]` | Each `{ text, disabled? }` or a string. |
45
-
46
- ## Slots
47
-
48
- | Name | Scope | Description |
49
- | --- | --- | --- |
50
- | `header` | — | Custom header content. |
51
- | `badge` | — | Custom badge. |
52
- | `badge-icon` | — | Icon inside the badge. |
53
- | `price` | — | Custom price section. |
54
- | `features` | — | Custom features list. |
55
- | `feature-icon` | `{ feature, index }` | Custom icon per feature row. |
56
- | `action` | — | CTA button / actions. |
1
+ # AbPricingCard — AI Reference
2
+
3
+ Single pricing tier card. Use multiple inside `AbPricingContainer` to build a pricing table.
4
+
5
+ ## Usage
6
+
7
+ ```vue
8
+ <template>
9
+ <ab-pricing-card
10
+ title="Pro"
11
+ amount="49"
12
+ regular-amount="79"
13
+ frequency="/month"
14
+ badge="Popular"
15
+ color="primary"
16
+ variant="highlighted"
17
+ recommended
18
+ :features="[
19
+ { text: 'Unlimited projects' },
20
+ { text: 'Priority support' },
21
+ { text: 'Custom domain', disabled: true },
22
+ ]"
23
+ >
24
+ <template #action>
25
+ <ab-button class="btn-primary w-100">Choose Pro</ab-button>
26
+ </template>
27
+ </ab-pricing-card>
28
+ </template>
29
+ ```
30
+
31
+ ## Props
32
+
33
+ | Name | Type | Default | Description |
34
+ | --- | --- | --- | --- |
35
+ | `title` | `String` | `""` | Tier title. |
36
+ | `amount` | `String \| Number` | `undefined` | Current price. |
37
+ | `regularAmount` | `String \| Number` | `undefined` | Original price (rendered with strikethrough). |
38
+ | `frequency` | `String` | `""` | Billing frequency suffix (e.g. `/month`). |
39
+ | `badge` | `String` | `""` | Badge text (e.g. "Popular"). |
40
+ | `active` | `Boolean` | `false` | Highlight this card as currently active. |
41
+ | `recommended` | `Boolean` | `false` | Show a "Recommended" ribbon. |
42
+ | `color` | `String` | `"primary"` | Color theme (Bootstrap color). |
43
+ | `variant` | `String` | `"default"` | `default`, `minimal`, `highlighted`, `badge-price`. |
44
+ | `features` | `Array` | `[]` | Each `{ text, disabled? }` or a string. |
45
+
46
+ ## Slots
47
+
48
+ | Name | Scope | Description |
49
+ | --- | --- | --- |
50
+ | `header` | — | Custom header content. |
51
+ | `badge` | — | Custom badge. |
52
+ | `badge-icon` | — | Icon inside the badge. |
53
+ | `price` | — | Custom price section. |
54
+ | `features` | — | Custom features list. |
55
+ | `feature-icon` | `{ feature, index }` | Custom icon per feature row. |
56
+ | `action` | — | CTA button / actions. |
@@ -1,41 +1,41 @@
1
- # AbPricingContainer — AI Reference
2
-
3
- Layout wrapper for pricing tables. Arranges `AbPricingCard` children in a flex row or responsive grid with optional breakpoint column counts.
4
-
5
- ## Usage
6
-
7
- ```vue
8
- <template>
9
- <ab-pricing-container max-width="1100px" gap="1rem" :md-cols="3">
10
- <template #toggle>
11
- <ab-toggle v-model="isYearly" name="billing" title="Bill yearly" />
12
- </template>
13
-
14
- <ab-pricing-card title="Starter" amount="0" frequency="/mo" :features="[…]" />
15
- <ab-pricing-card title="Pro" amount="49" frequency="/mo" recommended :features="[…]" />
16
- <ab-pricing-card title="Team" amount="99" frequency="/mo" :features="[…]" />
17
- </ab-pricing-container>
18
- </template>
19
- ```
20
-
21
- ## Props
22
-
23
- | Name | Type | Default | Description |
24
- | --- | --- | --- | --- |
25
- | `width` | `String` | `"100%"` | Container width. |
26
- | `maxWidth` | `String` | `"1200px"` | Max width. |
27
- | `gap` | `String` | `"1.5rem"` | Gap between cards. |
28
- | `justify` | `String` | `"center"` | `justify-content` value. |
29
- | `align` | `String` | `"stretch"` | `align-items` value. |
30
- | `columns` | `Number \| String` | `0` | `0` → flex layout, `>0` → CSS grid with that column count. |
31
- | `smCols` | `Number \| String` | `""` | Columns at sm breakpoint. |
32
- | `mdCols` | `Number \| String` | `""` | Columns at md breakpoint. |
33
- | `lgCols` | `Number \| String` | `""` | Columns at lg breakpoint. |
34
- | `itemWidth` | `String` | `""` | Per-card width override (exposed as CSS custom property). |
35
-
36
- ## Slots
37
-
38
- | Name | Description |
39
- | --- | --- |
40
- | `toggle` | Optional toggle area (e.g. monthly/yearly switch) rendered above the cards. |
41
- | `default` | `<ab-pricing-card>` children. |
1
+ # AbPricingContainer — AI Reference
2
+
3
+ Layout wrapper for pricing tables. Arranges `AbPricingCard` children in a flex row or responsive grid with optional breakpoint column counts.
4
+
5
+ ## Usage
6
+
7
+ ```vue
8
+ <template>
9
+ <ab-pricing-container max-width="1100px" gap="1rem" :md-cols="3">
10
+ <template #toggle>
11
+ <ab-toggle v-model="isYearly" name="billing" title="Bill yearly" />
12
+ </template>
13
+
14
+ <ab-pricing-card title="Starter" amount="0" frequency="/mo" :features="[…]" />
15
+ <ab-pricing-card title="Pro" amount="49" frequency="/mo" recommended :features="[…]" />
16
+ <ab-pricing-card title="Team" amount="99" frequency="/mo" :features="[…]" />
17
+ </ab-pricing-container>
18
+ </template>
19
+ ```
20
+
21
+ ## Props
22
+
23
+ | Name | Type | Default | Description |
24
+ | --- | --- | --- | --- |
25
+ | `width` | `String` | `"100%"` | Container width. |
26
+ | `maxWidth` | `String` | `"1200px"` | Max width. |
27
+ | `gap` | `String` | `"1.5rem"` | Gap between cards. |
28
+ | `justify` | `String` | `"center"` | `justify-content` value. |
29
+ | `align` | `String` | `"stretch"` | `align-items` value. |
30
+ | `columns` | `Number \| String` | `0` | `0` → flex layout, `>0` → CSS grid with that column count. |
31
+ | `smCols` | `Number \| String` | `""` | Columns at sm breakpoint. |
32
+ | `mdCols` | `Number \| String` | `""` | Columns at md breakpoint. |
33
+ | `lgCols` | `Number \| String` | `""` | Columns at lg breakpoint. |
34
+ | `itemWidth` | `String` | `""` | Per-card width override (exposed as CSS custom property). |
35
+
36
+ ## Slots
37
+
38
+ | Name | Description |
39
+ | --- | --- |
40
+ | `toggle` | Optional toggle area (e.g. monthly/yearly switch) rendered above the cards. |
41
+ | `default` | `<ab-pricing-card>` children. |
@@ -1,56 +1,56 @@
1
- # AbPricingTable — AI Reference
2
-
3
- Responsive pricing comparison table. Displays a feature list on the left and multiple package tiers on the right, consuming structured JSON data.
4
-
5
- ## Usage
6
-
7
- ```vue
8
- <script setup>
9
- import { computed } from 'vue'
10
-
11
- const features = [
12
- { key: "links", title: "All limited links" },
13
- { key: "analytics", title: "Own analytics platform" }
14
- ]
15
-
16
- const packages = computed(() => [{
17
- id: "p1",
18
- name: "Intro",
19
- price: 19,
20
- regularPrice: 24,
21
- badge: "Save 20%",
22
- features: { links: "Y", analytics: "Y" },
23
- showButton: true,
24
- buttonText: "Choose Plan",
25
- isActive: false
26
- }])
27
- </script>
28
-
29
- <template>
30
- <ab-pricing-table :features="features" :packages="packages" @select-package="(pkg) => console.log('Selected:', pkg)" />
31
- </template>
32
- ```
33
-
34
- ## Props
35
-
36
- | Name | Type | Default | Description |
37
- | ---- | ---- | ------- | ----------- |
38
- | `features` | Array | **required** | Array of `{ key, title }` feature definitions. |
39
- | `packages` | Array | **required** | Array of package configs with price, regularPrice, badge, features (Y/N map), and button options. |
40
-
41
- ## Events
42
-
43
- | Event | Payload | Description |
44
- | ----- | ------- | ----------- |
45
- | `select-package` | `packageObject` | Emitted when a package's action button is clicked. |
46
-
47
- ## Slots
48
-
49
- | Slot Name | Props | Description |
50
- | --------- | ----- | ----------- |
51
- | `features-header` | None | Replaces the header in the left-hand features column. |
52
- | `feature-label` | `{ feature }` | Customizes how the feature name is displayed. |
53
- | `package-badge` | `{ pkg }` | Customizes the badge at the top of the package card. |
54
- | `package-header` | `{ pkg }` | Customizes the top section of the package card. |
55
- | `package-feature` | `{ pkg, feature }` | Replaces the default check/cross icon rendering for a feature row. |
56
- | `package-footer` | `{ pkg }` | Customizes the footer area (action button). |
1
+ # AbPricingTable — AI Reference
2
+
3
+ Responsive pricing comparison table. Displays a feature list on the left and multiple package tiers on the right, consuming structured JSON data.
4
+
5
+ ## Usage
6
+
7
+ ```vue
8
+ <script setup>
9
+ import { computed } from 'vue'
10
+
11
+ const features = [
12
+ { key: "links", title: "All limited links" },
13
+ { key: "analytics", title: "Own analytics platform" }
14
+ ]
15
+
16
+ const packages = computed(() => [{
17
+ id: "p1",
18
+ name: "Intro",
19
+ price: 19,
20
+ regularPrice: 24,
21
+ badge: "Save 20%",
22
+ features: { links: "Y", analytics: "Y" },
23
+ showButton: true,
24
+ buttonText: "Choose Plan",
25
+ isActive: false
26
+ }])
27
+ </script>
28
+
29
+ <template>
30
+ <ab-pricing-table :features="features" :packages="packages" @select-package="(pkg) => console.log('Selected:', pkg)" />
31
+ </template>
32
+ ```
33
+
34
+ ## Props
35
+
36
+ | Name | Type | Default | Description |
37
+ | ---- | ---- | ------- | ----------- |
38
+ | `features` | Array | **required** | Array of `{ key, title }` feature definitions. |
39
+ | `packages` | Array | **required** | Array of package configs with price, regularPrice, badge, features (Y/N map), and button options. |
40
+
41
+ ## Events
42
+
43
+ | Event | Payload | Description |
44
+ | ----- | ------- | ----------- |
45
+ | `select-package` | `packageObject` | Emitted when a package's action button is clicked. |
46
+
47
+ ## Slots
48
+
49
+ | Slot Name | Props | Description |
50
+ | --------- | ----- | ----------- |
51
+ | `features-header` | None | Replaces the header in the left-hand features column. |
52
+ | `feature-label` | `{ feature }` | Customizes how the feature name is displayed. |
53
+ | `package-badge` | `{ pkg }` | Customizes the badge at the top of the package card. |
54
+ | `package-header` | `{ pkg }` | Customizes the top section of the package card. |
55
+ | `package-feature` | `{ pkg, feature }` | Replaces the default check/cross icon rendering for a feature row. |
56
+ | `package-footer` | `{ pkg }` | Customizes the footer area (action button). |