tuix-webcomponents 0.0.36 → 0.0.37

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 CHANGED
@@ -12,8 +12,8 @@ npm i tuix-webcomponents
12
12
 
13
13
  ### Webbundle version
14
14
 
15
- Webbundle Link: https://tuix-webcomponents.s3.eu-central-1.amazonaws.com/build-c55bee0@0.95.1.js
16
- Styles Link: https://tuix-webcomponents.s3.eu-central-1.amazonaws.com/build-c55bee0@0.95.1.css
15
+ Webbundle Link: https://tuix-webcomponents.s3.eu-central-1.amazonaws.com/build-32a19d9@0.95.2.js
16
+ Styles Link: https://tuix-webcomponents.s3.eu-central-1.amazonaws.com/build-32a19d9@0.95.2.css
17
17
 
18
18
  ### React
19
19
 
@@ -3063,112 +3063,6 @@
3063
3063
  }
3064
3064
  ]
3065
3065
  },
3066
- {
3067
- "kind": "javascript-module",
3068
- "path": "src/tuix-paper/TuixPaper.styles.ts",
3069
- "declarations": [
3070
- {
3071
- "kind": "variable",
3072
- "name": "paperStyles",
3073
- "default": "css`\n ${unsafeCSS(`\n .elevation {\n background-color: ${Palette.WHITE};\n }\n .elevation.dark_${PaperElevation.VARIANT_0} {\n background-color: ${Palette.BLACK};\n }\n ${calculatedStyles}\n .elevation.variant_${PaperElevation.VARIANT_4} {\n box-shadow: 0px 7px 24px ${Palette.SHADOW};\n }\n .elevation.dark_${PaperElevation.VARIANT_4} {\n background-color: rgb(33, 33, 40);\n }\n`)}\n`"
3074
- }
3075
- ],
3076
- "exports": [
3077
- {
3078
- "kind": "js",
3079
- "name": "paperStyles",
3080
- "declaration": {
3081
- "name": "paperStyles",
3082
- "module": "src/tuix-paper/TuixPaper.styles.ts"
3083
- }
3084
- }
3085
- ]
3086
- },
3087
- {
3088
- "kind": "javascript-module",
3089
- "path": "src/tuix-paper/TuixPaper.ts",
3090
- "declarations": [
3091
- {
3092
- "kind": "class",
3093
- "description": "",
3094
- "name": "TuixPaper",
3095
- "members": [
3096
- {
3097
- "kind": "field",
3098
- "name": "elevation",
3099
- "attribute": "elevation"
3100
- },
3101
- {
3102
- "kind": "field",
3103
- "name": "borderRadius",
3104
- "attribute": "border-radius"
3105
- },
3106
- {
3107
- "kind": "field",
3108
- "name": "dark",
3109
- "type": {
3110
- "text": "boolean"
3111
- },
3112
- "default": "false",
3113
- "attribute": "dark",
3114
- "reflects": true
3115
- },
3116
- {
3117
- "kind": "method",
3118
- "name": "_getOptionalClasses",
3119
- "privacy": "private",
3120
- "return": {
3121
- "type": {
3122
- "text": "ClassInfo"
3123
- }
3124
- }
3125
- }
3126
- ],
3127
- "attributes": [
3128
- {
3129
- "name": "elevation",
3130
- "fieldName": "elevation"
3131
- },
3132
- {
3133
- "name": "border-radius",
3134
- "fieldName": "borderRadius"
3135
- },
3136
- {
3137
- "name": "dark",
3138
- "type": {
3139
- "text": "boolean"
3140
- },
3141
- "default": "false",
3142
- "fieldName": "dark"
3143
- }
3144
- ],
3145
- "superclass": {
3146
- "name": "LitElement",
3147
- "package": "lit"
3148
- },
3149
- "tagName": "tuix-paper",
3150
- "customElement": true
3151
- }
3152
- ],
3153
- "exports": [
3154
- {
3155
- "kind": "js",
3156
- "name": "TuixPaper",
3157
- "declaration": {
3158
- "name": "TuixPaper",
3159
- "module": "src/tuix-paper/TuixPaper.ts"
3160
- }
3161
- },
3162
- {
3163
- "kind": "custom-element-definition",
3164
- "name": "tuix-paper",
3165
- "declaration": {
3166
- "name": "TuixPaper",
3167
- "module": "src/tuix-paper/TuixPaper.ts"
3168
- }
3169
- }
3170
- ]
3171
- },
3172
3066
  {
3173
3067
  "kind": "javascript-module",
3174
3068
  "path": "src/tuix-radio-button/TuixRadioButton.styles.ts",
@@ -4036,56 +3930,43 @@
4036
3930
  },
