@teambit/react.ui.component-highlighter 0.0.492 → 0.0.496

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 (143) hide show
  1. package/{multi-highlighter/multi-highlighter.composition.tsx → children-highlighter/children-highlighter.composition.tsx} +41 -19
  2. package/{multi-highlighter/multi-highlighter.spec.tsx → children-highlighter/children-highlighter.spec.tsx} +3 -3
  3. package/children-highlighter/children-highlighter.tsx +9 -0
  4. package/children-highlighter/index.ts +5 -0
  5. package/{multi-highlighter/use-multi-highlighter.tsx → children-highlighter/use-children-highlighter.tsx} +18 -14
  6. package/component-highlighter.docs.md +13 -3
  7. package/dist/children-highlighter/children-highlighter.composition.d.ts +5 -0
  8. package/dist/{multi-highlighter/multi-highlighter.composition.js → children-highlighter/children-highlighter.composition.js} +37 -20
  9. package/dist/children-highlighter/children-highlighter.composition.js.map +1 -0
  10. package/dist/children-highlighter/children-highlighter.d.ts +3 -0
  11. package/dist/{multi-highlighter/multi-highlighter.js → children-highlighter/children-highlighter.js} +6 -6
  12. package/dist/children-highlighter/children-highlighter.js.map +1 -0
  13. package/dist/{multi-highlighter/multi-highlighter.spec.d.ts → children-highlighter/children-highlighter.spec.d.ts} +0 -0
  14. package/dist/{multi-highlighter/multi-highlighter.spec.js → children-highlighter/children-highlighter.spec.js} +4 -4
  15. package/dist/children-highlighter/children-highlighter.spec.js.map +1 -0
  16. package/dist/children-highlighter/index.d.ts +4 -0
  17. package/dist/children-highlighter/index.js +8 -0
  18. package/dist/children-highlighter/index.js.map +1 -0
  19. package/dist/{multi-highlighter/use-multi-highlighter.d.ts → children-highlighter/use-children-highlighter.d.ts} +4 -4
  20. package/dist/{multi-highlighter/use-multi-highlighter.js → children-highlighter/use-children-highlighter.js} +10 -11
  21. package/dist/children-highlighter/use-children-highlighter.js.map +1 -0
  22. package/dist/component-highlighter.docs.md +13 -3
  23. package/dist/element-highlighter/element-highlighter.compositions.d.ts +3 -1
  24. package/dist/element-highlighter/element-highlighter.compositions.js +15 -7
  25. package/dist/element-highlighter/element-highlighter.compositions.js.map +1 -1
  26. package/dist/element-highlighter/element-highlighter.d.ts +8 -9
  27. package/dist/element-highlighter/element-highlighter.js +3 -3
  28. package/dist/element-highlighter/element-highlighter.js.map +1 -1
  29. package/dist/element-highlighter/element-highlighter.module.scss +2 -5
  30. package/dist/element-highlighter/index.d.ts +1 -1
  31. package/dist/hover-highlighter/hover-highlighter.compositions.js +1 -1
  32. package/dist/hover-highlighter/hover-highlighter.compositions.js.map +1 -1
  33. package/dist/hover-highlighter/hover-highlighter.d.ts +1 -1
  34. package/dist/hover-highlighter/hover-highlighter.js +2 -2
  35. package/dist/hover-highlighter/hover-highlighter.js.map +1 -1
  36. package/dist/hover-highlighter/use-hover-highlighter.d.ts +5 -2
  37. package/dist/hover-highlighter/use-hover-highlighter.js +13 -15
  38. package/dist/hover-highlighter/use-hover-highlighter.js.map +1 -1
  39. package/dist/{hybrid-highligher → hybrid-highlighter}/hybrid-highlighter.d.ts +6 -3
  40. package/dist/{hybrid-highligher → hybrid-highlighter}/hybrid-highlighter.js +6 -4
  41. package/dist/hybrid-highlighter/hybrid-highlighter.js.map +1 -0
  42. package/dist/{hybrid-highligher → hybrid-highlighter}/index.d.ts +0 -0
  43. package/dist/{hybrid-highligher → hybrid-highlighter}/index.js +0 -0
  44. package/dist/hybrid-highlighter/index.js.map +1 -0
  45. package/dist/index.d.ts +4 -4
  46. package/dist/index.js +5 -5
  47. package/dist/index.js.map +1 -1
  48. package/dist/label/component-strip.d.ts +9 -0
  49. package/dist/label/component-strip.js +49 -0
  50. package/dist/label/component-strip.js.map +1 -0
  51. package/dist/label/component-strip.module.scss +49 -0
  52. package/dist/label/index.d.ts +4 -2
  53. package/dist/label/index.js +3 -2
  54. package/dist/label/index.js.map +1 -1
  55. package/dist/label/label-container.d.ts +13 -0
  56. package/dist/label/label-container.js +53 -0
  57. package/dist/label/label-container.js.map +1 -0
  58. package/dist/label/label.d.ts +7 -19
  59. package/dist/label/label.js +20 -27
  60. package/dist/label/label.js.map +1 -1
  61. package/dist/label/label.module.scss +24 -0
  62. package/dist/label/links.d.ts +2 -0
  63. package/dist/label/links.js +17 -0
  64. package/dist/label/links.js.map +1 -0
  65. package/dist/label/other-components.d.ts +10 -0
  66. package/dist/label/other-components.js +35 -0
  67. package/dist/label/other-components.js.map +1 -0
  68. package/dist/rule-matcher.d.ts +6 -0
  69. package/dist/rule-matcher.js +20 -2
  70. package/dist/rule-matcher.js.map +1 -1
  71. package/dist/use-animation-frame.d.ts +1 -1
  72. package/dist/use-animation-frame.js.map +1 -1
  73. package/element-highlighter/element-highlighter.compositions.tsx +22 -8
  74. package/element-highlighter/element-highlighter.module.scss +2 -5
  75. package/element-highlighter/element-highlighter.tsx +11 -16
  76. package/element-highlighter/index.ts +7 -1
  77. package/hover-highlighter/hover-highlighter.compositions.tsx +1 -1
  78. package/hover-highlighter/hover-highlighter.tsx +1 -1
  79. package/hover-highlighter/use-hover-highlighter.tsx +36 -19
  80. package/{hybrid-highligher → hybrid-highlighter}/hybrid-highlighter.tsx +18 -4
  81. package/{hybrid-highligher → hybrid-highlighter}/index.ts +0 -0
  82. package/index.ts +4 -4
  83. package/label/component-strip.module.scss +49 -0
  84. package/label/component-strip.tsx +49 -0
  85. package/label/index.ts +5 -2
  86. package/label/label-container.tsx +46 -0
  87. package/label/label.module.scss +24 -0
  88. package/label/label.tsx +35 -66
  89. package/label/links.tsx +9 -0
  90. package/label/other-components.tsx +53 -0
  91. package/package-tar/teambit-react.ui.component-highlighter-0.0.496.tgz +0 -0
  92. package/package.json +15 -15
  93. package/rule-matcher.tsx +27 -0
  94. package/tsconfig.json +2 -1
  95. package/use-animation-frame.tsx +1 -1
  96. package/bubble/bubble.module.scss +0 -24
  97. package/bubble/index.ts +0 -3
  98. package/dist/bubble/bubble.module.scss +0 -24
  99. package/dist/bubble/index.d.ts +0 -1
  100. package/dist/bubble/index.js +0 -9
  101. package/dist/bubble/index.js.map +0 -1
  102. package/dist/hybrid-highligher/hybrid-highlighter.js.map +0 -1
  103. package/dist/hybrid-highligher/index.js.map +0 -1
  104. package/dist/label/component-label/component-bubble.d.ts +0 -7
  105. package/dist/label/component-label/component-bubble.js +0 -35
  106. package/dist/label/component-label/component-bubble.js.map +0 -1
  107. package/dist/label/component-label/component-label.d.ts +0 -9
  108. package/dist/label/component-label/component-label.js +0 -32
  109. package/dist/label/component-label/component-label.js.map +0 -1
  110. package/dist/label/component-label/duo-component-bubble.module.scss +0 -24
  111. package/dist/label/component-label/index.d.ts +0 -2
  112. package/dist/label/component-label/index.js +0 -6
  113. package/dist/label/component-label/index.js.map +0 -1
  114. package/dist/label/component-label/scope-bubble.d.ts +0 -6
  115. package/dist/label/component-label/scope-bubble.js +0 -28
  116. package/dist/label/component-label/scope-bubble.js.map +0 -1
  117. package/dist/label/default-label/default-label.d.ts +0 -5
  118. package/dist/label/default-label/default-label.js +0 -30
  119. package/dist/label/default-label/default-label.js.map +0 -1
  120. package/dist/label/default-label/default-label.module.scss +0 -12
  121. package/dist/label/default-label/index.d.ts +0 -1
  122. package/dist/label/default-label/index.js +0 -6
  123. package/dist/label/default-label/index.js.map +0 -1
  124. package/dist/multi-highlighter/index.d.ts +0 -2
  125. package/dist/multi-highlighter/index.js +0 -6
  126. package/dist/multi-highlighter/index.js.map +0 -1
  127. package/dist/multi-highlighter/multi-highlighter.composition.d.ts +0 -4
  128. package/dist/multi-highlighter/multi-highlighter.composition.js.map +0 -1
  129. package/dist/multi-highlighter/multi-highlighter.d.ts +0 -3
  130. package/dist/multi-highlighter/multi-highlighter.js.map +0 -1
  131. package/dist/multi-highlighter/multi-highlighter.spec.js.map +0 -1
  132. package/dist/multi-highlighter/use-multi-highlighter.js.map +0 -1
  133. package/label/component-label/component-bubble.tsx +0 -30
  134. package/label/component-label/component-label.tsx +0 -31
  135. package/label/component-label/duo-component-bubble.module.scss +0 -24
  136. package/label/component-label/index.ts +0 -2
  137. package/label/component-label/scope-bubble.tsx +0 -20
  138. package/label/default-label/default-label.module.scss +0 -12
  139. package/label/default-label/default-label.tsx +0 -22
  140. package/label/default-label/index.ts +0 -1
  141. package/multi-highlighter/index.ts +0 -2
  142. package/multi-highlighter/multi-highlighter.tsx +0 -9
  143. package/package-tar/teambit-react.ui.component-highlighter-0.0.492.tgz +0 -0
