@ojiepermana/angular 0.1.1 → 21.0.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.
Files changed (92) hide show
  1. package/README.md +41 -249
  2. package/fesm2022/ojiepermana-angular-chart.mjs +3714 -0
  3. package/fesm2022/ojiepermana-angular-chart.mjs.map +1 -0
  4. package/fesm2022/ojiepermana-angular-component.mjs +3463 -0
  5. package/fesm2022/ojiepermana-angular-component.mjs.map +1 -0
  6. package/fesm2022/ojiepermana-angular-layout.mjs +276 -408
  7. package/fesm2022/ojiepermana-angular-layout.mjs.map +1 -1
  8. package/fesm2022/ojiepermana-angular-navigation.mjs +2198 -404
  9. package/fesm2022/ojiepermana-angular-navigation.mjs.map +1 -1
  10. package/fesm2022/ojiepermana-angular-theme.mjs +381 -1
  11. package/fesm2022/ojiepermana-angular-theme.mjs.map +1 -1
  12. package/fesm2022/ojiepermana-angular.mjs +15 -1
  13. package/fesm2022/ojiepermana-angular.mjs.map +1 -1
  14. package/package.json +49 -36
  15. package/theme/styles/etos.css +38 -0
  16. package/theme/styles/index.css +32 -8
  17. package/theme/styles/themes/brand/etos/color.css +21 -0
  18. package/theme/styles/themes/brand/etos/style.css +50 -0
  19. package/theme/styles/themes/library/_components.css +63 -0
  20. package/theme/styles/themes/library/_layers.css +15 -0
  21. package/theme/styles/themes/library/_material-overrides.css +254 -0
  22. package/theme/styles/themes/library/_tokens.css +54 -0
  23. package/theme/styles/themes/library/color/amber.css +18 -0
  24. package/theme/styles/themes/library/color/blue.css +23 -0
  25. package/theme/styles/themes/library/color/green.css +18 -0
  26. package/theme/styles/themes/library/color/index.css +9 -0
  27. package/theme/styles/themes/library/color/purple.css +18 -0
  28. package/theme/styles/themes/library/color/red.css +18 -0
  29. package/theme/styles/themes/library/style/brutal.css +47 -0
  30. package/theme/styles/themes/library/style/default.css +51 -0
  31. package/theme/styles/themes/library/style/index.css +8 -0
  32. package/theme/styles/themes/library/style/sharp.css +47 -0
  33. package/theme/styles/themes/library/style/soft.css +47 -0
  34. package/theme/styles/themes/mode/dark.css +20 -0
  35. package/theme/styles/themes/mode/index.css +6 -0
  36. package/theme/styles/themes/mode/light.css +24 -0
  37. package/theme/styles/themes/taildwind.css +109 -0
  38. package/types/ojiepermana-angular-chart.d.ts +1094 -0
  39. package/types/ojiepermana-angular-component.d.ts +1174 -0
  40. package/types/ojiepermana-angular-layout.d.ts +123 -76
  41. package/types/ojiepermana-angular-navigation.d.ts +256 -116
  42. package/types/ojiepermana-angular-theme.d.ts +170 -1
  43. package/types/ojiepermana-angular.d.ts +2 -1
  44. package/fesm2022/ojiepermana-angular-internal.mjs +0 -489
  45. package/fesm2022/ojiepermana-angular-internal.mjs.map +0 -1
  46. package/fesm2022/ojiepermana-angular-navigation-horizontal.mjs +0 -721
  47. package/fesm2022/ojiepermana-angular-navigation-horizontal.mjs.map +0 -1
  48. package/fesm2022/ojiepermana-angular-navigation-vertical.mjs +0 -1647
  49. package/fesm2022/ojiepermana-angular-navigation-vertical.mjs.map +0 -1
  50. package/fesm2022/ojiepermana-angular-shell.mjs +0 -19
  51. package/fesm2022/ojiepermana-angular-shell.mjs.map +0 -1
  52. package/fesm2022/ojiepermana-angular-theme-component.mjs +0 -235
  53. package/fesm2022/ojiepermana-angular-theme-component.mjs.map +0 -1
  54. package/fesm2022/ojiepermana-angular-theme-directive.mjs +0 -29
  55. package/fesm2022/ojiepermana-angular-theme-directive.mjs.map +0 -1
  56. package/fesm2022/ojiepermana-angular-theme-service.mjs +0 -241
  57. package/fesm2022/ojiepermana-angular-theme-service.mjs.map +0 -1
  58. package/layout/README.md +0 -144
  59. package/layout/src/component/horizontal/horizontal.css +0 -130
  60. package/layout/src/component/vertical/vertical.css +0 -75
  61. package/layout/src/layout.css +0 -16
  62. package/navigation/README.md +0 -301
  63. package/navigation/horizontal/README.md +0 -49
  64. package/shell/README.md +0 -41
  65. package/styles/index.css +0 -2
  66. package/styles/resets.css +0 -22
  67. package/theme/README.md +0 -379
  68. package/theme/styles/adapters/material-ui/index.css +0 -205
  69. package/theme/styles/modes/dark.css +0 -84
  70. package/theme/styles/presets/colors/blue.css +0 -45
  71. package/theme/styles/presets/colors/brand.css +0 -52
  72. package/theme/styles/presets/colors/cyan.css +0 -45
  73. package/theme/styles/presets/colors/green.css +0 -45
  74. package/theme/styles/presets/colors/index.css +0 -7
  75. package/theme/styles/presets/colors/orange.css +0 -45
  76. package/theme/styles/presets/colors/purple.css +0 -45
  77. package/theme/styles/presets/colors/red.css +0 -45
  78. package/theme/styles/presets/styles/flat.css +0 -61
  79. package/theme/styles/presets/styles/glass.css +0 -28
  80. package/theme/styles/presets/styles/index.css +0 -2
  81. package/theme/styles/roles/index.css +0 -67
  82. package/theme/styles/tokens/foundation.css +0 -136
  83. package/theme/styles/tokens/semantic.css +0 -87
  84. package/theme/styles/utilities/index.css +0 -88
  85. package/types/ojiepermana-angular-internal.d.ts +0 -90
  86. package/types/ojiepermana-angular-navigation-horizontal.d.ts +0 -81
  87. package/types/ojiepermana-angular-navigation-vertical.d.ts +0 -262
  88. package/types/ojiepermana-angular-shell.d.ts +0 -14
  89. package/types/ojiepermana-angular-theme-component.d.ts +0 -46
  90. package/types/ojiepermana-angular-theme-directive.d.ts +0 -10
  91. package/types/ojiepermana-angular-theme-service.d.ts +0 -68
  92. /package/{navigation/vertical → chart}/README.md +0 -0