4037
3931
  {
4038
3932
  "kind": "javascript-module",
4039
- "path": "src/tuix-text/TuixText.styles.ts",
3933
+ "path": "src/tuix-paper/TuixPaper.styles.ts",
4040
3934
  "declarations": [
4041
3935
  {
4042
3936
  "kind": "variable",
4043
- "name": "linkFontStyles",
4044
- "default": "css`\n ${unsafeCSS(`\n ${slottedClassName(TextSize.Link)} {\n font-family: 'Rubik', sans-serif;\n font-size: 1rem;\n font-weight: 400;\n line-height: 1.25rem;\n }\n @media only screen and (max-width: ${ScreenSizes.TABLET}px) {\n ${slottedClassName(TextSize.Link)} {\n font-size: 0.938rem;\n line-height: 1.125rem;\n }\n }\n @media only screen and (max-width: ${ScreenSizes.MOBILE}px) {\n ${slottedClassName(TextSize.Link)} {\n font-size: 0.875rem;\n line-height: 1rem;\n }\n }\n`)}\n`"
4045
- },
4046
- {
4047
- "kind": "variable",
4048
- "name": "textStyles",
4049
- "default": "css`\n ${unsafeCSS(`\n ${slottedClassName(TextSize.XXL)} {\n font-size: 6rem;\n font-weight: 600;\n line-height: 6.25rem;\n }\n ${slottedClassName(TextSize.XL)} {\n font-size: 3.375rem;\n font-weight: 600;\n line-height: 3.688rem;\n }\n\n ${slottedClassName(TextSize.L)} {\n font-size: 2.813rem;\n font-weight: 600;\n line-height: 3.375rem;\n }\n\n ${slottedClassName(TextSize.M)} {\n font-size: 2.313rem;\n font-weight: 600;\n line-height: 2.75rem;\n }\n\n ${slottedClassName(TextSize.S)} {\n font-size: 1.938rem;\n font-weight: 600;\n line-height: 2.313rem;\n }\n\n ${slottedClassName(TextSize.XS)} {\n font-size: 1.313rem;\n font-weight: 600;\n line-height: 1.563rem;\n }\n\n ${slottedClassName(TextSize.Body1)} {\n font-size: 1.125rem;\n font-weight: 300;\n line-height: 1.688rem;\n }\n\n ${slottedClassName(TextSize.Body2)} {\n font-size: 0.938rem;\n font-weight: 300;\n line-height: 1.313rem;\n }\n\n ${slottedClassName(TextSize.BulletList)} {\n font-size: 1.125rem;\n font-weight: 300;\n line-height: 1.375rem;\n }\n\n ${slottedClassName(TextSize.FieldPlaceholder)} {\n font-size: 1rem;\n font-weight: 300;\n line-height: 1.25rem;\n }\n\n ${slottedClassName(TextSize.FieldTitle)} {\n font-size: 0.75rem;\n font-weight: 300;\n line-height: 0.875rem;\n }\n\n ${slottedClassName(TextSize.FieldDescription)} {\n font-size: 0.75rem;\n font-weight: 300;\n line-height: 0.875rem;\n }\n\n @media only screen and (max-width: ${ScreenSizes.TABLET}px) {\n ${slottedClassName(TextSize.XXL)} {\n font-size: 3rem;\n font-weight: 600;\n line-height: 3.3125rem;\n }\n ${slottedClassName(TextSize.XL)} {\n font-size: 3rem;\n line-height: 3.313rem;\n }\n ${slottedClassName(TextSize.L)} {\n font-size: 2.5rem;\n line-height: 3rem;\n }\n ${slottedClassName(TextSize.M)} {\n font-size: 2.063rem;\n line-height: 2.5rem;\n }\n ${slottedClassName(TextSize.S)} {\n font-size: 1.75rem;\n line-height: 2.125rem;\n }\n ${slottedClassName(TextSize.XS)} {\n font-size: 1.188rem;\n line-height: 1.438rem;\n }\n\n ${slottedClassName(TextSize.Body1)} {\n font-size: 1rem;\n line-height: 1.5rem;\n }\n\n ${slottedClassName(TextSize.Body2)} {\n font-size: 0.875rem;\n line-height: 1.125rem;\n }\n\n ${slottedClassName(TextSize.BulletList)} {\n font-size: 1rem;\n line-height: 1.1875rem;\n }\n\n ${slottedClassName(TextSize.FieldPlaceholder)} {\n font-size: 0.938rem;\n line-height: 1.125rem;\n }\n }\n\n @media only screen and (max-width: ${ScreenSizes.MOBILE}px) {\n ${slottedClassName(TextSize.XXL)} {\n font-size: 1.8125rem;\n font-weight: 600;\n line-height: 2rem;\n }\n ${slottedClassName(TextSize.XL)} {\n font-size: 2.625rem;\n line-height: 2.875rem;\n }\n ${slottedClassName(TextSize.L)} {\n font-size: 2.188rem;\n line-height: 2.4375rem;\n }\n ${slottedClassName(TextSize.M)} {\n font-size: 1.813rem;\n line-height: 2rem;\n }\n ${slottedClassName(TextSize.S)} {\n font-size: 1.5rem;\n line-height: 1.625rem;\n }\n ${slottedClassName(TextSize.XS)} {\n font-size: 1.063rem;\n line-height: 1.1875rem;\n }\n ${slottedClassName(TextSize.Body1)} {\n font-size: 0.875rem;\n font-weight: 300;\n line-height: 1.313rem;\n }\n ${slottedClassName(TextSize.Body2)} {\n font-size: 0.75rem;\n line-height: 1rem;\n }\n ${slottedClassName(TextSize.BulletList)} {\n font-size: 0.875rem;\n font-weight: 300;\n line-height: 1.0625rem;\n }\n ${slottedClassName(TextSize.FieldPlaceholder)} {\n font-size: 0.875rem;\n font-weight: 300;\n line-height: 1rem;\n }\n }\n`)}\n`"
3937
+ "name": "paperStyles",
3938
+ "default": "css`\n ${unsafeCSS(`\n .elevation {\n background-color: ${Palette.WHITE};\n }\n .elevation.dark_${PaperElevation.VARIANT_0} {\n background-color: ${Palette.BLACK};\n }\n ${calculatedStyles}\n .elevation.variant_${PaperElevation.VARIANT_4} {\n box-shadow: 0px 7px 24px ${Palette.SHADOW};\n }\n .elevation.dark_${PaperElevation.VARIANT_4} {\n background-color: rgb(33, 33, 40);\n }\n`)}\n`"
4050
3939
  }
4051
3940
  ],
4052
3941
  "exports": [
4053
3942
  {
4054
3943
  "kind": "js",
4055
- "name": "linkFontStyles",
4056
- "declaration": {
4057
- "name": "linkFontStyles",
4058
- "module": "src/tuix-text/TuixText.styles.ts"
4059
- }
4060
- },
4061
- {
4062
- "kind": "js",
4063
- "name": "textStyles",
3944
+ "name": "paperStyles",
4064
3945
  "declaration": {
4065
- "name": "textStyles",
4066
- "module": "src/tuix-text/TuixText.styles.ts"
3946
+ "name": "paperStyles",
3947
+ "module": "src/tuix-paper/TuixPaper.styles.ts"
4067
3948
  }
4068
3949
  }
4069
3950
  ]
4070
3951
  },
