@shrfe/assets 1.0.65 → 1.0.66

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,37 +1,37 @@
1
1
  :root {
2
- --sfe-shadow-small-offset-x: 0px;
3
- --sfe-shadow-small-blur: 0px;
4
- --sfe-shadow-small-spread: 0px;
5
- --sfe-shadow-small-color: 0px;
6
- --sfe-shadow-small-offset-y: 0px;
7
- --sfe-shadow-medium-offset-x: 0px;
8
- --sfe-shadow-medium-blur: 0px;
9
- --sfe-shadow-medium-spread: 0px;
10
- --sfe-shadow-medium-color: 0px;
11
- --sfe-shadow-medium-offset-y: 0px;
12
- --sfe-shadow-xxlarge-offset-x: 0px;
13
- --sfe-shadow-xxlarge-blur: 0px;
14
- --sfe-shadow-xxlarge-spread: 0px;
15
- --sfe-shadow-xxlarge-color: 0px;
16
- --sfe-shadow-xxlarge-offset-y: 0px;
17
- --sfe-shadow-inner-offset-x: 0px;
18
- --sfe-shadow-inner-blur: 0px;
19
- --sfe-shadow-inner-spread: 0px;
20
- --sfe-shadow-inner-color: 0px;
21
- --sfe-shadow-inner-offset-y: 0px;
22
- --sfe-shadow-focus-ring-offset-x: 0px;
23
- --sfe-shadow-focus-ring-blur: 0px;
24
- --sfe-shadow-focus-ring-spread: 0px;
25
- --sfe-shadow-focus-ring-color: 0px;
26
- --sfe-shadow-focus-ring-offset-y: 0px;
27
- --sfe-shadow-large-offset-x: 0px;
28
- --sfe-shadow-large-blur: 0px;
29
- --sfe-shadow-large-spread: 0px;
30
- --sfe-shadow-large-color: 0px;
31
- --sfe-shadow-large-offset-y: 0px;
32
- --sfe-shadow-xlarge-offset-x: 0px;
33
- --sfe-shadow-xlarge-blur: 0px;
34
- --sfe-shadow-xlarge-spread: 0px;
35
- --sfe-shadow-xlarge-color: 0px;
36
- --sfe-shadow-xlarge-offset-y: 0px;
2
+ --sfe-shadow-small-offset-x: 0;
3
+ --sfe-shadow-small-blur: 3;
4
+ --sfe-shadow-small-spread: -1;
5
+ --sfe-shadow-small-color: #0000000f;
6
+ --sfe-shadow-small-offset-y: 1;
7
+ --sfe-shadow-medium-offset-x: 0;
8
+ --sfe-shadow-medium-blur: 10;
9
+ --sfe-shadow-medium-spread: -3;
10
+ --sfe-shadow-medium-color: #0000001a;
11
+ --sfe-shadow-medium-offset-y: 4;
12
+ --sfe-shadow-xxlarge-offset-x: 0;
13
+ --sfe-shadow-xxlarge-blur: 52;
14
+ --sfe-shadow-xxlarge-spread: -12;
15
+ --sfe-shadow-xxlarge-color: #0000002e;
16
+ --sfe-shadow-xxlarge-offset-y: 24;
17
+ --sfe-shadow-inner-offset-x: 0;
18
+ --sfe-shadow-inner-blur: 3;
19
+ --sfe-shadow-inner-spread: 0;
20
+ --sfe-shadow-inner-color: #00000014;
21
+ --sfe-shadow-inner-offset-y: 1;
22
+ --sfe-shadow-focus-ring-offset-x: 0;
23
+ --sfe-shadow-focus-ring-blur: 0;
24
+ --sfe-shadow-focus-ring-spread: 3;
25
+ --sfe-shadow-focus-ring-color: #9747ff;
26
+ --sfe-shadow-focus-ring-offset-y: 0;
27
+ --sfe-shadow-large-offset-x: 0;
28
+ --sfe-shadow-large-blur: 20;
29
+ --sfe-shadow-large-spread: -5;
30
+ --sfe-shadow-large-color: #0000001f;
31
+ --sfe-shadow-large-offset-y: 8;
32
+ --sfe-shadow-xlarge-offset-x: 0;
33
+ --sfe-shadow-xlarge-blur: 32;
34
+ --sfe-shadow-xlarge-spread: -8;
35
+ --sfe-shadow-xlarge-color: #00000024;
36
+ --sfe-shadow-xlarge-offset-y: 14;
37
37
  }
