@base-framework/ui 1.0.321 → 1.0.323

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-CVCuKSvj.js";
3
+ import { a as d } from "./veil-CqnAmj-D.js";
4
4
  import { f as h, e as y, g as k } from "./inputs-9udyzkHR.js";
5
5
  const a = {
6
6
  gray: {
@@ -5,7 +5,7 @@
5
5
  *
6
6
  * @class
7
7
  */
8
- export class ButtonTab extends Component {
8
+ export class ButtonTab extends Veil {
9
9
  /**
10
10
  * This will set the options.
11
11
  * @member {array} options
@@ -63,4 +63,4 @@ export class ButtonTab extends Component {
63
63
  setupStates(): object;
64
64
  }
65
65
  export default ButtonTab;
66
- import { Component } from "@base-framework/base";
66
+ import { Veil } from "../../../components/atoms/veil.js";
@@ -4,9 +4,9 @@
4
4
  * This will create a tab group.
5
5
  *
6
6
  * @class
7
- * @extends Component
7
+ * @extends Veil
8
8
  */
9
- export class TabGroup extends Component {
9
+ export class TabGroup extends Veil {
10
10
  /**
11
11
  * This will set the options.
12
12
  * @member {array} options
@@ -45,4 +45,4 @@ export class TabGroup extends Component {
45
45
  setupStates(): object;
46
46
  }
47
47
  export default TabGroup;
48
- import { Component } from '@base-framework/base';
48
+ import { Veil } from '../../../components/atoms/veil.js';
@@ -5,7 +5,7 @@
5
5
  *
6
6
  * @class
7
7
  */
8
- export class TabNavigation extends Component {
8
+ export class TabNavigation extends Veil {
9
9
  /**
10
10
  * This will set the options.
11
11
  * @member {array} options
@@ -60,4 +60,4 @@ export class TabNavigation extends Component {
60
60
  addLink({ label: text, href, exact }: object): object;
61
61
  }
62
62
  export default TabNavigation;
63
- import { Component } from "@base-framework/base";
63
+ import { Veil } from "../../../components/atoms/veil.js";
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * @class
8
8
  */
9
- export class Tab extends Component {
9
+ export class Tab extends Veil {
10
10
  /**
11
11
  * This will set the options.
12
12
  * @member {array} options
@@ -33,4 +33,4 @@ export class Tab extends Component {
33
33
  addGroup(): any[];
34
34
  }
35
35
  export default Tab;
36
- import { Component } from "@base-framework/base";
36
+ import { Veil } from "../../../components/atoms/veil.js";
@@ -5,7 +5,7 @@
5
5
  *
6
6
  * @class
7
7
  */
8
- export class UnderlinedButtonTab extends Component {
8
+ export class UnderlinedButtonTab extends Veil {
9
9
  /**
10
10
  * This will set the options.
11
11
  * @member {array} options
@@ -57,4 +57,4 @@ export class UnderlinedButtonTab extends Component {
57
57
  setupStates(): object;
58
58
  }
59
59
  export default UnderlinedButtonTab;
60
- import { Component } from "@base-framework/base";
60
+ import { Veil } from '../../../components/atoms/veil.js';
@@ -4,9 +4,9 @@
4
4
  * This will create an underlined tab group with bottom border indicators.
5
5
  *
6
6
  * @class
7
- * @extends Component
7
+ * @extends Veil
8
8
  */
9
- export class UnderlinedTabGroup extends Component {
9
+ export class UnderlinedTabGroup extends Veil {
10
10
  /**
11
11
  * This will set the options.
12
12
  * @member {array} options
@@ -45,4 +45,4 @@ export class UnderlinedTabGroup extends Component {
45
45
  setupStates(): object;
46
46
  }
47
47
  export default UnderlinedTabGroup;
48
- import { Component } from '@base-framework/base';
48
+ import { Veil } from '../../../components/atoms/veil.js';
@@ -5,7 +5,7 @@
5
5
  *
6
6
  * @class
7
7
  */
8
- export class UnderlinedTabNavigation extends Component {
8
+ export class UnderlinedTabNavigation extends Veil {
9
9
  /**
10
10
  * This will set the options.
11
11
  * @member {array} options
@@ -60,4 +60,4 @@ export class UnderlinedTabNavigation extends Component {
60
60
  addLink({ label: text, href, exact }: object): object;
61
61
  }
62
62
  export default UnderlinedTabNavigation;
63
- import { Component } from "@base-framework/base";
63
+ import { Veil } from '../../../components/atoms/veil.js';
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * @class
8
8
  */
9
- export class UnderlinedTab extends Component {
9
+ export class UnderlinedTab extends Veil {
10
10
  /**
11
11
  * This will set the options.
12
12
  * @member {array} options
@@ -33,4 +33,4 @@ export class UnderlinedTab extends Component {
33
33
  addGroup(): any[];
34
34
  }
35
35
  export default UnderlinedTab;
36
- import { Component } from "@base-framework/base";
36
+ import { Veil } from '../../../components/atoms/veil.js';
@@ -0,0 +1,20 @@
1
+ import { Jot as n, Component as a } from "@base-framework/base";
2
+ class s extends a {
3
+ /**
4
+ * This will set the component context.
5
+ *
6
+ * @param {object|null} context
7
+ * @returns {object|null}
8
+ */
9
+ setContext(o) {
10
+ if (this.data)
11
+ return null;
12
+ const e = this?.parent?.data ?? this?.parent?.context?.data ?? this?.parent?.state ?? null;
13
+ return e ? { data: e } : null;
14
+ }
15
+ }
16
+ const i = (t) => n(t, s);
17
+ export {
18
+ s as V,
19
+ i as a
20
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base-framework/ui",
3
- "version": "1.0.321",
3
+ "version": "1.0.323",
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": {
@@ -1,2 +0,0 @@
1
- export function UnderlinedTabExamples(): any;
2
- export default UnderlinedTabExamples;
@@ -1,46 +0,0 @@
1
- import { Div as s, H4 as n, P as o } from "@base-framework/atoms";
2
- import { Atom as l, Jot as d, Component as c } from "@base-framework/base";
3
- const g = l((t, a) => {
4
- const e = t.margin ?? "my-5 mx-5", r = t.padding ?? "p-4";
5
- return t.hover && (t.class += " hover:shadow-lg hover:bg-muted/50"), s({
6
- ...t,
7
- class: `rounded-lg border bg-card text-card-foreground shadow-md min-w-[120px] min-h-[80px] ${e} ${r} ${t.class || ""}`
8
- }, a);
9
- }), u = l((t, a) => {
10
- const e = t.border === !0 ? "border-t" : "";
11
- return s({
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 || ""}`
14
- }, [
15
- t.label && s({
16
- ...t.labelProps,
17
- class: `flex flex-auto flex-col gap-y-1 ${t.labelProps?.class || ""}`
18
- }, [
19
- n({ class: "text-base" }, t.label),
20
- t.description && o({ class: "text-sm text-muted-foreground" }, t.description)
21
- ]),
22
- // Controls container: grows to fill remaining space, spacing between items
23
- s({ class: "flex flex-col gap-y-4" }, a)
24
- ]);
25
- });
26
- class i extends c {
27
- /**
28
- * This will set the component context.
29
- *
30
- * @param {object|null} context
31
- * @returns {object|null}
32
- */
33
- setContext(a) {
34
- if (this.data)
35
- return null;
36
- const e = this?.parent?.data ?? this?.parent?.context?.data ?? this?.parent?.state ?? null;
37
- return e ? { data: e } : null;
38
- }
39
- }
40
- const f = (t) => d(t, i);
41
- export {
42
- g as C,
43
- u as F,
44
- i as V,
45
- f as a
46
- };