4071
3952
  {
4072
3953
  "kind": "javascript-module",
4073
- "path": "src/tuix-text/TuixText.ts",
3954
+ "path": "src/tuix-paper/TuixPaper.ts",
4074
3955
  "declarations": [
4075
3956
  {
4076
3957
  "kind": "class",
4077
3958
  "description": "",
4078
- "name": "TuixText",
3959
+ "name": "TuixPaper",
4079
3960
  "members": [
4080
3961
  {
4081
3962
  "kind": "field",
4082
- "name": "size",
4083
- "attribute": "size"
3963
+ "name": "elevation",
3964
+ "attribute": "elevation"
4084
3965
  },
4085
3966
  {
4086
3967
  "kind": "field",
4087
- "name": "color",
4088
- "attribute": "color"
3968
+ "name": "borderRadius",
3969
+ "attribute": "border-radius"
4089
3970
  },
4090
3971
  {
4091
3972
  "kind": "field",
@@ -4099,28 +3980,23 @@
4099
3980
  },
4100
3981
  {
4101
3982
  "kind": "method",
4102
- "name": "_getTextColor",
4103
- "privacy": "private"
4104
- },
4105
- {
4106
- "kind": "field",
4107
- "name": "_getStyleMap",
4108
- "privacy": "private"
4109
- },
4110
- {
4111
- "kind": "field",
4112
- "name": "_getClassMap",
4113
- "privacy": "private"
3983
+ "name": "_getOptionalClasses",
3984
+ "privacy": "private",
3985
+ "return": {
3986
+ "type": {
3987
+ "text": "ClassInfo"
3988
+ }
3989
+ }
4114
3990
  }
4115
3991
  ],
4116
3992
  "attributes": [
4117
3993
  {
4118
- "name": "size",
4119
- "fieldName": "size"
3994
+ "name": "elevation",
3995
+ "fieldName": "elevation"
4120
3996
  },
4121
3997
  {
4122
- "name": "color",
4123
- "fieldName": "color"
3998
+ "name": "border-radius",
3999
+ "fieldName": "borderRadius"
4124
4000
  },
4125
4001
  {
4126
4002
  "name": "dark",
@@ -4135,25 +4011,25 @@
4135
4011
  "name": "LitElement",
4136
4012
  "package": "lit"
4137
4013
  },
4138
- "tagName": "tuix-text",
4014
+ "tagName": "tuix-paper",
4139
4015
  "customElement": true
4140
4016
  }
4141
4017
  ],
4142
4018
  "exports": [
4143
4019
  {
4144
4020
  "kind": "js",
4145
- "name": "TuixText",
4021
+ "name": "TuixPaper",
4146
4022
  "declaration": {
4147
- "name": "TuixText",
4148
- "module": "src/tuix-text/TuixText.ts"
4023
+ "name": "TuixPaper",
4024
+ "module": "src/tuix-paper/TuixPaper.ts"
4149
4025
  }
4150
4026
  },
4151
4027
  {
4152
4028
  "kind": "custom-element-definition",
4153
- "name": "tuix-text",
4029
+ "name": "tuix-paper",
4154
4030
  "declaration": {
4155
- "name": "TuixText",
4156
- "module": "src/tuix-text/TuixText.ts"
4031
+ "name": "TuixPaper",
4032
+ "module": "src/tuix-paper/TuixPaper.ts"
4157
4033
  }
4158
4034
  }
4159
4035
  ]
@@ -4324,95 +4200,219 @@
4324
4200
  },
4325
4201
  {
4326
4202
  "kind": "javascript-module",
4327
- "path": "src/tuix-toggle-button/TuixToggleButton.styles.ts",
4203
+ "path": "src/tuix-text/TuixText.styles.ts",
4328
4204
  "declarations": [
4329
4205
  {
4330
4206
  "kind": "variable",
4331
- "name": "toggleButtonHostStyles",
4332
- "default": "css`\n ${hostStyles}\n :host {\n --t-bg-color-primary: ${unsafeCSS(Palette.PRIMARY_300)};\n --t-bg-color-disabled: ${unsafeCSS(Palette.PRIMARY_100)};\n --t-toggle-shadow-color-focus: rgba(142, 141, 208, 0.16);\n }\n :host([dark]) {\n --t-bg-color-primary: ${unsafeCSS(DarkPalette.PRIMARY_800)};\n --t-bg-color-disabled: ${unsafeCSS(DarkPalette.PRIMARY_800)};\n --t-bg-color-inner: ${unsafeCSS(DarkPalette.WHITE)};\n }\n :host([dark][disabled]) {\n --t-bg-color-inner: ${unsafeCSS(DarkPalette.MAIN)};\n }\n`"
4333
- },
4334
- {
4335
- "kind": "variable",
4336
- "name": "toggleButtonContainerStyles",
4337
- "default": "css`\n .t-toggle-button-full-container {\n display: flex;\n justify-content: var(--t-label-right-default-justify, flex-start);\n cursor: pointer;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n }\n :host([disabled]) .t-toggle-button-full-container {\n cursor: not-allowed;\n }\n .t-toggle-button-container {\n --t-toggle-button-size-box: 3rem;\n --t-toggle-button-shadow-width: 2px;\n --t-toggle-inner-radio: 1rem;\n display: block;\n position: relative;\n height: calc(var(--t-toggle-button-size-box) / 2);\n width: var(--t-toggle-button-size-box);\n min-width: var(--t-toggle-button-size-box);\n }\n .t-toggle-button-container .t-toggle-button {\n position: absolute;\n opacity: 0;\n height: 0;\n width: 0;\n }\n .t-radio-button-full-container:not(.t-with-label-left) {\n justify-content: flex-start;\n }\n @media only screen and (max-width: ${ScreenSizes.MOBILE}px) {\n .t-toggle-button-container {\n --t-toggle-button-size-box: 2rem;\n --t-toggle-button-shadow-width: 1px;\n --t-toggle-inner-radio: 0.75rem;\n margin-top: 1px;\n }\n }\n`"
4338
- },
4339
- {
4340
- "kind": "variable",
4341
- "name": "toggleButtonCheckmarkStyles",
4342
- "default": "css`\n .t-toggle-button-container .t-toggle-button-checkmark {\n position: absolute;\n top: 0;\n left: 0;\n display: flex;\n height: calc(var(--t-toggle-button-size-box) / 2);\n width: var(--t-toggle-button-size-box);\n border-radius: 0.75rem;\n background-color: var(--t-bg-color-primary);\n box-sizing: border-box;\n }\n .t-toggle-button-container\n .t-toggle-button:checked\n ~ .t-toggle-button-checkmark {\n background-color: var(--t-main-color-tuix);\n }\n .t-toggle-button-full-container:hover\n .t-toggle-button-container\n .t-toggle-button-checkmark {\n box-shadow: 0px 4px 4px 0px var(--t-toggle-shadow-color-focus);\n }\n .t-toggle-button-container\n .t-toggle-button:focus\n ~ .t-toggle-button-checkmark {\n box-shadow: 0 0 0px var(--t-toggle-button-shadow-width)\n var(--t-stroke-color-focus);\n }\n .t-toggle-button-container\n .t-toggle-button:disabled\n ~ .t-toggle-button-checkmark {\n background-color: var(--t-bg-color-disabled);\n box-shadow: none;\n }\n`"
4343
- },
4344
- {
4345
- "kind": "variable",
4346
- "name": "toggleButtonInnerStyles",
4347
- "default": "css`\n .t-toggle-button-container .t-toggle-button-checkmark .t-toggle-button-inner {\n background-color: var(--t-bg-color-inner, ${unsafeCSS(Palette.WHITE)});\n margin: auto auto auto calc(var(--t-toggle-button-shadow-width) * 2);\n height: var(--t-toggle-inner-radio);\n width: var(--t-toggle-inner-radio);\n border-radius: 50%;\n display: block;\n transition: 0.3s;\n }\n .t-toggle-button-container\n .t-toggle-button:checked\n ~ .t-toggle-button-checkmark\n .t-toggle-button-inner {\n transform: translateX(\n calc(\n var(--t-toggle-button-size-box) - var(--t-toggle-inner-radio) -\n var(--t-toggle-button-shadow-width) * 4\n )\n );\n }\n`"
4207
+ "name": "linkFontStyles",
4208
+ "default": "css`\n ${unsafeCSS(`\n ${slottedClassName(TextSize.Link)} {\n font-family: 'Rubik', sans-serif;\n font-size: 1rem;\n font-weight: 400;\n line-height: 1.25rem;\n }\n @media only screen and (max-width: ${ScreenSizes.TABLET}px) {\n ${slottedClassName(TextSize.Link)} {\n font-size: 0.938rem;\n line-height: 1.125rem;\n }\n }\n @media only screen and (max-width: ${ScreenSizes.MOBILE}px) {\n ${slottedClassName(TextSize.Link)} {\n font-size: 0.875rem;\n line-height: 1rem;\n }\n }\n`)}\n`"
4348
4209
  },
4349
4210
  {
4350
4211
  "kind": "variable",
4351
- "name": "toggleButtonLabelStyles",
4352
- "default": "css`\n .t-toggle-button-label {\n display: block;\n color: var(--t-text-color-label);\n margin-left: 0.625rem;\n }\n .t-toggle-button-full-container.t-with-label-left {\n flex-direction: row-reverse;\n justify-content: var(--t-label-left-default-justify, space-between);\n }\n .t-toggle-button-full-container.t-with-label-left .t-toggle-button-label {\n margin-right: 0.625rem;\n margin-left: 0;\n }\n`"
4212
+ "name": "textStyles",
4213
+ "default": "css`\n ${unsafeCSS(`\n ${slottedClassName(TextSize.XXL)} {\n font-size: 6rem;\n font-weight: 600;\n line-height: 6.25rem;\n }\n ${slottedClassName(TextSize.XL)} {\n font-size: 3.375rem;\n font-weight: 600;\n line-height: 3.688rem;\n }\n\n ${slottedClassName(TextSize.L)} {\n font-size: 2.813rem;\n font-weight: 600;\n line-height: 3.375rem;\n }\n\n ${slottedClassName(TextSize.M)} {\n font-size: 2.313rem;\n font-weight: 600;\n line-height: 2.75rem;\n }\n\n ${slottedClassName(TextSize.S)} {\n font-size: 1.938rem;\n font-weight: 600;\n line-height: 2.313rem;\n }\n\n ${slottedClassName(TextSize.XS)} {\n font-size: 1.313rem;\n font-weight: 600;\n line-height: 1.563rem;\n }\n\n ${slottedClassName(TextSize.Body1)} {\n font-size: 1.125rem;\n font-weight: 300;\n line-height: 1.688rem;\n }\n\n ${slottedClassName(TextSize.Body2)} {\n font-size: 0.938rem;\n font-weight: 300;\n line-height: 1.313rem;\n }\n\n ${slottedClassName(TextSize.BulletList)} {\n font-size: 1.125rem;\n font-weight: 300;\n line-height: 1.375rem;\n }\n\n ${slottedClassName(TextSize.FieldPlaceholder)} {\n font-size: 1rem;\n font-weight: 300;\n line-height: 1.25rem;\n }\n\n ${slottedClassName(TextSize.FieldTitle)} {\n font-size: 0.75rem;\n font-weight: 300;\n line-height: 0.875rem;\n }\n\n ${slottedClassName(TextSize.FieldDescription)} {\n font-size: 0.75rem;\n font-weight: 300;\n line-height: 0.875rem;\n }\n\n @media only screen and (max-width: ${ScreenSizes.TABLET}px) {\n ${slottedClassName(TextSize.XXL)} {\n font-size: 3rem;\n font-weight: 600;\n line-height: 3.3125rem;\n }\n ${slottedClassName(TextSize.XL)} {\n font-size: 3rem;\n line-height: 3.313rem;\n }\n ${slottedClassName(TextSize.L)} {\n font-size: 2.5rem;\n line-height: 3rem;\n }\n ${slottedClassName(TextSize.M)} {\n font-size: 2.063rem;\n line-height: 2.5rem;\n }\n ${slottedClassName(TextSize.S)} {\n font-size: 1.75rem;\n line-height: 2.125rem;\n }\n ${slottedClassName(TextSize.XS)} {\n font-size: 1.188rem;\n line-height: 1.438rem;\n }\n\n ${slottedClassName(TextSize.Body1)} {\n font-size: 1rem;\n line-height: 1.5rem;\n }\n\n ${slottedClassName(TextSize.Body2)} {\n font-size: 0.875rem;\n line-height: 1.125rem;\n }\n\n ${slottedClassName(TextSize.BulletList)} {\n font-size: 1rem;\n line-height: 1.1875rem;\n }\n\n ${slottedClassName(TextSize.FieldPlaceholder)} {\n font-size: 0.938rem;\n line-height: 1.125rem;\n }\n }\n\n @media only screen and (max-width: ${ScreenSizes.MOBILE}px) {\n ${slottedClassName(TextSize.XXL)} {\n font-size: 1.8125rem;\n font-weight: 600;\n line-height: 2rem;\n }\n ${slottedClassName(TextSize.XL)} {\n font-size: 2.625rem;\n line-height: 2.875rem;\n }\n ${slottedClassName(TextSize.L)} {\n font-size: 2.188rem;\n line-height: 2.4375rem;\n }\n ${slottedClassName(TextSize.M)} {\n font-size: 1.813rem;\n line-height: 2rem;\n }\n ${slottedClassName(TextSize.S)} {\n font-size: 1.5rem;\n line-height: 1.625rem;\n }\n ${slottedClassName(TextSize.XS)} {\n font-size: 1.063rem;\n line-height: 1.1875rem;\n }\n ${slottedClassName(TextSize.Body1)} {\n font-size: 0.875rem;\n font-weight: 300;\n line-height: 1.313rem;\n }\n ${slottedClassName(TextSize.Body2)} {\n font-size: 0.75rem;\n line-height: 1rem;\n }\n ${slottedClassName(TextSize.BulletList)} {\n font-size: 0.875rem;\n font-weight: 300;\n line-height: 1.0625rem;\n }\n ${slottedClassName(TextSize.FieldPlaceholder)} {\n font-size: 0.875rem;\n font-weight: 300;\n line-height: 1rem;\n }\n }\n`)}\n`"
4353
4214
  }
4354
4215
  ],
4355
4216
  "exports": [
4356
4217
  {
4357
4218
  "kind": "js",
4358
- "name": "toggleButtonHostStyles",
4359
- "declaration": {
4360
- "name": "toggleButtonHostStyles",
4361
- "module": "src/tuix-toggle-button/TuixToggleButton.styles.ts"
4362
- }
4363
- },
4364
- {
4365
- "kind": "js",
4366
- "name": "toggleButtonContainerStyles",
4367
- "declaration": {
4368
- "name": "toggleButtonContainerStyles",
4369
- "module": "src/tuix-toggle-button/TuixToggleButton.styles.ts"
4370
- }
4371
- },
4372
- {
4373
- "kind": "js",
4374
- "name": "toggleButtonCheckmarkStyles",
4375
- "declaration": {
4376
- "name": "toggleButtonCheckmarkStyles",
4377
- "module": "src/tuix-toggle-button/TuixToggleButton.styles.ts"
4378
- }
4379
- },
4380
- {
4381
- "kind": "js",
4382
- "name": "toggleButtonInnerStyles",
4219
+ "name": "linkFontStyles",
4383
4220
  "declaration": {
4384
- "name": "toggleButtonInnerStyles",
4385
- "module": "src/tuix-toggle-button/TuixToggleButton.styles.ts"
4221
+ "name": "linkFontStyles",
4222
+ "module": "src/tuix-text/TuixText.styles.ts"
4386
4223
  }
4387
4224
  },
4388
4225
  {
4389
4226
  "kind": "js",
4390
- "name": "toggleButtonLabelStyles",
4227
+ "name": "textStyles",
4391
4228
  "declaration": {
4392
- "name": "toggleButtonLabelStyles",
4393
- "module": "src/tuix-toggle-button/TuixToggleButton.styles.ts"
4229
+ "name": "textStyles",
4230
+ "module": "src/tuix-text/TuixText.styles.ts"
4394
4231
  }
4395
4232
  }
4396
4233
  ]
4397
4234
  },
4398
4235
  {
4399
4236
  "kind": "javascript-module",
4400
- "path": "src/tuix-toggle-button/TuixToggleButton.ts",
4237
+ "path": "src/tuix-text/TuixText.ts",
4401
4238
  "declarations": [
4402
4239
  {
4403
4240
  "kind": "class",
4404
4241
  "description": "",
4405
- "name": "TuixToggleButton",
4242
+ "name": "TuixText",
4406
4243
  "members": [
4407
4244
  {
4408
4245
  "kind": "field",
4409
- "name": "checked",
4410
- "type": {
4411
- "text": "boolean"
4412
- },
4413
- "default": "false",
4414
- "attribute": "checked"
4415
- },
4246
+ "name": "size",
4247
+ "attribute": "size"
4248
+ },
4249
+ {
4250
+ "kind": "field",
4251
+ "name": "color",
4252
+ "attribute": "color"
4253
+ },
4254
+ {
4255
+ "kind": "field",
4256
+ "name": "dark",
4257
+ "type": {
4258
+ "text": "boolean"
4259
+ },
4260
+ "default": "false",
4261
+ "attribute": "dark",
4262
+ "reflects": true
4263
+ },
4264
+ {
4265
+ "kind": "method",
4266
+ "name": "_getTextColor",
4267
+ "privacy": "private"
4268
+ },
4269
+ {
4270
+ "kind": "field",
4271
+ "name": "_getStyleMap",
4272
+ "privacy": "private"
4273
+ },
4274
+ {
4275
+ "kind": "field",
4276
+ "name": "_getClassMap",
4277
+ "privacy": "private"
4278
+ }
4279
+ ],
4280
+ "attributes": [
4281
+ {
4282
+ "name": "size",
4283
+ "fieldName": "size"
4284
+ },
4285
+ {
4286
+ "name": "color",
4287
+ "fieldName": "color"
4288
+ },
4289
+ {
4290
+ "name": "dark",
4291
+ "type": {
4292
+ "text": "boolean"
4293
+ },
4294
+ "default": "false",
4295
+ "fieldName": "dark"
4296
+ }
4297
+ ],
4298
+ "superclass": {
4299
+ "name": "LitElement",
4300
+ "package": "lit"
4301
+ },
4302
+ "tagName": "tuix-text",
4303
+ "customElement": true
4304
+ }
4305
+ ],
4306
+ "exports": [
4307
+ {
4308
+ "kind": "js",
4309
+ "name": "TuixText",
4310
+ "declaration": {
4311
+ "name": "TuixText",
4312
+ "module": "src/tuix-text/TuixText.ts"
4313
+ }
4314
+ },
4315
+ {
4316
+ "kind": "custom-element-definition",
4317
+ "name": "tuix-text",
4318
+ "declaration": {
4319
+ "name": "TuixText",
4320
+ "module": "src/tuix-text/TuixText.ts"
4321
+ }
4322
+ }
4323
+ ]
4324
+ },
4325
+ {
4326
+ "kind": "javascript-module",
4327
+ "path": "src/tuix-toggle-button/TuixToggleButton.styles.ts",
4328
+ "declarations": [
4329
+ {
4330
+ "kind": "variable",
4331
+ "name": "toggleButtonHostStyles",
4332
+ "default": "css`\n ${hostStyles}\n :host {\n --t-bg-color-primary: ${unsafeCSS(Palette.PRIMARY_300)};\n --t-bg-color-disabled: ${unsafeCSS(Palette.PRIMARY_100)};\n --t-toggle-shadow-color-focus: rgba(142, 141, 208, 0.16);\n }\n :host([dark]) {\n --t-bg-color-primary: ${unsafeCSS(DarkPalette.PRIMARY_800)};\n --t-bg-color-disabled: ${unsafeCSS(DarkPalette.PRIMARY_800)};\n --t-bg-color-inner: ${unsafeCSS(DarkPalette.WHITE)};\n }\n :host([dark][disabled]) {\n --t-bg-color-inner: ${unsafeCSS(DarkPalette.MAIN)};\n }\n`"
4333
+ },
4334
+ {
4335
+ "kind": "variable",
4336
+ "name": "toggleButtonContainerStyles",
4337
+ "default": "css`\n .t-toggle-button-full-container {\n display: flex;\n justify-content: var(--t-label-right-default-justify, flex-start);\n cursor: pointer;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n }\n :host([disabled]) .t-toggle-button-full-container {\n cursor: not-allowed;\n }\n .t-toggle-button-container {\n --t-toggle-button-size-box: 3rem;\n --t-toggle-button-shadow-width: 2px;\n --t-toggle-inner-radio: 1rem;\n display: block;\n position: relative;\n height: calc(var(--t-toggle-button-size-box) / 2);\n width: var(--t-toggle-button-size-box);\n min-width: var(--t-toggle-button-size-box);\n }\n .t-toggle-button-container .t-toggle-button {\n position: absolute;\n opacity: 0;\n height: 0;\n width: 0;\n }\n .t-radio-button-full-container:not(.t-with-label-left) {\n justify-content: flex-start;\n }\n @media only screen and (max-width: ${ScreenSizes.MOBILE}px) {\n .t-toggle-button-container {\n --t-toggle-button-size-box: 2rem;\n --t-toggle-button-shadow-width: 1px;\n --t-toggle-inner-radio: 0.75rem;\n margin-top: 1px;\n }\n }\n`"
4338
+ },
4339
+ {
4340
+ "kind": "variable",
4341
+ "name": "toggleButtonCheckmarkStyles",
4342
+ "default": "css`\n .t-toggle-button-container .t-toggle-button-checkmark {\n position: absolute;\n top: 0;\n left: 0;\n display: flex;\n height: calc(var(--t-toggle-button-size-box) / 2);\n width: var(--t-toggle-button-size-box);\n border-radius: 0.75rem;\n background-color: var(--t-bg-color-primary);\n box-sizing: border-box;\n }\n .t-toggle-button-container\n .t-toggle-button:checked\n ~ .t-toggle-button-checkmark {\n background-color: var(--t-main-color-tuix);\n }\n .t-toggle-button-full-container:hover\n .t-toggle-button-container\n .t-toggle-button-checkmark {\n box-shadow: 0px 4px 4px 0px var(--t-toggle-shadow-color-focus);\n }\n .t-toggle-button-container\n .t-toggle-button:focus\n ~ .t-toggle-button-checkmark {\n box-shadow: 0 0 0px var(--t-toggle-button-shadow-width)\n var(--t-stroke-color-focus);\n }\n .t-toggle-button-container\n .t-toggle-button:disabled\n ~ .t-toggle-button-checkmark {\n background-color: var(--t-bg-color-disabled);\n box-shadow: none;\n }\n`"
4343
+ },
4344
+ {
4345
+ "kind": "variable",
4346
+ "name": "toggleButtonInnerStyles",
4347
+ "default": "css`\n .t-toggle-button-container .t-toggle-button-checkmark .t-toggle-button-inner {\n background-color: var(--t-bg-color-inner, ${unsafeCSS(Palette.WHITE)});\n margin: auto auto auto calc(var(--t-toggle-button-shadow-width) * 2);\n height: var(--t-toggle-inner-radio);\n width: var(--t-toggle-inner-radio);\n border-radius: 50%;\n display: block;\n transition: 0.3s;\n }\n .t-toggle-button-container\n .t-toggle-button:checked\n ~ .t-toggle-button-checkmark\n .t-toggle-button-inner {\n transform: translateX(\n calc(\n var(--t-toggle-button-size-box) - var(--t-toggle-inner-radio) -\n var(--t-toggle-button-shadow-width) * 4\n )\n );\n }\n`"
4348
+ },
4349
+ {
4350
+ "kind": "variable",
4351
+ "name": "toggleButtonLabelStyles",
4352
+ "default": "css`\n .t-toggle-button-label {\n display: block;\n color: var(--t-text-color-label);\n margin-left: 0.625rem;\n }\n .t-toggle-button-full-container.t-with-label-left {\n flex-direction: row-reverse;\n justify-content: var(--t-label-left-default-justify, space-between);\n }\n .t-toggle-button-full-container.t-with-label-left .t-toggle-button-label {\n margin-right: 0.625rem;\n margin-left: 0;\n }\n`"
4353
+ }
4354
+ ],
4355
+ "exports": [
4356
+ {
4357
+ "kind": "js",
4358
+ "name": "toggleButtonHostStyles",
4359
+ "declaration": {
4360
+ "name": "toggleButtonHostStyles",
4361
+ "module": "src/tuix-toggle-button/TuixToggleButton.styles.ts"
4362
+ }
4363
+ },
4364
+ {
4365
+ "kind": "js",
4366
+ "name": "toggleButtonContainerStyles",
4367
+ "declaration": {
4368
+ "name": "toggleButtonContainerStyles",
4369
+ "module": "src/tuix-toggle-button/TuixToggleButton.styles.ts"
4370
+ }
4371
+ },
4372
+ {
4373
+ "kind": "js",
4374
+ "name": "toggleButtonCheckmarkStyles",
4375
+ "declaration": {
4376
+ "name": "toggleButtonCheckmarkStyles",
4377
+ "module": "src/tuix-toggle-button/TuixToggleButton.styles.ts"
4378
+ }
4379
+ },
4380
+ {
4381
+ "kind": "js",
4382
+ "name": "toggleButtonInnerStyles",
4383
+ "declaration": {
4384
+ "name": "toggleButtonInnerStyles",
4385
+ "module": "src/tuix-toggle-button/TuixToggleButton.styles.ts"
4386
+ }
4387
+ },
4388
+ {
4389
+ "kind": "js",
4390
+ "name": "toggleButtonLabelStyles",
4391
+ "declaration": {
4392
+ "name": "toggleButtonLabelStyles",
4393
+ "module": "src/tuix-toggle-button/TuixToggleButton.styles.ts"
4394
+ }
4395
+ }
4396
+ ]
4397
+ },
4398
+ {
4399
+ "kind": "javascript-module",
4400
+ "path": "src/tuix-toggle-button/TuixToggleButton.ts",
4401
+ "declarations": [
4402
+ {
4403
+ "kind": "class",
4404
+ "description": "",
4405
+ "name": "TuixToggleButton",
4406
+ "members": [
4407
+ {
4408
+ "kind": "field",
4409
+ "name": "checked",
4410
+ "type": {
4411
+ "text": "boolean"
4412
+ },
4413
+ "default": "false",
4414
+ "attribute": "checked"
4415
+ },
4416
4416
  {
4417
4417
  "kind": "field",
4418
4418
  "name": "disabled",
@@ -4864,30 +4864,6 @@
4864
4864
  }
4865
4865
  ]
4866
4866
  },
4867
- {
4868
- "kind": "javascript-module",
4869
- "path": "src/tuix-icon/enums/tuix-icon.enums.ts",
4870
- "declarations": [
4871
- {
4872
- "kind": "variable",
4873
- "name": "iconSize",
4874
- "type": {
4875
- "text": "Record<IconSizeVariant, string>"
4876
- },
4877
- "default": "{\n [IconSizeVariant.SMALL]: '16px',\n [IconSizeVariant.MEDIUM]: '24px',\n [IconSizeVariant.LARGE]: '32px',\n [IconSizeVariant.FULL]: '100%',\n}"
4878
- }
4879
- ],
4880
- "exports": [
4881
- {
4882
- "kind": "js",
4883
- "name": "iconSize",
4884
- "declaration": {
4885
- "name": "iconSize",
4886
- "module": "src/tuix-icon/enums/tuix-icon.enums.ts"
4887
- }
4888
- }
4889
- ]
4890
- },
4891
4867
  {
4892
4868
  "kind": "javascript-module",
4893
4869
  "path": "src/tuix-icon/stories/tuix-icon.stories.ts",
@@ -4928,6 +4904,30 @@
4928
4904
  }
4929
4905
  ]
4930
4906
  },