@@ -1,50 +1,94 @@
1
1
  :root {
2
- --sfe-sizing-gap-null: 0px;
3
- --sfe-sizing-gap-xxsmall: 2px;
4
- --sfe-sizing-gap-xsmall: 4px;
5
- --sfe-sizing-gap-small: 8px;
6
- --sfe-sizing-gap-large: 16px;
7
- --sfe-sizing-gap-mid: 12px;
8
- --sfe-sizing-gap-xxlarge: 24px;
9
- --sfe-sizing-gap-xlarge: 20px;
10
- --sfe-sizing-border-150: 1.5px;
11
- --sfe-sizing-border-200: 2px;
12
- --sfe-sizing-border-250: 2.5px;
13
- --sfe-sizing-border-400: 4px;
14
- --sfe-sizing-border-null: 0px;
15
- --sfe-sizing-border-thin: 0.5px;
16
- --sfe-sizing-border-default: 1px;
17
- --sfe-sizing-radius-null: 0px;
18
- --sfe-sizing-radius-xsmall: 2px;
19
- --sfe-sizing-radius-small: 4px;
20
- --sfe-sizing-radius-default: 8px;
21
- --sfe-sizing-radius-large: 12px;
22
- --sfe-sizing-radius-xlarge: 16px;
23
- --sfe-sizing-radius-round: 99999px;
24
- --sfe-sizing-padding-null: 0px;
25
- --sfe-sizing-padding-xxsmall: 2px;
26
- --sfe-sizing-padding-xsmall: 4px;
27
- --sfe-sizing-padding-small: 8px;
28
- --sfe-sizing-padding-mid: 12px;
29
- --sfe-sizing-padding-default: 16px;
30
- --sfe-sizing-padding-large: 24px;
31
- --sfe-sizing-padding-xlarge: 32px;
32
- --sfe-sizing-size-120: 12px;
33
- --sfe-sizing-size-160: 16px;
34
- --sfe-sizing-size-200: 20px;
35
- --sfe-sizing-size-240: 24px;
36
- --sfe-sizing-size-280: 28px;
37
- --sfe-sizing-size-320: 32px;
38
- --sfe-sizing-size-360: 36px;
39
- --sfe-sizing-size-400: 40px;
40
- --sfe-sizing-size-440: 44px;
41
- --sfe-sizing-size-480: 48px;
42
- --sfe-sizing-size-560: 56px;
43
- --sfe-sizing-size-640: 64px;
44
- --sfe-sizing-size-720: 72px;
45
- --sfe-sizing-size-1200: 120px;
46
- --sfe-sizing-size-null: 0px;
47
- --sfe-sizing-size-020: 2px;
48
- --sfe-sizing-size-040: 4px;
49
- --sfe-sizing-size-080: 8px;
2
+ --sfe-sizing-gap-32: 32;
3
+ --sfe-sizing-gap-40: 40;
4
+ --sfe-sizing-gap-48: 48;
5
+ --sfe-sizing-gap-56: 56;
6
+ --sfe-sizing-gap-64: 64;
7
+ --sfe-sizing-gap-72: 72;
8
+ --sfe-sizing-gap-80: 80;
9
+ --sfe-sizing-gap-100: 100;
10
+ --sfe-sizing-gap-120: 120;
11
+ --sfe-sizing-gap-null: 0;
12
+ --sfe-sizing-gap-xxsmall: 2;
13
+ --sfe-sizing-gap-xsmall: 4;
14
+ --sfe-sizing-gap-small: 8;
15
+ --sfe-sizing-gap-large: 16;
16
+ --sfe-sizing-gap-mid: 12;
17
+ --sfe-sizing-gap-xxlarge: 24;
18
+ --sfe-sizing-gap-xlarge: 20;
19
+ --sfe-sizing-border-150: 1.5;
20
+ --sfe-sizing-border-200: 2;
21
+ --sfe-sizing-border-250: 2.5;
22
+ --sfe-sizing-border-400: 4;
23
+ --sfe-sizing-border-null: 0;
24
+ --sfe-sizing-border-thin: 0.5;
25
+ --sfe-sizing-border-default: 1;
26
+ --sfe-sizing-radius-null: 0;
27
+ --sfe-sizing-radius-xsmall: 2;
28
+ --sfe-sizing-radius-small: 4;
29
+ --sfe-sizing-radius-default: 8;
30
+ --sfe-sizing-radius-large: 12;
31
+ --sfe-sizing-radius-xlarge: 16;
32
+ --sfe-sizing-radius-round: 99999;
33
+ --sfe-sizing-padding-null: 0;
34
+ --sfe-sizing-padding-xxsmall: 2;
35
+ --sfe-sizing-padding-xsmall: 4;
36
+ --sfe-sizing-padding-small: 8;
37
+ --sfe-sizing-padding-mid: 12;
38
+ --sfe-sizing-padding-default: 16;
39
+ --sfe-sizing-padding-large: 24;
40
+ --sfe-sizing-padding-xlarge: 32;
41
+ --sfe-sizing-padding-xxlarge: 40;
42
+ --sfe-sizing-size-2: 2;
43
+ --sfe-sizing-size-4: 4;
44
+ --sfe-sizing-size-8: 8;
45
+ --sfe-sizing-size-12: 12;
46
+ --sfe-sizing-size-16: 16;
47
+ --sfe-sizing-size-20: 20;
48
+ --sfe-sizing-size-24: 24;
49
+ --sfe-sizing-size-28: 28;
50
+ --sfe-sizing-size-32: 32;
51
+ --sfe-sizing-size-36: 36;
52
+ --sfe-sizing-size-40: 40;
53
+ --sfe-sizing-size-44: 44;
54
+ --sfe-sizing-size-48: 48;
55
+ --sfe-sizing-size-56: 56;
56
+ --sfe-sizing-size-64: 64;
57
+ --sfe-sizing-size-72: 72;
58
+ --sfe-sizing-size-120: 120;
59
+ --sfe-sizing-size-160: 16;
60
+ --sfe-sizing-size-200: 20;
61
+ --sfe-sizing-size-240: 24;
62
+ --sfe-sizing-size-280: 28;
63
+ --sfe-sizing-size-320: 32;
64
+ --sfe-sizing-size-360: 36;
65
+ --sfe-sizing-size-400: 40;
66
+ --sfe-sizing-size-440: 44;
67
+ --sfe-sizing-size-480: 48;
68
+ --sfe-sizing-size-560: 56;
69
+ --sfe-sizing-size-640: 64;
70
+ --sfe-sizing-size-720: 72;
71
+ --sfe-sizing-size-1200: 120;
72
+ --sfe-sizing-size-null: 0;
73
+ --sfe-sizing-size-020: 2;
74
+ --sfe-sizing-size-040: 4;
75
+ --sfe-sizing-size-080: 8;
76
+ --sfe-sizing-padding-x-null: 0;
77
+ --sfe-sizing-padding-x-xxsmall: 2;
78
+ --sfe-sizing-padding-x-xsmall: 4;
79
+ --sfe-sizing-padding-x-small: 8;
80
+ --sfe-sizing-padding-x-mid: 12;
81
+ --sfe-sizing-padding-x-default: 16;
82
+ --sfe-sizing-padding-x-large: 24;
83
+ --sfe-sizing-padding-x-xlarge: 32;
84
+ --sfe-sizing-padding-x-xxlarge: 40;
85
+ --sfe-sizing-padding-y-null: 0;
86
+ --sfe-sizing-padding-y-xxsmall: 2;
87
+ --sfe-sizing-padding-y-xsmall: 4;
88
+ --sfe-sizing-padding-y-small: 8;
89
+ --sfe-sizing-padding-y-mid: 12;
90
+ --sfe-sizing-padding-y-default: 16;
91
+ --sfe-sizing-padding-y-large: 24;
92
+ --sfe-sizing-padding-y-xlarge: 32;
93
+ --sfe-sizing-padding-y-xxlarge: 40;
50
94
  }
