@base-framework/ui 1.0.304 → 1.0.306

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,6 +1,6 @@
1
1
  import { Span as c, Legend as b, Fieldset as p, Div as l, UseParent as u, Input as C } from "@base-framework/atoms";
2
2
  import { Atom as s, Html as x } from "@base-framework/base";
3
- import { a as d } from "./veil-fLMV40Wv.js";
3
+ import { a as d } from "./veil-CVCuKSvj.js";
4
4
  import { f as h, e as y, g as k } from "./inputs-9udyzkHR.js";
5
5
  const a = {
6
6
  gray: {
@@ -40,4 +40,8 @@ export * from "./tabs/button-tab.js";
40
40
  export * from "./tabs/tab-group.js";
41
41
  export * from "./tabs/tab-navigation.js";
42
42
  export * from "./tabs/tab.js";
43
+ export * from "./tabs/underlined-button-tab.js";
44
+ export * from "./tabs/underlined-tab-group.js";
45
+ export * from "./tabs/underlined-tab-navigation.js";
46
+ export * from "./tabs/underlined-tab.js";
43
47
  export * from "./signature/signature-panel.js";
@@ -0,0 +1,61 @@
1
+ /**
2
+ * UnderlinedButtonTab
3
+ *
4
+ * This will create an underlined button tab component with content switching.
5
+ *
6
+ * @class
7
+ */
8
+ export class UnderlinedButtonTab extends Component {
9
+ /**
10
+ * This will set the options.
11
+ * @member {array} options
12
+ * @default []
13
+ */
14
+ options: any[];
15
+ /**
16
+ * This will set the class.
17
+ * @member {string} class
18
+ * @default ''
19
+ */
20
+ class: string;
21
+ /**
22
+ * This will set the select call back.
23
+ * @member {function} callBack
24
+ */
25
+ onSelect: any;
26
+ /**
27
+ * This will render the component.
28
+ *
29
+ * @returns {object}
30
+ */
31
+ render(): object;
32
+ selectedIndex: number;
33
+ /**
34
+ * This will set the selected index.
35
+ *
36
+ * @returns {void}
37
+ */
38
+ setSelectedIndex(): void;
39
+ /**
40
+ * This will select an option.
41
+ *
42
+ * @param {*} value
43
+ * @returns {void}
44
+ */
45
+ select(value: any): void;
46
+ /**
47
+ * This will set the selected option.
48
+ *
49
+ * @param {*} value
50
+ * @returns {void}
51
+ */
52
+ setSelected(value: any): void;
53
+ /**
54
+ * This will add the group.
55
+ *
56
+ * @returns {array}
57
+ */
58
+ addGroup(): any[];
59
+ }
60
+ export default UnderlinedButtonTab;
61
+ import { Component } from "@base-framework/base";
@@ -0,0 +1,2 @@
1
+ export function UnderlinedTabExamples(): any;
2
+ export default UnderlinedTabExamples;
@@ -0,0 +1,56 @@
1
+ /**
2
+ * UnderlinedTabGroup
3
+ *
4
+ * This will create an underlined tab group with bottom border indicators.
5
+ *
6
+ * @class
7
+ * @extends Component
8
+ */
9
+ export class UnderlinedTabGroup extends Component {
10
+ /**
11
+ * This will set the options.
12
+ * @member {array} options
13
+ * @default []
14
+ */
15
+ options: any[];
16
+ /**
17
+ * This will set the class.
18
+ * @member {string} class
19
+ * @default ''
20
+ */
21
+ class: string;
22
+ /**
23
+ * This will set the select call back.
24
+ * @member {function} callBack
25
+ */
26
+ onSelect: any;
27
+ /**
28
+ * This will render the component.
29
+ *
30
+ * @returns {object}
31
+ */
32
+ render(): object;
33
+ selectedIndex: number;
34
+ /**
35
+ * This will set the selected index.
36
+ *
37
+ * @returns {void}
38
+ */
39
+ setSelectedIndex(): void;
40
+ /**
41
+ * This will select an option.
42
+ *
43
+ * @param {*} value
44
+ * @returns {void}
45
+ */
46
+ select(value: any): void;
47
+ /**
48
+ * This will set the selected option.
49
+ *
50
+ * @param {*} value
51
+ * @returns {void}
52
+ */
53
+ setSelected(value: any): void;
54
+ }
55
+ export default UnderlinedTabGroup;
56
+ import { Component } from '@base-framework/base';
@@ -0,0 +1,63 @@
1
+ /**
2
+ * UnderlinedTabNavigation
3
+ *
4
+ * This will create an underlined tab navigation component with active bottom border.
5
+ *
6
+ * @class
7
+ */
8
+ export class UnderlinedTabNavigation extends Component {
9
+ /**
10
+ * This will set the options.
11
+ * @member {array} options
12
+ * @default []
13
+ */
14
+ options: any[];
15
+ /**
16
+ * This will set the class.
17
+ * @member {string} class
18
+ * @default ''
19
+ */
20
+ class: string;
21
+ /**
22
+ * This will set the select call back.
23
+ * @member {function} callBack
24
+ */
25
+ onSelect: any;
26
+ links: any[];
27
+ /**
28
+ * This will render the component.
29
+ *
30
+ * @returns {object}
31
+ */
32
+ render(): object;
33
+ /**
34
+ * This will update the links.
35
+ *
36
+ * @param {string} value
37
+ * @returns {void}
38
+ */
39
+ updateLinks(value: string): void;
40
+ /**
41
+ * This will deactivate all links.
42
+ *
43
+ * @returns {void}
44
+ */
45
+ deactivateAllLinks(): void;
46
+ /**
47
+ * This will update the link.
48
+ *
49
+ * @param {object} link
50
+ * @param {boolean} selected
51
+ * @returns {void}
52
+ */
53
+ updateLink(link: object, selected: boolean): void;
54
+ /**
55
+ * This will add a link.
56
+ *
57
+ * @param {object} option
58
+ * @returns {object}
59
+ */
60
+ addLink({ label: text, href, exact }: object): object;
61
+ }
62
+ export default UnderlinedTabNavigation;
63
+ import { Component } from "@base-framework/base";
@@ -0,0 +1,36 @@
1
+ /**
2
+ * UnderlinedTab
3
+ *
4
+ * This will create an underlined tab component that can route
5
+ * to tab panels with an active bottom border indicator.
6
+ *
7
+ * @class
8
+ */
9
+ export class UnderlinedTab extends Component {
10
+ /**
11
+ * This will set the options.
12
+ * @member {array} options
13
+ * @default []
14
+ */
15
+ options: any[];
16
+ /**
17
+ * This will set the class.
18
+ * @member {string} class
19
+ * @default ''
20
+ */
21
+ class: string;
22
+ /**
23
+ * This will render the component.
24
+ *
25
+ * @returns {object}
26
+ */
27
+ render(): object;
28
+ /**
29
+ * This will add the group.
30
+ *
31
+ * @returns {array}
32
+ */
33
+ addGroup(): any[];
34
+ }
35
+ export default UnderlinedTab;
36
+ import { Component } from "@base-framework/base";
@@ -10,7 +10,7 @@ const g = l((t, a) => {
10
10
  const e = t.border === !0 ? "border-t" : "";
11
11
  return s({
12
12
  ...t,
13
- class: `grid grid-cols-1 gap-y-4 sm:grid-cols-[1fr,2fr] sm:gap-x-6 pt-8 ${e} ${t.class || ""}`
13
+ class: `grid grid-cols-1 gap-y-4 sm:grid-cols-[1fr_2fr] sm:gap-x-6 pt-8 ${e} ${t.class || ""}`
14
14
  }, [
15
15
  t.label && s({
16
16
  ...t.labelProps,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base-framework/ui",
3
- "version": "1.0.304",
3
+ "version": "1.0.306",
4
4
  "description": "This is a UI package that adds components and atoms that use Tailwind CSS and a theme based on Shadcn.",
5
5
  "main": "./dist/index.es.js",
6
6
  "scripts": {