4907
+ {
4908
+ "kind": "javascript-module",
4909
+ "path": "src/tuix-icon/enums/tuix-icon.enums.ts",
4910
+ "declarations": [
4911
+ {
4912
+ "kind": "variable",
4913
+ "name": "iconSize",
4914
+ "type": {
4915
+ "text": "Record<IconSizeVariant, string>"
4916
+ },
4917
+ "default": "{\n [IconSizeVariant.SMALL]: '16px',\n [IconSizeVariant.MEDIUM]: '24px',\n [IconSizeVariant.LARGE]: '32px',\n [IconSizeVariant.FULL]: '100%',\n}"
4918
+ }
4919
+ ],
4920
+ "exports": [
4921
+ {
4922
+ "kind": "js",
4923
+ "name": "iconSize",
4924
+ "declaration": {
4925
+ "name": "iconSize",
4926
+ "module": "src/tuix-icon/enums/tuix-icon.enums.ts"
4927
+ }
4928
+ }
4929
+ ]
4930
+ },
4931
4931
  {
4932
4932
  "kind": "javascript-module",
4933
4933
  "path": "src/tuix-icon-button/stories/tuix-icon-button.stories.ts",
@@ -5176,50 +5176,10 @@
5176
5176
  },
5177
5177
  {
5178
5178
  "kind": "javascript-module",
5179
- "path": "src/tuix-paper/enums/tuix-paper.enum.ts",
5179
+ "path": "src/tuix-radio-button/interfaces/tuix-radio-button.interface.ts",
5180
5180
  "declarations": [],
5181
5181
  "exports": []
5182
5182
  },