@@ -1,32 +0,0 @@
1
- "use strict";
2
- var __rest = (this && this.__rest) || function (s, e) {
3
- var t = {};
4
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
5
- t[p] = s[p];
6
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
7
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
8
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
9
- t[p[i]] = s[p[i]];
10
- }
11
- return t;
12
- };
13
- var __importDefault = (this && this.__importDefault) || function (mod) {
14
- return (mod && mod.__esModule) ? mod : { "default": mod };
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.ComponentLabel = void 0;
18
- const react_1 = __importDefault(require("react"));
19
- const classnames_1 = __importDefault(require("classnames"));
20
- const base_ui_surfaces_card_1 = require("@teambit/base-ui.surfaces.card");
21
- const bubble_1 = require("../../bubble");
22
- const duo_component_bubble_module_scss_1 = __importDefault(require("./duo-component-bubble.module.scss"));
23
- const component_bubble_1 = require("./component-bubble");
24
- const scope_bubble_1 = require("./scope-bubble");
25
- function ComponentLabel(_a) {
26
- var { componentId, className, link, scopeLink, local } = _a, rest = __rest(_a, ["componentId", "className", "link", "scopeLink", "local"]);
27
- return (react_1.default.createElement(base_ui_surfaces_card_1.Card, Object.assign({}, rest, { className: (0, classnames_1.default)(className, duo_component_bubble_module_scss_1.default.duoComponentBubble) }),
28
- react_1.default.createElement(scope_bubble_1.ScopeBubble, { href: scopeLink, componentId: componentId, className: bubble_1.bubble }),
29
- react_1.default.createElement(component_bubble_1.ComponentBubble, { href: link, componentId: componentId, className: bubble_1.bubble, local: local })));
30
- }
31
- exports.ComponentLabel = ComponentLabel;
32
- //# sourceMappingURL=component-label.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"component-label.js","sourceRoot":"","sources":["../../../label/component-label/component-label.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,kDAA0B;AAC1B,4DAAoC;AACpC,0EAAiE;AAGjE,yCAAsC;AACtC,0GAAwD;AAExD,yDAAqD;AACrD,iDAA6C;AAS7C,SAAgB,cAAc,CAAC,EAAgF;QAAhF,EAAE,WAAW,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,OAAgC,EAA3B,IAAI,cAAzD,0DAA2D,CAAF;IACtF,OAAO,CACL,8BAAC,4BAAI,oBAAK,IAAI,IAAE,SAAS,EAAE,IAAA,oBAAU,EAAC,SAAS,EAAE,0CAAM,CAAC,kBAAkB,CAAC;QACzE,8BAAC,0BAAW,IAAC,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,WAAW,EAAE,SAAS,EAAE,eAAM,GAAI;QAC7E,8BAAC,kCAAe,IACd,IAAI,EAAE,IAAI,EACV,WAAW,EAAE,WAAW,EACxB,SAAS,EAAE,eAAM,EACjB,KAAK,EAAE,KAAK,GACZ,CACG,CACR,CAAC;AACJ,CAAC;AAZD,wCAYC"}
@@ -1,24 +0,0 @@
1
- .duoComponentBubble {
2
- display: flex;
3
-
4
- //reset styles from card:
5
- padding: 0;
6
- border: none;
7
- background: none;
8
-
9
- > :first-child {
10
- border-top-left-radius: 4px;
11
- border-bottom-left-radius: 4px;
12
-
13
- margin-right: 2px;
14
- }
15
-
16
- > :last-child {
17
- border-top-right-radius: 4px;
18
- border-bottom-right-radius: 4px;
19
- }
20
- }
21
-
22
- .componentName {
23
- display: flex;
24
- }
@@ -1,2 +0,0 @@
1
- export { ComponentLabel } from './component-label';
2
- export type { ComponentLabelProps } from './component-label';
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ComponentLabel = void 0;
4
- var component_label_1 = require("./component-label");
5
- Object.defineProperty(exports, "ComponentLabel", { enumerable: true, get: function () { return component_label_1.ComponentLabel; } });
6
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../label/component-label/index.ts"],"names":[],"mappings":";;;AAAA,qDAAmD;AAA1C,iHAAA,cAAc,OAAA"}
@@ -1,6 +0,0 @@
1
- import { ComponentID } from '@teambit/component-id';
2
- import { LinkProps } from '@teambit/base-ui.routing.native-link';
3
- export interface ScopeBubbleProps extends LinkProps {
4
- componentId: ComponentID;
5
- }
6
- export declare function ScopeBubble({ componentId, className, href, ...rest }: ScopeBubbleProps): JSX.Element;
@@ -1,28 +0,0 @@
1
- "use strict";
2
- var __rest = (this && this.__rest) || function (s, e) {
3
- var t = {};
4
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
5
- t[p] = s[p];
6
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
7
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
8
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
9
- t[p[i]] = s[p[i]];
10
- }
11
- return t;
12
- };
13
- var __importDefault = (this && this.__importDefault) || function (mod) {
14
- return (mod && mod.__esModule) ? mod : { "default": mod };
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.ScopeBubble = void 0;
18
- const react_1 = __importDefault(require("react"));
19
- const base_ui_routing_native_link_1 = require("@teambit/base-ui.routing.native-link");
20
- const component_modules_component_url_1 = require("@teambit/component.modules.component-url");
21
- function ScopeBubble(_a) {
22
- var { componentId, className, href } = _a, rest = __rest(_a, ["componentId", "className", "href"]);
23
- const scope = componentId.scope;
24
- const scopeUrl = href || component_modules_component_url_1.ScopeUrl.toUrl(componentId.scope);
25
- return (react_1.default.createElement(base_ui_routing_native_link_1.NativeLink, Object.assign({ href: scopeUrl, external: true, className: className }, rest), scope));
26
- }
27
- exports.ScopeBubble = ScopeBubble;
28
- //# sourceMappingURL=scope-bubble.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"scope-bubble.js","sourceRoot":"","sources":["../../../label/component-label/scope-bubble.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,kDAA0B;AAG1B,sFAA6E;AAC7E,8FAAoE;AAMpE,SAAgB,WAAW,CAAC,EAA2D;QAA3D,EAAE,WAAW,EAAE,SAAS,EAAE,IAAI,OAA6B,EAAxB,IAAI,cAAvC,oCAAyC,CAAF;IACjE,MAAM,KAAK,GAAG,WAAW,CAAC,KAAK,CAAC;IAChC,MAAM,QAAQ,GAAG,IAAI,IAAI,0CAAQ,CAAC,KAAK,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;IAE3D,OAAO,CACL,8BAAC,wCAAU,kBAAC,IAAI,EAAE,QAAQ,EAAE,QAAQ,QAAC,SAAS,EAAE,SAAS,IAAM,IAAI,GAChE,KAAK,CACK,CACd,CAAC;AACJ,CAAC;AATD,kCASC"}
@@ -1,5 +0,0 @@
1
- import { CardProps } from '@teambit/base-ui.surfaces.card';
2
- export interface DefaultLabelProps extends CardProps {
3
- href?: string;
4
- }
5
- export declare function DefaultLabel({ className, href, children, ...rest }: DefaultLabelProps): JSX.Element;
@@ -1,30 +0,0 @@
1
- "use strict";
2
- var __rest = (this && this.__rest) || function (s, e) {
3
- var t = {};
4
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
5
- t[p] = s[p];
6
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
7
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
8
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
9
- t[p[i]] = s[p[i]];
10
- }
11
- return t;
12
- };
13
- var __importDefault = (this && this.__importDefault) || function (mod) {
14
- return (mod && mod.__esModule) ? mod : { "default": mod };
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.DefaultLabel = void 0;
18
- const react_1 = __importDefault(require("react"));
19
- const classnames_1 = __importDefault(require("classnames"));
20
- const base_ui_surfaces_card_1 = require("@teambit/base-ui.surfaces.card");
21
- const base_ui_routing_native_link_1 = require("@teambit/base-ui.routing.native-link");
22
- const bubble_1 = require("../../bubble");
23
- const default_label_module_scss_1 = __importDefault(require("./default-label.module.scss"));
24
- function DefaultLabel(_a) {
25
- var { className, href, children } = _a, rest = __rest(_a, ["className", "href", "children"]);
26
- return (react_1.default.createElement(base_ui_surfaces_card_1.Card, Object.assign({}, rest, { className: (0, classnames_1.default)(default_label_module_scss_1.default.container, className) }),
27
- react_1.default.createElement(base_ui_routing_native_link_1.NativeLink, { external: true, href: href, className: bubble_1.bubble }, children)));
28
- }
29
- exports.DefaultLabel = DefaultLabel;
30
- //# sourceMappingURL=default-label.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"default-label.js","sourceRoot":"","sources":["../../../label/default-label/default-label.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,kDAA0B;AAC1B,4DAAoC;AAEpC,0EAAiE;AACjE,sFAAkE;AAElE,yCAAsC;AACtC,4FAAiD;AAMjD,SAAgB,YAAY,CAAC,EAAyD;QAAzD,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,OAA8B,EAAzB,IAAI,cAApC,iCAAsC,CAAF;IAC/D,OAAO,CACL,8BAAC,4BAAI,oBAAK,IAAI,IAAE,SAAS,EAAE,IAAA,oBAAU,EAAC,mCAAM,CAAC,SAAS,EAAE,SAAS,CAAC;QAChE,8BAAC,wCAAU,IAAC,QAAQ,QAAC,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,eAAM,IAC/C,QAAQ,CACE,CACR,CACR,CAAC;AACJ,CAAC;AARD,oCAQC"}
@@ -1,12 +0,0 @@
1
- .container {
2
- display: flex;
3
-
4
- //reset styles from card:
5
- padding: 0;
6
- border: none;
7
- background: none;
8
-
9
- > * {
10
- border-radius: 4px;
11
- }
12
- }
@@ -1 +0,0 @@
1
- export { DefaultLabel } from './default-label';
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DefaultLabel = void 0;
4
- var default_label_1 = require("./default-label");
5
- Object.defineProperty(exports, "DefaultLabel", { enumerable: true, get: function () { return default_label_1.DefaultLabel; } });
6
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../label/default-label/index.ts"],"names":[],"mappings":";;;AAAA,iDAA+C;AAAtC,6GAAA,YAAY,OAAA"}
@@ -1,2 +0,0 @@
1
- export { MultiHighlighter } from './multi-highlighter';
2
- export type { MultiHighlighterProps } from './multi-highlighter';
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MultiHighlighter = void 0;
4
- var multi_highlighter_1 = require("./multi-highlighter");
5
- Object.defineProperty(exports, "MultiHighlighter", { enumerable: true, get: function () { return multi_highlighter_1.MultiHighlighter; } });
6
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../multi-highlighter/index.ts"],"names":[],"mappings":";;;AAAA,yDAAuD;AAA9C,qHAAA,gBAAgB,OAAA"}
@@ -1,4 +0,0 @@
1
- export declare const MultiHighlighterPreview: () => JSX.Element;
2
- export declare const MultiHighlighterWithCustomColors: () => JSX.Element;
3
- export declare const MultiHighlighterInsideIgnore: () => JSX.Element;
4
- export declare const MultiHighlighterWithRule: () => JSX.Element;
@@ -1 +0,0 @@
1
- {"version":3,"file":"multi-highlighter.composition.js","sourceRoot":"","sources":["../../multi-highlighter/multi-highlighter.composition.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,sFAAsF;AACtF,oJAA8G;AAC9G,8DAA2D;AA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,yBAAyC;QACjE,yCAAM;QACN,yCAAM;QACN,yCAAM;QACN,uCAAK,EAAE,EAAC,aAAa;YACnB,8BAAC,oFAAuB,mCAAmD,CACvE,CACW,CACpB,CAAC;AACJ,CAAC,CAAC;AAfW,QAAA,wBAAwB,4BAenC;AAEF,oEAAoE;AACpE,aAAa;AACb,yBAAyB;AACzB,uDAAuD;AACvD,0BAA0B;AAC1B,OAAO;AACP,KAAK"}
@@ -1,3 +0,0 @@
1
- import { HybridHighlighterProps } from '../hybrid-highligher';
2
- export declare type MultiHighlighterProps = Omit<HybridHighlighterProps, 'mode'>;
3
- export declare function MultiHighlighter({ watchMotion, ...props }: MultiHighlighterProps): JSX.Element;
@@ -1 +0,0 @@
1
- {"version":3,"file":"multi-highlighter.js","sourceRoot":"","sources":["../../multi-highlighter/multi-highlighter.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,kDAA0B;AAE1B,4DAAiF;AAIjF,SAAgB,gBAAgB,CAAC,EAAwD;QAAxD,EAAE,WAAW,GAAG,KAAK,OAAmC,EAA9B,KAAK,cAA/B,eAAiC,CAAF;IAC9D,OAAO,8BAAC,qCAAiB,oBAAK,KAAK,IAAE,IAAI,EAAE,aAAa,EAAE,WAAW,EAAE,WAAW,IAAI,CAAC;AACzF,CAAC;AAFD,4CAEC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"multi-highlighter.spec.js","sourceRoot":"","sources":["../../multi-highlighter/multi-highlighter.spec.tsx"],"names":[],"mappings":";;;;;AAAA,kDAA0B;AAC1B,kDAAgD;AAChD,mFAA0E;AAE1E,EAAE,CAAC,uDAAuD,EAAE,GAAG,EAAE;IAC/D,MAAM,EAAE,SAAS,EAAE,GAAG,IAAA,cAAM,EAAC,8BAAC,uDAAuB,OAAG,CAAC,CAAC;IAE1D,MAAM,QAAQ,GAAG,SAAS,CAAC,YAAY,CAAC,CAAC;IAEzC,MAAM,CAAC,QAAQ,CAAC,CAAC,cAAc,CAAC,WAAW,CAAC,C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C9B,MAAM,IAAI,GAAG,IAAA,uCAAU,EAAC,OAAO,CAAC,CAAC;YACjC,IAAI,CAAC,OAAO,IAAI,CAAC,IAAA,6EAAgB,EAAC,IAAI,CAAC;gBAAE,OAAO;YAEhD,MAAM,GAAG,GAAG,IAAA,mBAAQ,EAAC,OAAO,CAAC,CAAC;YAC9B,MAAM,IAAI,GAAG,IAAI,CAAC,+EAAkB,CAAC,CAAC;YACtC,MAAM,MAAM,GAAG,IAAI,CAAC,oFAAuB,CAAC,WAAW,CAAC,CAAC;YACzD,MAAM,IAAI,GAAG,IAAI,CAAC,oFAAuB,CAAC,WAAW,CAAC,CAAC;YACvD,MAAM,KAAK,GAAG,IAAI,CAAC,oFAAuB,CAAC,UAAU,CAAC,KAAK,KAAK,CAAC;YACjE,WAAW,CAAC,GAAG,CAAC,GAAG,EAAE,OAAO,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;QAC1D,CAAC,CAAC,CAAC;QAEH,QAAQ,CAAC,WAAW,CAAC,CAAC;IACxB,CAAC,EAAE,CAAC,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC;AAChC,CAAC;AAnCD,kDAmCC;AAED,SAAS,eAAe;AACtB;;;GAGG;AACH,aAAa,GAAG,QAAQ;IAExB,OAAO,QAAQ,aAAa,IAAI,+CAA0B,KAAK,aAAa,IAAI,+CAA0B,KAAK,CAAC;AAClH,CAAC"}
@@ -1,30 +0,0 @@
1
- import React from 'react';
2
- import classnames from 'classnames';
3
- import { ComponentID } from '@teambit/component-id';
4
- import { NativeLink, LinkProps } from '@teambit/base-ui.routing.native-link';
5
- import { ComponentUrl } from '@teambit/component.modules.component-url';
6
- import urljoin from 'url-join';
7
- import styles from './duo-component-bubble.module.scss';
8
-
9
- export interface ComponentBubbleProps extends LinkProps {
10
- componentId: ComponentID;
11
- local?: boolean;
12
- }
13
-
14
- export function ComponentBubble({ componentId, className, href, local = false, ...rest }: ComponentBubbleProps) {
15
- const { version, fullName } = componentId;
16
- const componentHref = href || (local ? urljoin('/', fullName) : ComponentUrl.toUrl(componentId));
17
-
18
- return (
19
- <NativeLink external href={componentHref} className={classnames(styles.componentName, className)} {...rest}>
20
- <div className={styles.fullName}>{fullName}</div>
21
-
22
- {version && version !== 'latest' && (
23
- <div className={styles.version}>
24
- <span className={styles.versionPrefix}>@</span>
25
- {version}
26
- </div>
27
- )}
28
- </NativeLink>
29
- );
30
- }
@@ -1,31 +0,0 @@
1
- import React from 'react';
2
- import classNames from 'classnames';
3
- import { Card, CardProps } from '@teambit/base-ui.surfaces.card';
4
- import type { ComponentID } from '@teambit/component-id';
5
-
6
- import { bubble } from '../../bubble';
7
- import styles from './duo-component-bubble.module.scss';
8
-
9
- import { ComponentBubble } from './component-bubble';
10
- import { ScopeBubble } from './scope-bubble';
11
-
12
- export interface ComponentLabelProps extends CardProps {
13
- componentId: ComponentID;
14
- link?: string;
15
- scopeLink?: string;
16
- local?: boolean;
17
- }
18
-
19
- export function ComponentLabel({ componentId, className, link, scopeLink, local, ...rest }: ComponentLabelProps) {
20
- return (
21
- <Card {...rest} className={classNames(className, styles.duoComponentBubble)}>
22
- <ScopeBubble href={scopeLink} componentId={componentId} className={bubble} />
23
- <ComponentBubble
24
- href={link}
25
- componentId={componentId}
26
- className={bubble}
27
- local={local}
28
- />
29
- </Card>
30
- );
31
- }
@@ -1,24 +0,0 @@
1
- .duoComponentBubble {
2
- display: flex;
3
-
4
- //reset styles from card:
5
- padding: 0;
6
- border: none;
7
- background: none;
8
-
9
- > :first-child {
10
- border-top-left-radius: 4px;
11
- border-bottom-left-radius: 4px;
12
-
13
- margin-right: 2px;
14
- }
15
-
16
- > :last-child {
17
- border-top-right-radius: 4px;
18
- border-bottom-right-radius: 4px;
19
- }
20
- }
21
-
22
- .componentName {
23
- display: flex;
24
- }
@@ -1,2 +0,0 @@
1
- export { ComponentLabel } from './component-label';
2
- export type { ComponentLabelProps } from './component-label';
@@ -1,20 +0,0 @@
1
- import React from 'react';
2
-
3
- import { ComponentID } from '@teambit/component-id';
4
- import { NativeLink, LinkProps } from '@teambit/base-ui.routing.native-link';
5
- import { ScopeUrl } from '@teambit/component.modules.component-url';
6
-
7
- export interface ScopeBubbleProps extends LinkProps {
8
- componentId: ComponentID;
9
- }
10
-
11
- export function ScopeBubble({ componentId, className, href, ...rest }: ScopeBubbleProps) {
12
- const scope = componentId.scope;
13
- const scopeUrl = href || ScopeUrl.toUrl(componentId.scope);
14
-
15
- return (
16
- <NativeLink href={scopeUrl} external className={className} {...rest}>
17
- {scope}
18
- </NativeLink>
19
- );
20
- }
@@ -1,12 +0,0 @@
1
- .container {
2
- display: flex;
3
-
4
- //reset styles from card:
5
- padding: 0;
6
- border: none;
7
- background: none;
8
-
9
- > * {
10
- border-radius: 4px;
11
- }
12
- }
@@ -1,22 +0,0 @@
1
- import React from 'react';
2
- import classnames from 'classnames';
3
-
4
- import { Card, CardProps } from '@teambit/base-ui.surfaces.card';
5
- import { NativeLink } from '@teambit/base-ui.routing.native-link';
6
-
7
- import { bubble } from '../../bubble';
8
- import styles from './default-label.module.scss';
9
-
10
- export interface DefaultLabelProps extends CardProps {
11
- href?: string;
12
- }
13
-
14
- export function DefaultLabel({ className, href, children, ...rest }: DefaultLabelProps) {
15
- return (
16
- <Card {...rest} className={classnames(styles.container, className)}>
17
- <NativeLink external href={href} className={bubble}>
18
- {children}
19
- </NativeLink>
20
- </Card>
21
- );
22
- }
@@ -1 +0,0 @@
1
- export { DefaultLabel } from './default-label';
@@ -1,2 +0,0 @@
1
- export { MultiHighlighter } from './multi-highlighter';
2
- export type { MultiHighlighterProps } from './multi-highlighter';
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
-
3
- import { HybridHighlighter, HybridHighlighterProps } from '../hybrid-highligher';
4
-
5
- export type MultiHighlighterProps = Omit<HybridHighlighterProps, 'mode'>;
6
-
7
- export function MultiHighlighter({ watchMotion = false, ...props }: MultiHighlighterProps) {
8
- return <HybridHighlighter {...props} mode={'allChildren'} watchMotion={watchMotion} />;
9
- }