@spartan-ng/cli 0.0.1-alpha.507 → 0.0.1-alpha.508

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 (94) hide show
  1. package/generators.json +6 -0
  2. package/package.json +1 -1
  3. package/src/generators/healthcheck/generator.js +2 -0
  4. package/src/generators/healthcheck/generator.js.map +1 -1
  5. package/src/generators/healthcheck/healthchecks/brn-separator.d.ts +2 -0
  6. package/src/generators/healthcheck/healthchecks/brn-separator.js +34 -0
  7. package/src/generators/healthcheck/healthchecks/brn-separator.js.map +1 -0
  8. package/src/generators/migrate-separator/compat.d.ts +2 -0
  9. package/src/generators/migrate-separator/compat.js +7 -0
  10. package/src/generators/migrate-separator/compat.js.map +1 -0
  11. package/src/generators/migrate-separator/generator.d.ts +4 -0
  12. package/src/generators/migrate-separator/generator.js +78 -0
  13. package/src/generators/migrate-separator/generator.js.map +1 -0
  14. package/src/generators/migrate-separator/schema.d.ts +3 -0
  15. package/src/generators/migrate-separator/schema.json +14 -0
  16. package/src/generators/ui/libs/ui-accordion-helm/files/lib/hlm-accordion-content.ts.template +1 -1
  17. package/src/generators/ui/libs/ui-accordion-helm/files/lib/hlm-accordion-item.ts.template +1 -1
  18. package/src/generators/ui/libs/ui-accordion-helm/files/lib/hlm-accordion-trigger.ts.template +1 -1
  19. package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-content.ts.template +1 -1
  20. package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-overlay.ts.template +1 -1
  21. package/src/generators/ui/libs/ui-alert-helm/files/lib/hlm-alert.ts.template +2 -2
  22. package/src/generators/ui/libs/ui-aspect-ratio-helm/files/lib/helm-aspect-ratio.ts.template +1 -1
  23. package/src/generators/ui/libs/ui-avatar-helm/files/lib/hlm-avatar.ts.template +1 -1
  24. package/src/generators/ui/libs/ui-badge-helm/files/lib/hlm-badge.ts.template +4 -4
  25. package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/hlm-breadcrumb-list.ts.template +1 -1
  26. package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/hlm-breadcrumb-page.ts.template +1 -1
  27. package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/hlm-breadcrumb-separator.ts.template +1 -1
  28. package/src/generators/ui/libs/ui-button-helm/files/lib/hlm-button.ts.template +4 -4
  29. package/src/generators/ui/libs/ui-calendar-helm/files/lib/hlm-calendar-multi.ts.template +1 -1
  30. package/src/generators/ui/libs/ui-calendar-helm/files/lib/hlm-calendar-range.ts.template +1 -1
  31. package/src/generators/ui/libs/ui-calendar-helm/files/lib/hlm-calendar.ts.template +1 -1
  32. package/src/generators/ui/libs/ui-card-helm/files/lib/hlm-card-footer.ts.template +1 -1
  33. package/src/generators/ui/libs/ui-card-helm/files/lib/hlm-card-header.ts.template +1 -1
  34. package/src/generators/ui/libs/ui-card-helm/files/lib/hlm-card-title.ts.template +1 -1
  35. package/src/generators/ui/libs/ui-checkbox-helm/files/lib/hlm-checkbox.ts.template +1 -1
  36. package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-dialog-close-button.ts.template +1 -1
  37. package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-group.ts.template +1 -1
  38. package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-item.ts.template +1 -1
  39. package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-list.ts.template +1 -1
  40. package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-separator.ts.template +1 -1
  41. package/src/generators/ui/libs/ui-date-picker-helm/files/lib/hlm-date-picker-multi.ts.template +2 -2
  42. package/src/generators/ui/libs/ui-date-picker-helm/files/lib/hlm-date-picker.ts.template +2 -2
  43. package/src/generators/ui/libs/ui-date-picker-helm/files/lib/hlm-date-range-picker.ts.template +2 -2
  44. package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-close.ts.template +1 -1
  45. package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-content.ts.template +1 -1
  46. package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-description.ts.template +1 -1
  47. package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-footer.ts.template +1 -1
  48. package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-header.ts.template +1 -3
  49. package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-overlay.ts.template +1 -1
  50. package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-title.ts.template +2 -4
  51. package/src/generators/ui/libs/ui-form-field-helm/files/lib/hlm-error.ts.template +1 -1
  52. package/src/generators/ui/libs/ui-form-field-helm/files/lib/hlm-form-field.ts.template +1 -1
  53. package/src/generators/ui/libs/ui-form-field-helm/files/lib/hlm-hint.ts.template +1 -1
  54. package/src/generators/ui/libs/ui-hover-card-helm/files/lib/hlm-hover-card-content.ts.template +1 -1
  55. package/src/generators/ui/libs/ui-input-helm/files/lib/hlm-input.ts.template +1 -1
  56. package/src/generators/ui/libs/ui-input-otp-helm/files/lib/hlm-input-otp-slot.ts.template +2 -2
  57. package/src/generators/ui/libs/ui-input-otp-helm/files/lib/hlm-input-otp.ts.template +1 -1
  58. package/src/generators/ui/libs/ui-label-helm/files/lib/hlm-label.ts.template +1 -1
  59. package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-bar-item.ts.template +1 -1
  60. package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-bar.ts.template +1 -1
  61. package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item-check.ts.template +1 -1
  62. package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item-checkbox.ts.template +1 -1
  63. package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item-radio-indicator.ts.template +1 -1
  64. package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item-radio.ts.template +1 -1
  65. package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item.ts.template +1 -1
  66. package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-separator.ts.template +1 -1
  67. package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu.ts.template +1 -1
  68. package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-sub-menu.ts.template +1 -1
  69. package/src/generators/ui/libs/ui-popover-helm/files/lib/hlm-popover-close.ts.template +1 -1
  70. package/src/generators/ui/libs/ui-popover-helm/files/lib/hlm-popover-content.ts.template +1 -1
  71. package/src/generators/ui/libs/ui-progress-helm/files/lib/hlm-progress.ts.template +1 -1
  72. package/src/generators/ui/libs/ui-radio-group-helm/files/lib/hlm-radio-indicator.ts.template +1 -1
  73. package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-content.ts.template +1 -1
  74. package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-label.ts.template +1 -1
  75. package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-option.ts.template +1 -1
  76. package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-trigger.ts.template +1 -1
  77. package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-value.ts.template +1 -1
  78. package/src/generators/ui/libs/ui-separator-helm/files/index.ts.template +4 -2
  79. package/src/generators/ui/libs/ui-separator-helm/files/lib/hlm-separator.ts.template +5 -6
  80. package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-close.ts.template +1 -1
  81. package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-content.ts.template +1 -1
  82. package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-overlay.ts.template +1 -1
  83. package/src/generators/ui/libs/ui-skeleton-helm/files/lib/hlm-skeleton.ts.template +1 -1
  84. package/src/generators/ui/libs/ui-spinner-helm/files/lib/hlm-spinner.ts.template +1 -1
  85. package/src/generators/ui/libs/ui-switch-helm/files/lib/hlm-switch-thumb.ts.template +1 -1
  86. package/src/generators/ui/libs/ui-switch-helm/files/lib/hlm-switch.ts.template +1 -1
  87. package/src/generators/ui/libs/ui-tabs-helm/files/lib/hlm-tabs-content.ts.template +1 -1
  88. package/src/generators/ui/libs/ui-tabs-helm/files/lib/hlm-tabs-list.ts.template +2 -2
  89. package/src/generators/ui/libs/ui-tabs-helm/files/lib/hlm-tabs-paginated-list.ts.template +1 -1
  90. package/src/generators/ui/libs/ui-tabs-helm/files/lib/hlm-tabs-trigger.ts.template +1 -1
  91. package/src/generators/ui/libs/ui-toggle-group-helm/files/lib/hlm-toggle-group.ts.template +1 -1
  92. package/src/generators/ui/libs/ui-toggle-group-helm/files/lib/hlm-toggle-item.ts.template +5 -5
  93. package/src/generators/ui/libs/ui-toggle-helm/files/lib/hlm-toggle.ts.template +2 -2
  94. package/src/generators/ui/supported-ui-libraries.json +26 -25