5183
- {
5184
- "kind": "javascript-module",
5185
- "path": "src/tuix-paper/stories/tuix-paper.stories.ts",
5186
- "declarations": [
5187
- {
5188
- "kind": "variable",
5189
- "name": "meta",
5190
- "type": {
5191
- "text": "object"
5192
- },
5193
- "default": "{\n title: 'TuixPaper',\n component: 'tuix-paper',\n argTypes: {\n elevation: {\n control: 'select',\n options: Object.values(PaperElevation),\n },\n borderRadius: {\n control: 'select',\n options: Object.values(BorderRadiusPaper),\n },\n dark: {\n control: 'boolean',\n },\n },\n render: (args: ArgTypes) => html`\n <style>\n tuix-text {\n width: 181px;\n height: 181px;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n </style>\n <div\n style=\"display: flex; justify-content: center; align-items: center; height: 100vh;\n ${args.dark ? `background-color: ${Palette.BLACK};` : ''}\"\n >\n <tuix-paper\n elevation=\"${args.elevation}\"\n ?dark=\"${args.dark}\"\n border-radius=\"${args.borderRadius}\"\n >\n <tuix-text size=\"${TextSize.Body2}\" ?dark=\"${args.dark}\">\n Elevation\n </tuix-text>\n </tuix-paper>\n </div>\n `,\n}"
5194
- },
5195
- {
5196
- "kind": "variable",
5197
- "name": "elevation",
5198
- "type": {
5199
- "text": "Story"
5200
- },
5201
- "default": "{\n args: {\n elevation: PaperElevation.VARIANT_1,\n borderRadius: BorderRadiusPaper.STRONG,\n dark: false,\n },\n}"
5202
- }
5203
- ],
5204
- "exports": [
5205
- {
5206
- "kind": "js",
5207
- "name": "default",
5208
- "declaration": {
5209
- "name": "meta",
5210
- "module": "src/tuix-paper/stories/tuix-paper.stories.ts"
5211
- }
5212
- },
5213
- {
5214
- "kind": "js",
5215
- "name": "elevation",
5216
- "declaration": {
5217
- "name": "elevation",
5218
- "module": "src/tuix-paper/stories/tuix-paper.stories.ts"
5219
- }
5220
- }
5221
- ]
5222
- },
5223
5183
  {
5224
5184
  "kind": "javascript-module",
5225
5185
  "path": "src/tuix-radio-button/stories/tuix-radio-button.stories.ts",
@@ -5260,12 +5220,6 @@
5260
5220
  }
