@agnos-ui/core-bootstrap 0.4.0-next.0 → 0.4.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.
@@ -1,5 +1,6 @@
1
1
  import type { AccordionApi, AccordionDirectives, AccordionItemActions, AccordionItemApi, AccordionProps as CoreProps, AccordionState as CoreState, AccordionItemState as CoreItemState, AccordionItemProps as CoreItemProps, AccordionItemDirectives } from '@agnos-ui/core/components/accordion';
2
2
  import type { SlotContent, Widget, WidgetFactory, WidgetSlotContext } from '@agnos-ui/core/types';
3
+ import type { TransitionFn } from '@agnos-ui/core/services/transitions/baseTransitions';
3
4
  export * from '@agnos-ui/core/components/accordion';
4
5
  export type AccordionItemContext = WidgetSlotContext<AccordionItemWidget>;
5
6
  interface AccordionExtraProps {
@@ -39,6 +40,15 @@ interface AccordionItemExtraProps {
39
40
  export interface AccordionState extends CoreState, AccordionExtraProps {
40
41
  }
41
42
  export interface AccordionProps extends CoreProps, AccordionExtraProps {
43
+ /**
44
+ * The transition to use for the accordion-item body-container when the accordion-item is toggled.
45
+ *
46
+ * @defaultValue
47
+ * ```ts
48
+ * collapseVerticalTransition
49
+ * ```
50
+ */
51
+ itemTransition: TransitionFn;
42
52
  }
43
53
  export type AccordionWidget = Widget<AccordionProps, AccordionState, AccordionApi, object, AccordionDirectives>;
44
54
  export interface AccordionItemState extends CoreItemState, AccordionItemExtraProps {
@@ -47,14 +57,19 @@ export interface AccordionItemProps extends CoreItemProps, AccordionItemExtraPro
47
57
  }
48
58
  export type AccordionItemWidget = Widget<AccordionItemProps, AccordionItemState, AccordionItemApi, AccordionItemActions, AccordionItemDirectives>;
49
59
  /**
50
- * Create an AccordioItemnWidget with given config props
51
- * @param config - an optional alert config
52
- * @returns an AccordionWidget
60
+ * Create an AccordionItemWidget with given config props
61
+ * @param config - an optional AccordionItem config
62
+ * @returns an AccordionItemWidget
53
63
  */
54
- export declare const createAccordionItem: WidgetFactory<import("@agnos-ui/core/services/extendWidget").ExtendWidgetProps<import("@agnos-ui/core/components/accordion").AccordionItemWidget, AccordionItemExtraProps, object>>;
64
+ export declare const createAccordionItem: WidgetFactory<AccordionItemWidget>;
55
65
  /**
56
66
  * Retrieve a shallow copy of the default accordion config
57
67
  * @returns the default accordion config
58
68
  */
59
69
  export declare function getAccordionDefaultConfig(): AccordionProps;
70
+ /**
71
+ * Create an AccordionWidget with given config props
72
+ * @param config - an optional accordion config
73
+ * @returns an AccordionWidget
74
+ */
60
75
  export declare const createAccordion: WidgetFactory<AccordionWidget>;
@@ -1,6 +1,7 @@
1
1
  import type { AlertDirectives, AlertState as CoreState, AlertProps as CoreProps, AlertApi } from '@agnos-ui/core/components/alert';
2
2
  import type { SlotContent, Widget, WidgetFactory, WidgetSlotContext } from '@agnos-ui/core/types';
3
3
  import type { BSContextualClass } from '../../types';
4
+ import type { TransitionFn } from '@agnos-ui/core/services/transitions/baseTransitions';
4
5
  export * from '@agnos-ui/core/components/alert';
5
6
  export type AlertContext = WidgetSlotContext<AlertWidget>;
6
7
  interface AlertExtraProps {
@@ -14,12 +15,22 @@ interface AlertExtraProps {
14
15
  children: SlotContent<AlertContext>;
15
16
  /**
16
17
  * Type of the alert, following bootstrap types.
18
+ *
19
+ * @defaultValue `'primary'`
17
20
  */
18
21
  type: BSContextualClass;
19
22
  }
20
23
  export interface AlertState extends CoreState, AlertExtraProps {
21
24
  }
22
25
  export interface AlertProps extends CoreProps, AlertExtraProps {
26
+ /**
27
+ * The transition function will be executed when the alert is displayed or hidden.
28
+ *
29
+ * Depending on the value of `animatedOnInit`, the animation can be optionally skipped during the showing process.
30
+ *
31
+ * @defaultValue `fadeTransition`
32
+ */
33
+ transition: TransitionFn;
23
34
  }
24
35
  export type AlertWidget = Widget<AlertProps, AlertState, AlertApi, object, AlertDirectives>;
25
36
  /**
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const modal = require("../../modal-DjcVpsmH.cjs");
3
+ const modal = require("../../modal-B3BJCG4T.cjs");
4
4
  const modal$1 = require("@agnos-ui/core/components/modal");
5
5
  exports.createModal = modal.createModal;
6
6
  exports.getModalDefaultConfig = modal.getModalDefaultConfig;
@@ -1,4 +1,4 @@
1
- import { c, g } from "../../modal-BIfiTSEV.js";
1
+ import { c, g } from "../../modal-CvEa8ExQ.js";
2
2
  export * from "@agnos-ui/core/components/modal";
3
3
  export {
4
4
  c as createModal,
@@ -1,5 +1,6 @@
1
1
  import type { ModalProps as CoreProps, ModalState as CoreState, ModalActions, ModalApi as CoreApi, ModalDirectives } from '@agnos-ui/core/components/modal';
2
2
  import type { PropsConfig, SlotContent, Widget, WidgetSlotContext } from '@agnos-ui/core/types';
3
+ import type { TransitionFn } from '@agnos-ui/core/services/transitions/baseTransitions';
3
4
  export * from '@agnos-ui/core/components/modal';
4
5
  export type ModalContext<Data> = WidgetSlotContext<ModalWidget<Data>>;
5
6
  interface ModalExtraProps<Data> {
@@ -14,28 +15,42 @@ interface ModalExtraProps<Data> {
14
15
  /**
15
16
  * Footer of the modal.
16
17
  */
17
- slotFooter: SlotContent<ModalContext<Data>>;
18
+ footer: SlotContent<ModalContext<Data>>;
18
19
  /**
19
- * Header of the modal. The default header includes {@link ModalCommonPropsAndState.slotTitle|slotTitle}.
20
+ * Header of the modal. The default header includes {@link ModalProps.title|title}.
20
21
  */
21
- slotHeader: SlotContent<ModalContext<Data>>;
22
+ header: SlotContent<ModalContext<Data>>;
22
23
  /**
23
24
  * Structure of the modal.
24
- * The default structure uses {@link ModalCommonPropsAndState.slotHeader|slotHeader}, {@link ModalCommonPropsAndState.children|children} and {@link ModalCommonPropsAndState.slotFooter|slotFooter}.
25
+ * The default structure uses {@link ModalProps.header|header}, {@link ModalProps.children|children} and {@link ModalProps.footer|footer}.
25
26
  */
26
- slotStructure: SlotContent<ModalContext<Data>>;
27
+ structure: SlotContent<ModalContext<Data>>;
27
28
  /**
28
29
  * Title of the modal.
29
30
  */
30
- slotTitle: SlotContent<ModalContext<Data>>;
31
+ title: SlotContent<ModalContext<Data>>;
31
32
  /**
32
33
  * Option to create a fullscreen modal, according to the bootstrap documentation.
34
+ *
35
+ * @defaultValue `false`
33
36
  */
34
37
  fullscreen: boolean;
35
38
  }
36
39
  export interface ModalState<Data> extends CoreState, ModalExtraProps<Data> {
37
40
  }
38
41
  export interface ModalProps<Data> extends CoreProps, ModalExtraProps<Data> {
42
+ /**
43
+ * The transition to use for the backdrop behind the modal (if present).
44
+ *
45
+ * @defaultValue `fadeTransition`
46
+ */
47
+ backdropTransition: TransitionFn;
48
+ /**
49
+ * The transition to use for the modal.
50
+ *
51
+ * @defaultValue `fadeTransition`
52
+ */
53
+ modalTransition: TransitionFn;
39
54
  }
40
55
  export interface ModalApi<Data> extends Omit<CoreApi, 'patch'> {
41
56
  /**
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const pageFactory = require("../../pageFactory-Dubi5rdt.cjs");
3
+ const pageFactory = require("../../pageFactory-ClmOTwC3.cjs");
4
4
  const pagination = require("@agnos-ui/core/components/pagination");
5
5
  exports.createPagination = pageFactory.createPagination;
6
6
  exports.getPaginationDefaultConfig = pageFactory.getPaginationDefaultConfig;
@@ -1,4 +1,4 @@
1
- import { c, g, n } from "../../pageFactory-C8ZmJXYi.js";
1
+ import { c, g, n } from "../../pageFactory-BMdGxeJT.js";
2
2
  export * from "@agnos-ui/core/components/pagination";
3
3
  export {
4
4
  c as createPagination,
@@ -17,64 +17,70 @@ export type PaginationNumberContext = PaginationContext & {
17
17
  interface PaginationExtraProps {
18
18
  /**
19
19
  * The template to use for the structure of the pagination component
20
- * The default structure uses {@link PaginationCommonPropsAndState.slotEllipsis|slotEllipsis}, {@link PaginationCommonPropsAndState.slotFirst|slotFirst},
21
- * {@link PaginationCommonPropsAndState.slotPrevious|slotPrevious}, {@link PaginationCommonPropsAndState.slotNext|slotNext},
22
- * {@link PaginationCommonPropsAndState.slotLast|slotLast}, {@link PaginationCommonPropsAndState.slotPages|slotPages},
23
- * {@link PaginationCommonPropsAndState.slotNumberLabel|slotNumberLabel},
20
+ * The default structure uses {@link PaginationProps.ellipsisLabel|ellipsisLabel}, {@link PaginationProps.firstPageLabel|firstPageLabel},
21
+ * {@link PaginationProps.previousPageLabel|previousPageLabel}, {@link PaginationProps.nextPageLabel|nextPageLabel},
22
+ * {@link PaginationProps.lastPageLabel|lastPageLabel}, {@link PaginationProps.pagesDisplay|pagesDisplay},
23
+ * {@link PaginationProps.numberLabel|numberLabel},
24
24
  */
25
- slotStructure: SlotContent<PaginationContext>;
25
+ structure: SlotContent<PaginationContext>;
26
26
  /**
27
27
  * The template to use for the ellipsis slot
28
28
  * for I18n, we suggest to use the global configuration
29
29
  * override any configuration parameters provided for this
30
- * @defaultValue '…'
30
+ *
31
+ * @defaultValue `'…'`
31
32
  */
32
- slotEllipsis: SlotContent<PaginationContext>;
33
+ ellipsisLabel: SlotContent<PaginationContext>;
33
34
  /**
34
35
  * The template to use for the first slot
35
36
  * for I18n, we suggest to use the global configuration
36
37
  * override any configuration parameters provided for this
37
- * @defaultValue '«'
38
+ *
39
+ * @defaultValue `'«'`
38
40
  */
39
- slotFirst: SlotContent<PaginationContext>;
41
+ firstPageLabel: SlotContent<PaginationContext>;
40
42
  /**
41
43
  * The template to use for the previous slot
42
44
  * for I18n, we suggest to use the global configuration
43
45
  * override any configuration parameters provided for this
44
- * @defaultValue '‹'
46
+ *
47
+ * @defaultValue `'‹'`
45
48
  */
46
- slotPrevious: SlotContent<PaginationContext>;
49
+ previousPageLabel: SlotContent<PaginationContext>;
47
50
  /**
48
51
  * The template to use for the next slot
49
52
  * for I18n, we suggest to use the global configuration
50
53
  * override any configuration parameters provided for this
51
- * @defaultValue '›'
54
+ *
55
+ * @defaultValue `'›'`
52
56
  */
53
- slotNext: SlotContent<PaginationContext>;
57
+ nextPageLabel: SlotContent<PaginationContext>;
54
58
  /**
55
59
  * The template to use for the last slot
56
60
  * for I18n, we suggest to use the global configuration
57
61
  * override any configuration parameters provided for this
58
- * @defaultValue '»'
62
+ *
63
+ * @defaultValue `'»'`
59
64
  */
60
- slotLast: SlotContent<PaginationContext>;
65
+ lastPageLabel: SlotContent<PaginationContext>;
61
66
  /**
62
67
  * The template to use for the pages slot
63
68
  * To use to customize the pages view
64
69
  * override any configuration parameters provided for this
65
70
  */
66
- slotPages: SlotContent<PaginationContext>;
71
+ pagesDisplay: SlotContent<PaginationContext>;
67
72
  /**
68
73
  * The template to use for the number slot
69
74
  * override any configuration parameters provided for this
70
75
  * for I18n, we suggest to use the global configuration
76
+ * @param displayedPage - The current page number
77
+ *
71
78
  * @defaultValue
72
79
  * ```ts
73
- * ({displayedPage}) => `${displayedPage}`
80
+ * ({displayedPage}: PaginationNumberContext) => `${displayedPage}`
74
81
  * ```
75
- * @param displayedPage - The current page number
76
82
  */
77
- slotNumberLabel: SlotContent<PaginationNumberContext>;
83
+ numberLabel: SlotContent<PaginationNumberContext>;
78
84
  }
79
85
  export interface PaginationState extends CoreState, PaginationExtraProps {
80
86
  }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const progressbar = require("../../progressbar-lnU6H0H4.cjs");
3
+ const progressbar = require("../../progressbar-BSwy_XPW.cjs");
4
4
  const progressbar$1 = require("@agnos-ui/core/components/progressbar");
5
5
  exports.createProgressbar = progressbar.createProgressbar;
6
6
  exports.getProgressbarDefaultConfig = progressbar.getProgressbarDefaultConfig;
@@ -1,4 +1,4 @@
1
- import { c, g } from "../../progressbar-YdR19Yjo.js";
1
+ import { c, g } from "../../progressbar-B-Ne074g.js";
2
2
  export * from "@agnos-ui/core/components/progressbar";
3
3
  export {
4
4
  c as createProgressbar,
@@ -7,22 +7,28 @@ interface ProgressbarExtraProps {
7
7
  /**
8
8
  * Global template for the Progressbar.
9
9
  */
10
- slotStructure: SlotContent<ProgressbarContext>;
10
+ structure: SlotContent<ProgressbarContext>;
11
11
  /**
12
12
  * Label of the progress.
13
13
  */
14
14
  children: SlotContent<ProgressbarContext>;
15
15
  /**
16
16
  * Height of the progressbar, can be any valid css height value.
17
+ *
18
+ * @defaultValue `''`
17
19
  */
18
20
  height: string;
19
21
  /**
20
22
  * If `true`, shows a striped progressbar.
23
+ *
24
+ * @defaultValue `false`
21
25
  */
22
26
  striped: boolean;
23
27
  /**
24
28
  * If `true`, animates a striped progressbar.
25
29
  * Takes effect only for browsers supporting CSS3 animations, and if `striped` is `true`.
30
+ *
31
+ * @defaultValue `false`
26
32
  */
27
33
  animated: boolean;
28
34
  /**
@@ -4,6 +4,11 @@ export * from '@agnos-ui/core/components/rating';
4
4
  interface RatingExtraProps {
5
5
  /**
6
6
  * The template to override the way each star is displayed.
7
+ *
8
+ * @defaultValue
9
+ * ```ts
10
+ * ({fill}: StarContext) => String.fromCharCode(fill === 100 ? 9733 : 9734)
11
+ * ```
7
12
  */
8
13
  star: SlotContent<StarContext>;
9
14
  }
@@ -18,8 +23,8 @@ export type RatingWidget = Widget<RatingProps, RatingState, object, RatingAction
18
23
  */
19
24
  export declare function getRatingDefaultConfig(): RatingProps;
20
25
  /**
21
- * Create a Progressbar with given config props
22
- * @param config - an optional progressbar config
23
- * @returns a ProgressbarWidget
26
+ * Create a RatingWidget with given config props
27
+ * @param config - an optional rating config
28
+ * @returns a RatingWidget
24
29
  */
25
30
  export declare const createRating: WidgetFactory<RatingWidget>;
@@ -15,11 +15,21 @@ interface SelectExtraProps<Item> {
15
15
  /**
16
16
  * The template to override the way each badge on the left of the input is displayed.
17
17
  * This define the content of the badge inside the badge container.
18
+ *
19
+ * @defaultValue
20
+ * ```ts
21
+ * ({itemContext}: SelectItemContext<any>) => itemContext.item
22
+ * ```
18
23
  */
19
24
  badgeLabel: SlotContent<SelectItemContext<Item>>;
20
25
  /**
21
26
  * The template to override the way each item is displayed in the list.
22
27
  * This define the content of the badge inside the badge container.
28
+ *
29
+ * @defaultValue
30
+ * ```ts
31
+ * ({itemContext}: SelectItemContext<any>) => itemContext.item
32
+ * ```
23
33
  */
24
34
  itemLabel: SlotContent<SelectItemContext<Item>>;
25
35
  }
@@ -15,6 +15,11 @@ interface SliderExtraProps {
15
15
  structure: SlotContent<SliderContext>;
16
16
  /**
17
17
  * Slot to change the default labels of the slider
18
+ *
19
+ * @defaultValue
20
+ * ```ts
21
+ * ({value}: SliderSlotLabelContext) => '' + value
22
+ * ```
18
23
  */
19
24
  label: SlotContent<SliderSlotLabelContext>;
20
25
  /**
@@ -34,7 +39,7 @@ export type SliderWidget = Widget<SliderProps, SliderState, SliderApi, SliderAct
34
39
  export declare function getSliderDefaultConfig(): SliderProps;
35
40
  /**
36
41
  * Create a Slider with given config props
37
- * @param config - an optional progressbar config
42
+ * @param config - an optional slider config
38
43
  * @returns a SliderWidget
39
44
  */
40
45
  export declare const createSlider: WidgetFactory<SliderWidget>;
@@ -1,5 +1,6 @@
1
1
  import type { ToastDirectives, ToastState as CoreState, ToastProps as CoreProps, ToastApi } from '@agnos-ui/core/components/toast';
2
2
  import type { SlotContent, Widget, WidgetFactory, WidgetSlotContext } from '@agnos-ui/core/types';
3
+ import type { TransitionFn } from '@agnos-ui/core/services/transitions/baseTransitions';
3
4
  export * from '@agnos-ui/core/components/toast';
4
5
  export type ToastContext = WidgetSlotContext<ToastWidget>;
5
6
  export interface ToastExtraProps {
@@ -19,6 +20,14 @@ export interface ToastExtraProps {
19
20
  export interface ToastState extends CoreState, ToastExtraProps {
20
21
  }
21
22
  export interface ToastProps extends CoreProps, ToastExtraProps {
23
+ /**
24
+ * The transition function will be executed when the alert is displayed or hidden.
25
+ *
26
+ * Depending on the value of `animatedOnInit`, the animation can be optionally skipped during the showing process.
27
+ *
28
+ * @defaultValue `fadeTransition`
29
+ */
30
+ transition: TransitionFn;
22
31
  }
23
32
  export type ToastWidget = Widget<ToastProps, ToastState, ToastApi, object, ToastDirectives>;
24
33
  /**
package/css/agnosui.css CHANGED
@@ -112,7 +112,7 @@
112
112
  .au-slider .au-slider-handle:not([disabled]):hover {
113
113
  border: var(--bs-slider-handle-border-hover);
114
114
  }
115
- .au-slider .au-slider-handle:focus {
115
+ .au-slider .au-slider-handle:focus-visible {
116
116
  box-shadow: var(--bs-slider-handle-focus-box-shadow);
117
117
  }
118
118
  .au-slider .au-slider-progress {
@@ -1 +1 @@
1
- {"version":3,"sourceRoot":"","sources":["../../src/scss/_select.scss","../../src/scss/_slider.scss","../../src/scss/_toast.scss","../../src/scss/_variables.scss"],"names":[],"mappings":"AAAA;EACC;;;AAGD;EACC;;;ACeD;EACC;EACA;EACA;EACA;EAEA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAEA;EACA;EACA;EACA;EACA;EACA;EACA;EAEA;EACA;EACA;EAEA;EACA;EACA;EAEA;EACA;EACA;EAEA;EACA;EACA;EACA;EACA;EACA;EACA;EAEA;EACA;EACA;EACA;EACA;EAEA;EACA;EAEA;EACA;EACA;EACA;EACA;EACA;;AAEA;EA3EA;EACA;EAEA;EAEA;EACA;EACA;EACA;EAEA;EAEA;EACA;;AAkEA;EA/EA;EACA;EAEA;EAEA;EACA;EACA;EACA;EAEA;EAEA;EACA;;AAsEA;EACC;EACA;EACA;EACA;;AACA;EACC;EACA;;AAIF;EACC;EACA;EACA;EACA;;AACA;EACC;EACA;;AAIF;EACC;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACC;;AAED;EACC;;AAIF;EACC;EACA;EACA;;AAGD;EACC;;AAGD;EACC;EACA;EACA;;AAEA;EACC;;AAGD;EACC;;AAGD;EACC;;AAGD;EACC;;AAGD;EACC;EACA;;AAIF;EACC;EACA;EACA;;AAEA;EACC;EACA;;AAGD;EACC;EACA;;AAGD;EACC;EACA;;AAGD;EACC;EACA;;AAGD;EACC;;AAIF;EACC;EACA;EACA;;AAGD;EACC;EACA;EACA;EACA;;AAGD;EACC;;AACA;AAAA;EAEC;;AAED;AAAA;EAEC;EACA;;;ACvNH;EACC,OCDiB","file":"agnosui.css"}
1
+ {"version":3,"sourceRoot":"","sources":["../../src/scss/_select.scss","../../src/scss/_slider.scss","../../src/scss/_toast.scss","../../src/scss/_variables.scss"],"names":[],"mappings":"AAAA;EACC;;;AAGD;EACC;;;ACeD;EAEC;EACA;EACA;EACA;EAEA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAEA;EACA;EACA;EACA;EACA;EACA;EACA;EAEA;EACA;EACA;EAEA;EACA;EACA;EAEA;EACA;EACA;EAEA;EACA;EACA;EACA;EACA;EACA;EACA;EAEA;EACA;EACA;EACA;EACA;EAEA;EACA;EAGA;EACA;EACA;EACA;EACA;EACA;;AAEA;EA7EA;EACA;EAEA;EAEA;EACA;EACA;EACA;EAEA;EAEA;EACA;;AAoEA;EAjFA;EACA;EAEA;EAEA;EACA;EACA;EACA;EAEA;EAEA;EACA;;AAwEA;EACC;EACA;EACA;EACA;;AACA;EACC;EACA;;AAIF;EACC;EACA;EACA;EACA;;AACA;EACC;EACA;;AAIF;EACC;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACC;;AAED;EACC;;AAIF;EACC;EACA;EACA;;AAGD;EACC;;AAGD;EACC;EACA;EACA;;AAEA;EACC;;AAGD;EACC;;AAGD;EACC;;AAGD;EACC;;AAGD;EACC;EACA;;AAIF;EACC;EACA;EACA;;AAEA;EACC;EACA;;AAGD;EACC;EACA;;AAGD;EACC;EACA;;AAGD;EACC;EACA;;AAGD;EACC;;AAIF;EACC;EACA;EACA;;AAGD;EACC;EACA;EACA;EACA;;AAGD;EACC;;AACA;AAAA;EAEC;;AAED;AAAA;EAEC;EACA;;;ACzNH;EACC,OCDiB","file":"agnosui.css"}
package/index.cjs CHANGED
@@ -2,9 +2,9 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const accordion = require("./accordion-B-uoNLHJ.cjs");
4
4
  const alert = require("./alert-CKtd0QdX.cjs");
5
- const modal = require("./modal-DjcVpsmH.cjs");
6
- const pageFactory = require("./pageFactory-Dubi5rdt.cjs");
7
- const progressbar = require("./progressbar-lnU6H0H4.cjs");
5
+ const modal = require("./modal-B3BJCG4T.cjs");
6
+ const pageFactory = require("./pageFactory-ClmOTwC3.cjs");
7
+ const progressbar = require("./progressbar-BSwy_XPW.cjs");
8
8
  const rating = require("./rating-Bf8cRtHn.cjs");
9
9
  const select = require("./select-9qmK2r6f.cjs");
10
10
  const slider = require("./slider-DA7_i-am.cjs");
package/index.d.ts CHANGED
@@ -9,3 +9,4 @@ export * from './components/slider';
9
9
  export * from './components/toast';
10
10
  export * from './services/transitions';
11
11
  export * from './config';
12
+ export * from './types';
package/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { a, c, g } from "./accordion-DBVC9W8u.js";
2
2
  import { c as c2, g as g2 } from "./alert-BgtRL35m.js";
3
- import { c as c3, g as g3 } from "./modal-BIfiTSEV.js";
4
- import { c as c4, g as g4, n } from "./pageFactory-C8ZmJXYi.js";
5
- import { c as c5, g as g5 } from "./progressbar-YdR19Yjo.js";
3
+ import { c as c3, g as g3 } from "./modal-CvEa8ExQ.js";
4
+ import { c as c4, g as g4, n } from "./pageFactory-BMdGxeJT.js";
5
+ import { c as c5, g as g5 } from "./progressbar-B-Ne074g.js";
6
6
  import { c as c6, g as g6 } from "./rating-C1UqlpFs.js";
7
7
  import { c as c7, g as g7 } from "./select-DMeOSbKZ.js";
8
8
  import { c as c8, g as g8 } from "./slider-BOtu3bQi.js";
@@ -6,10 +6,10 @@ const writables = require("@agnos-ui/core/utils/writables");
6
6
  const defaultConfigExtraProps = {
7
7
  contentData: void 0,
8
8
  children: void 0,
9
- slotFooter: void 0,
10
- slotHeader: void 0,
11
- slotStructure: void 0,
12
- slotTitle: void 0,
9
+ footer: void 0,
10
+ header: void 0,
11
+ structure: void 0,
12
+ title: void 0,
13
13
  fullscreen: false
14
14
  };
15
15
  const coreOverride = {
@@ -5,10 +5,10 @@ import { typeBoolean } from "@agnos-ui/core/utils/writables";
5
5
  const defaultConfigExtraProps = {
6
6
  contentData: void 0,
7
7
  children: void 0,
8
- slotFooter: void 0,
9
- slotHeader: void 0,
10
- slotStructure: void 0,
11
- slotTitle: void 0,
8
+ footer: void 0,
9
+ header: void 0,
10
+ structure: void 0,
11
+ title: void 0,
12
12
  fullscreen: false
13
13
  };
14
14
  const coreOverride = {
package/package.json CHANGED
@@ -1,10 +1,9 @@
1
1
  {
2
2
  "name": "@agnos-ui/core-bootstrap",
3
3
  "description": "Styles and widget interface extensions necessary to use AgnosUI with Bootstrap.",
4
- "version": "0.4.0-next.0",
4
+ "version": "0.4.0",
5
5
  "keywords": [
6
6
  "bootstrap",
7
- "headless",
8
7
  "css",
9
8
  "scss",
10
9
  "AgnosUI",
@@ -60,7 +59,7 @@
60
59
  }
61
60
  },
62
61
  "dependencies": {
63
- "@agnos-ui/core": "0.4.0-next.0"
62
+ "@agnos-ui/core": "0.4.0"
64
63
  },
65
64
  "sideEffects": false,
66
65
  "homepage": "https://amadeusitgroup.github.io/AgnosUI/latest/",
@@ -1,14 +1,14 @@
1
1
  import { extendWidgetProps } from "@agnos-ui/core/services/extendWidget";
2
2
  import { getPaginationDefaultConfig as getPaginationDefaultConfig$1, createPagination as createPagination$1 } from "@agnos-ui/core/components/pagination";
3
3
  const defaultConfigExtraProps = {
4
- slotEllipsis: "…",
5
- slotFirst: "«",
6
- slotPrevious: "",
7
- slotNext: "",
8
- slotLast: "»",
9
- slotPages: void 0,
10
- slotStructure: void 0,
11
- slotNumberLabel: ({ displayedPage }) => `${displayedPage}`
4
+ structure: void 0,
5
+ ellipsisLabel: "",
6
+ firstPageLabel: "«",
7
+ previousPageLabel: "",
8
+ nextPageLabel: "",
9
+ lastPageLabel: "»",
10
+ numberLabel: ({ displayedPage }) => `${displayedPage}`,
11
+ pagesDisplay: void 0
12
12
  };
13
13
  function getPaginationDefaultConfig() {
14
14
  return { ...getPaginationDefaultConfig$1(), ...defaultConfigExtraProps };
@@ -2,14 +2,14 @@
2
2
  const extendWidget = require("@agnos-ui/core/services/extendWidget");
3
3
  const pagination = require("@agnos-ui/core/components/pagination");
4
4
  const defaultConfigExtraProps = {
5
- slotEllipsis: "…",
6
- slotFirst: "«",
7
- slotPrevious: "",
8
- slotNext: "",
9
- slotLast: "»",
10
- slotPages: void 0,
11
- slotStructure: void 0,
12
- slotNumberLabel: ({ displayedPage }) => `${displayedPage}`
5
+ structure: void 0,
6
+ ellipsisLabel: "",
7
+ firstPageLabel: "«",
8
+ previousPageLabel: "",
9
+ nextPageLabel: "",
10
+ lastPageLabel: "»",
11
+ numberLabel: ({ displayedPage }) => `${displayedPage}`,
12
+ pagesDisplay: void 0
13
13
  };
14
14
  function getPaginationDefaultConfig() {
15
15
  return { ...pagination.getPaginationDefaultConfig(), ...defaultConfigExtraProps };
@@ -2,7 +2,7 @@ import { getProgressbarDefaultConfig as getProgressbarDefaultConfig$1, createPro
2
2
  import { typeString, typeBoolean } from "@agnos-ui/core/utils/writables";
3
3
  import { extendWidgetProps } from "@agnos-ui/core/services/extendWidget";
4
4
  const defaultConfigExtraProps = {
5
- slotStructure: void 0,
5
+ structure: void 0,
6
6
  children: void 0,
7
7
  height: "",
8
8
  striped: false,
@@ -3,7 +3,7 @@ const progressbar = require("@agnos-ui/core/components/progressbar");
3
3
  const writables = require("@agnos-ui/core/utils/writables");
4
4
  const extendWidget = require("@agnos-ui/core/services/extendWidget");
5
5
  const defaultConfigExtraProps = {
6
- slotStructure: void 0,
6
+ structure: void 0,
7
7
  children: void 0,
8
8
  height: "",
9
9
  striped: false,
package/scss/_slider.scss CHANGED
@@ -19,6 +19,7 @@
19
19
  }
20
20
 
21
21
  .au-slider {
22
+ // scss-docs-start slider-css-vars
22
23
  --#{$prefix}slider-background-color: #{$au-slider-color-background};
23
24
  --#{$prefix}slider-font-size: #{$au-slider-font-size};
24
25
  --#{$prefix}slider-border-radius: #{$au-slider-border-radius};
@@ -69,6 +70,7 @@
69
70
 
70
71
  --#{$prefix}slider-disabled-color: #{$au-slider-disabled-color};
71
72
  --#{$prefix}slider-disabled-cursor: #{$au-slider-disabled-cursor};
73
+ // scss-docs-end slider-css-vars
72
74
 
73
75
  display: flex;
74
76
  background-color: var(--#{$prefix}slider-background-color);
@@ -119,7 +121,7 @@
119
121
  &:not([disabled]):hover {
120
122
  border: var(--#{$prefix}slider-handle-border-hover);
121
123
  }
122
- &:focus {
124
+ &:focus-visible {
123
125
  box-shadow: var(--#{$prefix}slider-handle-focus-box-shadow);
124
126
  }
125
127
  }
@@ -3,7 +3,12 @@ $toast-max-width: unset;
3
3
  // this prefix is linked to bootstrap prefix
4
4
  $prefix: bs- !default;
5
5
 
6
+ $au-focus-ring-opacity: 0.25 !default;
7
+ $au-focus-ring-width: 0.25rem !default;
8
+ $au-focus-ring-color: rgba(#0d6efd, $au-focus-ring-opacity) !default;
9
+
6
10
  //slider variables
11
+ // scss-docs-start slider-vars
7
12
  $au-slider-color-background: var(--#{$prefix}secondary-bg, #e9ecef) !default;
8
13
  $au-slider-font-size: 1rem !default;
9
14
  $au-slider-line-height: 1.5 !default;
@@ -14,9 +19,6 @@ $au-slider-vertical-margin-inline-start: 1rem !default;
14
19
  $au-slider-vertical-margin-inline-end: 3rem !default;
15
20
  $au-slider-translate-vertical: translateY(-50%) !default;
16
21
  $au-slider-translate-horizontal: translateX(-50%) !default;
17
- $au-focus-ring-opacity: 0.25 !default;
18
- $au-focus-ring-width: 0.25rem !default;
19
- $au-focus-ring-color: rgba(#0d6efd, $au-focus-ring-opacity) !default;
20
22
  $au-slider-handle-color: var(--#{$prefix}primary, #0d6efd) !default;
21
23
  $au-slider-handle-size: 1.25rem !default;
22
24
  $au-slider-handle-border: none !default;
@@ -61,3 +63,4 @@ $au-slider-bar-size-lg: 0.3125rem !default;
61
63
  $au-slider-handle-size-lg: 1.5rem !default;
62
64
  $au-slider-font-size-lg: 1.125rem !default;
63
65
  $au-slider-offset-lg: 0rem !default;
66
+ // scss-docs-end slider-vars