package/generators.json CHANGED
@@ -65,6 +65,7 @@
65
65
  "schema": "./src/generators/migrate-progress/schema.json",
66
66
  "description": "Migrate brn-progress to hlm-progress"
67
67
  },
68
+
68
69
  "migrate-date-picker": {
69
70
  "factory": "./src/generators/migrate-date-picker/generator",
70
71
  "schema": "./src/generators/migrate-date-picker/schema.json",
@@ -74,6 +75,11 @@
74
75
  "factory": "./src/generators/migrate-hlm/generator",
75
76
  "schema": "./src/generators/migrate-hlm/schema.json",
76
77
  "description": "Migrate hlm import from @spartan-ng/brain to @spartan-ng/helm/utils"
78
+ },
79
+ "migrate-separator": {
80
+ "factory": "./src/generators/migrate-separator/generator",
81
+ "schema": "./src/generators/migrate-separator/schema.json",
82
+ "description": "Migrate brn-separator to hlm-separator"
77
83
  }
78
84
  },
79
85
  "schematics": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spartan-ng/cli",
3
- "version": "0.0.1-alpha.507",
3
+ "version": "0.0.1-alpha.508",
4
4
  "type": "commonjs",
5
5
  "dependencies": {
6
6
  "@nx/angular": ">=20.0.0",
@@ -5,6 +5,7 @@ const devkit_1 = require("@nx/devkit");
5
5
  const healthchecks_1 = require("./healthchecks");
6
6
  const brain_imports_1 = require("./healthchecks/brain-imports");
7
7
  const brn_radio_1 = require("./healthchecks/brn-radio");
8
+ const brn_separator_1 = require("./healthchecks/brn-separator");
8
9
  const brn_toggle_group_1 = require("./healthchecks/brn-toggle-group");
9
10
  const core_imports_1 = require("./healthchecks/core-imports");
10
11
  const helm_imports_1 = require("./healthchecks/helm-imports");
@@ -35,6 +36,7 @@ async function healthcheckGenerator(tree, options) {
35
36
  hlm_date_picker_1.datePickerHealthcheck,
36
37
  hlm_progress_1.progressHealthcheck,
37
38
  hlm_1.hlmImportHealthcheck,
39
+ brn_separator_1.brainSeparatorHealthcheck,
38
40
  ];
39
41
  const failedReports = [];
40
42
  for (const healthcheck of healthchecks) {
@@ -1 +1 @@
1
- {"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../libs/cli/src/generators/healthcheck/generator.ts"],"names":[],"mappings":";;AAoBA,oDA2CC;AA/DD,uCAAuD;AACvD,iDAAyG;AACzG,gEAAuE;AACvE,wDAAiE;AACjE,sEAAyE;AACzE,8DAAqE;AACrE,8DAAqE;AACrE,4CAA0D;AAC1D,oEAAuE;AACvE,sDAA8D;AAC9D,8DAAkE;AAClE,oEAAuE;AACvE,0DAA8D;AAC9D,0EAAgF;AAChF,oDAA4D;AAE5D,2CAA4C;AAC5C,+CAA+C;AAC/C,2CAAgD;AAEzC,KAAK,UAAU,oBAAoB,CAAC,IAAU,EAAE,OAA8D;IACpH,eAAM,CAAC,IAAI,CAAC,yBAAyB,CAAC,CAAC;IAEvC,MAAM,YAAY,GAAkB;QACnC,4BAAkB;QAClB,uCAAuB;QACvB,qCAAsB;QACtB,8BAAmB;QACnB,uCAAqB;QACrB,iCAAqB;QACrB,8BAAiB;QACjB,yCAAsB;QACtB,qCAAsB;QACtB,gDAA2B;QAC3B,uCAAqB;QACrB,kCAAmB;QACnB,0BAAoB;KACpB,CAAC;IAEF,MAAM,aAAa,GAAwB,EAAE,CAAC;IAE9C,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;QACxC,MAAM,MAAM,GAAG,MAAM,IAAA,uBAAc,EAAC,IAAI,EAAE,WAAW,CAAC,CAAC;QACvD,IAAA,sBAAW,EAAC,MAAM,CAAC,CAAC;QAEpB,IAAI,MAAM,CAAC,MAAM,KAAK,gCAAiB,CAAC,OAAO,EAAE,CAAC;YACjD,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAC5B,CAAC;IACF,CAAC;IAED,KAAK,MAAM,MAAM,IAAI,aAAa,EAAE,CAAC;QACpC,IAAI,MAAM,CAAC,OAAO,IAAI,IAAA,mCAAoB,EAAC,MAAM,CAAC,WAAW,CAAC,EAAE,CAAC;YAChE,MAAM,GAAG,GAAG,OAAO,CAAC,OAAO,IAAI,CAAC,MAAM,IAAA,mBAAU,EAAC,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC;YAE7E,IAAI,GAAG,EAAE,CAAC;gBACT,MAAM,MAAM,CAAC,WAAW,CAAC,GAAG,CAAC,IAAI,EAAE,EAAE,UAAU,EAAE,OAAO,CAAC,UAAU,EAAE,CAAC,CAAC;YACxE,CAAC;QACF,CAAC;IACF,CAAC;IAED,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,CAAC;QACzB,MAAM,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;IACzB,CAAC;AACF,CAAC;AAED,kBAAe,oBAAoB,CAAC"}
1
+ {"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../libs/cli/src/generators/healthcheck/generator.ts"],"names":[],"mappings":";;AAqBA,oDA4CC;AAjED,uCAAuD;AACvD,iDAAyG;AACzG,gEAAuE;AACvE,wDAAiE;AACjE,gEAAyE;AACzE,sEAAyE;AACzE,8DAAqE;AACrE,8DAAqE;AACrE,4CAA0D;AAC1D,oEAAuE;AACvE,sDAA8D;AAC9D,8DAAkE;AAClE,oEAAuE;AACvE,0DAA8D;AAC9D,0EAAgF;AAChF,oDAA4D;AAE5D,2CAA4C;AAC5C,+CAA+C;AAC/C,2CAAgD;AAEzC,KAAK,UAAU,oBAAoB,CAAC,IAAU,EAAE,OAA8D;IACpH,eAAM,CAAC,IAAI,CAAC,yBAAyB,CAAC,CAAC;IAEvC,MAAM,YAAY,GAAkB;QACnC,4BAAkB;QAClB,uCAAuB;QACvB,qCAAsB;QACtB,8BAAmB;QACnB,uCAAqB;QACrB,iCAAqB;QACrB,8BAAiB;QACjB,yCAAsB;QACtB,qCAAsB;QACtB,gDAA2B;QAC3B,uCAAqB;QACrB,kCAAmB;QACnB,0BAAoB;QACpB,yCAAyB;KACzB,CAAC;IAEF,MAAM,aAAa,GAAwB,EAAE,CAAC;IAE9C,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;QACxC,MAAM,MAAM,GAAG,MAAM,IAAA,uBAAc,EAAC,IAAI,EAAE,WAAW,CAAC,CAAC;QACvD,IAAA,sBAAW,EAAC,MAAM,CAAC,CAAC;QAEpB,IAAI,MAAM,CAAC,MAAM,KAAK,gCAAiB,CAAC,OAAO,EAAE,CAAC;YACjD,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAC5B,CAAC;IACF,CAAC;IAED,KAAK,MAAM,MAAM,IAAI,aAAa,EAAE,CAAC;QACpC,IAAI,MAAM,CAAC,OAAO,IAAI,IAAA,mCAAoB,EAAC,MAAM,CAAC,WAAW,CAAC,EAAE,CAAC;YAChE,MAAM,GAAG,GAAG,OAAO,CAAC,OAAO,IAAI,CAAC,MAAM,IAAA,mBAAU,EAAC,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC;YAE7E,IAAI,GAAG,EAAE,CAAC;gBACT,MAAM,MAAM,CAAC,WAAW,CAAC,GAAG,CAAC,IAAI,EAAE,EAAE,UAAU,EAAE,OAAO,CAAC,UAAU,EAAE,CAAC,CAAC;YACxE,CAAC;QACF,CAAC;IACF,CAAC;IAED,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,CAAC;QACzB,MAAM,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;IACzB,CAAC;AACF,CAAC;AAED,kBAAe,oBAAoB,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { Healthcheck } from '../healthchecks';
2
+ export declare const brainSeparatorHealthcheck: Healthcheck;
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.brainSeparatorHealthcheck = void 0;
4
+ const devkit_1 = require("@nx/devkit");
5
+ const generator_1 = require("../../migrate-separator/generator");
6
+ const healthchecks_1 = require("../healthchecks");
7
+ exports.brainSeparatorHealthcheck = {
8
+ name: 'Brain Separator',
9
+ async detect(tree, failure) {
10
+ (0, devkit_1.visitNotIgnoredFiles)(tree, '/', (file) => {
11
+ // if the file is a .ts or .htlm file, check for brain separator
12
+ if (!file.endsWith('.ts') && !file.endsWith('.html')) {
13
+ return;
14
+ }
15
+ // if it is the HlmSeparator itself skip it.
16
+ if (file.endsWith('hlm-separator.ts')) {
17
+ return;
18
+ }
19
+ const contents = tree.read(file, 'utf-8');
20
+ if (!contents) {
21
+ return;
22
+ }
23
+ if (contents.includes('<brn-separator')) {
24
+ failure(`The <brn-separator> component is deprecated. Please use the <hlm-separator> instead.`, healthchecks_1.HealthcheckSeverity.Error, true);
25
+ }
26
+ });
27
+ },
28
+ fix: async (tree) => {
29
+ await (0, generator_1.migrateSeparatorGenerator)(tree, { skipFormat: true });
30
+ return true;
31
+ },
32
+ prompt: 'Would you like to migrate brain separator?',
33
+ };
34
+ //# sourceMappingURL=brn-separator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"brn-separator.js","sourceRoot":"","sources":["../../../../../../../libs/cli/src/generators/healthcheck/healthchecks/brn-separator.ts"],"names":[],"mappings":";;;AAAA,uCAAkD;AAClD,iEAA8E;AAC9E,kDAAmE;AAEtD,QAAA,yBAAyB,GAAgB;IACrD,IAAI,EAAE,iBAAiB;IACvB,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO;QACzB,IAAA,6BAAoB,EAAC,IAAI,EAAE,GAAG,EAAE,CAAC,IAAI,EAAE,EAAE;YACxC,gEAAgE;YAChE,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC;gBACtD,OAAO;YACR,CAAC;YAED,4CAA4C;YAC5C,IAAI,IAAI,CAAC,QAAQ,CAAC,kBAAkB,CAAC,EAAE,CAAC;gBACvC,OAAO;YACR,CAAC;YAED,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;YAE1C,IAAI,CAAC,QAAQ,EAAE,CAAC;gBACf,OAAO;YACR,CAAC;YAED,IAAI,QAAQ,CAAC,QAAQ,CAAC,gBAAgB,CAAC,EAAE,CAAC;gBACzC,OAAO,CACN,sFAAsF,EACtF,kCAAmB,CAAC,KAAK,EACzB,IAAI,CACJ,CAAC;YACH,CAAC;QACF,CAAC,CAAC,CAAC;IACJ,CAAC;IACD,GAAG,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE;QACnB,MAAM,IAAA,qCAAyB,EAAC,IAAI,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC;QAC5D,OAAO,IAAI,CAAC;IACb,CAAC;IACD,MAAM,EAAE,4CAA4C;CACpD,CAAC"}
@@ -0,0 +1,2 @@
1
+ declare const _default: (generatorOptions: import("./schema").MigrateSeparatorGeneratorSchema) => (tree: any, context: any) => Promise<any>;
2
+ export default _default;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ const devkit_1 = require("@nx/devkit");
5
+ const generator_1 = tslib_1.__importDefault(require("./generator"));
6
+ exports.default = (0, devkit_1.convertNxGenerator)(generator_1.default);
7
+ //# sourceMappingURL=compat.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compat.js","sourceRoot":"","sources":["../../../../../../libs/cli/src/generators/migrate-separator/compat.ts"],"names":[],"mappings":";;;AAAA,uCAAgD;AAChD,oEAAoD;AAEpD,kBAAe,IAAA,2BAAkB,EAAC,mBAAyB,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { Tree } from '@nx/devkit';
2
+ import { MigrateSeparatorGeneratorSchema } from './schema';
3
+ export declare function migrateSeparatorGenerator(tree: Tree, { skipFormat }: MigrateSeparatorGeneratorSchema): Promise<void>;
4
+ export default migrateSeparatorGenerator;
@@ -0,0 +1,78 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.migrateSeparatorGenerator = migrateSeparatorGenerator;
4
+ const devkit_1 = require("@nx/devkit");
5
+ const visit_files_1 = require("../../utils/visit-files");
6
+ async function migrateSeparatorGenerator(tree, { skipFormat }) {
7
+ updateImports(tree);
8
+ replaceSelector(tree);
9
+ if (!skipFormat) {
10
+ await (0, devkit_1.formatFiles)(tree);
11
+ }
12
+ }
13
+ function replaceSelector(tree) {
14
+ // if the element is `<brn-separator hlmSeparator` then we need to replace it with `<hlm-separator`
15
+ // we also need to replace the closing tag `</brn-separator>` with `</hlm-separator>`
16
+ (0, visit_files_1.visitFiles)(tree, '.', (path) => {
17
+ // if this is not an html file or typescript file (inline templates) then skip
18
+ if (!path.endsWith('.html') && !path.endsWith('.ts')) {
19
+ return;
20
+ }
21
+ let content = tree.read(path, 'utf-8');
22
+ if (!content) {
23
+ return;
24
+ }
25
+ // <brn-separator hlmSeparator but between
26
+ content = replaceBrnSeparator(content);
27
+ content = content.replace(/<\/brn-separator>/g, '</hlm-separator>');
28
+ tree.write(path, content);
29
+ });
30
+ }
31
+ function replaceBrnSeparator(input) {
32
+ // Split input to handle multiple tags separately
33
+ return input
34
+ .split(/(?=<)/)
35
+ .map((tag) => {
36
+ // Skip if not a brn-separator tag
37
+ if (!tag.startsWith('<brn-separator')) {
38
+ return tag;
39
+ }
40
+ // Remove line breaks, tabs, and other whitespace within the tag
41
+ // Replace with a single space
42
+ tag = tag.replace(/\s+/g, ' ');
43
+ // Check if standalone hlm attribute exists
44
+ const hasHlm = / hlmSeparator(?=[\s>])/.test(tag);
45
+ if (hasHlm) {
46
+ // Remove the hlm attribute and convert to hlm-separator
47
+ return tag
48
+ .replace(/<brn-separator/, '<hlm-separator')
49
+ .replace(/ hlmSeparator(?=[\s>])/, '')
50
+ .replace(/\s+>/g, '>')
51
+ .replace(/\s+/g, ' ');
52
+ }
53
+ return tag;
54
+ })
55
+ .join('');
56
+ }
57
+ /**
58
+ * Update imports remove BrnSeparator import
59
+ */
60
+ function updateImports(tree) {
61
+ (0, visit_files_1.visitFiles)(tree, '/', (path) => {
62
+ // skip HlmSeparator itself
63
+ if (path.endsWith('hlm-separator.ts')) {
64
+ return;
65
+ }
66
+ const content = tree.read(path).toString('utf-8');
67
+ if (content.includes('@spartan-ng/brain/separator') || content.includes('@spartan-ng/ui-separator-helm')) {
68
+ const updatedContent = content
69
+ // Handle `import { BrnSeparator } from '@spartan-ng/brain/separator';`
70
+ .replace("import { BrnSeparator } from '@spartan-ng/brain/separator';", '')
71
+ // Remove `BrnSeparator` with optional comma and whitespace
72
+ .replace(/BrnSeparator,?\s?/, '');
73
+ tree.write(path, updatedContent);
74
+ }
75
+ });
76
+ }
77
+ exports.default = migrateSeparatorGenerator;
78
+ //# sourceMappingURL=generator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../libs/cli/src/generators/migrate-separator/generator.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,3 @@
1
+ export interface MigrateSeparatorGeneratorSchema {
2
+ skipFormat?: boolean;
3
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema",
3
+ "$id": "MigrateSeparator",
4
+ "title": "",
5
+ "type": "object",
6
+ "properties": {
7
+ "skipFormat": {
8
+ "type": "boolean",
9
+ "default": false,
10
+ "description": "Skip formatting files"
11
+ }
12
+ },
13
+ "required": []
14
+ }
@@ -22,6 +22,6 @@ export class HlmAccordionContent extends BrnAccordionContent {
22
22
  public readonly userClass = input<ClassValue>('', { alias: 'class' });
23
23
  protected readonly _computedClass = computed(() => {
24
24
  const gridRows = this.state() === 'open' ? 'grid-rows-[1fr]' : 'grid-rows-[0fr]';
25
- return hlm('text-sm transition-all grid', gridRows, this.userClass());
25
+ return hlm('grid text-sm transition-all', gridRows, this.userClass());
26
26
  });
27
27
  }
@@ -18,6 +18,6 @@ import type { ClassValue } from 'clsx';
18
18
  export class HlmAccordionItem {
19
19
  public readonly userClass = input<ClassValue>('', { alias: 'class' });
20
20
  protected readonly _computedClass = computed(() =>
21
- hlm('flex flex-1 flex-col border-b border-border', this.userClass()),
21
+ hlm('border-border flex flex-1 flex-col border-b', this.userClass()),
22
22
  );
23
23
  }
@@ -15,7 +15,7 @@ export class HlmAccordionTrigger {
15
15
  public readonly userClass = input<ClassValue>('', { alias: 'class' });
16
16
  protected readonly _computedClass = computed(() =>
17
17
  hlm(
18
- 'focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>[hlmAccIcon]]:rotate-180',
18
+ 'focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium outline-none transition-all hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>[hlmAccIcon]]:rotate-180',
19
19
  this.userClass(),
20
20
  ),
21
21
  );
@@ -22,7 +22,7 @@ export class HlmAlertDialogContent {
22
22
  public readonly userClass = input<ClassValue>('', { alias: 'class' });
23
23
  protected readonly _computedClass = computed(() =>
24
24
  hlm(
25
- 'relative bg-background data-[state=open]:animate-in justify-self-center data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 z-50 grid w-full max-w-[calc(100%-2rem)] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg',
25
+ 'bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 relative z-50 mx-auto grid w-full max-w-[calc(100%-2rem)] gap-4 rounded-lg border p-6 shadow-lg data-[state=closed]:duration-200 data-[state=open]:duration-200 sm:mx-0 sm:max-w-lg',
26
26
  this.userClass(),
27
27
  ),
28
28
  );
@@ -12,7 +12,7 @@ export class HlmAlertDialogOverlay {
12
12
  public readonly userClass = input<ClassValue>('', { alias: 'class' });
13
13
  protected readonly _computedClass = computed(() =>
14
14
  hlm(
15
- 'bg-black/50 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0',
15
+ 'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 bg-black/50',
16
16
  this.userClass(),
17
17
  ),
18
18
  );
@@ -4,13 +4,13 @@ import { type VariantProps, cva } from 'class-variance-authority';
4
4
  import type { ClassValue } from 'clsx';
5
5
 
6
6
  const alertVariants = cva(
7
- 'relative w-full rounded-lg border px-4 py-3 text-sm has-[>[hlmAlertIcon]]:grid has-[>[hlmAlertIcon]]:grid-cols-[calc(theme(spacing.1)*4)_1fr] has-[>[hlmAlertIcon]]:gap-x-3 gap-y-0.5 items-start [&>[hlmAlertIcon]]:size-4 [&>[hlmAlertIcon]]:translate-y-0.5 [&>[hlmAlertIcon]]:text-current',
7
+ 'relative w-full items-start gap-y-0.5 rounded-lg border px-4 py-3 text-sm has-[>[hlmAlertIcon]]:grid has-[>[hlmAlertIcon]]:grid-cols-[calc(theme(spacing.1)*4)_1fr] has-[>[hlmAlertIcon]]:gap-x-3 [&>[hlmAlertIcon]]:size-4 [&>[hlmAlertIcon]]:translate-y-0.5 [&>[hlmAlertIcon]]:text-current',
8
8
  {
9
9
  variants: {
10
10
  variant: {
11
11
  default: 'bg-card text-card-foreground',
12
12
  destructive:
13
- 'text-destructive bg-card [&>[hlmAlertIcon]]:text-current [&>[hlmAlertDescription]]:text-destructive/90 [&>[hlmAlertDesc]]:text-destructive/90',
13
+ 'text-destructive bg-card [&>[hlmAlertDescription]]:text-destructive/90 [&>[hlmAlertDesc]]:text-destructive/90 [&>[hlmAlertIcon]]:text-current',
14
14
  },
15
15
  },
16
16
  defaultVariants: {
@@ -34,7 +34,7 @@ export class HlmAspectRatio {
34
34
 
35
35
  protected readonly _computedClass = computed(() =>
36
36
  hlm(
37
- 'relative w-full [&>*:first-child]:absolute [&>*:first-child]:w-full [&>*:first-child]:h-full [&>*:first-child]:object-cover',
37
+ 'relative w-full [&>*:first-child]:absolute [&>*:first-child]:h-full [&>*:first-child]:w-full [&>*:first-child]:object-cover',
38
38
  this.userClass(),
39
39
  ),
40
40
  );
@@ -22,6 +22,6 @@ export class HlmAvatar extends BrnAvatar {
22
22
  public readonly userClass = input<ClassValue>('', { alias: 'class' });
23
23
 
24
24
  protected readonly _computedClass = computed(() =>
25
- hlm('relative flex shrink-0 overflow-hidden rounded-full size-8', this.userClass()),
25
+ hlm('relative flex size-8 shrink-0 overflow-hidden rounded-full', this.userClass()),
26
26
  );
27
27
  }
@@ -4,14 +4,14 @@ import { type VariantProps, cva } from 'class-variance-authority';
4
4
  import type { ClassValue } from 'clsx';
5
5
 
6
6
  const badgeVariants = cva(
7
- 'inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&_ng-icon]:size-3 gap-1 [&_ng-icon]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden',
7
+ 'focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden whitespace-nowrap rounded-md border px-2 py-0.5 text-xs font-medium transition-[color,box-shadow] focus-visible:ring-[3px] [&_ng-icon]:pointer-events-none [&_ng-icon]:size-3',
8
8
  {
9
9
  variants: {
10
10
  variant: {
11
- default: 'border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90',
12
- secondary: 'border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90',
11
+ default: 'bg-primary text-primary-foreground [a&]:hover:bg-primary/90 border-transparent',
12
+ secondary: 'bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90 border-transparent',
13
13
  destructive:
14
- 'border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60',
14
+ 'bg-destructive [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60 border-transparent text-white',
15
15
  outline: 'text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground',
16
16
  },
17
17
  },
@@ -12,6 +12,6 @@ export class HlmBreadcrumbList {
12
12
  public readonly userClass = input<ClassValue>('', { alias: 'class' });
13
13
 
14
14
  protected readonly _computedClass = computed(() =>
15
- hlm('text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5', this.userClass()),
15
+ hlm('text-muted-foreground flex flex-wrap items-center gap-1.5 break-words text-sm sm:gap-2.5', this.userClass()),
16
16
  );
17
17
  }
@@ -14,5 +14,5 @@ import type { ClassValue } from 'clsx';
14
14
  export class HlmBreadcrumbPage {
15
15
  public readonly userClass = input<ClassValue>('', { alias: 'class' });
16
16
 
17
- protected readonly _computedClass = computed(() => hlm('font-normal text-foreground', this.userClass()));
17
+ protected readonly _computedClass = computed(() => hlm('text-foreground font-normal', this.userClass()));
18
18
  }
@@ -24,5 +24,5 @@ import type { ClassValue } from 'clsx';
24
24
  export class HlmBreadcrumbSeparator {
25
25
  public readonly userClass = input<ClassValue>('', { alias: 'class' });
26
26
 
27
- protected readonly _computedClass = computed(() => hlm('[&_ng-icon]:size-3.5 [&_ng-icon]:block', this.userClass()));
27
+ protected readonly _computedClass = computed(() => hlm('[&_ng-icon]:block [&_ng-icon]:size-3.5', this.userClass()));
28
28
  }
@@ -6,22 +6,22 @@ import type { ClassValue } from 'clsx';
6
6
  import { injectBrnButtonConfig } from './hlm-button.token';
7
7
 
8
8
  export const buttonVariants = cva(
9
- 'inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_ng-icon]:pointer-events-none shrink-0 [&_ng-icon]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive cursor-default',
9
+ 'focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive inline-flex shrink-0 cursor-default items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium outline-none transition-all focus-visible:ring-[3px] data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_ng-icon]:pointer-events-none [&_ng-icon]:shrink-0',
10
10
  {
11
11
  variants: {
12
12
  variant: {
13
13
  default: 'bg-primary text-primary-foreground shadow-xs hover:bg-primary/90',
14
14
  destructive:
15
- 'bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60',
15
+ 'bg-destructive shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60 text-white',
16
16
  outline:
17
- 'border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50',
17
+ 'bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50 border',
18
18
  secondary: 'bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80',
19
19
  ghost: 'hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50',
20
20
  link: 'text-primary underline-offset-4 hover:underline',
21
21
  },
22
22
  size: {
23
23
  default: 'h-9 px-4 py-2 has-[>ng-icon]:px-3',
24
- sm: 'h-8 rounded-md gap-1.5 px-3 has-[>ng-icon]:px-2.5',
24
+ sm: 'h-8 gap-1.5 rounded-md px-3 has-[>ng-icon]:px-2.5',
25
25
  lg: 'h-10 rounded-md px-6 has-[>ng-icon]:px-4',
26
26
  icon: 'size-9',
27
27
  },
@@ -182,7 +182,7 @@ export class HlmCalendarMulti<T> {
182
182
  protected readonly _btnClass = hlm(
183
183
  buttonVariants({ variant: 'ghost' }),
184
184
  'size-8 p-0 font-normal aria-selected:opacity-100',
185
- 'data-[outside]:text-muted-foreground data-[outside]:opacity-50 data-[outside]:aria-selected:bg-accent/50 data-[outside]:aria-selected:text-muted-foreground data-[outside]:aria-selected:opacity-30',
185
+ 'data-[outside]:text-muted-foreground data-[outside]:aria-selected:bg-accent/50 data-[outside]:aria-selected:text-muted-foreground data-[outside]:opacity-50 data-[outside]:aria-selected:opacity-30',
186
186
  'data-[today]:bg-accent data-[today]:text-accent-foreground',
187
187
  'data-[selected]:bg-primary data-[selected]:text-primary-foreground data-[selected]:hover:bg-primary data-[selected]:hover:text-primary-foreground data-[selected]:focus:bg-primary data-[selected]:focus:text-primary-foreground',
188
188
  'data-[disabled]:text-muted-foreground data-[disabled]:opacity-50',
@@ -180,6 +180,6 @@ export class HlmCalendarRange<T> {
180
180
  'data-[disabled]:text-muted-foreground data-[disabled]:opacity-50',
181
181
  'data-[range-start]:rounded-l-md',
182
182
  'data-[range-end]:rounded-r-md',
183
- 'data-[range-between]:rounded-none data-[range-between]:bg-accent data-[range-between]:text-accent-foreground',
183
+ 'data-[range-between]:bg-accent data-[range-between]:text-accent-foreground data-[range-between]:rounded-none',
184
184
  );
185
185
  }
@@ -170,7 +170,7 @@ export class HlmCalendar<T> {
170
170
  protected readonly _btnClass = hlm(
171
171
  buttonVariants({ variant: 'ghost' }),
172
172
  'size-8 p-0 font-normal aria-selected:opacity-100',
173
- 'data-[outside]:text-muted-foreground data-[outside]:opacity-50 data-[outside]:aria-selected:bg-accent/50 data-[outside]:aria-selected:text-muted-foreground data-[outside]:aria-selected:opacity-30',
173
+ 'data-[outside]:text-muted-foreground data-[outside]:aria-selected:bg-accent/50 data-[outside]:aria-selected:text-muted-foreground data-[outside]:opacity-50 data-[outside]:aria-selected:opacity-30',
174
174
  'data-[today]:bg-accent data-[today]:text-accent-foreground',
175
175
  'data-[selected]:bg-primary data-[selected]:text-primary-foreground data-[selected]:hover:bg-primary dark:hover:text-accent-foreground data-[selected]:focus:bg-primary data-[selected]:focus:text-primary-foreground',
176
176
  'data-[disabled]:text-muted-foreground data-[disabled]:opacity-50',
@@ -10,5 +10,5 @@ import type { ClassValue } from 'clsx';
10
10
  })
11
11
  export class HlmCardFooter {
12
12
  public readonly userClass = input<ClassValue>('', { alias: 'class' });
13
- protected readonly _computedClass = computed(() => hlm('flex items-center px-6 [.border-t]:pt-6', this.userClass()));
13
+ protected readonly _computedClass = computed(() => hlm('[.border-t]:pt-6 flex items-center px-6', this.userClass()));
14
14
  }
@@ -12,7 +12,7 @@ export class HlmCardHeader {
12
12
  public readonly userClass = input<ClassValue>('', { alias: 'class' });
13
13
  protected readonly _computedClass = computed(() =>
14
14
  hlm(
15
- '@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6',
15
+ '@container/card-header has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6 grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6',
16
16
  this.userClass(),
17
17
  ),
18
18
  );
@@ -10,5 +10,5 @@ import type { ClassValue } from 'clsx';
10
10
  })
11
11
  export class HlmCardTitle {
12
12
  public readonly userClass = input<ClassValue>('', { alias: 'class' });
13
- protected readonly _computedClass = computed(() => hlm('leading-none font-semibold', this.userClass()));
13
+ protected readonly _computedClass = computed(() => hlm('font-semibold leading-none', this.userClass()));
14
14
  }
@@ -66,7 +66,7 @@ export class HlmCheckbox implements ControlValueAccessor {
66
66
 
67
67
  protected readonly _computedClass = computed(() =>
68
68
  hlm(
69
- 'peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 cursor-default',
69
+ 'border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive shadow-xs peer size-4 shrink-0 cursor-default rounded-[4px] border outline-none transition-shadow focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50',
70
70
  this.userClass(),
71
71
  this._state().disabled() ? 'cursor-not-allowed opacity-50' : '',
72
72
  ),
@@ -17,7 +17,7 @@ export class HlmCommandDialogCloseButton {
17
17
  public readonly userClass = input<ClassValue>('', { alias: 'class' });
18
18
  protected readonly _computedClass = computed(() =>
19
19
  hlm(
20
- 'absolute top-3 right-3 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-ring font-medium h-10 hover:bg-accent hover:text-accent-foreground inline-flex items-center justify-center px-4 py-2 ring-offset-background rounded-md text-sm transition-colors !h-5 !p-1 !w-5',
20
+ 'focus-visible:ring-ring hover:bg-accent hover:text-accent-foreground ring-offset-background absolute right-3 top-3 inline-flex !h-5 h-10 !w-5 items-center justify-center rounded-md !p-1 px-4 py-2 text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2',
21
21
  this.userClass(),
22
22
  ),
23
23
  );
@@ -22,6 +22,6 @@ export class HlmCommandGroup {
22
22
 
23
23
  /*** The styles to apply */
24
24
  protected readonly _computedClass = computed(() =>
25
- hlm('text-foreground overflow-hidden p-1 block data-[hidden]:hidden', this.userClass()),
25
+ hlm('text-foreground block overflow-hidden p-1 data-[hidden]:hidden', this.userClass()),
26
26
  );
27
27
  }
@@ -38,7 +38,7 @@ export class HlmCommandItem {
38
38
  /*** The styles to apply */
39
39
  protected readonly _computedClass = computed(() =>
40
40
  hlm(
41
- 'data-[selected]:bg-accent data-[selected=true]:text-accent-foreground [&>ng-icon]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>ng-icon]:pointer-events-none [&>ng-icon]:shrink-0 [&>ng-icon]:text-base w-full data-[hidden]:hidden',
41
+ 'data-[selected]:bg-accent data-[selected=true]:text-accent-foreground [&>ng-icon]:text-muted-foreground outline-hidden relative flex w-full cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm data-[disabled]:pointer-events-none data-[hidden]:hidden data-[disabled]:opacity-50 [&>ng-icon]:pointer-events-none [&>ng-icon]:shrink-0 [&>ng-icon]:text-base',
42
42
  this.userClass(),
43
43
  ),
44
44
  );
@@ -22,6 +22,6 @@ export class HlmCommandList {
22
22
 
23
23
  /** The styles to apply */
24
24
  protected readonly _computedClass = computed(() =>
25
- hlm('max-h-[300px] overflow-x-hidden overflow-y-auto', this.userClass()),
25
+ hlm('max-h-[300px] overflow-y-auto overflow-x-hidden', this.userClass()),
26
26
  );
27
27
  }
@@ -15,5 +15,5 @@ export class HlmCommandSeparator {
15
15
  public readonly userClass = input<string>('', { alias: 'class' });
16
16
 
17
17
  /*** The styles to apply */
18
- protected readonly _computedClass = computed(() => hlm('block bg-border -mx-1 h-px', this.userClass()));
18
+ protected readonly _computedClass = computed(() => hlm('bg-border -mx-1 block h-px', this.userClass()));
19
19
  }
@@ -73,8 +73,8 @@ export class HlmDatePickerMulti<T> implements ControlValueAccessor {
73
73
  public readonly userClass = input<ClassValue>('', { alias: 'class' });
74
74
  protected readonly _computedClass = computed(() =>
75
75
  hlm(
76
- 'inline-flex items-center gap-2 whitespace-nowrap rounded-md text-sm ring-offset-background transition-all border border-input bg-background hover:bg-accent hover:text-accent-foreground h-10 px-4 py-2 w-[280px] justify-start text-left font-normal',
77
- 'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2',
76
+ 'ring-offset-background border-input bg-background hover:bg-accent hover:text-accent-foreground inline-flex h-10 w-[280px] items-center justify-start gap-2 whitespace-nowrap rounded-md border px-4 py-2 text-left text-sm font-normal transition-all',
77
+ 'focus-visible:ring-ring focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2',
78
78
  'disabled:pointer-events-none disabled:opacity-50',
79
79
  '[&_ng-icon]:pointer-events-none [&_ng-icon]:shrink-0',
80
80
  !this._mutableDate() ? 'text-muted-foreground' : '',
@@ -70,8 +70,8 @@ export class HlmDatePicker<T> implements ControlValueAccessor {
70
70
  public readonly userClass = input<ClassValue>('', { alias: 'class' });
71
71
  protected readonly _computedClass = computed(() =>
72
72
  hlm(
73
- 'inline-flex items-center gap-2 whitespace-nowrap rounded-md text-sm transition-all disabled:pointer-events-none disabled:opacity-50 ring-offset-background border border-input bg-background hover:bg-accent dark:bg-input/30 dark:hover:bg-input/50 hover:text-accent-foreground h-9 px-3 py-2 w-[280px] justify-start text-left font-normal cursor-default justify-between',
74
- 'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2',
73
+ 'ring-offset-background border-input bg-background hover:bg-accent dark:bg-input/30 dark:hover:bg-input/50 hover:text-accent-foreground inline-flex h-9 w-[280px] cursor-default items-center justify-start justify-between gap-2 whitespace-nowrap rounded-md border px-3 py-2 text-left text-sm font-normal transition-all disabled:pointer-events-none disabled:opacity-50',
74
+ 'focus-visible:ring-ring focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2',
75
75
  'disabled:pointer-events-none disabled:opacity-50',
76
76
  '[&_ng-icon]:pointer-events-none [&_ng-icon]:shrink-0',
77
77
  !this._mutableDate() ? 'text-muted-foreground' : '',
@@ -78,8 +78,8 @@ export class HlmDateRangePicker<T> implements ControlValueAccessor {
78
78
  public readonly userClass = input<ClassValue>('', { alias: 'class' });
79
79
  protected readonly _computedClass = computed(() =>
80
80
  hlm(
81
- 'inline-flex items-center gap-2 whitespace-nowrap rounded-md text-sm ring-offset-background transition-all border border-input bg-background hover:bg-accent hover:text-accent-foreground h-10 px-4 py-2 w-[280px] justify-start text-left font-normal',
82
- 'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2',
81
+ 'ring-offset-background border-input bg-background hover:bg-accent hover:text-accent-foreground inline-flex h-10 w-[280px] items-center justify-start gap-2 whitespace-nowrap rounded-md border px-4 py-2 text-left text-sm font-normal transition-all',
82
+ 'focus-visible:ring-ring focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2',
83
83
  'disabled:pointer-events-none disabled:opacity-50',
84
84
  '[&_ng-icon]:pointer-events-none [&_ng-icon]:shrink-0',
85
85
  !this._mutableDate() ? 'text-muted-foreground' : '',
@@ -13,7 +13,7 @@ export class HlmDialogClose {
13
13
 
14
14
  protected readonly _computedClass = computed(() =>
15
15
  hlm(
16
- 'absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground',
16
+ 'ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground rounded-xs absolute right-4 top-4 flex items-center justify-center opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none [&_ng-icon]:shrink-0',
17
17
  this.userClass(),
18
18
  ),
19
19
  );
@@ -43,7 +43,7 @@ export class HlmDialogContent {
43
43
  public readonly userClass = input<ClassValue>('', { alias: 'class' });
44
44
  protected readonly _computedClass = computed(() =>
45
45
  hlm(
46
- 'border-border grid w-full max-w-lg relative gap-4 border bg-background p-6 shadow-lg [animation-duration:200] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-top-[2%] data-[state=open]:slide-in-from-top-[2%] sm:rounded-lg md:w-full',
46
+ 'bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 relative z-50 mx-auto grid w-full max-w-[calc(100%-2rem)] gap-4 rounded-lg border p-6 shadow-lg data-[state=closed]:duration-200 data-[state=open]:duration-200 sm:mx-0 sm:max-w-lg',
47
47
  this.userClass(),
48
48
  this._dynamicComponentClass,
49
49
  ),
@@ -12,5 +12,5 @@ import type { ClassValue } from 'clsx';
12
12
  })
13
13
  export class HlmDialogDescription {
14
14
  public readonly userClass = input<ClassValue>('', { alias: 'class' });
15
- protected readonly _computedClass = computed(() => hlm('text-sm text-muted-foreground', this.userClass()));
15
+ protected readonly _computedClass = computed(() => hlm('text-muted-foreground text-sm', this.userClass()));
16
16
  }
@@ -15,6 +15,6 @@ import type { ClassValue } from 'clsx';
15
15
  export class HlmDialogFooter {
16
16
  public readonly userClass = input<ClassValue>('', { alias: 'class' });
17
17
  protected _computedClass = computed(() =>
18
- hlm('flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2', this.userClass()),
18
+ hlm('flex flex-col-reverse gap-2 sm:flex-row sm:justify-end', this.userClass()),
19
19
  );
20
20
  }