5261
5221
  ]
5262
5222
  },
5263
- {
5264
- "kind": "javascript-module",
5265
- "path": "src/tuix-radio-button/interfaces/tuix-radio-button.interface.ts",
5266
- "declarations": [],
5267
- "exports": []
5268
- },
5269
5223
  {
5270
5224
  "kind": "javascript-module",
5271
5225
  "path": "src/tuix-table/interfaces/tuix-table.interface.ts",
@@ -5314,47 +5268,13 @@
5314
5268
  },
5315
5269
  {
5316
5270
  "kind": "javascript-module",
5317
- "path": "src/tuix-text/enums/tuix-text.enums.ts",
5318
- "declarations": [
5319
- {
5320
- "kind": "variable",
5321
- "name": "colorText",
5322
- "type": {
5323
- "text": "Record<TextVariant, string>"
5324
- },
5325
- "default": "{\n [TextVariant.MAIN]: Palette.MAIN,\n [TextVariant.DARK_MAIN]: Palette.DARK_MAIN,\n [TextVariant.PRIMARY]: Palette.BLACK,\n [TextVariant.SECONDARY]: Palette.WHITE,\n [TextVariant.STROKE]: Palette.PRIMARY_400,\n [TextVariant.GREY]: Palette.NEUTRAL_600,\n [TextVariant.LIGHT_GREY]: Palette.NEUTRAL_200,\n [TextVariant.DISABLED]: Palette.PRIMARY_100,\n [TextVariant.SECTION]: Palette.PRIMARY_700,\n [TextVariant.VALIDATION]: Palette.VALIDATION,\n [TextVariant.ERROR]: Palette.ERROR,\n [TextVariant.SUCCESS]: Palette.SUCCESS,\n [TextVariant.LIGHT]: Palette.WHITE,\n [TextVariant.DARK]: Palette.BLACK,\n [TextVariant.DARK_BLUE]: Palette.DARK_MAIN,\n [TextVariant.TITLE_BLUE]: Palette.DARK_MAIN,\n}"
5326
- },
5327
- {
5328
- "kind": "variable",
5329
- "name": "colorTextDark",
5330
- "type": {
5331
- "text": "Record<TextVariant, string>"
5332
- },
5333
- "default": "{\n ...colorText,\n [TextVariant.MAIN]: DarkPalette.MAIN,\n [TextVariant.DARK_MAIN]: DarkPalette.NEUTRAL_600,\n [TextVariant.PRIMARY]: DarkPalette.PRIMARY_50,\n [TextVariant.SECONDARY]: Palette.BLACK,\n [TextVariant.GREY]: DarkPalette.NEUTRAL_600,\n [TextVariant.DISABLED]: Palette.PRIMARY_200,\n [TextVariant.VALIDATION]: DarkPalette.VALIDATION,\n [TextVariant.ERROR]: DarkPalette.ERROR,\n [TextVariant.SUCCESS]: DarkPalette.SUCCESS,\n [TextVariant.LIGHT]: DarkPalette.PRIMARY_50,\n [TextVariant.DARK_BLUE]: DarkPalette.PRIMARY_800,\n [TextVariant.TITLE_BLUE]: DarkPalette.PRIMARY_300,\n [TextVariant.SECTION]: Palette.PRIMARY_300,\n}"
5334
- }
5335
- ],
5336
- "exports": [
5337
- {
5338
- "kind": "js",
5339
- "name": "colorText",
5340
- "declaration": {
5341
- "name": "colorText",
5342
- "module": "src/tuix-text/enums/tuix-text.enums.ts"
5343
- }
5344
- },
5345
- {
5346
- "kind": "js",
5347
- "name": "colorTextDark",
5348
- "declaration": {
5349
- "name": "colorTextDark",
5350
- "module": "src/tuix-text/enums/tuix-text.enums.ts"
5351
- }
5352
- }
5353
- ]
5271
+ "path": "src/tuix-paper/enums/tuix-paper.enum.ts",
5272
+ "declarations": [],
5273
+ "exports": []
5354
5274
  },