@@ -7,89 +7,90 @@
7
7
  --sfe-typography-font-windows-system: Segoe UI;
8
8
  --sfe-typography-font-ios-system: SF Pro;
9
9
  --sfe-typography-font-old-font: Rubik;
10
- --sfe-typography-font-size-body-small: 12px;
11
- --sfe-typography-font-size-body-default: 14px;
12
- --sfe-typography-font-size-body-large: 16px;
13
- --sfe-typography-font-size-body-xlarge: 20px;
14
- --sfe-typography-font-size-body-xsmall: 10px;
15
- --sfe-typography-font-size-subtitle-xsmall: 14px;
16
- --sfe-typography-font-size-subtitle-small: 16px;
17
- --sfe-typography-font-size-subtitle-default: 20px;
18
- --sfe-typography-font-size-subtitle-large: 24px;
19
- --sfe-typography-font-size-subtitle-xlarge: 32px;
20
- --sfe-typography-font-size-label-xsmall: 10px;
21
- --sfe-typography-font-size-label-small: 12px;
22
- --sfe-typography-font-size-label-default: 14px;
23
- --sfe-typography-font-size-label-large: 16px;
24
- --sfe-typography-font-size-label-xlarge: 18px;
25
- --sfe-typography-font-size-heading-small: 16px;
26
- --sfe-typography-font-size-heading-large: 24px;
27
- --sfe-typography-font-size-heading-xlarge: 32px;
28
- --sfe-typography-font-size-heading-xxlarge: 48px;
29
- --sfe-typography-font-size-heading-xxxlarge: 52px;
30
- --sfe-typography-font-size-heading-medium: 20px;
31
- --sfe-typography-font-size-caption-xsmall: 10px;
32
- --sfe-typography-font-size-caption-default: 12px;
33
- --sfe-typography-font-size-caption-large: 14px;
34
- --sfe-typography-font-size-caption-xlarge: 16px;
35
- --sfe-typography-font-size-caption-xxlarge: 18px;
36
- --sfe-typography-font-size-display-small: 72px;
37
- --sfe-typography-font-size-display-medium: 80px;
38
- --sfe-typography-font-size-display-large: 88px;
39
- --sfe-typography-font-size-display-xlarge: 92px;
40
- --sfe-typography-font-size-display-xxlarge: 96px;
41
- --sfe-typography-font-size-display-xxxlarge: 98px;
42
- --sfe-typography-space-letter-10: 1px;
43
- --sfe-typography-space-letter-15: 1.5px;
44
- --sfe-typography-space-letter-20: 2px;
45
- --sfe-typography-space-letter-25: 2.5px;
46
- --sfe-typography-space-letter-30: 3px;
47
- --sfe-typography-space-letter-35: 3.5px;
48
- --sfe-typography-space-letter-40: 4px;
49
- --sfe-typography-space-letter-null: 0px;
50
- --sfe-typography-space-letter-05: 0.5px;
51
- --sfe-typography-space-list-null: 0px;
52
- --sfe-typography-space-list-small: 4px;
53
- --sfe-typography-space-list-medium: 8px;
54
- --sfe-typography-space-paragraph-10: 1px;
55
- --sfe-typography-space-paragraph-15: 1.5px;
56
- --sfe-typography-space-paragraph-20: 2px;
57
- --sfe-typography-space-paragraph-25: 2.5px;
58
- --sfe-typography-space-paragraph-30: 3px;
59
- --sfe-typography-space-paragraph-35: 3.5px;
60
- --sfe-typography-space-paragraph-40: 4px;
61
- --sfe-typography-space-paragraph-null: 0px;
62
- --sfe-typography-space-paragraph-05: 0.5px;
63
- --sfe-typography-line-height-heading-small: 24px;
64
- --sfe-typography-line-height-heading-medium: 32px;
65
- --sfe-typography-line-height-heading-large: 40px;
66
- --sfe-typography-line-height-heading-xlarge: 48px;
67
- --sfe-typography-line-height-heading-xxlarge: 52px;
68
- --sfe-typography-line-height-heading-xxxlarge: 64px;
69
- --sfe-typography-line-height-body-xsmall: 16px;
70
- --sfe-typography-line-height-body-small: 16px;
71
- --sfe-typography-line-height-body-default: 24px;
72
- --sfe-typography-line-height-body-large: 24px;
73
- --sfe-typography-line-height-body-xlarge: 32px;
74
- --sfe-typography-line-height-subtitle-xsmall: 16px;
75
- --sfe-typography-line-height-subtitle-small: 20px;
76
- --sfe-typography-line-height-subtitle-default: 24px;
77
- --sfe-typography-line-height-subtitle-large: 28px;
78
- --sfe-typography-line-height-subtitle-xlarge: 36px;
79
- --sfe-typography-line-height-label-xsmall: 14px;
80
- --sfe-typography-line-height-label-small: 16px;
81
- --sfe-typography-line-height-label-default: 20px;
82
- --sfe-typography-line-height-label-large: 24px;
83
- --sfe-typography-line-height-label-xlarge: 28px;
84
- --sfe-typography-line-height-caption-xsmall: 12px;
85
- --sfe-typography-line-height-caption-small: 16px;
86
- --sfe-typography-line-height-caption-default: 16px;
87
- --sfe-typography-line-height-caption-large: 20px;
88
- --sfe-typography-line-height-caption-xlarge: 20px;
89
- --sfe-typography-line-height-display-small: 72px;
90
- --sfe-typography-line-height-display-medium: 80px;
91
- --sfe-typography-line-height-display-large: 88px;
92
- --sfe-typography-line-height-display-xlarge: 92px;
93
- --sfe-typography-line-height-display-xxlarge: 96px;
94
- --sfe-typography-line-height-display-xxxlarge: 98px;
10
+ --sfe-typography-font-size-body-small: 14;
11
+ --sfe-typography-font-size-body-default: 16;
12
+ --sfe-typography-font-size-body-large: 18;
13
+ --sfe-typography-font-size-body-xlarge: 20;
14
+ --sfe-typography-font-size-body-xsmall: 12;
15
+ --sfe-typography-font-size-subtitle-xsmall: 14;
16
+ --sfe-typography-font-size-subtitle-small: 16;
17
+ --sfe-typography-font-size-subtitle-default: 20;
18
+ --sfe-typography-font-size-subtitle-large: 24;
19
+ --sfe-typography-font-size-subtitle-xlarge: 32;
20
+ --sfe-typography-font-size-label-xsmall: 11;
21
+ --sfe-typography-font-size-label-small: 12;
22
+ --sfe-typography-font-size-label-default: 14;
23
+ --sfe-typography-font-size-label-large: 16;
24
+ --sfe-typography-font-size-label-xlarge: 18;
25
+ --sfe-typography-font-size-heading-small: 18;
26
+ --sfe-typography-font-size-heading-large: 32;
27
+ --sfe-typography-font-size-heading-xlarge: 40;
28
+ --sfe-typography-font-size-heading-xxlarge: 48;
29
+ --sfe-typography-font-size-heading-xxxlarge: 56;
30
+ --sfe-typography-font-size-heading-medium: 24;
31
+ --sfe-typography-font-size-caption-xsmall: 10;
32
+ --sfe-typography-font-size-caption-default: 12;
33
+ --sfe-typography-font-size-caption-large: 14;
34
+ --sfe-typography-font-size-caption-xlarge: 16;
35
+ --sfe-typography-font-size-caption-xxlarge: 18;
36
+ --sfe-typography-font-size-display-small: 72;
37
+ --sfe-typography-font-size-display-medium: 80;
38
+ --sfe-typography-font-size-display-large: 88;
39
+ --sfe-typography-font-size-display-xlarge: 96;
40
+ --sfe-typography-font-size-display-xxlarge: 104;
41
+ --sfe-typography-font-size-display-xxxlarge: 112;
42
+ --sfe-typography-space-letter-10: 1;
43
+ --sfe-typography-space-letter-15: 1.5;
44
+ --sfe-typography-space-letter-20: 2;
45
+ --sfe-typography-space-letter-25: 2.5;
46
+ --sfe-typography-space-letter-30: 3;
47
+ --sfe-typography-space-letter-35: 3.5;
48
+ --sfe-typography-space-letter-40: 4;
49
+ --sfe-typography-space-letter-null: 0;
50
+ --sfe-typography-space-letter-05: 0.5;
51
+ --sfe-typography-space-list-null: 0;
52
+ --sfe-typography-space-list-small: 4;
53
+ --sfe-typography-space-list-medium: 8;
54
+ --sfe-typography-space-paragraph-10: 1;
55
+ --sfe-typography-space-paragraph-15: 1.5;
56
+ --sfe-typography-space-paragraph-20: 2;
57
+ --sfe-typography-space-paragraph-25: 2.5;
58
+ --sfe-typography-space-paragraph-30: 3;
59
+ --sfe-typography-space-paragraph-35: 3.5;
60
+ --sfe-typography-space-paragraph-40: 4;
61
+ --sfe-typography-space-paragraph-null: 0;
62
+ --sfe-typography-space-paragraph-05: 0.5;
63
+ --sfe-typography-line-height-heading-small: 24;
64
+ --sfe-typography-line-height-heading-medium: 32;
65
+ --sfe-typography-line-height-heading-large: 40;
66
+ --sfe-typography-line-height-heading-xlarge: 48;
67
+ --sfe-typography-line-height-heading-xxlarge: 56;
68
+ --sfe-typography-line-height-heading-xxxlarge: 64;
69
+ --sfe-typography-line-height-body-xsmall: 16;
70
+ --sfe-typography-line-height-body-small: 20;
71
+ --sfe-typography-line-height-body-default: 24;
72
+ --sfe-typography-line-height-body-large: 24;
73
+ --sfe-typography-line-height-body-xlarge: 28;
74
+ --sfe-typography-line-height-subtitle-xsmall: 20;
75
+ --sfe-typography-line-height-subtitle-small: 24;
76
+ --sfe-typography-line-height-subtitle-default: 28;
77
+ --sfe-typography-line-height-subtitle-large: 32;
78
+ --sfe-typography-line-height-subtitle-xlarge: 40;
79
+ --sfe-typography-line-height-label-xsmall: 16;
80
+ --sfe-typography-line-height-label-small: 16;
81
+ --sfe-typography-line-height-label-default: 20;
82
+ --sfe-typography-line-height-label-large: 24;
83
+ --sfe-typography-line-height-label-xlarge: 24;
84
+ --sfe-typography-line-height-caption-xsmall: 12;
85
+ --sfe-typography-line-height-caption-small: 16;
86
+ --sfe-typography-line-height-caption-default: 16;
87
+ --sfe-typography-line-height-caption-large: 20;
88
+ --sfe-typography-line-height-caption-xlarge: 20;
89
+ --sfe-typography-line-height-caption-xxlarge: 24;
90
+ --sfe-typography-line-height-display-small: 80;
91
+ --sfe-typography-line-height-display-medium: 88;
92
+ --sfe-typography-line-height-display-large: 96;
93
+ --sfe-typography-line-height-display-xlarge: 104;
94
+ --sfe-typography-line-height-display-xxlarge: 112;
95
+ --sfe-typography-line-height-display-xxxlarge: 120;
95
96
  }
