@semantic-components/ui 0.67.0 → 0.68.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.
- package/esm2022/lib/components/index.js +6 -4
- package/esm2022/lib/components/index.js.map +1 -1
- package/esm2022/lib/components/navigation-menu/index.js +1 -0
- package/esm2022/lib/components/navigation-menu/index.js.map +1 -1
- package/esm2022/lib/components/navigation-menu/navigation-menu-grid.js +20 -0
- package/esm2022/lib/components/navigation-menu/navigation-menu-grid.js.map +1 -0
- package/esm2022/lib/components/scroll-area/index.js +2 -0
- package/esm2022/lib/components/scroll-area/index.js.map +1 -0
- package/esm2022/lib/components/scroll-area/scroll-area.js +21 -0
- package/esm2022/lib/components/scroll-area/scroll-area.js.map +1 -0
- package/esm2022/lib/components/typography/heading.js +43 -0
- package/esm2022/lib/components/typography/heading.js.map +1 -0
- package/esm2022/lib/components/typography/index.js +2 -0
- package/esm2022/lib/components/typography/index.js.map +1 -0
- package/lib/components/index.d.ts +6 -4
- package/lib/components/navigation-menu/index.d.ts +1 -0
- package/lib/components/navigation-menu/navigation-menu-grid.d.ts +7 -0
- package/lib/components/scroll-area/index.d.ts +1 -0
- package/lib/components/scroll-area/scroll-area.d.ts +7 -0
- package/lib/components/typography/heading.d.ts +15 -0
- package/lib/components/typography/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -10,8 +10,8 @@ export * from './button';
|
|
|
10
10
|
export * from './button-group';
|
|
11
11
|
export * from './calendar';
|
|
12
12
|
export * from './card';
|
|
13
|
-
export * from './collapsible';
|
|
14
13
|
export * from './checkbox';
|
|
14
|
+
export * from './collapsible';
|
|
15
15
|
export * from './date-picker';
|
|
16
16
|
export * from './dialog';
|
|
17
17
|
export * from './drawer';
|
|
@@ -33,21 +33,23 @@ export * from './pagination';
|
|
|
33
33
|
export * from './popover';
|
|
34
34
|
export * from './progress';
|
|
35
35
|
export * from './radio-group';
|
|
36
|
+
export * from './range-slider';
|
|
37
|
+
export * from './scroll-area';
|
|
36
38
|
export * from './select';
|
|
37
39
|
export * from './separator';
|
|
38
40
|
export * from './sheet';
|
|
39
41
|
export * from './skeleton';
|
|
40
|
-
export * from './range-slider';
|
|
41
42
|
export * from './slider';
|
|
42
43
|
export * from './spinner';
|
|
43
44
|
export * from './switch';
|
|
44
|
-
export * from './time-picker';
|
|
45
45
|
export * from './table';
|
|
46
46
|
export * from './tabs';
|
|
47
47
|
export * from './textarea';
|
|
48
|
+
export * from './time-picker';
|
|
49
|
+
export * from './toast';
|
|
48
50
|
export * from './toggle';
|
|
49
51
|
export * from './toggle-group';
|
|
50
52
|
export * from './toolbar';
|
|
51
|
-
export * from './toast';
|
|
52
53
|
export * from './tooltip';
|
|
54
|
+
export * from './typography';
|
|
53
55
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../libs/ui/src/lib/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../libs/ui/src/lib/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC;AACvB,cAAc,OAAO,CAAC;AACtB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC","sourcesContent":["export * from './accordion';\nexport * from './alert';\nexport * from './alert-dialog';\nexport * from './aspect-ratio';\nexport * from './avatar';\nexport * from './backdrop';\nexport * from './badge';\nexport * from './breadcrumb';\nexport * from './button';\nexport * from './button-group';\nexport * from './calendar';\nexport * from './card';\nexport * from './checkbox';\nexport * from './collapsible';\nexport * from './date-picker';\nexport * from './dialog';\nexport * from './drawer';\nexport * from './empty';\nexport * from './field';\nexport * from './file-upload';\nexport * from './hover-card';\nexport * from './input';\nexport * from './input-group';\nexport * from './item';\nexport * from './kbd';\nexport * from './label';\nexport * from './link';\nexport * from './menu';\nexport * from './menu-bar';\nexport * from './native-select';\nexport * from './navigation-menu';\nexport * from './pagination';\nexport * from './popover';\nexport * from './progress';\nexport * from './radio-group';\nexport * from './range-slider';\nexport * from './scroll-area';\nexport * from './select';\nexport * from './separator';\nexport * from './sheet';\nexport * from './skeleton';\nexport * from './slider';\nexport * from './spinner';\nexport * from './switch';\nexport * from './table';\nexport * from './tabs';\nexport * from './textarea';\nexport * from './time-picker';\nexport * from './toast';\nexport * from './toggle';\nexport * from './toggle-group';\nexport * from './toolbar';\nexport * from './tooltip';\nexport * from './typography';\n"]}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { ScNavigationMenu } from './navigation-menu';
|
|
2
2
|
export { ScNavigationMenuContent } from './navigation-menu-content';
|
|
3
|
+
export { ScNavigationMenuGrid } from './navigation-menu-grid';
|
|
3
4
|
export { ScNavigationMenuItem } from './navigation-menu-item';
|
|
4
5
|
export { ScNavigationMenuLink } from './navigation-menu-link';
|
|
5
6
|
export { ScNavigationMenuList } from './navigation-menu-list';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/navigation-menu/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC","sourcesContent":["export { ScNavigationMenu } from './navigation-menu';\nexport { ScNavigationMenuContent } from './navigation-menu-content';\nexport { ScNavigationMenuItem } from './navigation-menu-item';\nexport { ScNavigationMenuLink } from './navigation-menu-link';\nexport { ScNavigationMenuList } from './navigation-menu-list';\nexport { ScNavigationMenuPortal } from './navigation-menu-portal';\nexport { ScNavigationMenuTrigger } from './navigation-menu-trigger';\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/navigation-menu/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC","sourcesContent":["export { ScNavigationMenu } from './navigation-menu';\nexport { ScNavigationMenuContent } from './navigation-menu-content';\nexport { ScNavigationMenuGrid } from './navigation-menu-grid';\nexport { ScNavigationMenuItem } from './navigation-menu-item';\nexport { ScNavigationMenuLink } from './navigation-menu-link';\nexport { ScNavigationMenuList } from './navigation-menu-list';\nexport { ScNavigationMenuPortal } from './navigation-menu-portal';\nexport { ScNavigationMenuTrigger } from './navigation-menu-trigger';\n"]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { computed, Directive, input } from '@angular/core';
|
|
2
|
+
import { cn } from '../../utils';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export class ScNavigationMenuGrid {
|
|
5
|
+
classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
|
|
6
|
+
class = computed(() => cn('grid w-[400px] gap-3 p-4 md:w-[500px] md:grid-cols-2 lg:w-[600px]', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
|
|
7
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScNavigationMenuGrid, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
8
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.5", type: ScNavigationMenuGrid, isStandalone: true, selector: "ul[scNavigationMenuGrid]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "navigation-menu-grid" }, properties: { "class": "class()" } }, ngImport: i0 });
|
|
9
|
+
}
|
|
10
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScNavigationMenuGrid, decorators: [{
|
|
11
|
+
type: Directive,
|
|
12
|
+
args: [{
|
|
13
|
+
selector: 'ul[scNavigationMenuGrid]',
|
|
14
|
+
host: {
|
|
15
|
+
'data-slot': 'navigation-menu-grid',
|
|
16
|
+
'[class]': 'class()',
|
|
17
|
+
},
|
|
18
|
+
}]
|
|
19
|
+
}], propDecorators: { classInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
|
|
20
|
+
//# sourceMappingURL=navigation-menu-grid.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"navigation-menu-grid.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/navigation-menu/navigation-menu-grid.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;;AASjC,MAAM,OAAO,oBAAoB;IACtB,UAAU,GAAG,KAAK,CAAS,EAAE,uDAAI,KAAK,EAAE,OAAO,GAAG,CAAC;IAEzC,KAAK,GAAG,QAAQ,CAAC,GAAG,EAAE,CACvC,EAAE,CACA,mEAAmE,EACnE,IAAI,CAAC,UAAU,EAAE,CAClB,iDACF,CAAC;uGARS,oBAAoB;2FAApB,oBAAoB;;2FAApB,oBAAoB;kBAPhC,SAAS;mBAAC;oBACT,QAAQ,EAAE,0BAA0B;oBACpC,IAAI,EAAE;wBACJ,WAAW,EAAE,sBAAsB;wBACnC,SAAS,EAAE,SAAS;qBACrB;iBACF","sourcesContent":["import { computed, Directive, input } from '@angular/core';\nimport { cn } from '../../utils';\n\n@Directive({\n selector: 'ul[scNavigationMenuGrid]',\n host: {\n 'data-slot': 'navigation-menu-grid',\n '[class]': 'class()',\n },\n})\nexport class ScNavigationMenuGrid {\n readonly classInput = input<string>('', { alias: 'class' });\n\n protected readonly class = computed(() =>\n cn(\n 'grid w-[400px] gap-3 p-4 md:w-[500px] md:grid-cols-2 lg:w-[600px]',\n this.classInput(),\n ),\n );\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/scroll-area/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC","sourcesContent":["export * from './scroll-area';\n"]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, computed, input, ViewEncapsulation, } from '@angular/core';
|
|
2
|
+
import { cn } from '../../utils';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export class ScScrollArea {
|
|
5
|
+
classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
|
|
6
|
+
class = computed(() => cn('overflow-auto', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
|
|
7
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScScrollArea, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
8
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.1.5", type: ScScrollArea, isStandalone: true, selector: "div[scScrollArea]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "scroll-area" }, properties: { "class": "class()" } }, ngImport: i0, template: `
|
|
9
|
+
<ng-content />
|
|
10
|
+
`, isInline: true, styles: ["[data-slot=scroll-area]{scrollbar-width:thin;scrollbar-color:transparent transparent}[data-slot=scroll-area]:hover{scrollbar-color:var(--color-border) transparent}[data-slot=scroll-area]::-webkit-scrollbar{width:8px;height:8px}[data-slot=scroll-area]::-webkit-scrollbar-thumb{background-color:transparent;border-radius:9999px}[data-slot=scroll-area]:hover::-webkit-scrollbar-thumb{background-color:var(--color-border)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
11
|
+
}
|
|
12
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScScrollArea, decorators: [{
|
|
13
|
+
type: Component,
|
|
14
|
+
args: [{ selector: 'div[scScrollArea]', host: {
|
|
15
|
+
'data-slot': 'scroll-area',
|
|
16
|
+
'[class]': 'class()',
|
|
17
|
+
}, template: `
|
|
18
|
+
<ng-content />
|
|
19
|
+
`, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, styles: ["[data-slot=scroll-area]{scrollbar-width:thin;scrollbar-color:transparent transparent}[data-slot=scroll-area]:hover{scrollbar-color:var(--color-border) transparent}[data-slot=scroll-area]::-webkit-scrollbar{width:8px;height:8px}[data-slot=scroll-area]::-webkit-scrollbar-thumb{background-color:transparent;border-radius:9999px}[data-slot=scroll-area]:hover::-webkit-scrollbar-thumb{background-color:var(--color-border)}\n"] }]
|
|
20
|
+
}], propDecorators: { classInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
|
|
21
|
+
//# sourceMappingURL=scroll-area.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scroll-area.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/scroll-area/scroll-area.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,SAAS,EACT,QAAQ,EACR,KAAK,EACL,iBAAiB,GAClB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;;AAkCjC,MAAM,OAAO,YAAY;IACd,UAAU,GAAG,KAAK,CAAS,EAAE,uDAAI,KAAK,EAAE,OAAO,GAAG,CAAC;IAEzC,KAAK,GAAG,QAAQ,CAAC,GAAG,EAAE,CACvC,EAAE,CAAC,eAAe,EAAE,IAAI,CAAC,UAAU,EAAE,CAAC,iDACvC,CAAC;uGALS,YAAY;2FAAZ,YAAY,qTA1Bb;;GAET;;2FAwBU,YAAY;kBAhCxB,SAAS;+BACE,mBAAmB,QACvB;wBACJ,WAAW,EAAE,aAAa;wBAC1B,SAAS,EAAE,SAAS;qBACrB,YACS;;GAET,iBAqBc,iBAAiB,CAAC,IAAI,mBACpB,uBAAuB,CAAC,MAAM","sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n computed,\n input,\n ViewEncapsulation,\n} from '@angular/core';\nimport { cn } from '../../utils';\n\n@Component({\n selector: 'div[scScrollArea]',\n host: {\n 'data-slot': 'scroll-area',\n '[class]': 'class()',\n },\n template: `\n <ng-content />\n `,\n styles: `\n [data-slot='scroll-area'] {\n scrollbar-width: thin;\n scrollbar-color: transparent transparent;\n }\n [data-slot='scroll-area']:hover {\n scrollbar-color: var(--color-border) transparent;\n }\n [data-slot='scroll-area']::-webkit-scrollbar {\n width: 8px;\n height: 8px;\n }\n [data-slot='scroll-area']::-webkit-scrollbar-thumb {\n background-color: transparent;\n border-radius: 9999px;\n }\n [data-slot='scroll-area']:hover::-webkit-scrollbar-thumb {\n background-color: var(--color-border);\n }\n `,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ScScrollArea {\n readonly classInput = input<string>('', { alias: 'class' });\n\n protected readonly class = computed(() =>\n cn('overflow-auto', this.classInput()),\n );\n}\n"]}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { computed, Directive, ElementRef, inject, input } from '@angular/core';
|
|
2
|
+
import { cva } from 'class-variance-authority';
|
|
3
|
+
import { cn } from '../../utils';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export const headingVariants = cva('scroll-m-20 tracking-tight', {
|
|
6
|
+
variants: {
|
|
7
|
+
level: {
|
|
8
|
+
h1: 'text-4xl font-extrabold',
|
|
9
|
+
h2: 'text-3xl font-semibold first:mt-0',
|
|
10
|
+
h3: 'text-2xl font-semibold',
|
|
11
|
+
h4: 'text-xl font-semibold',
|
|
12
|
+
},
|
|
13
|
+
underline: {
|
|
14
|
+
true: 'border-b pb-2',
|
|
15
|
+
false: '',
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
defaultVariants: {
|
|
19
|
+
underline: false,
|
|
20
|
+
},
|
|
21
|
+
});
|
|
22
|
+
export class ScHeading {
|
|
23
|
+
classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
|
|
24
|
+
underline = input(false, ...(ngDevMode ? [{ debugName: "underline" }] : []));
|
|
25
|
+
elementRef = inject(ElementRef);
|
|
26
|
+
class = computed(() => {
|
|
27
|
+
const level = this.elementRef.nativeElement.tagName.toLowerCase();
|
|
28
|
+
return cn(headingVariants({ level, underline: this.underline() }), this.classInput());
|
|
29
|
+
}, ...(ngDevMode ? [{ debugName: "class" }] : []));
|
|
30
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScHeading, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
31
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.5", type: ScHeading, isStandalone: true, selector: "h1[scHeading], h2[scHeading], h3[scHeading], h4[scHeading]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, underline: { classPropertyName: "underline", publicName: "underline", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "heading" }, properties: { "class": "class()" } }, ngImport: i0 });
|
|
32
|
+
}
|
|
33
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScHeading, decorators: [{
|
|
34
|
+
type: Directive,
|
|
35
|
+
args: [{
|
|
36
|
+
selector: 'h1[scHeading], h2[scHeading], h3[scHeading], h4[scHeading]',
|
|
37
|
+
host: {
|
|
38
|
+
'data-slot': 'heading',
|
|
39
|
+
'[class]': 'class()',
|
|
40
|
+
},
|
|
41
|
+
}]
|
|
42
|
+
}], propDecorators: { classInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], underline: [{ type: i0.Input, args: [{ isSignal: true, alias: "underline", required: false }] }] } });
|
|
43
|
+
//# sourceMappingURL=heading.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"heading.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/typography/heading.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC/E,OAAO,EAAE,GAAG,EAAqB,MAAM,0BAA0B,CAAC;AAElE,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;;AAEjC,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,CAAC,4BAA4B,EAAE;IAC/D,QAAQ,EAAE;QACR,KAAK,EAAE;YACL,EAAE,EAAE,yBAAyB;YAC7B,EAAE,EAAE,mCAAmC;YACvC,EAAE,EAAE,wBAAwB;YAC5B,EAAE,EAAE,uBAAuB;SAC5B;QACD,SAAS,EAAE;YACT,IAAI,EAAE,eAAe;YACrB,KAAK,EAAE,EAAE;SACV;KACF;IACD,eAAe,EAAE;QACf,SAAS,EAAE,KAAK;KACjB;CACF,CAAC,CAAC;AAWH,MAAM,OAAO,SAAS;IACX,UAAU,GAAG,KAAK,CAAS,EAAE,uDAAI,KAAK,EAAE,OAAO,GAAG,CAAC;IACnD,SAAS,GAAG,KAAK,CAAiC,KAAK,qDAAC,CAAC;IAEjD,UAAU,GAAG,MAAM,CAA0B,UAAU,CAAC,CAAC;IAEvD,KAAK,GAAG,QAAQ,CAAC,GAAG,EAAE;QACvC,MAAM,KAAK,GACT,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,OAAO,CAAC,WAAW,EAAgC,CAAC;QACpF,OAAO,EAAE,CACP,eAAe,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,EAAE,CAAC,EACvD,IAAI,CAAC,UAAU,EAAE,CAClB,CAAC;IACJ,CAAC,iDAAC,CAAC;uGAbQ,SAAS;2FAAT,SAAS;;2FAAT,SAAS;kBAPrB,SAAS;mBAAC;oBACT,QAAQ,EAAE,4DAA4D;oBACtE,IAAI,EAAE;wBACJ,WAAW,EAAE,SAAS;wBACtB,SAAS,EAAE,SAAS;qBACrB;iBACF","sourcesContent":["import { computed, Directive, ElementRef, inject, input } from '@angular/core';\nimport { cva, type VariantProps } from 'class-variance-authority';\n\nimport { cn } from '../../utils';\n\nexport const headingVariants = cva('scroll-m-20 tracking-tight', {\n variants: {\n level: {\n h1: 'text-4xl font-extrabold',\n h2: 'text-3xl font-semibold first:mt-0',\n h3: 'text-2xl font-semibold',\n h4: 'text-xl font-semibold',\n },\n underline: {\n true: 'border-b pb-2',\n false: '',\n },\n },\n defaultVariants: {\n underline: false,\n },\n});\n\nexport type ScHeadingVariants = VariantProps<typeof headingVariants>;\n\n@Directive({\n selector: 'h1[scHeading], h2[scHeading], h3[scHeading], h4[scHeading]',\n host: {\n 'data-slot': 'heading',\n '[class]': 'class()',\n },\n})\nexport class ScHeading {\n readonly classInput = input<string>('', { alias: 'class' });\n readonly underline = input<ScHeadingVariants['underline']>(false);\n\n private readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n protected readonly class = computed(() => {\n const level =\n this.elementRef.nativeElement.tagName.toLowerCase() as ScHeadingVariants['level'];\n return cn(\n headingVariants({ level, underline: this.underline() }),\n this.classInput(),\n );\n });\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/typography/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,eAAe,EAA0B,MAAM,WAAW,CAAC","sourcesContent":["export { ScHeading, headingVariants, type ScHeadingVariants } from './heading';\n"]}
|
|
@@ -10,8 +10,8 @@ export * from './button';
|
|
|
10
10
|
export * from './button-group';
|
|
11
11
|
export * from './calendar';
|
|
12
12
|
export * from './card';
|
|
13
|
-
export * from './collapsible';
|
|
14
13
|
export * from './checkbox';
|
|
14
|
+
export * from './collapsible';
|
|
15
15
|
export * from './date-picker';
|
|
16
16
|
export * from './dialog';
|
|
17
17
|
export * from './drawer';
|
|
@@ -33,20 +33,22 @@ export * from './pagination';
|
|
|
33
33
|
export * from './popover';
|
|
34
34
|
export * from './progress';
|
|
35
35
|
export * from './radio-group';
|
|
36
|
+
export * from './range-slider';
|
|
37
|
+
export * from './scroll-area';
|
|
36
38
|
export * from './select';
|
|
37
39
|
export * from './separator';
|
|
38
40
|
export * from './sheet';
|
|
39
41
|
export * from './skeleton';
|
|
40
|
-
export * from './range-slider';
|
|
41
42
|
export * from './slider';
|
|
42
43
|
export * from './spinner';
|
|
43
44
|
export * from './switch';
|
|
44
|
-
export * from './time-picker';
|
|
45
45
|
export * from './table';
|
|
46
46
|
export * from './tabs';
|
|
47
47
|
export * from './textarea';
|
|
48
|
+
export * from './time-picker';
|
|
49
|
+
export * from './toast';
|
|
48
50
|
export * from './toggle';
|
|
49
51
|
export * from './toggle-group';
|
|
50
52
|
export * from './toolbar';
|
|
51
|
-
export * from './toast';
|
|
52
53
|
export * from './tooltip';
|
|
54
|
+
export * from './typography';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { ScNavigationMenu } from './navigation-menu';
|
|
2
2
|
export { ScNavigationMenuContent } from './navigation-menu-content';
|
|
3
|
+
export { ScNavigationMenuGrid } from './navigation-menu-grid';
|
|
3
4
|
export { ScNavigationMenuItem } from './navigation-menu-item';
|
|
4
5
|
export { ScNavigationMenuLink } from './navigation-menu-link';
|
|
5
6
|
export { ScNavigationMenuList } from './navigation-menu-list';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class ScNavigationMenuGrid {
|
|
3
|
+
readonly classInput: import("@angular/core").InputSignal<string>;
|
|
4
|
+
protected readonly class: import("@angular/core").Signal<string>;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScNavigationMenuGrid, never>;
|
|
6
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ScNavigationMenuGrid, "ul[scNavigationMenuGrid]", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './scroll-area';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class ScScrollArea {
|
|
3
|
+
readonly classInput: import("@angular/core").InputSignal<string>;
|
|
4
|
+
protected readonly class: import("@angular/core").Signal<string>;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScScrollArea, never>;
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScScrollArea, "div[scScrollArea]", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare const headingVariants: (props?: ({
|
|
4
|
+
level?: "h1" | "h2" | "h3" | "h4" | null | undefined;
|
|
5
|
+
underline?: boolean | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
+
export type ScHeadingVariants = VariantProps<typeof headingVariants>;
|
|
8
|
+
export declare class ScHeading {
|
|
9
|
+
readonly classInput: import("@angular/core").InputSignal<string>;
|
|
10
|
+
readonly underline: import("@angular/core").InputSignal<boolean | null | undefined>;
|
|
11
|
+
private readonly elementRef;
|
|
12
|
+
protected readonly class: import("@angular/core").Signal<string>;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScHeading, never>;
|
|
14
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ScHeading, "h1[scHeading], h2[scHeading], h3[scHeading], h4[scHeading]", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; "underline": { "alias": "underline"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ScHeading, headingVariants, type ScHeadingVariants } from './heading';
|