5355
5275
  {
5356
5276
  "kind": "javascript-module",
5357
- "path": "src/tuix-text/stories/tuix-text.stories.ts",
5277
+ "path": "src/tuix-paper/stories/tuix-paper.stories.ts",
5358
5278
  "declarations": [
5359
5279
  {
5360
5280
  "kind": "variable",
@@ -5362,15 +5282,15 @@
5362
5282
  "type": {
5363
5283
  "text": "object"
5364
5284
  },
5365
- "default": "{\n title: 'TuixText',\n component: 'tuix-text',\n argTypes: {\n value: { control: 'text' },\n size: {\n control: 'select',\n options: Object.values(TextSize),\n },\n color: {\n control: 'select',\n options: Object.values(TextVariant),\n },\n dark: {\n control: 'boolean',\n },\n },\n render: (args: ArgTypes) => html`\n <style>\n tuix-text > * {\n display: block;\n }\n </style>\n <div\n style=\"display: flex; justify-content: center; align-items: center; height: 100%; \n ${args.dark ? `background-color: ${Palette.BLACK};` : ''}\"\n >\n <tuix-text size=\"${args.size}\" color=\"${args.color}\" ?dark=\"${args.dark}\">\n ${args.value}\n <h1>${args.value}</h1>\n <h2>${args.value}</h2>\n <h3>${args.value}</h3>\n <h4>${args.value}</h4>\n <h5>${args.value}</h5>\n <h6>${args.value}</h6>\n <p>${args.value}</p>\n <span> ${args.value} </span>\n </tuix-text>\n </div>\n `,\n}"
5285
+ "default": "{\n title: 'TuixPaper',\n component: 'tuix-paper',\n argTypes: {\n elevation: {\n control: 'select',\n options: Object.values(PaperElevation),\n },\n borderRadius: {\n control: 'select',\n options: Object.values(BorderRadiusPaper),\n },\n dark: {\n control: 'boolean',\n },\n },\n render: (args: ArgTypes) => html`\n <style>\n tuix-text {\n width: 181px;\n height: 181px;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n </style>\n <div\n style=\"display: flex; justify-content: center; align-items: center; height: 100vh;\n ${args.dark ? `background-color: ${Palette.BLACK};` : ''}\"\n >\n <tuix-paper\n elevation=\"${args.elevation}\"\n ?dark=\"${args.dark}\"\n border-radius=\"${args.borderRadius}\"\n >\n <tuix-text size=\"${TextSize.Body2}\" ?dark=\"${args.dark}\">\n Elevation\n </tuix-text>\n </tuix-paper>\n </div>\n `,\n}"
5366
5286
  },
5367
5287
  {
5368
5288
  "kind": "variable",
5369
- "name": "Headline",
5289
+ "name": "elevation",
5370
5290
  "type": {
5371
5291
  "text": "Story"
5372
5292
  },
5373
- "default": "{\n args: {\n value: 'Test text',\n size: TextSize.XL,\n dark: false,\n },\n}"
5293
+ "default": "{\n args: {\n elevation: PaperElevation.VARIANT_1,\n borderRadius: BorderRadiusPaper.STRONG,\n dark: false,\n },\n}"
5374
5294
  }
5375
5295
  ],
5376
5296
  "exports": [
@@ -5379,15 +5299,15 @@
5379
5299
  "name": "default",
5380
5300
  "declaration": {
5381
5301
  "name": "meta",
5382
- "module": "src/tuix-text/stories/tuix-text.stories.ts"
5302
+ "module": "src/tuix-paper/stories/tuix-paper.stories.ts"
5383
5303
  }
5384
5304
  },
5385
5305
  {
5386
5306
  "kind": "js",
5387
- "name": "Headline",
5307
+ "name": "elevation",
5388
5308
  "declaration": {
5389
- "name": "Headline",
5390
- "module": "src/tuix-text/stories/tuix-text.stories.ts"
5309
+ "name": "elevation",
5310
+ "module": "src/tuix-paper/stories/tuix-paper.stories.ts"
5391
5311
  }
5392
5312
  }
5393
5313
  ]
@@ -5504,6 +5424,86 @@
5504
5424
  }
5505
5425
  ]
5506
5426
  },