@@ -9,6 +9,7 @@
9
9
  @import './ds/semantics/typography/typography.css';
10
10
  @import './ds/semantics/shadow/shadow.css';
11
11
  @import './ds/component.css';
12
+ @import './ds/brand/system.css';
12
13
  :root {
13
14
  --fallback-font:
14
15
  -apple-system, blinkmacsystemfont, "SF Pro Display", "SF Pro Text", "Segoe UI Variable Text",
@@ -18613,6 +18613,7 @@ __webpack_require__.r(__webpack_exports__);
18613
18613
  // EXPORTS
18614
18614
  __webpack_require__.d(__webpack_exports__, {
18615
18615
  AlertService: function() { return /* reexport */ alert_service_namespaceObject; },
18616
+ BrandService: function() { return /* reexport */ brand_service_namespaceObject; },
18616
18617
  DataModifierService: function() { return /* reexport */ data_modifier_service_namespaceObject; },
18617
18618
  DraggableService: function() { return /* reexport */ draggable_service; },
18618
18619
  EventBus: function() { return /* reexport */ EventBus; },
@@ -18681,6 +18682,14 @@ __webpack_require__.r(data_modifier_service_namespaceObject);
18681
18682
  __webpack_require__.d(data_modifier_service_namespaceObject, {
18682
18683
  alterUsersForProfileStrip: function() { return alterUsersForProfileStrip; } });
18683
18684
 
18685
+ // NAMESPACE OBJECT: ./src/services/brand-service.ts
18686
+ var brand_service_namespaceObject = {};
18687
+ __webpack_require__.r(brand_service_namespaceObject);
18688
+ __webpack_require__.d(brand_service_namespaceObject, {
18689
+ isBrand: function() { return isBrand; },
18690
+ resolveBrand: function() { return resolveBrand; },
18691
+ setBrand: function() { return setBrand; } });
18692
+
18684
18693
 
18685
18694
  ;// CONCATENATED MODULE: ./src/services/draggable-service.ts
18686
18695
  /*
@@ -26027,7 +26036,7 @@ class HTTPBaseService {
26027
26036
  // Add this temporarily for breeze to work
26028
26037
  if (!refreshTokenPath) {
26029
26038
  setLocalStorageItem('refresh-token-path-not-found', true);
26030
- refreshTokenPath = `${location.origin}/api/v2/auth/refresh-token-web`;
26039
+ //refreshTokenPath = `${location.origin}/api/v2/auth/refresh-token-web`
26031
26040
  }
26032
26041
  const refreshTokenRequest = {
26033
26042
  refresh_token: this.tokenService.getRefreshToken(),
@@ -28605,6 +28614,60 @@ function traverse(value, depth = Infinity, seen) {
28605
28614
  }
28606
28615
  };
28607
28616
 
28617
+ ;// CONCATENATED MODULE: ./src/services/brand-service.ts
28618
+ const DEFAULT_BRAND = 'system';
28619
+ // Must match design-tokens/raw/brand/<slug>.json (each builds ds/brand/<slug>.css).
28620
+ const BRANDS = [
28621
+ 'system',
28622
+ 'accelerex',
28623
+ 'access-pension',
28624
+ 'arm',
28625
+ 'asiko-energy',
28626
+ 'brand-star',
28627
+ 'chapel-hill-denham',
28628
+ 'coronation',
28629
+ 'custodian',
28630
+ 'fmdq',
28631
+ 'grant-thornton',
28632
+ 'julius-berger',
28633
+ 'providus',
28634
+ 'sterling',
28635
+ 'titan-trust',
28636
+ 'vdl',
28637
+ 'wema-bank',
28638
+ 'zebet'
28639
+ ];
28640
+ // Full-hostname match: covers clients on their own domains, and subdomains that don't equal the slug.
28641
+ // A client's branch hosts all map to the same brand.
28642
+ const BRAND_HOSTS = {
28643
+ 'globalaccelerex.seamlesshrms.com': 'accelerex',
28644
+ 'gt.seamlesshrms.com': 'grant-thornton',
28645
+ 'nairabet.seamlesshrms.com': 'brand-star',
28646
+ 'asikoenergy.seamlesshrms.com': 'asiko-energy',
28647
+ 'custodian.seamlesshrms.com': 'custodian',
28648
+ 'access-armpensions.seamlesshrms.com': 'access-pension',
28649
+ 'arm.seamlesshrms.com': 'arm',
28650
+ 'jbnrecruitment.seamlesshiring.com': 'julius-berger',
28651
+ 'hrms.providusbank.com': 'providus',
28652
+ 'vdl.seamlesshrms.com': 'vdl',
28653
+ 'coronation.seamlesshrms.com': 'coronation',
28654
+ 'hchub.sterling.ng': 'sterling',
28655
+ 'wemabank.seamlesshrms.com': 'wema-bank',
28656
+ 'humancapital.chapelhilldenham.com': 'chapel-hill-denham'
28657
+ };
28658
+ function isBrand(slug) {
28659
+ return !!slug && BRANDS.includes(slug);
28660
+ }
28661
+ function resolveBrand(slug, hostname = globalThis.location?.hostname) {
28662
+ if (isBrand(slug)) return slug;
28663
+ return BRAND_HOSTS[hostname?.toLowerCase() ?? ''] ?? DEFAULT_BRAND;
28664
+ }
28665
+ function setBrand(slug) {
28666
+ const brand = resolveBrand(slug);
28667
+ document.documentElement.dataset.brand = brand;
28668
+ return brand;
28669
+ }
28670
+
28608
28671
  ;// CONCATENATED MODULE: ./src/services/event-bus.ts
28609
28672
  /*
28610
28673
  import {ShrEventBus} from '....'
@@ -60276,6 +60339,9 @@ MixpanelService.trackEvent = (nodeEnv, eventName, payload)=>{
60276
60339
 
60277
60340
 
60278
60341
 
60342
+ // Runs synchronously from the <head> script tag, so data-brand is set before first paint.
60343
+ setBrand();
60344
+
60279
60345
  /* export default */ var main_umd = ({});
60280
60346
 
60281
60347
  }();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shrfe/assets",
3
- "version": "1.0.65",
3
+ "version": "1.0.66",
4
4
  "description": "The assets used in SeamlessHR products",
5
5
  "author": "SeamlessHR LTD <oludayo@seamlesshr.com>",
6
6
  "license": "ISC",