@designcrowd/fe-shared-lib 1.2.7-rr-debugging-2 → 1.2.8

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.
@@ -643,6 +643,10 @@ video {
643
643
  margin-top: 0px;
644
644
  margin-bottom: 0px;
645
645
  }
646
+ .tw-my-1 {
647
+ margin-top: 0.25rem;
648
+ margin-bottom: 0.25rem;
649
+ }
646
650
  .tw-my-10 {
647
651
  margin-top: 2.5rem;
648
652
  margin-bottom: 2.5rem;
@@ -849,9 +853,6 @@ video {
849
853
  .tw-max-h-screen {
850
854
  max-height: 100vh;
851
855
  }
852
- .tw-w-1\/3 {
853
- width: 33.333333%;
854
- }
855
856
  .tw-w-10 {
856
857
  width: 2.5rem;
857
858
  }
@@ -2255,6 +2256,10 @@ video {
2255
2256
  margin-left: 1rem;
2256
2257
  }
2257
2258
 
2259
+ .md\:tw-mr-2 {
2260
+ margin-right: 0.5rem;
2261
+ }
2262
+
2258
2263
  .md\:tw-mt-0 {
2259
2264
  margin-top: 0px;
2260
2265
  }
@@ -643,6 +643,10 @@ video {
643
643
  margin-top: 0px;
644
644
  margin-bottom: 0px;
645
645
  }
646
+ .tw-my-1 {
647
+ margin-top: 0.25rem;
648
+ margin-bottom: 0.25rem;
649
+ }
646
650
  .tw-my-10 {
647
651
  margin-top: 2.5rem;
648
652
  margin-bottom: 2.5rem;
@@ -849,9 +853,6 @@ video {
849
853
  .tw-max-h-screen {
850
854
  max-height: 100vh;
851
855
  }
852
- .tw-w-1\/3 {
853
- width: 33.333333%;
854
- }
855
856
  .tw-w-10 {
856
857
  width: 2.5rem;
857
858
  }
@@ -1939,6 +1940,10 @@ video {
1939
1940
  margin-left: 1rem;
1940
1941
  }
1941
1942
 
1943
+ .md\:tw-mr-2 {
1944
+ margin-right: 0.5rem;
1945
+ }
1946
+
1942
1947
  .md\:tw-mt-0 {
1943
1948
  margin-top: 0px;
1944
1949
  }
@@ -643,6 +643,10 @@ video {
643
643
  margin-top: 0px;
644
644
  margin-bottom: 0px;
645
645
  }
646
+ .tw-my-1 {
647
+ margin-top: 0.25rem;
648
+ margin-bottom: 0.25rem;
649
+ }
646
650
  .tw-my-10 {
647
651
  margin-top: 2.5rem;
648
652
  margin-bottom: 2.5rem;
@@ -849,9 +853,6 @@ video {
849
853
  .tw-max-h-screen {
850
854
  max-height: 100vh;
851
855
  }
852
- .tw-w-1\/3 {
853
- width: 33.333333%;
854
- }
855
856
  .tw-w-10 {
856
857
  width: 2.5rem;
857
858
  }
@@ -2255,6 +2256,10 @@ video {
2255
2256
  margin-left: 1rem;
2256
2257
  }
2257
2258
 
2259
+ .md\:tw-mr-2 {
2260
+ margin-right: 0.5rem;
2261
+ }
2262
+
2258
2263
  .md\:tw-mt-0 {
2259
2264
  margin-top: 0px;
2260
2265
  }
@@ -643,6 +643,10 @@ video {
643
643
  margin-top: 0px;
644
644
  margin-bottom: 0px;
645
645
  }
646
+ .tw-my-1 {
647
+ margin-top: 0.25rem;
648
+ margin-bottom: 0.25rem;
649
+ }
646
650
  .tw-my-10 {
647
651
  margin-top: 2.5rem;
648
652
  margin-bottom: 2.5rem;
@@ -849,9 +853,6 @@ video {
849
853
  .tw-max-h-screen {
850
854
  max-height: 100vh;
851
855
  }
852
- .tw-w-1\/3 {
853
- width: 33.333333%;
854
- }
855
856
  .tw-w-10 {
856
857
  width: 2.5rem;
857
858
  }
@@ -2255,6 +2256,10 @@ video {
2255
2256
  margin-left: 1rem;
2256
2257
  }
2257
2258
 
2259
+ .md\:tw-mr-2 {
2260
+ margin-right: 0.5rem;
2261
+ }
2262
+
2258
2263
  .md\:tw-mt-0 {
2259
2264
  margin-top: 0px;
2260
2265
  }
@@ -643,6 +643,10 @@ video {
643
643
  margin-top: 0px;
644
644
  margin-bottom: 0px;
645
645
  }
646
+ .tw-my-1 {
647
+ margin-top: 0.25rem;
648
+ margin-bottom: 0.25rem;
649
+ }
646
650
  .tw-my-10 {
647
651
  margin-top: 2.5rem;
648
652
  margin-bottom: 2.5rem;
@@ -849,9 +853,6 @@ video {
849
853
  .tw-max-h-screen {
850
854
  max-height: 100vh;
851
855
  }
852
- .tw-w-1\/3 {
853
- width: 33.333333%;
854
- }
855
856
  .tw-w-10 {
856
857
  width: 2.5rem;
857
858
  }
@@ -2255,6 +2256,10 @@ video {
2255
2256
  margin-left: 1rem;
2256
2257
  }
2257
2258
 
2259
+ .md\:tw-mr-2 {
2260
+ margin-right: 0.5rem;
2261
+ }
2262
+
2258
2263
  .md\:tw-mt-0 {
2259
2264
  margin-top: 0px;
2260
2265
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@designcrowd/fe-shared-lib",
3
- "version": "1.2.7-rr-debugging-2",
3
+ "version": "1.2.8",
4
4
  "scripts": {
5
5
  "start": "run-p storybook watch:translation",
6
6
  "build": "npm run build:css --production",
@@ -113,4 +113,4 @@
113
113
  "overrides": {
114
114
  "storybook": "$storybook"
115
115
  }
116
- }
116
+ }
@@ -6,6 +6,10 @@ export default defineComponent({
6
6
  type: String,
7
7
  required: true,
8
8
  },
9
+ subtitle: {
10
+ type: String,
11
+ default: '',
12
+ },
9
13
  isCollapsed: {
10
14
  type: Boolean,
11
15
  required: false,
@@ -38,3 +38,16 @@ export const WithForm = () => {
38
38
  `,
39
39
  };
40
40
  };
41
+
42
+ export const WithSubtitle = () => {
43
+ return {
44
+ ...data,
45
+ template: `
46
+ <CollapsiblePanel title="Hello" subtitle="This is a subtitle">
47
+ <p>Test case with subtitle</p>
48
+ <p>Test case with subtitle</p>
49
+ <p>Test case with subtitle</p>
50
+ </CollapsiblePanel>
51
+ `,
52
+ };
53
+ };
@@ -7,8 +7,11 @@
7
7
  :class="{ 'tw-mb-2': !selfIsCollapsed }"
8
8
  @click="toggleCollapsed()"
9
9
  >
10
- <div class="tw-grow tw-text-md tw-font-sans tw-font-bold tw-text-secondary-800">
11
- {{ title }}
10
+ <div class="tw-grow">
11
+ <div class="tw-text-md tw-font-sans tw-font-bold tw-text-secondary-800">
12
+ {{ title }}
13
+ </div>
14
+ <div v-if="subtitle" class="tw-text-sm tw-text-grayscale-700 tw-my-1">{{ subtitle }}</div>
12
15
  </div>
13
16
  <div class="tw-bg-transparent tw-border-none tw-text-grayscale-600 tw-ml-2">
14
17
  <Icon :name="selfIsCollapsed ? 'chevron-down' : 'chevron-up'" size="sm" />
@@ -41,7 +41,6 @@
41
41
  </div>
42
42
  </template>
43
43
  <script>
44
- import i18next from 'i18next';
45
44
  import Button from '../../../atoms/components/Button/Button.vue';
46
45
  import TextInput from '../../../atoms/components/TextInput/TextInput.vue';
47
46
  import { sellDomainNameMinSearchTextLength } from '../../constants/sell-domain-name-constants';
@@ -83,12 +82,6 @@ export default {
83
82
  },
84
83
  emits: ['onSearch', 'onSearchTextInputChange'],
85
84
  setup() {
86
- // eslint-disable-next-line import/no-extraneous-dependencies
87
- // Make i18next available globally for debugging
88
- if (typeof window !== 'undefined') {
89
- window.i18nextSearch = i18next;
90
- }
91
-
92
85
  return {
93
86
  searchButtonLabel: sellDomainNameSearchTr('searchButtonLabel'),
94
87
  searchBarLabel: sellDomainNameSearchTr('searchBarLabel'),
@@ -1,11 +1,6 @@
1
1
  // eslint-disable-next-line import/no-extraneous-dependencies
2
2
  import i18next from 'i18next';
3
3
 
4
- // Make i18next available globally for debugging
5
- if (typeof window !== 'undefined') {
6
- window.i18next = i18next;
7
- }
8
-
9
4
  const fallbackLocale = 'en-US';
10
5
 
11
6
  const relativePathsToTranslationFiles = {
@@ -21,16 +16,10 @@ const setSharedLibLocaleAsync = async (locale = 'en-US') => {
21
16
 
22
17
  if (!i18next.isInitialized) {
23
18
  await i18next.init({
24
- debug: true,
19
+ debug: false,
25
20
  fallbackLng: fallbackLocale,
26
21
  lng: localeToUse,
27
22
  });
28
-
29
- console.log('[i18next] Initialized:', {
30
- language: i18next.language,
31
- isInitialized: i18next.isInitialized,
32
- resources: i18next.services.resourceStore.data,
33
- });
34
23
  }
35
24
 
36
25
  const languageFile = (await relativePathsToTranslationFiles[localeToUse]()).default;
@@ -38,12 +27,11 @@ const setSharedLibLocaleAsync = async (locale = 'en-US') => {
38
27
  await i18next.addResourceBundle(localeToUse, 'fe-shared-lib', {
39
28
  ...languageFile,
40
29
  });
41
-
42
- console.log(`[i18next] Resource bundle loaded for ${localeToUse}:`, i18next.getResourceBundle(localeToUse, 'fe-shared-lib'));
43
30
  };
44
31
 
45
32
  const tr = (key, valuesToInterpolate = {}) => {
46
33
  const translated = i18next.t(key, { ns: 'fe-shared-lib', ...valuesToInterpolate });
34
+
47
35
  return translated;
48
36
  };
49
37
 
@@ -77,4 +65,4 @@ export {
77
65
  sellDomainNameModalApplicationTr,
78
66
  sellDomainNameListModalTr,
79
67
  sellDomainNameListTr,
80
- };
68
+ };