@@ -0,0 +1,51 @@
1
+ /**
2
+ * Default is the baseline style layer.
3
+ */
4
+ @layer tokens {
5
+ :root,
6
+ [data-style='default'] {
7
+ --theme-radius-base: 0.5rem;
8
+ --theme-radius-sm: calc(var(--theme-radius-base) - 2px);
9
+ --theme-radius-md: var(--theme-radius-base);
10
+ --theme-radius-lg: calc(var(--theme-radius-base) + 4px);
11
+
12
+ --radius: var(--theme-radius-base);
13
+ --radius-sm: var(--theme-radius-sm);
14
+ --radius-md: var(--theme-radius-md);
15
+ --radius-lg: var(--theme-radius-lg);
16
+
17
+ --border-width: 1px;
18
+
19
+ --theme-shadow-sm: 0 1px 2px 0 hsl(0 0% 0% / 0.05);
20
+ --theme-shadow: 0 1px 3px 0 hsl(0 0% 0% / 0.1);
21
+ --theme-shadow-md: 0 4px 6px -1px hsl(0 0% 0% / 0.1);
22
+ --theme-shadow-lg: 0 10px 15px -3px hsl(0 0% 0% / 0.1);
23
+
24
+ --shadow-sm: var(--theme-shadow-sm);
25
+ --shadow: var(--theme-shadow);
26
+ --shadow-md: var(--theme-shadow-md);
27
+ --shadow-lg: var(--theme-shadow-lg);
28
+
29
+ --theme-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
30
+ --theme-font-mono: 'JetBrains Mono', 'Fira Code', monospace;
31
+
32
+ --font-sans: var(--theme-font-sans);
33
+ --font-mono: var(--theme-font-mono);
34
+ --font-weight-bold: 600;
35
+ --theme-text-scale: 1;
36
+ --nav-font-family: var(--font-sans);
37
+ --nav-text-size: var(--text-base);
38
+ --nav-text-line-height: var(--text-base--line-height);
39
+ --nav-heading-font-family: var(--font-sans);
40
+ --nav-heading-size: var(--text-sm);
41
+ --nav-heading-line-height: var(--text-sm--line-height);
42
+ --nav-heading-weight: 600;
43
+ --nav-heading-letter-spacing: 0.12em;
44
+ --nav-badge-font-family: var(--font-sans);
45
+ --nav-badge-size: var(--text-sm);
46
+ --nav-badge-line-height: var(--text-sm--line-height);
47
+ --nav-badge-weight: 500;
48
+ --letter-spacing: 0;
49
+ --space-unit: 0.25rem;
50
+ }
51
+ }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Layer 3: style.
3
+ * Imports every style variant in a stable order.
4
+ */
5
+ @import './default.css';
6
+ @import './sharp.css';
7
+ @import './brutal.css';
8
+ @import './soft.css';
@@ -0,0 +1,47 @@
1
+ @layer tokens {
2
+ [data-style='sharp'] {
3
+ --theme-radius-base: 0;
4
+ --theme-radius-sm: 0;
5
+ --theme-radius-md: 0;
6
+ --theme-radius-lg: 0;
7
+
8
+ --radius: 0;
9
+ --radius-sm: 0;
10
+ --radius-md: 0;
11
+ --radius-lg: 0;
12
+
13
+ --border-width: 1px;
14
+
15
+ --theme-shadow-sm: none;
16
+ --theme-shadow: none;
17
+ --theme-shadow-md: none;
18
+ --theme-shadow-lg: none;
19
+
20
+ --shadow-sm: none;
21
+ --shadow: none;
22
+ --shadow-md: none;
23
+ --shadow-lg: none;
24
+
25
+ --theme-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
26
+ --theme-font-mono: 'JetBrains Mono', monospace;
27
+
28
+ --font-sans: var(--theme-font-sans);
29
+ --font-mono: var(--theme-font-mono);
30
+ --font-weight-bold: 600;
31
+ --theme-text-scale: 0.98;
32
+ --nav-font-family: var(--font-sans);
33
+ --nav-text-size: var(--text-base);
34
+ --nav-text-line-height: var(--text-base--line-height);
35
+ --nav-heading-font-family: var(--font-sans);
36
+ --nav-heading-size: calc(var(--text-sm) * 0.94);
37
+ --nav-heading-line-height: 1.35;
38
+ --nav-heading-weight: 600;
39
+ --nav-heading-letter-spacing: 0.16em;
40
+ --nav-badge-font-family: var(--font-sans);
41
+ --nav-badge-size: calc(var(--text-sm) * 0.94);
42
+ --nav-badge-line-height: 1.35;
43
+ --nav-badge-weight: 500;
44
+ --letter-spacing: 0;
45
+ --space-unit: 0.25rem;
46
+ }
47
+ }
@@ -0,0 +1,47 @@
1
+ @layer tokens {
2
+ [data-style='soft'] {
3
+ --theme-radius-base: 1rem;
4
+ --theme-radius-sm: calc(var(--theme-radius-base) - 4px);
5
+ --theme-radius-md: var(--theme-radius-base);
6
+ --theme-radius-lg: calc(var(--theme-radius-base) + 6px);
7
+
8
+ --radius: var(--theme-radius-base);
9
+ --radius-sm: var(--theme-radius-sm);
10
+ --radius-md: var(--theme-radius-md);
11
+ --radius-lg: var(--theme-radius-lg);
12
+
13
+ --border-width: 1px;
14
+
15
+ --theme-shadow-sm: 0 2px 8px hsl(0 0% 0% / 0.04);
16
+ --theme-shadow: 0 4px 14px hsl(0 0% 0% / 0.08);
17
+ --theme-shadow-md: 0 8px 24px hsl(0 0% 0% / 0.1);
18
+ --theme-shadow-lg: 0 16px 40px hsl(0 0% 0% / 0.12);
19
+
20
+ --shadow-sm: var(--theme-shadow-sm);
21
+ --shadow: var(--theme-shadow);
22
+ --shadow-md: var(--theme-shadow-md);
23
+ --shadow-lg: var(--theme-shadow-lg);
24
+
25
+ --theme-font-sans: 'Quicksand', 'Nunito', system-ui, sans-serif;
26
+ --theme-font-mono: 'Fira Code', monospace;
27
+
28
+ --font-sans: var(--theme-font-sans);
29
+ --font-mono: var(--theme-font-mono);
30
+ --font-weight-bold: 600;
31
+ --theme-text-scale: 1.05;
32
+ --nav-font-family: var(--font-sans);
33
+ --nav-text-size: var(--text-base);
34
+ --nav-text-line-height: var(--text-base--line-height);
35
+ --nav-heading-font-family: var(--font-sans);
36
+ --nav-heading-size: var(--text-sm);
37
+ --nav-heading-line-height: var(--text-sm--line-height);
38
+ --nav-heading-weight: 700;
39
+ --nav-heading-letter-spacing: 0.08em;
40
+ --nav-badge-font-family: var(--font-sans);
41
+ --nav-badge-size: var(--text-sm);
42
+ --nav-badge-line-height: var(--text-sm--line-height);
43
+ --nav-badge-weight: 600;
44
+ --letter-spacing: 0;
45
+ --space-unit: 0.25rem;
46
+ }
47
+ }
@@ -0,0 +1,20 @@
1
+ @layer tokens {
2
+ [data-mode='dark'] {
3
+ color-scheme: dark;
4
+
5
+ --background: 240 10% 3.9%;
6
+ --foreground: 0 0% 98%;
7
+
8
+ --card: 240 10% 3.9%;
9
+ --card-foreground: 0 0% 98%;
10
+
11
+ --popover: 240 10% 3.9%;
12
+ --popover-foreground: 0 0% 98%;
13
+
14
+ --muted: 240 3.7% 15.9%;
15
+ --muted-foreground: 240 5% 64.9%;
16
+
17
+ --border: 240 3.7% 15.9%;
18
+ --input: 240 3.7% 15.9%;
19
+ }
20
+ }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Layer 1: mode.
3
+ * Imports every mode variant in a stable order.
4
+ */
5
+ @import './light.css';
6
+ @import './dark.css';
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Light is the default mode layer.
3
+ */
4
+ @layer tokens {
5
+ :root,
6
+ [data-mode='light'] {
7
+ color-scheme: light;
8
+
9
+ --background: 0 0% 100%;
10
+ --foreground: 240 10% 3.9%;
11
+
12
+ --card: 0 0% 100%;
13
+ --card-foreground: 240 10% 3.9%;
14
+
15
+ --popover: 0 0% 100%;
16
+ --popover-foreground: 240 10% 3.9%;
17
+
18
+ --muted: 240 4.8% 95.9%;
19
+ --muted-foreground: 240 3.8% 46.1%;
20
+
21
+ --border: 240 5.9% 90%;
22
+ --input: 240 5.9% 90%;
23
+ }
24
+ }
@@ -0,0 +1,109 @@
1
+ /**
2
+ * Tailwind v4 theme mapping for @ojiepermana/angular/theme.
3
+ *
4
+ * Requires Tailwind CSS ^4.2.0.
5
+ *
6
+ * Usage (styles.css):
7
+ * @import '@ojiepermana/angular/theme/styles';
8
+ * @import 'tailwindcss';
9
+ * @import '@ojiepermana/angular/theme/tailwind/theme.css';
10
+ *
11
+ * Maps the 3-layer HSL CSS variables onto Tailwind v4 design tokens so
12
+ * utilities like `bg-primary`, `text-foreground`, `rounded-md`, and
13
+ * `shadow-lg` resolve to the active theme automatically.
14
+ */
15
+ @custom-variant dark (&:where([data-mode='dark'], [data-mode='dark'] *, .dark, .dark *));
16
+
17
+ @theme inline {
18
+ --color-border: hsl(var(--border));
19
+ --color-input: hsl(var(--input));
20
+ --color-ring: hsl(var(--ring));
21
+ --color-background: hsl(var(--background));
22
+ --color-foreground: hsl(var(--foreground));
23
+
24
+ --color-primary: hsl(var(--primary));
25
+ --color-primary-foreground: hsl(var(--primary-foreground));
26
+
27
+ --color-secondary: hsl(var(--secondary));
28
+ --color-secondary-foreground: hsl(var(--secondary-foreground));
29
+
30
+ --color-destructive: hsl(var(--destructive));
31
+ --color-destructive-foreground: hsl(var(--destructive-foreground));
32
+
33
+ --color-success: hsl(var(--success));
34
+ --color-success-foreground: hsl(var(--success-foreground));
35
+
36
+ --color-warning: hsl(var(--warning));
37
+ --color-warning-foreground: hsl(var(--warning-foreground));
38
+
39
+ --color-info: hsl(var(--info));
40
+ --color-info-foreground: hsl(var(--info-foreground));
41
+
42
+ --color-muted: hsl(var(--muted));
43
+ --color-muted-foreground: hsl(var(--muted-foreground));
44
+
45
+ --color-accent: hsl(var(--accent));
46
+ --color-accent-foreground: hsl(var(--accent-foreground));
47
+
48
+ --color-popover: hsl(var(--popover));
49
+ --color-popover-foreground: hsl(var(--popover-foreground));
50
+
51
+ --color-card: hsl(var(--card));
52
+ --color-card-foreground: hsl(var(--card-foreground));
53
+
54
+ --color-chart-1: hsl(var(--chart-1));
55
+ --color-chart-2: hsl(var(--chart-2));
56
+ --color-chart-3: hsl(var(--chart-3));
57
+ --color-chart-4: hsl(var(--chart-4));
58
+ --color-chart-5: hsl(var(--chart-5));
59
+
60
+ --color-sidebar: hsl(var(--sidebar-background));
61
+ --color-sidebar-foreground: hsl(var(--sidebar-foreground));
62
+ --color-sidebar-primary: hsl(var(--sidebar-primary));
63
+ --color-sidebar-primary-foreground: hsl(var(--sidebar-primary-foreground));
64
+ --color-sidebar-accent: hsl(var(--sidebar-accent));
65
+ --color-sidebar-accent-foreground: hsl(var(--sidebar-accent-foreground));
66
+ --color-sidebar-border: hsl(var(--sidebar-border));
67
+ --color-sidebar-ring: hsl(var(--sidebar-ring));
68
+
69
+ --radius-sm: var(--theme-radius-sm);
70
+ --radius-md: var(--theme-radius-md);
71
+ --radius-lg: var(--theme-radius-lg);
72
+ --radius-xl: calc(var(--theme-radius-lg) + 0.375rem);
73
+
74
+ --shadow-sm: var(--theme-shadow-sm);
75
+ --shadow: var(--theme-shadow);
76
+ --shadow-md: var(--theme-shadow-md);
77
+ --shadow-lg: var(--theme-shadow-lg);
78
+ --shadow-xl: var(--theme-shadow-lg);
79
+
80
+ --text-xs: calc(0.75rem * var(--theme-text-scale));
81
+ --text-xs--line-height: calc(1 / 0.75);
82
+ --text-sm: calc(0.875rem * var(--theme-text-scale));
83
+ --text-sm--line-height: calc(1.25 / 0.875);
84
+ --text-base: calc(1rem * var(--theme-text-scale));
85
+ --text-base--line-height: calc(1.5 / 1);
86
+ --text-lg: calc(1.125rem * var(--theme-text-scale));
87
+ --text-lg--line-height: calc(1.75 / 1.125);
88
+ --text-xl: calc(1.25rem * var(--theme-text-scale));
89
+ --text-xl--line-height: calc(1.75 / 1.25);
90
+ --text-2xl: calc(1.5rem * var(--theme-text-scale));
91
+ --text-2xl--line-height: calc(2 / 1.5);
92
+ --text-3xl: calc(1.875rem * var(--theme-text-scale));
93
+ --text-3xl--line-height: calc(2.25 / 1.875);
94
+ --text-4xl: calc(2.25rem * var(--theme-text-scale));
95
+ --text-4xl--line-height: calc(2.5 / 2.25);
96
+ --text-5xl: calc(3rem * var(--theme-text-scale));
97
+ --text-5xl--line-height: 1;
98
+ --text-6xl: calc(3.75rem * var(--theme-text-scale));
99
+ --text-6xl--line-height: 1;
100
+ --text-7xl: calc(4.5rem * var(--theme-text-scale));
101
+ --text-7xl--line-height: 1;
102
+ --text-8xl: calc(6rem * var(--theme-text-scale));
103
+ --text-8xl--line-height: 1;
104
+ --text-9xl: calc(8rem * var(--theme-text-scale));
105
+ --text-9xl--line-height: 1;
106
+
107
+ --font-sans: var(--theme-font-sans);
108
+ --font-mono: var(--theme-font-mono);
109
+ }