@lifesg/react-design-system 1.0.0-alpha.2 → 1.0.0-alpha.20
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 +2 -0
- package/accordion/accordion-item.style.d.ts +5 -2
- package/accordion/accordion.style.d.ts +1 -1
- package/accordion/index.js +165 -172
- package/accordion/index.js.map +1 -1
- package/alert/alert.style.d.ts +4 -1
- package/alert/index.js +107 -119
- package/alert/index.js.map +1 -1
- package/animations/index.js +1 -1
- package/animations/index.js.map +1 -1
- package/box-container/box-container.styles.d.ts +8 -1
- package/box-container/index.js +69 -74
- package/box-container/index.js.map +1 -1
- package/breadcrumb/breadcrumb.style.d.ts +4 -4
- package/breadcrumb/index.js +102 -106
- package/breadcrumb/index.js.map +1 -1
- package/breadcrumb/types.d.ts +5 -1
- package/button/button.d.ts +2 -2
- package/button/index.js +140 -143
- package/button/index.js.map +1 -1
- package/card/card.d.ts +3 -0
- package/card/card.style.d.ts +1 -0
- package/card/index.d.ts +1 -0
- package/card/index.js +132 -0
- package/card/index.js.map +1 -0
- package/{icon → card}/package.json +1 -1
- package/card/types.d.ts +4 -0
- package/checkbox/checkbox.d.ts +1 -1
- package/checkbox/checkbox.style.d.ts +4 -1
- package/checkbox/index.js +11 -21
- package/checkbox/index.js.map +1 -1
- package/cjs/index.js +1999 -1021
- package/cjs/index.js.map +1 -1
- package/color/color.d.ts +4 -59
- package/color/index.js +1 -1
- package/color/index.js.map +1 -1
- package/color/types.d.ts +5 -1
- package/date-input/date-input.d.ts +1 -1
- package/date-input/date-input.style.d.ts +2 -6
- package/date-input/index.js +121 -136
- package/date-input/index.js.map +1 -1
- package/date-input/types.d.ts +14 -16
- package/design-token/design-token.d.ts +4 -0
- package/design-token/index.d.ts +2 -0
- package/design-token/index.js +6 -0
- package/design-token/index.js.map +1 -0
- package/design-token/package.json +7 -0
- package/design-token/types.d.ts +7 -0
- package/error-display/error-display-data.d.ts +11 -0
- package/error-display/error-display.d.ts +3 -0
- package/error-display/error-display.style.d.ts +7 -0
- package/error-display/index.d.ts +2 -0
- package/error-display/index.js +322 -0
- package/error-display/index.js.map +1 -0
- package/error-display/package.json +7 -0
- package/error-display/types.d.ts +20 -0
- package/feedback-rating/feedback-rating-data.d.ts +5 -0
- package/feedback-rating/feedback-rating-stars-container-data.d.ts +3 -0
- package/feedback-rating/feedback-rating-stars-container.d.ts +3 -0
- package/feedback-rating/feedback-rating-stars-container.styles.d.ts +12 -0
- package/feedback-rating/feedback-rating.d.ts +3 -0
- package/feedback-rating/feedback-rating.styles.d.ts +5 -0
- package/feedback-rating/index.d.ts +2 -0
- package/feedback-rating/index.js +329 -0
- package/feedback-rating/index.js.map +1 -0
- package/feedback-rating/package.json +7 -0
- package/feedback-rating/types.d.ts +14 -0
- package/footer/footer-download-app.d.ts +2 -0
- package/footer/footer-download-app.style.d.ts +6 -0
- package/footer/footer-helper.d.ts +12 -0
- package/footer/footer.d.ts +3 -0
- package/footer/footer.style.d.ts +12 -0
- package/footer/index.d.ts +2 -0
- package/footer/index.js +373 -0
- package/footer/index.js.map +1 -0
- package/footer/package.json +7 -0
- package/footer/types.d.ts +31 -0
- package/form/form-custom-field.d.ts +3 -0
- package/form/form-input-group.d.ts +1 -1
- package/form/form-input.d.ts +1 -1
- package/form/form-label-addon.d.ts +1 -2
- package/form/form-label.d.ts +1 -1
- package/form/form-label.style.d.ts +1 -0
- package/form/form-phone-number-input.d.ts +3 -0
- package/form/form-textarea.d.ts +1 -1
- package/form/form-unit-number-input.d.ts +3 -0
- package/form/index.d.ts +9 -6
- package/form/index.js +774 -629
- package/form/index.js.map +1 -1
- package/form/types.d.ts +14 -5
- package/icon-button/icon-button.d.ts +1 -1
- package/icon-button/icon-button.style.d.ts +6 -1
- package/icon-button/index.js +9 -15
- package/icon-button/index.js.map +1 -1
- package/icon-button/types.d.ts +2 -3
- package/index.d.ts +11 -1
- package/index.js +1997 -1019
- package/index.js.map +1 -1
- package/input/index.js +84 -41
- package/input/index.js.map +1 -1
- package/input/input.d.ts +1 -1
- package/input/input.style.d.ts +9 -0
- package/input/types.d.ts +2 -0
- package/input-group/index.js +392 -312
- package/input-group/index.js.map +1 -1
- package/input-group/input-group-list-addon.d.ts +1 -1
- package/input-group/input-group-list-addon.style.d.ts +4 -1
- package/input-group/input-group.d.ts +1 -1
- package/input-group/input-group.style.d.ts +1 -2
- package/input-group/types.d.ts +8 -8
- package/input-select/index.js +278 -242
- package/input-select/index.js.map +1 -1
- package/input-select/input-select-wrapper.d.ts +1 -1
- package/input-select/input-select.d.ts +1 -1
- package/input-select/input-select.styles.d.ts +5 -1
- package/input-select/types.d.ts +15 -11
- package/input-textarea/index.js +132 -121
- package/input-textarea/index.js.map +1 -1
- package/input-textarea/textarea-counter.d.ts +2 -1
- package/input-textarea/textarea.d.ts +2 -2
- package/input-textarea/types.d.ts +1 -0
- package/layout/container.d.ts +3 -0
- package/layout/content.d.ts +3 -0
- package/layout/index.d.ts +7 -0
- package/layout/index.js +55 -0
- package/layout/index.js.map +1 -0
- package/layout/package.json +7 -0
- package/layout/section.d.ts +3 -0
- package/layout/types.d.ts +15 -0
- package/link-list/index.js +130 -130
- package/link-list/index.js.map +1 -1
- package/link-list/link-list.styles.d.ts +12 -2
- package/link-list/types.d.ts +1 -1
- package/masonry/index.js.map +1 -1
- package/masonry/masonry.d.ts +2 -2
- package/masthead/index.d.ts +1 -0
- package/masthead/index.js +9 -0
- package/masthead/index.js.map +1 -0
- package/masthead/masthead.d.ts +2 -0
- package/masthead/masthead.style.d.ts +1 -0
- package/masthead/package.json +7 -0
- package/media/index.js +1 -1
- package/media/index.js.map +1 -1
- package/media/media.d.ts +2 -1
- package/modal/index.d.ts +1 -1
- package/modal/index.js +30 -43
- package/modal/index.js.map +1 -1
- package/modal/modal-box.styles.d.ts +5 -2
- package/modal/modal.d.ts +1 -1
- package/modal/modal.styles.d.ts +1 -0
- package/modal/types.d.ts +4 -2
- package/navbar/brand.d.ts +10 -0
- package/navbar/brand.styles.d.ts +5 -0
- package/navbar/drawer.d.ts +3 -0
- package/navbar/drawer.styles.d.ts +15 -0
- package/navbar/index.d.ts +7 -0
- package/navbar/index.js +651 -0
- package/navbar/index.js.map +1 -0
- package/navbar/navbar-action-buttons.d.ts +10 -0
- package/navbar/navbar-action-buttons.styles.d.ts +9 -0
- package/navbar/navbar-items.d.ts +11 -0
- package/navbar/navbar-items.styles.d.ts +10 -0
- package/navbar/navbar.d.ts +3 -0
- package/navbar/navbar.styles.d.ts +19 -0
- package/navbar/package.json +7 -0
- package/navbar/types.d.ts +56 -0
- package/notification-banner/index.d.ts +3 -0
- package/notification-banner/index.js +266 -0
- package/notification-banner/index.js.map +1 -0
- package/notification-banner/notification-banner-hoc.d.ts +3 -0
- package/notification-banner/notification-banner.d.ts +6 -0
- package/notification-banner/notification-banner.styles.d.ts +15 -0
- package/notification-banner/package.json +7 -0
- package/notification-banner/types.d.ts +22 -0
- package/overlay/index.js +1 -1
- package/overlay/index.js.map +1 -1
- package/overlay/types.d.ts +1 -1
- package/package.json +4 -1
- package/phone-number-input/data/country-code.d.ts +1 -0
- package/phone-number-input/index.d.ts +1 -0
- package/phone-number-input/index.js +850 -0
- package/phone-number-input/index.js.map +1 -0
- package/phone-number-input/package.json +7 -0
- package/phone-number-input/phone-number-input-helper.d.ts +5 -0
- package/phone-number-input/phone-number-input.d.ts +3 -0
- package/phone-number-input/phone-number-input.styles.d.ts +1 -0
- package/phone-number-input/types.d.ts +42 -0
- package/popover/index.js +148 -153
- package/popover/index.js.map +1 -1
- package/popover/popover.styles.d.ts +1 -1
- package/popover/types.d.ts +3 -3
- package/progress-indicator/index.d.ts +2 -0
- package/progress-indicator/index.js +240 -0
- package/progress-indicator/index.js.map +1 -0
- package/progress-indicator/package.json +7 -0
- package/progress-indicator/progress-indicator.d.ts +3 -0
- package/progress-indicator/progress-indicator.style.d.ts +19 -0
- package/progress-indicator/types.d.ts +9 -0
- package/radio-button/index.js +7 -7
- package/radio-button/index.js.map +1 -1
- package/shared/dropdown-list/dropdown-list.d.ts +1 -1
- package/shared/dropdown-list/dropdown-list.styles.d.ts +6 -2
- package/shared/dropdown-list/dropdown-search.d.ts +2 -1
- package/shared/dropdown-list/dropdown-search.styles.d.ts +9 -1
- package/shared/dropdown-list/types.d.ts +21 -12
- package/smart-app-banner/index.d.ts +2 -0
- package/smart-app-banner/index.js +373 -0
- package/smart-app-banner/index.js.map +1 -0
- package/smart-app-banner/package.json +7 -0
- package/smart-app-banner/smart-app-banner.d.ts +3 -0
- package/smart-app-banner/smart-app-banner.styles.d.ts +31 -0
- package/smart-app-banner/types.d.ts +18 -0
- package/spec/design-token-spec/base-design-token-set.d.ts +2 -0
- package/text/index.js +62 -65
- package/text/index.js.map +1 -1
- package/text/text-style.d.ts +4 -100
- package/text-list/index.js +7 -7
- package/text-list/index.js.map +1 -1
- package/theme/design-token-helper.d.ts +2 -0
- package/theme/index.js +1 -1
- package/theme/index.js.map +1 -1
- package/theme/types.d.ts +12 -3
- package/timeline/index.js +95 -98
- package/timeline/index.js.map +1 -1
- package/timepicker/index.js +213 -207
- package/timepicker/index.js.map +1 -1
- package/timepicker/timepicker-dropdown.styles.d.ts +2 -2
- package/timepicker/types.d.ts +3 -3
- package/toggle-button/index.js +118 -121
- package/toggle-button/index.js.map +1 -1
- package/tooltip/index.js +127 -125
- package/tooltip/index.js.map +1 -1
- package/tooltip/tooltip.styles.d.ts +3 -1
- package/unit-number/index.d.ts +2 -0
- package/unit-number/index.js +403 -0
- package/unit-number/index.js.map +1 -0
- package/unit-number/package.json +7 -0
- package/unit-number/types.d.ts +27 -0
- package/unit-number/unit-number-input.d.ts +3 -0
- package/unit-number/unit-number-input.style.d.ts +16 -0
- package/util/date-helper.d.ts +19 -0
- package/util/index.d.ts +2 -0
- package/util/utility-types.d.ts +3 -0
- package/icon/arrow-right-icon.d.ts +0 -3
- package/icon/icon.d.ts +0 -3
- package/icon/index.d.ts +0 -2
- package/icon/index.js +0 -12
- package/icon/index.js.map +0 -1
- package/icon/info-icon.d.ts +0 -3
- package/icon/play-alt-icon.d.ts +0 -3
- package/icon/search-icon.d.ts +0 -3
- package/icon/shared.style.d.ts +0 -1
- package/icon/types.d.ts +0 -9
package/breadcrumb/types.d.ts
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare type FadePosition = "left" | "right" | "both";
|
|
3
|
+
export interface FadeColorSet {
|
|
4
|
+
left?: string[] | undefined;
|
|
5
|
+
right?: string[] | undefined;
|
|
6
|
+
}
|
|
3
7
|
export interface BreadcrumbProps {
|
|
4
8
|
links: React.AnchorHTMLAttributes<HTMLAnchorElement>[];
|
|
5
|
-
fadeColor?: string[] | undefined;
|
|
9
|
+
fadeColor?: string[] | FadeColorSet | undefined;
|
|
6
10
|
fadePosition?: FadePosition | undefined;
|
|
7
11
|
itemStyle?: string | undefined;
|
|
8
12
|
id?: string | undefined;
|
package/button/button.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { ButtonProps } from "./types";
|
|
3
3
|
export declare const Button: {
|
|
4
|
-
Default:
|
|
5
|
-
Small:
|
|
4
|
+
Default: (props: ButtonProps & React.RefAttributes<HTMLButtonElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
5
|
+
Small: (props: ButtonProps & React.RefAttributes<HTMLButtonElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
6
6
|
};
|
package/button/index.js
CHANGED
|
@@ -1,163 +1,160 @@
|
|
|
1
|
-
import{jsxs as t,jsx as
|
|
1
|
+
import e,{jsxs as t,jsx as n}from"react/jsx-runtime";import r from"react";import i,{keyframes as a,css as o}from"styled-components";var l="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},c=Array.isArray,d="object"==typeof l&&l&&l.Object===Object&&l,h="object"==typeof self&&self&&self.Object===Object&&self,g=d||h||Function("return this")(),s=g.Symbol,u=s,f=Object.prototype,p=f.hasOwnProperty,y=f.toString,m=u?u.toStringTag:void 0;var S=function(e){var t=p.call(e,m),n=e[m];try{e[m]=void 0;var r=!0}catch(e){}var i=y.call(e);return r&&(t?e[m]=n:delete e[m]),i},F=Object.prototype.toString;var $=S,b=function(e){return F.call(e)},v=s?s.toStringTag:void 0;var H=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":v&&v in Object(e)?$(e):b(e)};var B=H,D=function(e){return null!=e&&"object"==typeof e};var _=function(e){return"symbol"==typeof e||D(e)&&"[object Symbol]"==B(e)},z=c,w=_,x=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,C=/^\w*$/;var k=function(e,t){if(z(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!w(e))||(C.test(e)||!x.test(e)||null!=t&&e in Object(t))};var E=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},W=H,A=E;var N,O=function(e){if(!A(e))return!1;var t=W(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},j=g["__core-js_shared__"],T=(N=/[^.]+$/.exec(j&&j.keys&&j.keys.IE_PROTO||""))?"Symbol(src)_1."+N:"";var V=function(e){return!!T&&T in e},P=Function.prototype.toString;var R=O,I=V,L=E,X=function(e){if(null!=e){try{return P.call(e)}catch(e){}try{return e+""}catch(e){}}return""},G=/^\[object .+?Constructor\]$/,M=Function.prototype,Z=Object.prototype,U=M.toString,Y=Z.hasOwnProperty,q=RegExp("^"+U.call(Y).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var J=function(e){return!(!L(e)||I(e))&&(R(e)?q:G).test(X(e))},K=function(e,t){return null==e?void 0:e[t]};var Q=function(e,t){var n=K(e,t);return J(n)?n:void 0},ee=Q(Object,"create"),te=ee;var ne=function(){this.__data__=te?te(null):{},this.size=0};var re=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ie=ee,ae=Object.prototype.hasOwnProperty;var oe=function(e){var t=this.__data__;if(ie){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return ae.call(t,e)?t[e]:void 0},le=ee,ce=Object.prototype.hasOwnProperty;var de=ee;var he=ne,ge=re,se=oe,ue=function(e){var t=this.__data__;return le?void 0!==t[e]:ce.call(t,e)},fe=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=de&&void 0===t?"__lodash_hash_undefined__":t,this};function pe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}pe.prototype.clear=he,pe.prototype.delete=ge,pe.prototype.get=se,pe.prototype.has=ue,pe.prototype.set=fe;var ye=pe;var me=function(){this.__data__=[],this.size=0};var Se=function(e,t){return e===t||e!=e&&t!=t};var Fe=function(e,t){for(var n=e.length;n--;)if(Se(e[n][0],t))return n;return-1},$e=Fe,be=Array.prototype.splice;var ve=Fe;var He=Fe;var Be=Fe;var De=me,_e=function(e){var t=this.__data__,n=$e(t,e);return!(n<0)&&(n==t.length-1?t.pop():be.call(t,n,1),--this.size,!0)},ze=function(e){var t=this.__data__,n=ve(t,e);return n<0?void 0:t[n][1]},we=function(e){return He(this.__data__,e)>-1},xe=function(e,t){var n=this.__data__,r=Be(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function Ce(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ce.prototype.clear=De,Ce.prototype.delete=_e,Ce.prototype.get=ze,Ce.prototype.has=we,Ce.prototype.set=xe;var ke=Ce,Ee=Q(g,"Map"),We=ye,Ae=ke,Ne=Ee;var Oe=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var je=function(e,t){var n=e.__data__;return Oe(t)?n["string"==typeof t?"string":"hash"]:n.map},Te=je;var Ve=je;var Pe=je;var Re=je;var Ie=function(){this.size=0,this.__data__={hash:new We,map:new(Ne||Ae),string:new We}},Le=function(e){var t=Te(this,e).delete(e);return this.size-=t?1:0,t},Xe=function(e){return Ve(this,e).get(e)},Ge=function(e){return Pe(this,e).has(e)},Me=function(e,t){var n=Re(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function Ze(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ze.prototype.clear=Ie,Ze.prototype.delete=Le,Ze.prototype.get=Xe,Ze.prototype.has=Ge,Ze.prototype.set=Me;var Ue=Ze;function Ye(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(Ye.Cache||Ue),n}Ye.Cache=Ue;var qe=Ye;var Je=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ke=/\\(\\)?/g,Qe=function(e){var t=qe(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Je,(function(e,n,r,i){t.push(r?i.replace(Ke,"$1"):n||e)})),t}));var et=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i},tt=c,nt=_,rt=s?s.prototype:void 0,it=rt?rt.toString:void 0;var at=function e(t){if("string"==typeof t)return t;if(tt(t))return et(t,e)+"";if(nt(t))return it?it.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n},ot=at;var lt=c,ct=k,dt=Qe,ht=function(e){return null==e?"":ot(e)};var gt=_;var st=function(e,t){return lt(e)?e:ct(e,t)?[e]:dt(ht(e))},ut=function(e){if("string"==typeof e||gt(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t};var ft=function(e,t){for(var n=0,r=(t=st(t,e)).length;null!=e&&n<r;)e=e[ut(t[n++])];return n&&n==r?e:void 0};var pt=function(e,t,n){var r=null==e?void 0:ft(e,t);return void 0===r?n:r};const yt=(e,t,n)=>t?pt(n,t)||pt(e,t):n||e,mt=(e,t)=>{const n=t||e.defaultValue;return pt(e.collections,n)};var St;!function(e){e.colorScheme="colorScheme",e.layout="layout",e.textStyleScheme="textStyleScheme",e.designTokenScheme="designTokenScheme"}(St||(St={}));const Ft={collections:{base:{Brand:{1:"#EF413D",2:"#F26664",3:"#F58E8B",4:"#F9B5B2",5:"#FDDDD7",6:"#FFEEEA"},Primary:"#1C76D5",PrimaryDark:"#1869BF",Secondary:"#0056b3",Accent:{Dark:{1:"#465A88",2:"#556D99",3:"#8D8DBF"},Light:{1:"#57A9FF",2:"#81BFFF",3:"#BED7FF",4:"#E2ECFD",5:"#F6F8FF",6:"#FBFCFE"}},Neutral:{1:"#282828",2:"#424242",3:"#686868",4:"#A4A4A4",5:"#E0E4E5",6:"#ECEFEF",7:"#F8F8F8",8:"#FFFFFF"},Validation:{Green:{Text:"#097123",Icon:"#4FC029",Border:"#95D97F",Background:"#F9FDF8"},Orange:{Text:"#B34E00",Icon:"#FEAB10",Border:"#F9CB77",Background:"#FFFCF7",Badge:"#F57F17"},Red:{Text:"#C60000",Icon:"#C60000",Border:"#DD6666",Background:"#FDF7F7"}},Shadow:{Accent:"rgba(87, 169, 255, 0.5)",Red:"rgba(221, 102, 102, 0.8)"}},bookingsg:{Brand:{1:"#EF413D",2:"#F26664",3:"#F58E8B",4:"#F9B5B2",5:"#FDDDD7",6:"#FFEEEA"},Primary:"#6F4AB8",PrimaryDark:"#6443A6",Secondary:"#6443A6",Accent:{Dark:{1:"#355985",2:"#68819D",3:"#9AABBE"},Light:{1:"#9F82D9",2:"#B5A5D7",3:"#CEC3E4 ",4:"#E2DBEF",5:"#F2EFF8",6:"#F7F6FB"}},Neutral:{1:"#282828",2:"#424242",3:"#686868",4:"#A4A4A4",5:"#E0E4E5",6:"#ECEFEF",7:"#F8F8F8",8:"#FFFFFF"},Validation:{Green:{Text:"#097123",Icon:"#4FC029",Border:"#95D97F",Background:"#F9FDF8"},Orange:{Text:"#B34E00",Icon:"#FEAB10",Border:"#F9CB77",Background:"#FFFCF7",Badge:"#F57F17"},Red:{Text:"#C60000",Icon:"#C60000",Border:"#DD6666",Background:"#FDF7F7"}},Shadow:{Accent:"rgba(161, 87, 255, 0.5)",Red:"rgba(221, 102, 102, 0.8)"}}},defaultValue:"base"},$t=e=>t=>{const n=t.theme,r=mt(Ft,n[St.colorScheme]);return n.options&&n.options.color?yt(r,e,n.options.color):yt(r,e)},bt={Brand:{1:$t("Brand.1"),2:$t("Brand.2"),3:$t("Brand.3"),4:$t("Brand.4"),5:$t("Brand.5"),6:$t("Brand.6")},Primary:$t("Primary"),PrimaryDark:$t("PrimaryDark"),Secondary:$t("Secondary"),Accent:{Light:{1:$t("Accent.Light.1"),2:$t("Accent.Light.2"),3:$t("Accent.Light.3"),4:$t("Accent.Light.4"),5:$t("Accent.Light.5"),6:$t("Accent.Light.6")},Dark:{1:$t("Accent.Dark.1"),2:$t("Accent.Dark.2"),3:$t("Accent.Dark.3")}},Neutral:{1:$t("Neutral.1"),2:$t("Neutral.2"),3:$t("Neutral.3"),4:$t("Neutral.4"),5:$t("Neutral.5"),6:$t("Neutral.6"),7:$t("Neutral.7"),8:$t("Neutral.8")},Validation:{Green:{Text:$t("Validation.Green.Text"),Icon:$t("Validation.Green.Icon"),Border:$t("Validation.Green.Border"),Background:$t("Validation.Green.Background")},Orange:{Text:$t("Validation.Orange.Text"),Icon:$t("Validation.Orange.Icon"),Border:$t("Validation.Orange.Border"),Background:$t("Validation.Orange.Background"),Badge:$t("Validation.Orange.Badge")},Red:{Text:$t("Validation.Red.Text"),Icon:$t("Validation.Red.Icon"),Border:$t("Validation.Red.Border"),Background:$t("Validation.Red.Background")}},Shadow:{Accent:$t("Shadow.Accent"),Red:$t("Shadow.Red")}},vt={mobileS:320,mobileM:375,mobileL:480,tablet:1199,desktopM:1399,desktopL:1999,desktop4k:3840},Ht=e=>Object.keys(vt).reduce(((t,n)=>{const r=vt[n];return t[n]=`@media screen and (${e}: ${r}px)`,t}),{}),Bt=Ht("max-width"),Dt=(Ht("min-width"),i.div`
|
|
2
2
|
display: inline-block;
|
|
3
3
|
position: relative;
|
|
4
|
-
width: ${
|
|
5
|
-
height: ${
|
|
6
|
-
`),
|
|
4
|
+
width: ${e=>e.$size}px;
|
|
5
|
+
height: ${e=>e.$size}px;
|
|
6
|
+
`),_t=a`
|
|
7
7
|
0% {
|
|
8
8
|
transform: rotate(0deg);
|
|
9
9
|
}
|
|
10
10
|
100% {
|
|
11
11
|
transform: rotate(360deg);
|
|
12
12
|
}
|
|
13
|
-
`,
|
|
13
|
+
`,zt=i.div`
|
|
14
14
|
box-sizing: border-box;
|
|
15
15
|
display: block;
|
|
16
16
|
position: absolute;
|
|
17
|
-
width: ${
|
|
18
|
-
height: ${
|
|
19
|
-
margin: ${
|
|
20
|
-
border-width: ${
|
|
17
|
+
width: ${e=>e.$size}px;
|
|
18
|
+
height: ${e=>e.$size}px;
|
|
19
|
+
margin: ${e=>e.$borderWidth}px;
|
|
20
|
+
border-width: ${e=>e.$borderWidth}px;
|
|
21
21
|
border-style: solid;
|
|
22
22
|
border-radius: 50%;
|
|
23
|
-
border-color: ${
|
|
23
|
+
border-color: ${e=>e.$color||bt.Neutral[8](e)}
|
|
24
24
|
transparent transparent transparent;
|
|
25
|
-
animation: ${
|
|
26
|
-
`,
|
|
25
|
+
animation: ${_t} 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
|
|
26
|
+
`,wt=i(zt)`
|
|
27
27
|
animation-delay: -0.45s;
|
|
28
|
-
`,
|
|
28
|
+
`,xt=i(zt)`
|
|
29
29
|
animation-delay: -0.3s;
|
|
30
|
-
`,
|
|
30
|
+
`,Ct=i(zt)`
|
|
31
31
|
animation-delay: -0.15s;
|
|
32
|
-
`,
|
|
33
|
-
font-family: ${
|
|
32
|
+
`,kt={Regular:"Open Sans",Semibold:"Open Sans Semibold",Bold:"Open Sans Bold",Light:"Open Sans Light"},Et={collections:{base:{D1:{fontFamily:kt.Bold,fontSize:3,fontWeight:700,lineHeight:4,letterSpacing:-.056},D2:{fontFamily:kt.Bold,fontSize:2.5,fontWeight:700,lineHeight:3.5,letterSpacing:-.032},D3:{fontFamily:kt.Bold,fontSize:1.625,fontWeight:700,lineHeight:2.25},D4:{fontFamily:kt.Bold,fontSize:1.375,fontWeight:700,lineHeight:1.75},DBody:{fontFamily:kt.Regular,fontSize:1.375,lineHeight:1.75},H1:{fontFamily:kt.Bold,fontSize:2,fontWeight:700,lineHeight:2.5},H2:{fontFamily:kt.Bold,fontSize:1.625,fontWeight:700,lineHeight:2.25},H3:{fontFamily:kt.Bold,fontSize:1.375,fontWeight:700,lineHeight:1.75},H4:{fontFamily:kt.Bold,fontSize:1.125,fontWeight:700,lineHeight:1.625},H5:{fontFamily:kt.Bold,fontSize:1,fontWeight:700,lineHeight:1.5,letterSpacing:.014},H6:{fontFamily:kt.Bold,fontSize:.875,fontWeight:700,lineHeight:1.6,letterSpacing:.012},Body:{fontFamily:kt.Regular,fontSize:1.125,lineHeight:1.625},BodySmall:{fontFamily:kt.Regular,fontSize:1,lineHeight:1.5,letterSpacing:.014},XSmall:{fontFamily:kt.Regular,fontSize:.75,lineHeight:1.2,letterSpacing:.012}}},defaultValue:"base"},Wt=e=>t=>{const n=t.theme,r=mt(Et,n[St.textStyleScheme]);return n.options&&n.options.textStyle?yt(r,e,n.options.textStyle):yt(r,e)},At={D1:{fontFamily:Wt("D1.fontFamily"),fontSize:Wt("D1.fontSize"),fontWeight:Wt("D1.fontWeight"),lineHeight:Wt("D1.lineHeight"),letterSpacing:Wt("D1.letterSpacing")},D2:{fontFamily:Wt("D2.fontFamily"),fontSize:Wt("D2.fontSize"),fontWeight:Wt("D2.fontWeight"),lineHeight:Wt("D2.lineHeight"),letterSpacing:Wt("D2.letterSpacing")},D3:{fontFamily:Wt("D3.fontFamily"),fontSize:Wt("D3.fontSize"),fontWeight:Wt("D3.fontWeight"),lineHeight:Wt("D3.lineHeight"),letterSpacing:Wt("D3.letterSpacing")},D4:{fontFamily:Wt("D4.fontFamily"),fontSize:Wt("D4.fontSize"),fontWeight:Wt("D4.fontWeight"),lineHeight:Wt("D4.lineHeight"),letterSpacing:Wt("D4.letterSpacing")},DBody:{fontFamily:Wt("DBody.fontFamily"),fontSize:Wt("DBody.fontSize"),fontWeight:Wt("DBody.fontWeight"),lineHeight:Wt("DBody.lineHeight"),letterSpacing:Wt("DBody.letterSpacing")},H1:{fontFamily:Wt("H1.fontFamily"),fontSize:Wt("H1.fontSize"),fontWeight:Wt("H1.fontWeight"),lineHeight:Wt("H1.lineHeight"),letterSpacing:Wt("H1.letterSpacing")},H2:{fontFamily:Wt("H2.fontFamily"),fontSize:Wt("H2.fontSize"),fontWeight:Wt("H2.fontWeight"),lineHeight:Wt("H2.lineHeight"),letterSpacing:Wt("H2.letterSpacing")},H3:{fontFamily:Wt("H3.fontFamily"),fontSize:Wt("H3.fontSize"),fontWeight:Wt("H3.fontWeight"),lineHeight:Wt("H3.lineHeight"),letterSpacing:Wt("H3.letterSpacing")},H4:{fontFamily:Wt("H4.fontFamily"),fontSize:Wt("H4.fontSize"),fontWeight:Wt("H4.fontWeight"),lineHeight:Wt("H4.lineHeight"),letterSpacing:Wt("H4.letterSpacing")},H5:{fontFamily:Wt("H5.fontFamily"),fontSize:Wt("H5.fontSize"),fontWeight:Wt("H5.fontWeight"),lineHeight:Wt("H5.lineHeight"),letterSpacing:Wt("H5.letterSpacing")},H6:{fontFamily:Wt("H6.fontFamily"),fontSize:Wt("H6.fontSize"),fontWeight:Wt("H6.fontWeight"),lineHeight:Wt("H6.lineHeight"),letterSpacing:Wt("H6.letterSpacing")},Body:{fontFamily:Wt("Body.fontFamily"),fontSize:Wt("Body.fontSize"),fontWeight:Wt("Body.fontWeight"),lineHeight:Wt("Body.lineHeight"),letterSpacing:Wt("Body.letterSpacing")},BodySmall:{fontFamily:Wt("BodySmall.fontFamily"),fontSize:Wt("BodySmall.fontSize"),fontWeight:Wt("BodySmall.fontWeight"),lineHeight:Wt("BodySmall.lineHeight"),letterSpacing:Wt("BodySmall.letterSpacing")},XSmall:{fontFamily:Wt("XSmall.fontFamily"),fontSize:Wt("XSmall.fontSize"),fontWeight:Wt("XSmall.fontWeight"),lineHeight:Wt("XSmall.lineHeight"),letterSpacing:Wt("XSmall.letterSpacing")}},Nt=e=>{switch(e){case 700:case"bold":return kt.Bold;case 600:case"semibold":return kt.Semibold;case 300:case"light":return kt.Light;case 400:case"regular":return kt.Regular;default:return""}},Ot=(e,t)=>n=>{const r=At[e].fontFamily(n),i=At[e].fontWeight(n);return Object.values(kt).includes(r)?o`
|
|
33
|
+
font-family: ${Nt(t)||Nt(i)||r};
|
|
34
34
|
font-weight: normal !important;
|
|
35
|
-
`:
|
|
36
|
-
font-family: ${
|
|
37
|
-
font-weight: ${(
|
|
38
|
-
`},
|
|
39
|
-
${
|
|
40
|
-
font-size: ${
|
|
35
|
+
`:o`
|
|
36
|
+
font-family: ${r};
|
|
37
|
+
font-weight: ${(jt(t)||i)??"normal"};
|
|
38
|
+
`},jt=e=>{switch(e){case 300:case"light":return 300;case 400:case"regular":return 400;case 600:case"semibold":return 600;case 700:case"bold":return 700;case 900:case"black":return 900;default:return""}},Tt=(e,t,n=!1)=>r=>{const i=At[e],a=i.fontSize(r);return o`
|
|
39
|
+
${Ot(e,t)}
|
|
40
|
+
font-size: ${a}rem !important;
|
|
41
41
|
line-height: ${i.lineHeight}rem !important;
|
|
42
|
-
letter-spacing: ${i.letterSpacing(
|
|
43
|
-
${
|
|
44
|
-
margin-bottom: ${
|
|
42
|
+
letter-spacing: ${i.letterSpacing(r)||0}rem !important;
|
|
43
|
+
${o`
|
|
44
|
+
margin-bottom: ${a*(n?1.05:0)}rem;
|
|
45
45
|
`}
|
|
46
|
-
`},
|
|
46
|
+
`},Vt=(e=!1,t=!1)=>t?o`
|
|
47
47
|
display: block;
|
|
48
|
-
`:
|
|
48
|
+
`:e?o`
|
|
49
49
|
display: inline;
|
|
50
|
-
`:
|
|
50
|
+
`:o`
|
|
51
51
|
display: block;
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
#path {
|
|
58
|
-
fill: ${$e.Neutral[8]};
|
|
59
|
-
}
|
|
60
|
-
`,Le=t=>e(Re,{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 16 16",...t,children:e("g",{fill:"none",fillRule:"evenodd",children:e("g",{id:"path",fillRule:"nonzero",children:e("g",{children:e("g",{children:e("g",{children:e("path",{d:"M8.706 14.603l6.075-6.075c.294-.29.294-.765 0-1.06L8.706 1.398c-.29-.294-.765-.294-1.06 0l-.693.694c-.3.297-.294.78.013 1.072L10.73 6.75H1.75c-.416 0-.75.334-.75.75v1c0 .416.334.75.75.75h8.981l-3.765 3.587c-.304.291-.31.775-.013 1.072l.694.694c.29.294.765.294 1.06 0z",transform:"translate(-2384.000000, -760.000000) translate(2253.000000, 692.000000) translate(16.000000, 64.000000) translate(115.000000, 4.000000) translate(0.000000, 0.000000)"})})})})})})}),Pe=t=>e(Re,{width:"1rem",height:"1rem",viewBox:"0 0 40 40",xmlns:"http://www.w3.org/2000/svg",...t,children:e("path",{id:"path",d:"M20\n\t\t8.639c-.934\n\t\t0-1.742.342-2.43 1.03-.684.684-1.03 1.495-1.03 2.429 0 .931.346 1.742 1.03 2.426.688.688 1.496 1.03 2.43 1.03.931 0 1.742-.342 2.43-1.03.684-.684 1.026-1.495 1.026-2.426 0-.934-.342-1.745-1.026-2.43-.688-.687-1.499-1.03-2.43-1.03m4.61 20.91v-1.976a.959.959 0 0 0-.287-.7.959.959 0 0 0-.7-.286h-.99v-8.232a.954.954 0 0 0-.287-.7.945.945 0 0 0-.7-.29h-5.269a.95.95 0 0 0-.7.29.954.954 0 0 0-.286.7v1.976c0 .271.095.506.286.7a.959.959 0 0 0 .7.287h.99v5.269h-.99a.959.959 0 0 0-.7.286.959.959 0 0 0-.286.7v1.977c0 .274.095.505.286.7a.959.959 0 0 0 .7.286h7.246a.959.959 0 0 0 .7-.287.959.959 0 0 0 .286-.7M20 2.5c3.15 0 6.068.788 8.75 2.365a17.67 17.67 0 0 1 6.385 6.386C36.71 13.933 37.5 16.848 37.5 20c0 3.15-.79 6.068-2.365 8.751a17.71 17.71 0 0 1-6.385 6.385C26.068 36.712 23.15 37.5 20 37.5c-3.153 0-6.068-.788-8.75-2.363a17.71 17.71 0 0 1-6.385-6.385c-1.575-2.683-2.365-5.6-2.365-8.75 0-3.154.79-6.069 2.365-8.751a17.67 17.67 0 0 1 6.385-6.386C13.932 3.288 16.847 2.5 20 2.5",fillRule:"nonzero"})}),Ve=t=>e(Re,{xmlns:"http://www.w3.org/2000/svg",width:"2rem",height:"2rem",viewBox:"0 0 64 64",id:"play-icon",...t,children:e("path",{id:"path",d:"M52.762 37.237 20.474 53.38A5.856 5.856 0 0 1 12 48.143V15.856a5.856 5.856 0 0 1 8.474-5.238l32.288 16.144a5.856 5.856 0 0 1 0 10.475z",fillRule:"nonzero"})}),Ie=t=>e(Re,{xmlns:"http://www.w3.org/2000/svg",width:"2rem",height:"2rem",viewBox:"0 0 32 32",fill:"none",...t,children:e("g",{id:"search",children:e("path",{id:"path",fillRule:"evenodd",clipRule:"evenodd",d:"M7.60986 7.60986C5.86994 9.34977 5 11.445 5 13.8956C5 16.3462 5.86994 18.4414 7.60986 20.1813C9.34977 21.9212 11.445 22.7911 13.8956 22.7911C15.6355 22.7911 17.2345 22.3133 18.6926 21.3576L24.2063 26.8713C24.3044 26.9571 24.4146 27 24.5372 27C24.6597 27 24.77 26.9571 24.868 26.8713L26.8713 24.868C26.9571 24.77 27 24.6597 27 24.5372C27 24.4146 26.9571 24.3044 26.8713 24.2063L21.3576 18.6926C22.3133 17.2345 22.7911 15.6355 22.7911 13.8956C22.7911 11.445 21.9212 9.34977 20.1813 7.60986C18.4414 5.86994 16.3462 5 13.8956 5C11.445 5 9.34977 5.86994 7.60986 7.60986ZM9.59484 18.178C8.4063 16.9894 7.81205 15.562 7.81205 13.8956C7.81205 12.2292 8.4063 10.8017 9.59484 9.61321C10.7834 8.42468 12.2169 7.83042 13.8956 7.83042C15.5742 7.83042 17.0047 8.42162 18.1872 9.60403C19.3696 10.7864 19.9608 12.2169 19.9608 13.8956C19.9608 15.5742 19.3696 17.0047 18.1872 18.1872C17.0047 19.3696 15.5742 19.9608 13.8956 19.9608C12.2169 19.9608 10.7834 19.3665 9.59484 18.178Z"})})}),Xe=n.span`
|
|
61
|
-
font-size: 1rem;
|
|
62
|
-
`;var Me;!function(t){t.D1=n.h1`
|
|
63
|
-
${t=>a`
|
|
64
|
-
${je("D1",t.weight,t.paragraph)}
|
|
65
|
-
color: ${$e.Neutral[1]};
|
|
66
|
-
${Te(t.inline,t.paragraph)}
|
|
52
|
+
`;var Pt,Rt={};Object.defineProperty(Rt,"__esModule",{value:!0});var It=e;const Lt=e=>It.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:It.jsx("path",{d:"M4.25 17.5C3.764 17.5 3.35067 17.33 3.01 16.99C2.67 16.6493 2.5 16.236 2.5 15.75V4.25C2.5 3.764 2.67 3.35067 3.01 3.01C3.35067 2.67 3.764 2.5 4.25 2.5H9.208C9.444 2.5 9.649 2.58667 9.823 2.76C9.99633 2.934 10.083 3.139 10.083 3.375C10.083 3.611 9.99633 3.816 9.823 3.99C9.649 4.16333 9.444 4.25 9.208 4.25H4.25V15.75H15.75V10.792C15.75 10.556 15.8367 10.351 16.01 10.177C16.184 10.0037 16.389 9.917 16.625 9.917C16.861 9.917 17.066 10.0037 17.24 10.177C17.4133 10.351 17.5 10.556 17.5 10.792V15.75C17.5 16.236 17.33 16.6493 16.99 16.99C16.6493 17.33 16.236 17.5 15.75 17.5H4.25ZM7.5 12.5C7.33333 12.3333 7.25 12.1283 7.25 11.885C7.25 11.6423 7.33333 11.4377 7.5 11.271L14.521 4.25H12.708C12.472 4.25 12.2673 4.16333 12.094 3.99C11.92 3.816 11.833 3.611 11.833 3.375C11.833 3.139 11.92 2.934 12.094 2.76C12.2673 2.58667 12.472 2.5 12.708 2.5H16.625C16.861 2.5 17.066 2.58667 17.24 2.76C17.4133 2.934 17.5 3.139 17.5 3.375V7.292C17.5 7.528 17.4133 7.73267 17.24 7.906C17.066 8.08 16.861 8.167 16.625 8.167C16.389 8.167 16.184 8.08 16.01 7.906C15.8367 7.73267 15.75 7.528 15.75 7.292V5.479L8.708 12.521C8.54133 12.6877 8.34367 12.771 8.115 12.771C7.88567 12.771 7.68067 12.6807 7.5 12.5Z",fill:"currentColor"})});var Xt;Lt.displayName="ExternalIcon",Pt=Rt.ExternalIcon=Lt,function(e){e.D1=i.h1`
|
|
53
|
+
${e=>o`
|
|
54
|
+
${Tt("D1",e.weight,e.paragraph)}
|
|
55
|
+
color: ${bt.Neutral[1]};
|
|
56
|
+
${Vt(e.inline,e.paragraph)}
|
|
67
57
|
`}
|
|
68
|
-
`,
|
|
69
|
-
${
|
|
70
|
-
${
|
|
71
|
-
color: ${
|
|
72
|
-
${
|
|
58
|
+
`,e.D2=i.h1`
|
|
59
|
+
${e=>o`
|
|
60
|
+
${Tt("D2",e.weight,e.paragraph)}
|
|
61
|
+
color: ${bt.Neutral[1]};
|
|
62
|
+
${Vt(e.inline,e.paragraph)}
|
|
73
63
|
`}
|
|
74
|
-
`,
|
|
75
|
-
${
|
|
76
|
-
${
|
|
77
|
-
color: ${
|
|
78
|
-
${
|
|
64
|
+
`,e.D3=i.h1`
|
|
65
|
+
${e=>o`
|
|
66
|
+
${Tt("D3",e.weight,e.paragraph)}
|
|
67
|
+
color: ${bt.Neutral[1]};
|
|
68
|
+
${Vt(e.inline,e.paragraph)}
|
|
79
69
|
`}
|
|
80
|
-
`,
|
|
81
|
-
${
|
|
82
|
-
${
|
|
83
|
-
color: ${
|
|
84
|
-
${
|
|
70
|
+
`,e.D4=i.h1`
|
|
71
|
+
${e=>o`
|
|
72
|
+
${Tt("D4",e.weight,e.paragraph)}
|
|
73
|
+
color: ${bt.Neutral[1]};
|
|
74
|
+
${Vt(e.inline,e.paragraph)}
|
|
85
75
|
`}
|
|
86
|
-
`,
|
|
87
|
-
${
|
|
88
|
-
${
|
|
89
|
-
color: ${
|
|
90
|
-
${
|
|
76
|
+
`,e.DBody=i.h1`
|
|
77
|
+
${e=>o`
|
|
78
|
+
${Tt("DBody",e.weight,e.paragraph)}
|
|
79
|
+
color: ${bt.Neutral[1]};
|
|
80
|
+
${Vt(e.inline,e.paragraph)}
|
|
91
81
|
`}
|
|
92
|
-
`,
|
|
93
|
-
${
|
|
94
|
-
${
|
|
95
|
-
color: ${
|
|
96
|
-
${
|
|
82
|
+
`,e.H1=i.h1`
|
|
83
|
+
${e=>o`
|
|
84
|
+
${Tt("H1",e.weight,e.paragraph)}
|
|
85
|
+
color: ${bt.Neutral[1]};
|
|
86
|
+
${Vt(e.inline,e.paragraph)}
|
|
97
87
|
`}
|
|
98
|
-
`,
|
|
99
|
-
${
|
|
100
|
-
${
|
|
101
|
-
color: ${
|
|
102
|
-
${
|
|
88
|
+
`,e.H2=i.h2`
|
|
89
|
+
${e=>o`
|
|
90
|
+
${Tt("H2",e.weight,e.paragraph)}
|
|
91
|
+
color: ${bt.Neutral[1]};
|
|
92
|
+
${Vt(e.inline,e.paragraph)}
|
|
103
93
|
`}
|
|
104
|
-
`,
|
|
105
|
-
${
|
|
106
|
-
${
|
|
107
|
-
color: ${
|
|
108
|
-
${
|
|
94
|
+
`,e.H3=i.h3`
|
|
95
|
+
${e=>o`
|
|
96
|
+
${Tt("H3",e.weight,e.paragraph)}
|
|
97
|
+
color: ${bt.Neutral[1]};
|
|
98
|
+
${Vt(e.inline,e.paragraph)}
|
|
109
99
|
`}
|
|
110
|
-
`,
|
|
111
|
-
${
|
|
112
|
-
${
|
|
113
|
-
color: ${
|
|
114
|
-
${
|
|
100
|
+
`,e.H4=i.h4`
|
|
101
|
+
${e=>o`
|
|
102
|
+
${Tt("H4",e.weight,e.paragraph)}
|
|
103
|
+
color: ${bt.Neutral[1]};
|
|
104
|
+
${Vt(e.inline,e.paragraph)}
|
|
115
105
|
`}
|
|
116
|
-
`,
|
|
117
|
-
${
|
|
118
|
-
${
|
|
119
|
-
color: ${
|
|
120
|
-
${
|
|
106
|
+
`,e.H5=i.h5`
|
|
107
|
+
${e=>o`
|
|
108
|
+
${Tt("H5",e.weight,e.paragraph)}
|
|
109
|
+
color: ${bt.Neutral[1]};
|
|
110
|
+
${Vt(e.inline,e.paragraph)}
|
|
121
111
|
`}
|
|
122
|
-
`,
|
|
123
|
-
${
|
|
124
|
-
${
|
|
125
|
-
color: ${
|
|
126
|
-
${
|
|
112
|
+
`,e.H6=i.h6`
|
|
113
|
+
${e=>o`
|
|
114
|
+
${Tt("H6",e.weight,e.paragraph)}
|
|
115
|
+
color: ${bt.Neutral[1]};
|
|
116
|
+
${Vt(e.inline,e.paragraph)}
|
|
127
117
|
`}
|
|
128
|
-
`,
|
|
129
|
-
${
|
|
130
|
-
${
|
|
131
|
-
color: ${
|
|
132
|
-
${
|
|
118
|
+
`,e.Body=i.p`
|
|
119
|
+
${e=>o`
|
|
120
|
+
${Tt("Body",e.weight,e.paragraph)}
|
|
121
|
+
color: ${bt.Neutral[1]};
|
|
122
|
+
${Vt(e.inline,e.paragraph)}
|
|
133
123
|
`}
|
|
134
|
-
`,
|
|
135
|
-
${
|
|
136
|
-
${
|
|
137
|
-
color: ${
|
|
138
|
-
${
|
|
124
|
+
`,e.BodySmall=i.p`
|
|
125
|
+
${e=>o`
|
|
126
|
+
${Tt("BodySmall",e.weight,e.paragraph)}
|
|
127
|
+
color: ${bt.Neutral[1]};
|
|
128
|
+
${Vt(e.inline,e.paragraph)}
|
|
139
129
|
`}
|
|
140
|
-
`,
|
|
141
|
-
${
|
|
142
|
-
${
|
|
143
|
-
color: ${
|
|
144
|
-
${
|
|
130
|
+
`,e.XSmall=i.span`
|
|
131
|
+
${e=>o`
|
|
132
|
+
${Tt("XSmall",e.weight,e.paragraph)}
|
|
133
|
+
color: ${bt.Neutral[1]};
|
|
134
|
+
${Vt(e.inline,e.paragraph)}
|
|
145
135
|
`}
|
|
146
|
-
`,
|
|
147
|
-
${
|
|
148
|
-
${
|
|
149
|
-
color: ${
|
|
136
|
+
`,e.Hyperlink={Default:e=>Zt({...e,textStyle:"Body"}),Small:e=>Zt({...e,textStyle:"BodySmall"})}}(Xt||(Xt={}));const Gt=i.a`
|
|
137
|
+
${e=>o`
|
|
138
|
+
${Tt(e.textStyle,e.weight)}
|
|
139
|
+
color: ${bt.Primary};
|
|
150
140
|
text-decoration: none;
|
|
151
141
|
|
|
152
142
|
:hover,
|
|
153
143
|
:active,
|
|
154
144
|
:focus {
|
|
155
|
-
color: ${
|
|
145
|
+
color: ${bt.Secondary};
|
|
146
|
+
|
|
147
|
+
svg {
|
|
148
|
+
color: ${bt.Secondary};
|
|
149
|
+
}
|
|
156
150
|
}
|
|
157
151
|
`}
|
|
158
|
-
`,
|
|
152
|
+
`,Mt=i(Pt)`
|
|
153
|
+
height: 1rem;
|
|
154
|
+
width: 1rem;
|
|
159
155
|
margin-left: 0.4rem;
|
|
160
|
-
|
|
156
|
+
vertical-align: middle;
|
|
157
|
+
`,Zt=({external:e=!1,children:r,...i})=>t(Gt,{...i,children:[r,e&&n(Mt,{})]});var Ut;!function(e){e[e.Subpage=0]="Subpage",e[e.Domain=1]="Domain"}(Ut||(Ut={}));const Yt=i.button`
|
|
161
158
|
padding: 0.5rem 1rem;
|
|
162
159
|
min-width: 4rem;
|
|
163
160
|
border-radius: 4px;
|
|
@@ -176,22 +173,22 @@ import{jsxs as t,jsx as e}from"react/jsx-runtime";import r from"react";import n,
|
|
|
176
173
|
// -----------------------------------------------------------------------------
|
|
177
174
|
// BUTTON STYLE + TEXT COLOR
|
|
178
175
|
// -----------------------------------------------------------------------------
|
|
179
|
-
${
|
|
180
|
-
background-color: ${
|
|
181
|
-
border: 1px solid ${
|
|
176
|
+
${e=>{switch(e.$buttonStyle){case"secondary":return o`
|
|
177
|
+
background-color: ${bt.Neutral[8](e)};
|
|
178
|
+
border: 1px solid ${bt.Primary(e)};
|
|
182
179
|
|
|
183
180
|
span {
|
|
184
|
-
color: ${
|
|
181
|
+
color: ${bt.Primary(e)};
|
|
185
182
|
}
|
|
186
|
-
`;case"light":return
|
|
187
|
-
background-color: ${
|
|
188
|
-
border: 1px solid ${
|
|
183
|
+
`;case"light":return o`
|
|
184
|
+
background-color: ${bt.Neutral[8](e)};
|
|
185
|
+
border: 1px solid ${bt.Neutral[5](e)};
|
|
189
186
|
|
|
190
187
|
span {
|
|
191
|
-
color: ${
|
|
188
|
+
color: ${bt.Primary(e)};
|
|
192
189
|
}
|
|
193
|
-
`;case"disabled":return
|
|
194
|
-
background-color: ${
|
|
190
|
+
`;case"disabled":return o`
|
|
191
|
+
background-color: ${bt.Neutral[6](e)};
|
|
195
192
|
border: 1px solid transparent;
|
|
196
193
|
cursor: not-allowed;
|
|
197
194
|
|
|
@@ -200,9 +197,9 @@ import{jsxs as t,jsx as e}from"react/jsx-runtime";import r from"react";import n,
|
|
|
200
197
|
}
|
|
201
198
|
|
|
202
199
|
span {
|
|
203
|
-
color: ${
|
|
200
|
+
color: ${bt.Neutral[3](e)};
|
|
204
201
|
}
|
|
205
|
-
`;case"link":return
|
|
202
|
+
`;case"link":return o`
|
|
206
203
|
background-color: transparent;
|
|
207
204
|
border: none;
|
|
208
205
|
border-radius: unset;
|
|
@@ -211,58 +208,58 @@ import{jsxs as t,jsx as e}from"react/jsx-runtime";import r from"react";import n,
|
|
|
211
208
|
box-shadow: none;
|
|
212
209
|
}
|
|
213
210
|
|
|
214
|
-
color: ${
|
|
211
|
+
color: ${bt.Primary};
|
|
215
212
|
:hover,
|
|
216
213
|
:active,
|
|
217
214
|
:focus {
|
|
218
215
|
span {
|
|
219
|
-
color: ${
|
|
216
|
+
color: ${bt.Secondary};
|
|
220
217
|
}
|
|
221
218
|
}
|
|
222
|
-
`;default:return
|
|
223
|
-
background-color: ${
|
|
219
|
+
`;default:return o`
|
|
220
|
+
background-color: ${bt.Primary(e)};
|
|
224
221
|
border: 1px solid transparent;
|
|
225
222
|
|
|
226
|
-
${
|
|
223
|
+
${Bt.mobileL} {
|
|
227
224
|
width: 100%;
|
|
228
225
|
}
|
|
229
226
|
|
|
230
227
|
span {
|
|
231
|
-
color: ${
|
|
228
|
+
color: ${bt.Neutral[8](e)};
|
|
232
229
|
}
|
|
233
230
|
`}}}
|
|
234
231
|
|
|
235
232
|
// -----------------------------------------------------------------------------
|
|
236
233
|
// BUTTON SIZE + TEXT SIZE
|
|
237
234
|
// -----------------------------------------------------------------------------
|
|
238
|
-
${
|
|
235
|
+
${e=>"small"===e.$buttonSizeStyle?o`
|
|
239
236
|
height: 2.5rem;
|
|
240
237
|
span {
|
|
241
|
-
${
|
|
238
|
+
${Tt("H5","semibold")}
|
|
242
239
|
}
|
|
243
240
|
|
|
244
|
-
${
|
|
241
|
+
${Bt.mobileS} {
|
|
245
242
|
height: auto;
|
|
246
243
|
}
|
|
247
|
-
`:
|
|
244
|
+
`:o`
|
|
248
245
|
height: 3rem;
|
|
249
246
|
span {
|
|
250
|
-
${
|
|
247
|
+
${Tt("H4","semibold")}
|
|
251
248
|
}
|
|
252
249
|
|
|
253
|
-
${
|
|
250
|
+
${Bt.mobileS} {
|
|
254
251
|
height: auto;
|
|
255
252
|
}
|
|
256
253
|
`}
|
|
257
|
-
`,
|
|
254
|
+
`,qt=i((({color:e,className:r,size:i=18})=>t(Dt,{className:r,$size:i,$color:e,children:[n(zt,{id:"inner1",$size:i-2,$borderWidth:2}),n(wt,{id:"inner2",$size:i-2,$borderWidth:2}),n(xt,{id:"inner3",$size:i-2,$borderWidth:2}),n(Ct,{id:"inner4",$size:i-2,$borderWidth:2})]})))`
|
|
258
255
|
margin-right: 0.5rem;
|
|
259
|
-
${
|
|
256
|
+
${e=>{let t;switch(e.$buttonStyle){case"secondary":case"light":case"link":t=bt.Primary(e);break;case"disabled":t=bt.Neutral[3](e);break;default:t=bt.Neutral[8](e)}return o`
|
|
260
257
|
#inner1,
|
|
261
258
|
#inner2,
|
|
262
259
|
#inner3,
|
|
263
260
|
#inner4 {
|
|
264
|
-
border-color: ${
|
|
261
|
+
border-color: ${t} transparent transparent transparent;
|
|
265
262
|
}
|
|
266
263
|
`}}
|
|
267
|
-
`,
|
|
264
|
+
`,Jt={Default:r.forwardRef(((e,r)=>{const{children:i,disabled:a=!1,loading:o=!1,styleType:l="default",...c}=e,d={$buttonStyle:a?"disabled":l,$buttonSizeStyle:"default"};return t(Yt,{ref:r,"data-testid":c["data-testid"]||"button",disabled:a,...d,...c,children:[o&&n(qt,{...d}),n("span",{children:i})]})})),Small:r.forwardRef(((e,r)=>{const{children:i,disabled:a=!1,loading:o=!1,styleType:l="default",...c}=e,d={$buttonStyle:a?"disabled":l,$buttonSizeStyle:"small"};return t(Yt,{ref:r,"data-testid":c["data-testid"]||"button",disabled:a,...d,...c,children:[o&&n(qt,{...d,size:16}),n("span",{children:i})]})}))};export{Jt as Button};
|
|
268
265
|
//# sourceMappingURL=index.js.map
|