@tryghost/shade 0.1.0-alpha.4 → 0.1.0-alpha.40
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.
- package/README.md +31 -65
- package/es/assets/images/index.js +2 -2
- package/es/components/page-templates/list-page.js +2 -1
- package/es/components/page-templates/list-page.js.map +1 -1
- package/es/components/patterns/filter-bar.js +4 -6
- package/es/components/patterns/filter-bar.js.map +1 -1
- package/es/components/patterns/filters.js +35 -22
- package/es/components/patterns/filters.js.map +1 -1
- package/es/components/patterns/gh-chart.js +6 -3
- package/es/components/patterns/gh-chart.js.map +1 -1
- package/es/components/patterns/image-upload.js +20 -15
- package/es/components/patterns/image-upload.js.map +1 -1
- package/es/components/patterns/kpi-tabs.js +4 -1
- package/es/components/patterns/kpi-tabs.js.map +1 -1
- package/es/components/patterns/page-header.js +20 -44
- package/es/components/patterns/page-header.js.map +1 -1
- package/es/components/patterns/setting-group-variants.js +1 -1
- package/es/components/patterns/setting-group-variants.js.map +1 -1
- package/es/components/patterns/setting-group.js +2 -2
- package/es/components/patterns/setting-group.js.map +1 -1
- package/es/components/patterns/settings-modal-variants.js +3 -0
- package/es/components/patterns/settings-modal-variants.js.map +1 -1
- package/es/components/patterns/settings-modal.js +9 -2
- package/es/components/patterns/settings-modal.js.map +1 -1
- package/es/components/patterns/share-modal.js +5 -17
- package/es/components/patterns/share-modal.js.map +1 -1
- package/es/components/ui/alert-dialog.js +5 -7
- package/es/components/ui/alert-dialog.js.map +1 -1
- package/es/components/ui/avatar.js +8 -4
- package/es/components/ui/avatar.js.map +1 -1
- package/es/components/ui/badge-variants.js +2 -1
- package/es/components/ui/badge-variants.js.map +1 -1
- package/es/components/ui/banner-variants.js +13 -5
- package/es/components/ui/banner-variants.js.map +1 -1
- package/es/components/ui/banner.js +9 -3
- package/es/components/ui/banner.js.map +1 -1
- package/es/components/ui/button-variants.js +2 -33
- package/es/components/ui/button-variants.js.map +1 -1
- package/es/components/ui/button.js +17 -5
- package/es/components/ui/button.js.map +1 -1
- package/es/components/ui/calendar.js +5 -6
- package/es/components/ui/calendar.js.map +1 -1
- package/es/components/ui/card-variants.js +3 -2
- package/es/components/ui/card-variants.js.map +1 -1
- package/es/components/ui/card.js +7 -4
- package/es/components/ui/card.js.map +1 -1
- package/es/components/ui/chart.js +2 -29
- package/es/components/ui/chart.js.map +1 -1
- package/es/components/ui/checkbox.js +1 -1
- package/es/components/ui/checkbox.js.map +1 -1
- package/es/components/ui/code-editor-view.js +1 -1
- package/es/components/ui/code-editor-view.js.map +1 -1
- package/es/components/ui/combobox.js +2 -2
- package/es/components/ui/combobox.js.map +1 -1
- package/es/components/ui/copy-field.js +2 -4
- package/es/components/ui/copy-field.js.map +1 -1
- package/es/components/ui/data-list.js +2 -4
- package/es/components/ui/data-list.js.map +1 -1
- package/es/components/ui/dialog.js +34 -10
- package/es/components/ui/dialog.js.map +1 -1
- package/es/components/ui/dropzone-variants.js +26 -10
- package/es/components/ui/dropzone-variants.js.map +1 -1
- package/es/components/ui/dropzone.js +2 -2
- package/es/components/ui/dropzone.js.map +1 -1
- package/es/components/ui/field.js +4 -4
- package/es/components/ui/field.js.map +1 -1
- package/es/components/ui/floating-sidebar.js +49 -16
- package/es/components/ui/floating-sidebar.js.map +1 -1
- package/es/components/ui/image-overlay-button.js +2 -2
- package/es/components/ui/image-overlay-button.js.map +1 -1
- package/es/components/ui/indicator-variants.js +2 -2
- package/es/components/ui/indicator-variants.js.map +1 -1
- package/es/components/ui/input-group-variants.js +5 -5
- package/es/components/ui/input-group-variants.js.map +1 -1
- package/es/components/ui/input-group.js +4 -7
- package/es/components/ui/input-group.js.map +1 -1
- package/es/components/ui/input-surface.js +3 -3
- package/es/components/ui/input-surface.js.map +1 -1
- package/es/components/ui/input.js +1 -1
- package/es/components/ui/input.js.map +1 -1
- package/es/components/ui/navbar.js +1 -3
- package/es/components/ui/navbar.js.map +1 -1
- package/es/components/ui/pagemenu.js +51 -15
- package/es/components/ui/pagemenu.js.map +1 -1
- package/es/components/ui/radio-group-variants.js +1 -1
- package/es/components/ui/radio-group-variants.js.map +1 -1
- package/es/components/ui/select-variants.js +6 -14
- package/es/components/ui/select-variants.js.map +1 -1
- package/es/components/ui/select.js +1 -4
- package/es/components/ui/select.js.map +1 -1
- package/es/components/ui/sheet.js +1 -1
- package/es/components/ui/sheet.js.map +1 -1
- package/es/components/ui/sidebar.js +1 -1
- package/es/components/ui/simple-pagination.js +4 -7
- package/es/components/ui/simple-pagination.js.map +1 -1
- package/es/components/ui/sticky-footer.js +59 -22
- package/es/components/ui/sticky-footer.js.map +1 -1
- package/es/components/ui/table.js +2 -2
- package/es/components/ui/table.js.map +1 -1
- package/es/components/ui/tabs-variants.js +23 -1
- package/es/components/ui/tabs-variants.js.map +1 -1
- package/es/components/ui/tabs.js +102 -21
- package/es/components/ui/tabs.js.map +1 -1
- package/es/components/ui/textarea.js +1 -1
- package/es/components/ui/textarea.js.map +1 -1
- package/es/components/ui/toast.js +2 -0
- package/es/components/ui/toggle-group.js +1 -3
- package/es/components/ui/toggle-group.js.map +1 -1
- package/es/components/ui/toggle-variants.js +1 -7
- package/es/components/ui/toggle-variants.js.map +1 -1
- package/es/components/ui/toggle.js +1 -2
- package/es/components/ui/toggle.js.map +1 -1
- package/es/components/ui/token-field.js +4 -4
- package/es/components/ui/token-field.js.map +1 -1
- package/es/components/ui/tooltip.js +8 -17
- package/es/components/ui/tooltip.js.map +1 -1
- package/es/components/ui/trend-badge.js +46 -12
- package/es/components/ui/trend-badge.js.map +1 -1
- package/es/components.js +7 -6
- package/es/{images-CUcakpOD.js → images-DtbFINdz.js} +3 -23
- package/es/images-DtbFINdz.js.map +1 -0
- package/es/index.js +7 -6
- package/es/lib/date-utils.js +151 -0
- package/es/lib/date-utils.js.map +1 -0
- package/es/lib/ds-utils.js +16 -72
- package/es/lib/ds-utils.js.map +1 -1
- package/es/lib/utils.js +3 -2
- package/es/providers/header-tooltip-provider.js +1 -4
- package/es/providers/header-tooltip-provider.js.map +1 -1
- package/es/providers/shade-context.js +2 -1
- package/es/providers/shade-context.js.map +1 -1
- package/es/providers/shade-provider.js +4 -3
- package/es/providers/shade-provider.js.map +1 -1
- package/es/shade-app.js +5 -3
- package/es/shade-app.js.map +1 -1
- package/es/shade-scope.js +3 -2
- package/es/shade-scope.js.map +1 -1
- package/es/tokens.js +56 -8
- package/es/tokens.js.map +1 -1
- package/es/utils.js +3 -2
- package/package.json +6 -6
- package/styles.css +113 -12
- package/tailwind.theme.css +237 -187
- package/theme-variables.css +412 -44
- package/types/app.d.ts +5 -5
- package/types/assets/images/index.d.ts +0 -1
- package/types/assets/images/index.d.ts.map +1 -1
- package/types/components/page-templates/list-page.d.ts +2 -1
- package/types/components/page-templates/list-page.d.ts.map +1 -1
- package/types/components/page-templates/modal-page.d.ts +1 -1
- package/types/components/patterns/color-picker.d.ts +2 -2
- package/types/components/patterns/filter-bar.d.ts +2 -2
- package/types/components/patterns/filter-bar.d.ts.map +1 -1
- package/types/components/patterns/filters-helpers.d.ts +1 -1
- package/types/components/patterns/filters.d.ts +2 -4
- package/types/components/patterns/filters.d.ts.map +1 -1
- package/types/components/patterns/gh-chart.d.ts.map +1 -1
- package/types/components/patterns/image-upload.d.ts +3 -3
- package/types/components/patterns/image-upload.d.ts.map +1 -1
- package/types/components/patterns/kpi-tabs.d.ts +5 -2
- package/types/components/patterns/kpi-tabs.d.ts.map +1 -1
- package/types/components/patterns/page-header.d.ts +17 -14
- package/types/components/patterns/page-header.d.ts.map +1 -1
- package/types/components/patterns/setting-group.d.ts +8 -8
- package/types/components/patterns/settings-modal-variants.d.ts +3 -0
- package/types/components/patterns/settings-modal-variants.d.ts.map +1 -1
- package/types/components/patterns/settings-modal.d.ts +12 -3
- package/types/components/patterns/settings-modal.d.ts.map +1 -1
- package/types/components/patterns/share-modal.d.ts +3 -3
- package/types/components/patterns/share-modal.d.ts.map +1 -1
- package/types/components/patterns/use-dirty-confirmation.d.ts +1 -1
- package/types/components/ui/alert-dialog.d.ts +1 -1
- package/types/components/ui/alert-dialog.d.ts.map +1 -1
- package/types/components/ui/avatar.d.ts.map +1 -1
- package/types/components/ui/badge-variants.d.ts +1 -1
- package/types/components/ui/badge-variants.d.ts.map +1 -1
- package/types/components/ui/badge.d.ts +1 -1
- package/types/components/ui/banner-variants.d.ts +1 -1
- package/types/components/ui/banner-variants.d.ts.map +1 -1
- package/types/components/ui/banner.d.ts +3 -1
- package/types/components/ui/banner.d.ts.map +1 -1
- package/types/components/ui/button-variants.d.ts +0 -1
- package/types/components/ui/button-variants.d.ts.map +1 -1
- package/types/components/ui/button.d.ts +7 -2
- package/types/components/ui/button.d.ts.map +1 -1
- package/types/components/ui/calendar.d.ts +1 -1
- package/types/components/ui/calendar.d.ts.map +1 -1
- package/types/components/ui/card-variants.d.ts +1 -1
- package/types/components/ui/card-variants.d.ts.map +1 -1
- package/types/components/ui/card.d.ts +1 -1
- package/types/components/ui/card.d.ts.map +1 -1
- package/types/components/ui/chart.d.ts +1 -17
- package/types/components/ui/chart.d.ts.map +1 -1
- package/types/components/ui/code-editor.d.ts +1 -1
- package/types/components/ui/combobox.d.ts.map +1 -1
- package/types/components/ui/copy-field.d.ts +1 -1
- package/types/components/ui/copy-field.d.ts.map +1 -1
- package/types/components/ui/data-list.d.ts.map +1 -1
- package/types/components/ui/dialog.d.ts +11 -2
- package/types/components/ui/dialog.d.ts.map +1 -1
- package/types/components/ui/dropzone-variants.d.ts +3 -2
- package/types/components/ui/dropzone-variants.d.ts.map +1 -1
- package/types/components/ui/dropzone.d.ts +1 -1
- package/types/components/ui/field.d.ts +1 -1
- package/types/components/ui/field.d.ts.map +1 -1
- package/types/components/ui/floating-sidebar.d.ts +12 -3
- package/types/components/ui/floating-sidebar.d.ts.map +1 -1
- package/types/components/ui/image-overlay-button.d.ts +1 -1
- package/types/components/ui/image-overlay-button.d.ts.map +1 -1
- package/types/components/ui/indicator.d.ts +1 -1
- package/types/components/ui/input-group-variants.d.ts.map +1 -1
- package/types/components/ui/input-group.d.ts +2 -2
- package/types/components/ui/input-group.d.ts.map +1 -1
- package/types/components/ui/input-surface.d.ts +3 -3
- package/types/components/ui/input-surface.d.ts.map +1 -1
- package/types/components/ui/multi-select-combobox.d.ts +1 -1
- package/types/components/ui/navbar.d.ts.map +1 -1
- package/types/components/ui/pagemenu.d.ts +3 -0
- package/types/components/ui/pagemenu.d.ts.map +1 -1
- package/types/components/ui/preview-chrome.d.ts +1 -1
- package/types/components/ui/select-variants.d.ts +0 -1
- package/types/components/ui/select-variants.d.ts.map +1 -1
- package/types/components/ui/select.d.ts +2 -2
- package/types/components/ui/select.d.ts.map +1 -1
- package/types/components/ui/sheet.d.ts.map +1 -1
- package/types/components/ui/sidebar.d.ts +2 -2
- package/types/components/ui/simple-pagination.d.ts.map +1 -1
- package/types/components/ui/sticky-footer.d.ts +9 -2
- package/types/components/ui/sticky-footer.d.ts.map +1 -1
- package/types/components/ui/tabs-variants.d.ts +5 -1
- package/types/components/ui/tabs-variants.d.ts.map +1 -1
- package/types/components/ui/tabs.d.ts.map +1 -1
- package/types/components/ui/toast.d.ts +2 -0
- package/types/components/ui/toast.d.ts.map +1 -0
- package/types/components/ui/toggle-group.d.ts +4 -6
- package/types/components/ui/toggle-group.d.ts.map +1 -1
- package/types/components/ui/toggle-variants.d.ts +0 -1
- package/types/components/ui/toggle-variants.d.ts.map +1 -1
- package/types/components/ui/toggle.d.ts +2 -3
- package/types/components/ui/toggle.d.ts.map +1 -1
- package/types/components/ui/token-field.d.ts +3 -3
- package/types/components/ui/token-field.d.ts.map +1 -1
- package/types/components/ui/tooltip.d.ts.map +1 -1
- package/types/components/ui/trend-badge.d.ts +1 -0
- package/types/components/ui/trend-badge.d.ts.map +1 -1
- package/types/components.d.ts +2 -1
- package/types/components.d.ts.map +1 -1
- package/types/lib/date-utils.d.ts +17 -0
- package/types/lib/date-utils.d.ts.map +1 -0
- package/types/lib/ds-utils.d.ts +2 -16
- package/types/lib/ds-utils.d.ts.map +1 -1
- package/types/lib/utils.d.ts +1 -0
- package/types/lib/utils.d.ts.map +1 -1
- package/types/providers/header-tooltip-provider.d.ts.map +1 -1
- package/types/providers/shade-context.d.ts +4 -1
- package/types/providers/shade-context.d.ts.map +1 -1
- package/types/providers/shade-provider.d.ts +3 -2
- package/types/providers/shade-provider.d.ts.map +1 -1
- package/types/shade-app.d.ts +8 -3
- package/types/shade-app.d.ts.map +1 -1
- package/types/shade-scope.d.ts.map +1 -1
- package/types/tokens.d.ts +1 -1
- package/types/tokens.d.ts.map +1 -1
- package/types/utils.d.ts +2 -1
- package/types/utils.d.ts.map +1 -1
- package/es/images-CUcakpOD.js.map +0 -1
package/types/lib/ds-utils.d.ts
CHANGED
|
@@ -3,15 +3,6 @@ export declare function cn(...inputs: ClassValue[]): string;
|
|
|
3
3
|
export declare function debounce<T extends unknown[]>(func: (...args: T) => void, wait: number, immediate?: boolean): (...args: T) => void;
|
|
4
4
|
export declare function getScrollParent(node: Node | null): HTMLElement | null;
|
|
5
5
|
export declare const kebabToPascalCase: (str: string) => string;
|
|
6
|
-
export declare const formatDisplayDate: (dateString: string, timezone?: string) => string;
|
|
7
|
-
/**
|
|
8
|
-
* Format a plain time in a given time zone.
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* formatDisplayTime('2020-04-20T18:09:12.345Z', 'Africa/Lagos')
|
|
12
|
-
* // 7:09pm
|
|
13
|
-
*/
|
|
14
|
-
export declare const formatDisplayTime: (dateString: string, timezone: string) => string;
|
|
15
6
|
export declare const formatTimestamp: (timestamp: string) => string;
|
|
16
7
|
export declare const formatNumber: (value: number, options?: Pick<Intl.NumberFormatOptions, 'minimumFractionDigits' | 'maximumFractionDigits'>) => string;
|
|
17
8
|
export declare function abbreviateNumber(number: number): string;
|
|
@@ -19,13 +10,8 @@ export declare const formatDuration: (seconds: number) => string;
|
|
|
19
10
|
export declare const formatPercentage: (value: number) => string;
|
|
20
11
|
export declare function getCountryFlag(countryCode: string): string;
|
|
21
12
|
export declare const stringToHslColor: (str: string, saturation: string, lightness: string) => string;
|
|
22
|
-
/**
|
|
23
|
-
|
|
24
|
-
* - For ranges above 365 days: shows month and year (e.g. "Apr 2025")
|
|
25
|
-
* - For ranges above 91 days: shows "Week of [date]"
|
|
26
|
-
* - For other ranges: uses the default formatDisplayDate
|
|
27
|
-
*/
|
|
28
|
-
export declare const formatDisplayDateWithRange: (date: string, range: number, showHours?: boolean, hoursOnly?: boolean) => string;
|
|
13
|
+
/** The admin7Design initials avatar colours: one palette family picked by the string's hash. */
|
|
14
|
+
export declare const stringToTonalAvatarClasses: (str: string) => string;
|
|
29
15
|
export declare const getYRange: (data: {
|
|
30
16
|
value: number;
|
|
31
17
|
}[]) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ds-utils.d.ts","sourceRoot":"","sources":["../../src/lib/ds-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,UAAU,EAAE,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"ds-utils.d.ts","sourceRoot":"","sources":["../../src/lib/ds-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,UAAU,EAAE,MAAM,MAAM,CAAC;AAO7C,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,UAAU,EAAE,UAEzC;AAGD,wBAAgB,QAAQ,CAAC,CAAC,SAAS,OAAO,EAAE,EAC1C,IAAI,EAAE,CAAC,GAAG,IAAI,EAAE,CAAC,KAAK,IAAI,EAC1B,IAAI,EAAE,MAAM,EACZ,SAAS,GAAE,OAAe,GACzB,CAAC,GAAG,IAAI,EAAE,CAAC,KAAK,IAAI,CAuBtB;AAGD,wBAAgB,eAAe,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,GAAG,WAAW,GAAG,IAAI,CAerE;AAMD,eAAO,MAAM,iBAAiB,QAAS,MAAM,KAAG,MAG/C,CAAC;AAGF,eAAO,MAAM,eAAe,cAAe,MAAM,WAuChD,CAAC;AAGF,eAAO,MAAM,YAAY,UAChB,MAAM,YACH,IAAI,CAAC,IAAI,CAAC,mBAAmB,EAAE,uBAAuB,GAAG,uBAAuB,CAAC,KAC1F,MAOF,CAAC;AAGF,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAoCvD;AAGD,eAAO,MAAM,cAAc,YAAa,MAAM,KAAG,MAahD,CAAC;AAGF,eAAO,MAAM,gBAAgB,UAAW,MAAM,WAW7C,CAAC;AAGF,wBAAgB,cAAc,CAAC,WAAW,EAAE,MAAM,UAajD;AAUD,eAAO,MAAM,gBAAgB,QAAS,MAAM,cAAc,MAAM,aAAa,MAAM,WAGlF,CAAC;AAeF,gGAAgG;AAChG,eAAO,MAAM,0BAA0B,QAAS,MAAM,WACyB,CAAC;AAKhF,eAAO,MAAM,SAAS,SAAU;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,EAAE,KAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAiD/E,CAAC;AAGF,eAAO,MAAM,mBAAmB,UACvB,MAAM,EAAE,aACJ,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,KACnC,MAYF,CAAC"}
|
package/types/lib/utils.d.ts
CHANGED
package/types/lib/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/lib/utils.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/lib/utils.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"header-tooltip-provider.d.ts","sourceRoot":"","sources":["../../src/providers/header-tooltip-provider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"header-tooltip-provider.d.ts","sourceRoot":"","sources":["../../src/providers/header-tooltip-provider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,kFAAkF;AAClF,wBAAgB,qBAAqB,CAAC,EAAE,QAAQ,EAAE,EAAE,KAAK,CAAC,iBAAiB,qBAc1E"}
|
|
@@ -2,7 +2,10 @@ interface ShadeContextType {
|
|
|
2
2
|
isAnyTextFieldFocused: boolean;
|
|
3
3
|
setFocusState: (value: boolean) => void;
|
|
4
4
|
darkMode: boolean;
|
|
5
|
-
|
|
5
|
+
/** Admin's `admin7Design` Labs flag; see ShadeApp. */
|
|
6
|
+
admin7Design: boolean;
|
|
7
|
+
/** Temporary mobile-hardening switch, independent of admin7Design. */
|
|
8
|
+
admin7Mobile: boolean;
|
|
6
9
|
controlShape: ControlShape;
|
|
7
10
|
}
|
|
8
11
|
export type ControlShape = 'rounded' | 'pill';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shade-context.d.ts","sourceRoot":"","sources":["../../src/providers/shade-context.ts"],"names":[],"mappings":"AAEA,UAAU,gBAAgB;IACxB,qBAAqB,EAAE,OAAO,CAAC;IAC/B,aAAa,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACxC,QAAQ,EAAE,OAAO,CAAC;IAClB,
|
|
1
|
+
{"version":3,"file":"shade-context.d.ts","sourceRoot":"","sources":["../../src/providers/shade-context.ts"],"names":[],"mappings":"AAEA,UAAU,gBAAgB;IACxB,qBAAqB,EAAE,OAAO,CAAC;IAC/B,aAAa,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACxC,QAAQ,EAAE,OAAO,CAAC;IAClB,sDAAsD;IACtD,YAAY,EAAE,OAAO,CAAC;IACtB,sEAAsE;IACtE,YAAY,EAAE,OAAO,CAAC;IACtB,YAAY,EAAE,YAAY,CAAC;CAC5B;AAED,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,MAAM,CAAC;AAE9C,eAAO,MAAM,YAAY,2CAOvB,CAAC;AAEH,eAAO,MAAM,QAAQ,wBAAiC,CAAC;AAEvD,eAAO,MAAM,eAAe,wBAM3B,CAAC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type ControlShape } from '
|
|
2
|
+
import { type ControlShape } from './shade-context.js';
|
|
3
3
|
interface ShadeProviderProps {
|
|
4
4
|
darkMode: boolean;
|
|
5
|
-
|
|
5
|
+
admin7Design?: boolean;
|
|
6
|
+
admin7Mobile?: boolean;
|
|
6
7
|
controlShape?: ControlShape;
|
|
7
8
|
children: React.ReactNode;
|
|
8
9
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shade-provider.d.ts","sourceRoot":"","sources":["../../src/providers/shade-provider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAOnD,OAAO,EAAgB,KAAK,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAwC5E,UAAU,kBAAkB;IAC1B,QAAQ,EAAE,OAAO,CAAC;IAClB,
|
|
1
|
+
{"version":3,"file":"shade-provider.d.ts","sourceRoot":"","sources":["../../src/providers/shade-provider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAOnD,OAAO,EAAgB,KAAK,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAwC5E,UAAU,kBAAkB;IAC1B,QAAQ,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAkC/C,CAAC;eAEa,aAAa"}
|
package/types/shade-app.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { ControlShape } from './providers/shade-context';
|
|
2
|
+
import type { ControlShape } from './providers/shade-context.js';
|
|
3
3
|
/**
|
|
4
4
|
* The className is used to scope the styles of the app to the app's namespace.
|
|
5
5
|
* Some components in radixUI/ShadCN need to be wrapped in a div with the className
|
|
@@ -9,8 +9,13 @@ export declare const SHADE_APP_NAMESPACES = "shade shade-admin shade-activitypub
|
|
|
9
9
|
export interface ShadeAppProps extends React.HTMLProps<HTMLDivElement> {
|
|
10
10
|
darkMode: boolean;
|
|
11
11
|
controlShape?: ControlShape;
|
|
12
|
-
/**
|
|
13
|
-
|
|
12
|
+
/**
|
|
13
|
+
* Admin's `admin7Design` Labs flag. Admin passes the flag's value; isolated Shade
|
|
14
|
+
* previews and standalone apps default to the Admin 7 design. Removed with the flag.
|
|
15
|
+
*/
|
|
16
|
+
admin7Design?: boolean;
|
|
17
|
+
/** Temporary Admin mobile-hardening flag. Standalone surfaces stay off by default. */
|
|
18
|
+
admin7Mobile?: boolean;
|
|
14
19
|
}
|
|
15
20
|
declare const ShadeApp: React.FC<ShadeAppProps>;
|
|
16
21
|
export default ShadeApp;
|
package/types/shade-app.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shade-app.d.ts","sourceRoot":"","sources":["../src/shade-app.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAE9D;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,wCAAwC,CAAC;AAE1E,MAAM,WAAW,aAAc,SAAQ,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC;IACpE,QAAQ,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,
|
|
1
|
+
{"version":3,"file":"shade-app.d.ts","sourceRoot":"","sources":["../src/shade-app.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAE9D;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,wCAAwC,CAAC;AAE1E,MAAM,WAAW,aAAc,SAAQ,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC;IACpE,QAAQ,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,sFAAsF;IACtF,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CA4BrC,CAAC;eAEa,QAAQ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shade-scope.d.ts","sourceRoot":"","sources":["../src/shade-scope.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,sFAAsF;AACtF,eAAO,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"shade-scope.d.ts","sourceRoot":"","sources":["../src/shade-scope.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,sFAAsF;AACtF,eAAO,MAAM,UAAU,6GAatB,CAAC"}
|
package/types/tokens.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const SHADE_TOKEN_NAMES: readonly ['accent', 'accent-foreground', 'animate-accordion-down', 'animate-accordion-up', 'animate-fade-in', 'animate-fade-out', 'animate-modal-backdrop-in', 'animate-modal-in', 'animate-modal-in-from-right', 'animate-modal-in-reverse', 'animate-spin', 'animate-toaster-in', 'animate-toaster-out', 'animate-toaster-top-in', 'background', 'border', 'border-default', 'border-strong', 'breakpoint-lg', 'breakpoint-md', 'breakpoint-sidebar', 'breakpoint-sidebarlg', 'breakpoint-sm', 'breakpoint-tablet', 'breakpoint-xl', 'breakpoint-xxl', 'breakpoint-xxxl', 'card', 'card-foreground', 'chart-1', 'chart-2', 'chart-3', 'chart-4', 'chart-5', 'chart-amber', 'chart-blue', 'chart-darkblue', 'chart-darkgray', 'chart-gray', 'chart-green', 'chart-orange', 'chart-purple', 'chart-rose', 'chart-teal', 'chart-yellow', 'color-accent', 'color-accent-foreground', 'color-background', 'color-black', 'color-blue', 'color-blue-100', 'color-blue-200', 'color-blue-300', 'color-blue-400', 'color-blue-50', 'color-blue-500', 'color-blue-600', 'color-blue-700', 'color-blue-800', 'color-blue-900', 'color-
|
|
1
|
+
export declare const SHADE_TOKEN_NAMES: readonly ['accent', 'accent-foreground', 'animate-accordion-down', 'animate-accordion-up', 'animate-fade-in', 'animate-fade-out', 'animate-modal-backdrop-in', 'animate-modal-in', 'animate-modal-in-from-right', 'animate-modal-in-reverse', 'animate-spin', 'animate-toaster-in', 'animate-toaster-out', 'animate-toaster-top-in', 'background', 'border', 'border-default', 'border-strong', 'breakpoint-lg', 'breakpoint-md', 'breakpoint-sidebar', 'breakpoint-sidebarlg', 'breakpoint-sm', 'breakpoint-tablet', 'breakpoint-xl', 'breakpoint-xxl', 'breakpoint-xxxl', 'card', 'card-foreground', 'character-count', 'chart-1', 'chart-2', 'chart-3', 'chart-4', 'chart-5', 'chart-amber', 'chart-blue', 'chart-darkblue', 'chart-darkgray', 'chart-gray', 'chart-green', 'chart-orange', 'chart-purple', 'chart-rose', 'chart-teal', 'chart-yellow', 'color-accent', 'color-accent-foreground', 'color-background', 'color-black', 'color-blue', 'color-blue-100', 'color-blue-200', 'color-blue-300', 'color-blue-400', 'color-blue-50', 'color-blue-500', 'color-blue-600', 'color-blue-700', 'color-blue-800', 'color-blue-900', 'color-border', 'color-border-default', 'color-border-strong', 'color-card', 'color-card-foreground', 'color-character-count', 'color-chart-1', 'color-chart-2', 'color-chart-3', 'color-chart-4', 'color-chart-5', 'color-chart-amber', 'color-chart-blue', 'color-chart-darkgray', 'color-chart-gray', 'color-chart-green', 'color-chart-orange', 'color-chart-purple', 'color-chart-rose', 'color-chart-teal', 'color-chart-yellow', 'color-current', 'color-destructive', 'color-destructive-foreground', 'color-event-email-icon', 'color-event-email-surface', 'color-event-engagement-icon', 'color-event-engagement-surface', 'color-event-gain-icon', 'color-event-gain-surface', 'color-event-gift-icon', 'color-event-gift-surface', 'color-event-loss-icon', 'color-event-loss-surface', 'color-event-warning-icon', 'color-event-warning-surface', 'color-focus-ring', 'color-foreground', 'color-ghostaccent', 'color-gray', 'color-gray-100', 'color-gray-200', 'color-gray-300', 'color-gray-400', 'color-gray-50', 'color-gray-500', 'color-gray-600', 'color-gray-700', 'color-gray-800', 'color-gray-900', 'color-gray-950', 'color-green', 'color-green-100', 'color-green-200', 'color-green-300', 'color-green-400', 'color-green-50', 'color-green-500', 'color-green-600', 'color-green-700', 'color-green-800', 'color-green-900', 'color-input', 'color-lime', 'color-lime-100', 'color-lime-200', 'color-lime-300', 'color-lime-400', 'color-lime-50', 'color-lime-500', 'color-lime-600', 'color-lime-700', 'color-lime-800', 'color-lime-900', 'color-map-surface', 'color-muted', 'color-muted-foreground', 'color-orange', 'color-orange-100', 'color-orange-200', 'color-orange-300', 'color-orange-400', 'color-orange-50', 'color-orange-500', 'color-orange-600', 'color-orange-700', 'color-orange-800', 'color-orange-900', 'color-pink', 'color-pink-100', 'color-pink-200', 'color-pink-300', 'color-pink-400', 'color-pink-50', 'color-pink-500', 'color-pink-600', 'color-pink-700', 'color-pink-800', 'color-pink-900', 'color-popover', 'color-popover-foreground', 'color-primary', 'color-primary-foreground', 'color-publish-accent', 'color-purple', 'color-purple-100', 'color-purple-200', 'color-purple-300', 'color-purple-400', 'color-purple-50', 'color-purple-500', 'color-purple-600', 'color-purple-700', 'color-purple-800', 'color-purple-900', 'color-red', 'color-red-100', 'color-red-200', 'color-red-300', 'color-red-400', 'color-red-50', 'color-red-500', 'color-red-600', 'color-red-700', 'color-red-800', 'color-red-900', 'color-ring', 'color-secondary', 'color-secondary-foreground', 'color-sidebar', 'color-sidebar-accent', 'color-sidebar-accent-foreground', 'color-sidebar-border', 'color-sidebar-foreground', 'color-sidebar-primary', 'color-sidebar-primary-foreground', 'color-sidebar-ring', 'color-state-danger', 'color-state-danger-foreground', 'color-state-info', 'color-state-info-foreground', 'color-state-success', 'color-state-success-foreground', 'color-state-warning', 'color-state-warning-border', 'color-state-warning-fill', 'color-state-warning-foreground', 'color-state-warning-surface', 'color-surface-elevated', 'color-surface-page', 'color-surface-panel', 'color-text-primary', 'color-text-secondary', 'color-text-tertiary', 'color-transparent', 'color-white', 'color-yellow', 'color-yellow-100', 'color-yellow-200', 'color-yellow-300', 'color-yellow-400', 'color-yellow-50', 'color-yellow-500', 'color-yellow-600', 'color-yellow-700', 'color-yellow-800', 'color-yellow-900', 'container-0', 'container-2xl', 'container-3xl', 'container-4xl', 'container-5xl', 'container-6xl', 'container-7xl', 'container-8xl', 'container-9xl', 'container-lg', 'container-md', 'container-page', 'container-pageminsidebar', 'container-prose', 'container-sm', 'container-xl', 'container-xs', 'control-height', 'control-height-lg', 'control-outline-pressed-shadow', 'control-outline-shadow', 'control-pressed-shadow', 'destructive', 'destructive-foreground', 'duration-base', 'duration-fast', 'duration-slow', 'ease-emphasized', 'ease-standard', 'event-email-icon', 'event-email-surface', 'event-engagement-icon', 'event-engagement-surface', 'event-gain-icon', 'event-gain-surface', 'event-gift-icon', 'event-gift-surface', 'event-loss-icon', 'event-loss-surface', 'event-warning-icon', 'event-warning-surface', 'field-border', 'field-chip-internal-border', 'field-chip-internal-surface', 'field-chip-surface', 'field-disabled-surface', 'field-readonly-surface', 'field-shadow', 'field-surface', 'focus-ring', 'font-body', 'font-code', 'font-heading', 'font-inherit', 'font-mono', 'font-sans', 'font-serif', 'font-weight-settings-heading', 'font-weight-title', 'foreground', 'input', 'input-group-radius', 'leading-base', 'leading-body', 'leading-heading', 'leading-loose', 'leading-none', 'leading-normal', 'leading-relaxed', 'leading-snug', 'leading-supertight', 'leading-tight', 'leading-tighter', 'map-surface', 'mobile-navbar-height', 'muted', 'muted-foreground', 'popover', 'popover-foreground', 'primary', 'primary-foreground', 'publish-accent', 'radius', 'radius-2xl', 'radius-3xl', 'radius-badge', 'radius-card', 'radius-control', 'radius-control-sm', 'radius-field', 'radius-full', 'radius-lg', 'radius-md', 'radius-menu', 'radius-menu-item', 'radius-pill', 'radius-sm', 'radius-surface', 'radius-trend-badge', 'radius-xl', 'radius-xs', 'ring', 'secondary', 'secondary-foreground', 'shadow', 'shadow-control-outline', 'shadow-control-outline-pressed', 'shadow-control-pressed', 'shadow-field', 'shadow-inner', 'shadow-lg', 'shadow-md', 'shadow-md-heavy', 'shadow-none', 'shadow-sm', 'shadow-xl', 'shadow-xs', 'sidebar-accent', 'sidebar-accent-foreground', 'sidebar-background', 'sidebar-border', 'sidebar-foreground', 'sidebar-primary', 'sidebar-primary-foreground', 'sidebar-ring', 'spacing', 'state-danger', 'state-danger-foreground', 'state-info', 'state-info-foreground', 'state-success', 'state-success-foreground', 'state-warning', 'state-warning-border', 'state-warning-fill', 'state-warning-foreground', 'state-warning-surface', 'surface-elevated', 'surface-page', 'surface-panel', 'tab-inactive', 'tab-inactive-hover', 'text-2xl', 'text-2xs', 'text-3xl', 'text-4xl', 'text-5xl', 'text-5xl--line-height', 'text-6xl', 'text-6xl--line-height', 'text-7xl', 'text-7xl--line-height', 'text-8xl', 'text-8xl--line-height', 'text-9xl', 'text-9xl--line-height', 'text-base', 'text-body-lg', 'text-body-md', 'text-body-sm', 'text-control', 'text-control-lg', 'text-field', 'text-lg', 'text-md', 'text-primary', 'text-secondary', 'text-section-heading', 'text-section-heading-lg', 'text-sm', 'text-tertiary', 'text-xl', 'text-xs', 'tracking-normal', 'tracking-section-heading', 'tracking-settings-heading', 'tracking-tight', 'tracking-tighter', 'tracking-tightest', 'tracking-wide', 'tracking-wider', 'tracking-widest'];
|
|
2
2
|
export type ShadeTokenName = (typeof SHADE_TOKEN_NAMES)[number];
|
|
3
3
|
export declare const shadeToken: (name: ShadeTokenName) => string;
|
|
4
4
|
//# sourceMappingURL=tokens.d.ts.map
|
package/types/tokens.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../src/tokens.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,iBAAiB,YAC5B,QAAQ,EACR,mBAAmB,EACnB,wBAAwB,EACxB,sBAAsB,EACtB,iBAAiB,EACjB,kBAAkB,EAClB,2BAA2B,EAC3B,kBAAkB,EAClB,6BAA6B,EAC7B,0BAA0B,EAC1B,cAAc,EACd,oBAAoB,EACpB,qBAAqB,EACrB,wBAAwB,EACxB,YAAY,EACZ,QAAQ,EACR,gBAAgB,EAChB,eAAe,EACf,eAAe,EACf,eAAe,EACf,oBAAoB,EACpB,sBAAsB,EACtB,eAAe,EACf,mBAAmB,EACnB,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,MAAM,EACN,iBAAiB,EACjB,SAAS,EACT,SAAS,EACT,SAAS,EACT,SAAS,EACT,SAAS,EACT,aAAa,EACb,YAAY,EACZ,gBAAgB,EAChB,gBAAgB,EAChB,YAAY,EACZ,aAAa,EACb,cAAc,EACd,cAAc,EACd,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,cAAc,EACd,yBAAyB,EACzB,kBAAkB,EAClB,aAAa,EACb,YAAY,EACZ,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,
|
|
1
|
+
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../src/tokens.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,iBAAiB,YAC5B,QAAQ,EACR,mBAAmB,EACnB,wBAAwB,EACxB,sBAAsB,EACtB,iBAAiB,EACjB,kBAAkB,EAClB,2BAA2B,EAC3B,kBAAkB,EACl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,UAAU,EACV,uBAAuB,EACvB,WAAW,EACX,cAAc,EACd,cAAc,EACd,cAAc,EACd,cAAc,EACd,iBAAiB,EACjB,YAAY,EACZ,SAAS,EACT,SAAS,EACT,cAAc,EACd,gBAAgB,EAChB,sBAAsB,EACtB,yBAAyB,EACzB,SAAS,EACT,eAAe,EACf,SAAS,EACT,SAAS,EACT,iBAAiB,EACjB,0BAA0B,EAC1B,2BAA2B,EAC3B,gBAAgB,EAChB,kBAAkB,EAClB,mBAAmB,EACnB,eAAe,EACf,gBAAgB,EAChB,iBAAiB,CACT,CAAC;AAEX,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEhE,eAAO,MAAM,UAAU,SAAU,cAAc,KAAG,MAA0B,CAAC"}
|
package/types/utils.d.ts
CHANGED
|
@@ -3,5 +3,6 @@ export * as LucideIcon from 'lucide-react';
|
|
|
3
3
|
export { default as useGlobalDirtyState } from './hooks/use-global-dirty-state';
|
|
4
4
|
export { useSimplePagination } from './hooks/use-simple-pagination';
|
|
5
5
|
export { useIsMobile } from './hooks/use-mobile';
|
|
6
|
-
export { cn, debounce, getScrollParent, kebabToPascalCase, formatTimestamp, formatNumber, formatDuration, formatPercentage,
|
|
6
|
+
export { cn, debounce, getScrollParent, kebabToPascalCase, formatTimestamp, formatNumber, formatDuration, formatPercentage, getCountryFlag, stringToHslColor, stringToTonalAvatarClasses, abbreviateNumber, getYRange, calculateYAxisWidth, } from './lib/ds-utils';
|
|
7
|
+
export { formatDisplayDate, formatDisplayTime, formatDisplayDateWithRange } from './lib/date-utils';
|
|
7
8
|
//# sourceMappingURL=utils.d.ts.map
|
package/types/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,QAAQ,MAAM,UAAU,CAAC;AACrC,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC;AAE3C,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAChF,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,OAAO,EACL,EAAE,EACF,QAAQ,EACR,eAAe,EACf,iBAAiB,EACjB,eAAe,EACf,YAAY,EACZ,cAAc,EACd,gBAAgB,EAChB,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,QAAQ,MAAM,UAAU,CAAC;AACrC,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC;AAE3C,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAChF,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,OAAO,EACL,EAAE,EACF,QAAQ,EACR,eAAe,EACf,iBAAiB,EACjB,eAAe,EACf,YAAY,EACZ,cAAc,EACd,gBAAgB,EAChB,cAAc,EACd,gBAAgB,EAChB,0BAA0B,EAC1B,gBAAgB,EAChB,SAAS,EACT,mBAAmB,GACpB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,0BAA0B,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"images-CUcakpOD.js","names":[],"sources":["../src/assets/images/facebook-logo.svg?react","../src/assets/images/ghost-logo.svg?react","../src/assets/images/ghost-orb.svg?react","../src/assets/images/google-logo.svg?react","../src/assets/images/twitter-logo.svg?react","../src/assets/images/x-logo.svg?react","../src/assets/images/index.ts"],"sourcesContent":["import * as React from \"react\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst SvgFacebookLogo = (props) => /* @__PURE__ */ _jsxs(\"svg\", {\n\tfill: \"none\",\n\txmlns: \"http://www.w3.org/2000/svg\",\n\t...props,\n\tchildren: [\n\t\t/* @__PURE__ */ _jsx(\"title\", { children: \"social-facebook\" }),\n\t\t/* @__PURE__ */ _jsx(\"path\", {\n\t\t\td: \"M20 40.004c11.046 0 20-8.955 20-20 0-11.046-8.954-20-20-20s-20 8.954-20 20c0 11.045 8.954 20 20 20z\",\n\t\t\tfill: \"#1977F3\"\n\t\t}),\n\t\t/* @__PURE__ */ _jsx(\"path\", {\n\t\t\td: \"m27.785 25.785.886-5.782h-5.546V16.25c0-1.58.773-3.125 3.26-3.125h2.522V8.204s-2.29-.39-4.477-.39c-4.568 0-7.555 2.767-7.555 7.781v4.408h-5.08v5.782h5.08v13.976a20.08 20.08 0 0 0 3.125.242c1.063 0 2.107-.085 3.125-.242V25.785h4.66z\",\n\t\t\tfill: \"#fff\"\n\t\t})\n\t]\n});\nexport default SvgFacebookLogo;\n","import * as React from \"react\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst SvgGhostLogo = (props) => /* @__PURE__ */ _jsx(\"svg\", {\n\tviewBox: \"0 0 770 294\",\n\tstyle: {\n\t\tbackgroundSize: \"100% 100%\",\n\t\tbackgroundRepeat: \"no-repeat\",\n\t\tbackgroundImage: \"url(https://assets.ghost.io/admin/1597/assets/img/logos/ghost-logo-black-1-fb561a374422b405ec90fa586b05ebdf.png)\"\n\t},\n\talt: \"Ghost\",\n\t...props\n});\nexport default SvgGhostLogo;\n","import * as React from \"react\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst SvgGhostOrb = (props) => /* @__PURE__ */ _jsx(\"svg\", {\n\tfill: \"none\",\n\theight: 24,\n\tviewBox: \"0 0 24 24\",\n\twidth: 24,\n\txmlns: \"http://www.w3.org/2000/svg\",\n\t...props,\n\tchildren: /* @__PURE__ */ _jsx(\"path\", {\n\t\tclipRule: \"evenodd\",\n\t\td: \"M24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12ZM11.8326 2.33879C6.37785 2.95189 3.95901 5.20797 3.41126 9.74699C3.34896 10.2632 3.22642 10.7805 3.10443 11.2954C2.93277 12.02 2.76221 12.74 2.76221 13.4458C2.76221 17.9885 6.5856 21.556 11.1283 21.556C12.8959 21.556 14.4433 20.8144 15.8756 20.048C19.0536 18.3478 22.0328 16.2597 22.0328 12.5411C22.0328 9.91512 20.1051 7.56932 18.466 5.5747C18.3834 5.47416 18.3015 5.37451 18.2206 5.27577C17.3866 4.25742 14.4333 2.04643 11.8326 2.33879Z\",\n\t\tfill: \"currentColor\",\n\t\tfillRule: \"evenodd\"\n\t})\n});\nexport default SvgGhostOrb;\n","import * as React from \"react\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst SvgGoogleLogo = (props) => /* @__PURE__ */ _jsxs(\"svg\", {\n\tfill: \"none\",\n\tviewBox: \"0 0 92 31\",\n\t...props,\n\tchildren: [\n\t\t/* @__PURE__ */ _jsx(\"title\", { children: \"google\" }),\n\t\t/* @__PURE__ */ _jsx(\"path\", {\n\t\t\td: \"M39.15 15.898c0 4.303-3.378 7.473-7.525 7.473s-7.526-3.17-7.526-7.473c0-4.334 3.38-7.474 7.526-7.474 4.147 0 7.526 3.14 7.526 7.474zm-3.294 0c0-2.69-1.958-4.529-4.231-4.529-2.273 0-4.231 1.84-4.231 4.529 0 2.662 1.958 4.528 4.231 4.528 2.273 0 4.231-1.87 4.231-4.528z\",\n\t\t\tfill: \"#EA4335\"\n\t\t}),\n\t\t/* @__PURE__ */ _jsx(\"path\", {\n\t\t\td: \"M55.386 15.898c0 4.303-3.379 7.473-7.526 7.473-4.146 0-7.526-3.17-7.526-7.473 0-4.33 3.38-7.474 7.526-7.474 4.147 0 7.526 3.14 7.526 7.474zm-3.294 0c0-2.69-1.959-4.529-4.232-4.529s-4.231 1.84-4.231 4.529c0 2.662 1.958 4.528 4.231 4.528 2.273 0 4.232-1.87 4.232-4.528z\",\n\t\t\tfill: \"#FBBC05\"\n\t\t}),\n\t\t/* @__PURE__ */ _jsx(\"path\", {\n\t\t\td: \"M70.945 8.875v13.418c0 5.52-3.267 7.774-7.13 7.774-3.636 0-5.825-2.423-6.65-4.404l2.868-1.19c.511 1.217 1.763 2.652 3.779 2.652 2.472 0 4.004-1.52 4.004-4.38V21.67h-.115c-.737.906-2.158 1.698-3.95 1.698-3.751 0-7.188-3.255-7.188-7.443 0-4.22 3.437-7.501 7.188-7.501 1.789 0 3.21.792 3.95 1.671h.115V8.88h3.129v-.004zm-2.895 7.05c0-2.632-1.763-4.556-4.005-4.556-2.273 0-4.177 1.924-4.177 4.556 0 2.604 1.904 4.501 4.177 4.501 2.242 0 4.005-1.897 4.005-4.501z\",\n\t\t\tfill: \"#4285F4\"\n\t\t}),\n\t\t/* @__PURE__ */ _jsx(\"path\", {\n\t\t\td: \"M76.103 1.01v21.903H72.89V1.011h3.213z\",\n\t\t\tfill: \"#34A853\"\n\t\t}),\n\t\t/* @__PURE__ */ _jsx(\"path\", {\n\t\t\td: \"M88.624 18.357l2.558 1.699c-.826 1.216-2.815 3.312-6.251 3.312-4.262 0-7.445-3.282-7.445-7.474 0-4.444 3.21-7.473 7.076-7.473 3.893 0 5.798 3.086 6.42 4.754l.341.85-10.028 4.137c.768 1.5 1.962 2.264 3.636 2.264 1.678 0 2.841-.822 3.693-2.069zm-7.87-2.688l6.703-2.774c-.368-.933-1.478-1.583-2.783-1.583-1.674 0-4.005 1.472-3.92 4.357z\",\n\t\t\tfill: \"#EA4335\"\n\t\t}),\n\t\t/* @__PURE__ */ _jsx(\"path\", {\n\t\t\td: \"M11.936 13.953v-3.17h10.726c.105.552.159 1.206.159 1.914 0 2.378-.653 5.32-2.757 7.416-2.046 2.123-4.66 3.255-8.124 3.255-6.42 0-11.818-5.21-11.818-11.605C.122 5.368 5.52.158 11.94.158c3.551 0 6.081 1.389 7.982 3.198l-2.246 2.237c-1.363-1.273-3.21-2.264-5.74-2.264-4.688 0-8.354 3.764-8.354 8.434s3.666 8.434 8.354 8.434c3.041 0 4.773-1.216 5.882-2.322.9-.896 1.492-2.176 1.725-3.925l-7.607.003z\",\n\t\t\tfill: \"#4285F4\"\n\t\t})\n\t]\n});\nexport default SvgGoogleLogo;\n","import * as React from \"react\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst SvgTwitterLogo = (props) => /* @__PURE__ */ _jsxs(\"svg\", {\n\tfill: \"none\",\n\txmlns: \"http://www.w3.org/2000/svg\",\n\t...props,\n\tchildren: [\n\t\t/* @__PURE__ */ _jsx(\"title\", { children: \"social-twitter\" }),\n\t\t/* @__PURE__ */ _jsx(\"circle\", {\n\t\t\tcx: 20,\n\t\t\tcy: 20,\n\t\t\tr: 20,\n\t\t\tfill: \"#51B1EF\"\n\t\t}),\n\t\t/* @__PURE__ */ _jsx(\"path\", {\n\t\t\td: \"M30.905 14.268a8.63 8.63 0 0 1-2.49.686 4.36 4.36 0 0 0 1.902-2.403 8.602 8.602 0 0 1-2.753 1.054c-3.512-3.488-8.463.13-7.396 3.969a12.284 12.284 0 0 1-8.942-4.543c-1.228 2.093-.428 4.667 1.343 5.798a4.31 4.31 0 0 1-1.965-.544v.055a4.35 4.35 0 0 0 3.48 4.263 4.569 4.569 0 0 1-1.964.074 4.367 4.367 0 0 0 4.053 3.023c-1.918 1.46-4.146 2.062-6.42 1.798 9.793 5.767 19.029-1.783 18.998-10.417 0-.187-.004-.374-.012-.561a9 9 0 0 0 2.166-2.248\",\n\t\t\tfill: \"#fff\"\n\t\t})\n\t]\n});\nexport default SvgTwitterLogo;\n","import * as React from \"react\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst SvgXLogo = (props) => /* @__PURE__ */ _jsx(\"svg\", {\n\tviewBox: \"0 0 24 24\",\n\t\"aria-hidden\": \"true\",\n\t...props,\n\tchildren: /* @__PURE__ */ _jsx(\"g\", { children: /* @__PURE__ */ _jsx(\"path\", {\n\t\td: \"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z\",\n\t\tfill: \"currentColor\"\n\t}) })\n});\nexport default SvgXLogo;\n","import type { FunctionComponent, SVGProps } from 'react';\nimport FacebookLogoSvg from './facebook-logo.svg?react';\nimport GhostLogoSvg from './ghost-logo.svg?react';\nimport GhostOrbSvg from './ghost-orb.svg?react';\nimport GoogleLogoSvg from './google-logo.svg?react';\nimport TwitterLogoSvg from './twitter-logo.svg?react';\nimport XLogoSvg from './x-logo.svg?react';\n\n// Explicit types keep the `?react` asset imports out of the published\n// declarations, where consumers can't resolve them.\ntype Logo = FunctionComponent<SVGProps<SVGSVGElement>>;\n\nexport const FacebookLogo: Logo = FacebookLogoSvg;\nexport const GhostLogo: Logo = GhostLogoSvg;\nexport const GhostOrb: Logo = GhostOrbSvg;\nexport const GoogleLogo: Logo = GoogleLogoSvg;\nexport const TwitterLogo: Logo = TwitterLogoSvg;\nexport const XLogo: Logo = XLogoSvg;\n"],"mappings":";;;AAEA,IAAM,mBAAmB,UAA0B,qBAAM,OAAO;CAC/D,MAAM;CACN,OAAO;CACP,GAAG;CACH,UAAU;EACO,oBAAK,SAAS,EAAE,UAAU,kBAAkB,CAAC;EAC7C,oBAAK,QAAQ;GAC5B,GAAG;GACH,MAAM;EACP,CAAC;EACe,oBAAK,QAAQ;GAC5B,GAAG;GACH,MAAM;EACP,CAAC;CACF;AACD,CAAC;;;ACfD,IAAM,gBAAgB,UAA0B,oBAAK,OAAO;CAC3D,SAAS;CACT,OAAO;EACN,gBAAgB;EAChB,kBAAkB;EAClB,iBAAiB;CAClB;CACA,KAAK;CACL,GAAG;AACJ,CAAC;;;ACTD,IAAM,eAAe,UAA0B,oBAAK,OAAO;CAC1D,MAAM;CACN,QAAQ;C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