5427
+ {
5428
+ "kind": "javascript-module",
5429
+ "path": "src/tuix-text/enums/tuix-text.enums.ts",
5430
+ "declarations": [
5431
+ {
5432
+ "kind": "variable",
5433
+ "name": "colorText",
5434
+ "type": {
5435
+ "text": "Record<TextVariant, string>"
5436
+ },
5437
+ "default": "{\n [TextVariant.MAIN]: Palette.MAIN,\n [TextVariant.DARK_MAIN]: Palette.DARK_MAIN,\n [TextVariant.PRIMARY]: Palette.BLACK,\n [TextVariant.SECONDARY]: Palette.WHITE,\n [TextVariant.STROKE]: Palette.PRIMARY_400,\n [TextVariant.GREY]: Palette.NEUTRAL_600,\n [TextVariant.LIGHT_GREY]: Palette.NEUTRAL_200,\n [TextVariant.DISABLED]: Palette.PRIMARY_100,\n [TextVariant.SECTION]: Palette.PRIMARY_700,\n [TextVariant.VALIDATION]: Palette.VALIDATION,\n [TextVariant.ERROR]: Palette.ERROR,\n [TextVariant.SUCCESS]: Palette.SUCCESS,\n [TextVariant.LIGHT]: Palette.WHITE,\n [TextVariant.DARK]: Palette.BLACK,\n [TextVariant.DARK_BLUE]: Palette.DARK_MAIN,\n [TextVariant.TITLE_BLUE]: Palette.DARK_MAIN,\n}"
5438
+ },
5439
+ {
5440
+ "kind": "variable",
5441
+ "name": "colorTextDark",
5442
+ "type": {
5443
+ "text": "Record<TextVariant, string>"
5444
+ },
5445
+ "default": "{\n ...colorText,\n [TextVariant.MAIN]: DarkPalette.MAIN,\n [TextVariant.DARK_MAIN]: DarkPalette.NEUTRAL_600,\n [TextVariant.PRIMARY]: DarkPalette.PRIMARY_50,\n [TextVariant.SECONDARY]: Palette.BLACK,\n [TextVariant.GREY]: DarkPalette.NEUTRAL_600,\n [TextVariant.DISABLED]: Palette.PRIMARY_200,\n [TextVariant.VALIDATION]: DarkPalette.VALIDATION,\n [TextVariant.ERROR]: DarkPalette.ERROR,\n [TextVariant.SUCCESS]: DarkPalette.SUCCESS,\n [TextVariant.LIGHT]: DarkPalette.PRIMARY_50,\n [TextVariant.DARK_BLUE]: DarkPalette.PRIMARY_800,\n [TextVariant.TITLE_BLUE]: DarkPalette.PRIMARY_300,\n [TextVariant.SECTION]: Palette.PRIMARY_300,\n}"
5446
+ }
5447
+ ],
5448
+ "exports": [
5449
+ {
5450
+ "kind": "js",
5451
+ "name": "colorText",
5452
+ "declaration": {
5453
+ "name": "colorText",
5454
+ "module": "src/tuix-text/enums/tuix-text.enums.ts"
5455
+ }
5456
+ },
5457
+ {
5458
+ "kind": "js",
5459
+ "name": "colorTextDark",
5460
+ "declaration": {
5461
+ "name": "colorTextDark",
5462
+ "module": "src/tuix-text/enums/tuix-text.enums.ts"
5463
+ }
5464
+ }
5465
+ ]
5466
+ },
5467
+ {
5468
+ "kind": "javascript-module",
5469
+ "path": "src/tuix-text/stories/tuix-text.stories.ts",
5470
+ "declarations": [
5471
+ {
5472
+ "kind": "variable",
5473
+ "name": "meta",
5474
+ "type": {
5475
+ "text": "object"
5476
+ },
5477
+ "default": "{\n title: 'TuixText',\n component: 'tuix-text',\n argTypes: {\n value: { control: 'text' },\n size: {\n control: 'select',\n options: Object.values(TextSize),\n },\n color: {\n control: 'select',\n options: Object.values(TextVariant),\n },\n dark: {\n control: 'boolean',\n },\n },\n render: (args: ArgTypes) => html`\n <style>\n tuix-text > * {\n display: block;\n }\n </style>\n <div\n style=\"display: flex; justify-content: center; align-items: center; height: 100%; \n ${args.dark ? `background-color: ${Palette.BLACK};` : ''}\"\n >\n <tuix-text size=\"${args.size}\" color=\"${args.color}\" ?dark=\"${args.dark}\">\n ${args.value}\n <h1>${args.value}</h1>\n <h2>${args.value}</h2>\n <h3>${args.value}</h3>\n <h4>${args.value}</h4>\n <h5>${args.value}</h5>\n <h6>${args.value}</h6>\n <p>${args.value}</p>\n <span> ${args.value} </span>\n </tuix-text>\n </div>\n `,\n}"
5478
+ },
5479
+ {
5480
+ "kind": "variable",
5481
+ "name": "Headline",
5482
+ "type": {
5483
+ "text": "Story"
5484
+ },
5485
+ "default": "{\n args: {\n value: 'Test text',\n size: TextSize.XL,\n dark: false,\n },\n}"
5486
+ }
5487
+ ],
5488
+ "exports": [
5489
+ {
5490
+ "kind": "js",
5491
+ "name": "default",
5492
+ "declaration": {
5493
+ "name": "meta",
5494
+ "module": "src/tuix-text/stories/tuix-text.stories.ts"
5495
+ }
5496
+ },
5497
+ {
5498
+ "kind": "js",
5499
+ "name": "Headline",
5500
+ "declaration": {
5501
+ "name": "Headline",
5502
+ "module": "src/tuix-text/stories/tuix-text.stories.ts"
5503
+ }
5504
+ }
5505
+ ]
5506
+ },
5507
5507
  {
5508
5508
  "kind": "javascript-module",
5509
5509
  "path": "src/tuix-toggle-button/interfaces/tuix-toggle.interface.ts",
@@ -52,18 +52,16 @@
52
52
  --tuix-dark-color-#bbadff: SECONDARY;
53
53
  --tuix-dark-color-white: #FFFFFF;
54
54
  --tuix-dark-color-black: #0F1117;
55
- --tuix-dark-color-neutral-200: #C9C8D3;
56
- --tuix-dark-color-neutral-600: #8A8894;
55
+ --tuix-dark-color-neutral-200: #FAFAFA;
56
+ --tuix-dark-color-neutral-600: #B6B6B6;
57
57
  --tuix-dark-color-success: #6BC49D;
58
- --tuix-dark-color-success-50: #F1F9F5;
58
+ --tuix-dark-color-success-50: #283F33;
59
59
  --tuix-dark-color-validation: #F5C66A;
60
- --tuix-dark-color-validation-50: #FFFBF4;
61
- --tuix-dark-color-#fffbf4: VALIDATION_50;
60
+ --tuix-dark-color-validation-50: #3F382D;
62
61
  --tuix-dark-color-validation-200: #FFEAC1;
63
62
  --tuix-dark-color-#ffeac1: VALIDATION_200;
64
63
  --tuix-dark-color-error: #FF7A7A;
65
- --tuix-dark-color-error-50: #FFF5F5;
66
- --tuix-dark-color-#fff5f5: ERROR_50;
64
+ --tuix-dark-color-error-50: #3F282D;
67
65
  --tuix-dark-color-error-200: #FFD8D8;
68
66
  --tuix-dark-color-#ffd8d8: ERROR_200;
69
67
  --tuix-dark-color-section-bg: #0E0E0E;
@@ -14,15 +14,15 @@ export declare enum DarkPalette {
14
14
  SECONDARY = "#BBADFF",
15
15
  WHITE = "#FFFFFF",
16
16
  BLACK = "#0F1117",
17
- NEUTRAL_200 = "#C9C8D3",
18
- NEUTRAL_600 = "#8A8894",
17
+ NEUTRAL_200 = "#FAFAFA",
18
+ NEUTRAL_600 = "#B6B6B6",
19
19
  SUCCESS = "#6BC49D",
20
- SUCCESS_50 = "#F1F9F5",
20
+ SUCCESS_50 = "#283F33",
21
21
  VALIDATION = "#F5C66A",
22
- VALIDATION_50 = "#FFFBF4",
22
+ VALIDATION_50 = "#3F382D",
23
23
  VALIDATION_200 = "#FFEAC1",
24
24
  ERROR = "#FF7A7A",
25
- ERROR_50 = "#FFF5F5",
25
+ ERROR_50 = "#3F282D",
26
26
  ERROR_200 = "#FFD8D8",
27
27
  SECTION_BG = "#0E0E0E",
28
28
  STROKE_GREY = "#32355F",
@@ -15,15 +15,15 @@ export var DarkPalette;
15
15
  DarkPalette["SECONDARY"] = "#BBADFF";
16
16
  DarkPalette["WHITE"] = "#FFFFFF";
17
17
  DarkPalette["BLACK"] = "#0F1117";
18
- DarkPalette["NEUTRAL_200"] = "#C9C8D3";
19
- DarkPalette["NEUTRAL_600"] = "#8A8894";
18
+ DarkPalette["NEUTRAL_200"] = "#FAFAFA";
19
+ DarkPalette["NEUTRAL_600"] = "#B6B6B6";
20
20
  DarkPalette["SUCCESS"] = "#6BC49D";
21
- DarkPalette["SUCCESS_50"] = "#F1F9F5";
21
+ DarkPalette["SUCCESS_50"] = "#283F33";
22
22
  DarkPalette["VALIDATION"] = "#F5C66A";
23
- DarkPalette["VALIDATION_50"] = "#FFFBF4";
23
+ DarkPalette["VALIDATION_50"] = "#3F382D";
24
24
  DarkPalette["VALIDATION_200"] = "#FFEAC1";
25
25
  DarkPalette["ERROR"] = "#FF7A7A";
26
- DarkPalette["ERROR_50"] = "#FFF5F5";
26
+ DarkPalette["ERROR_50"] = "#3F282D";
27
27
  DarkPalette["ERROR_200"] = "#FFD8D8";
28
28
  DarkPalette["SECTION_BG"] = "#0E0E0E";
29
29
  DarkPalette["STROKE_GREY"] = "#32355F";
package/package.json CHANGED
@@ -138,5 +138,5 @@
138
138
  "test": "echo \"No tests configured\""
139
139
  },
140
140
  "type": "module",
141
- "version": "0.0.36"
141
+ "version": "0.0.37"
142
142
  }