@kushagradhawan/kookie-ui 0.1.56 → 0.1.57
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/components.css +166 -41
- package/dist/cjs/components/theme.props.d.ts +1 -1
- package/dist/cjs/components/theme.props.js +1 -1
- package/dist/cjs/components/theme.props.js.map +2 -2
- package/dist/cjs/helpers/font-config.d.ts +10 -0
- package/dist/cjs/helpers/font-config.d.ts.map +1 -1
- package/dist/cjs/helpers/font-config.js +2 -2
- package/dist/cjs/helpers/font-config.js.map +2 -2
- package/dist/esm/components/theme.props.d.ts +1 -1
- package/dist/esm/components/theme.props.js +1 -1
- package/dist/esm/components/theme.props.js.map +2 -2
- package/dist/esm/helpers/font-config.d.ts +10 -0
- package/dist/esm/helpers/font-config.d.ts.map +1 -1
- package/dist/esm/helpers/font-config.js +2 -2
- package/dist/esm/helpers/font-config.js.map +2 -2
- package/package.json +1 -1
- package/schemas/base-button.json +1 -1
- package/schemas/button.json +1 -1
- package/schemas/icon-button.json +1 -1
- package/schemas/index.json +6 -6
- package/schemas/toggle-button.json +1 -1
- package/schemas/toggle-icon-button.json +1 -1
- package/src/components/_internal/base-sidebar-menu.css +19 -4
- package/src/components/separator.css +1 -1
- package/src/components/sidebar.css +32 -6
- package/src/components/theme.props.tsx +1 -1
- package/src/helpers/font-config.ts +35 -8
- package/src/styles/fonts.css +11 -15
- package/src/styles/tokens/typography.css +17 -7
- package/styles.css +182 -47
- package/tokens/base.css +12 -3
- package/tokens.css +12 -3
package/components.css
CHANGED
|
@@ -14353,7 +14353,7 @@
|
|
|
14353
14353
|
}
|
|
14354
14354
|
.rt-Separator {
|
|
14355
14355
|
display: block;
|
|
14356
|
-
background-color: var(--accent-
|
|
14356
|
+
background-color: var(--accent-a5);
|
|
14357
14357
|
}
|
|
14358
14358
|
.rt-Separator:where(.rt-r-orientation-horizontal) {
|
|
14359
14359
|
width: var(--separator-size);
|
|
@@ -14694,16 +14694,23 @@
|
|
|
14694
14694
|
padding-inline-start: var(--space-3);
|
|
14695
14695
|
padding-top: calc(var(--space-1) * 0.75);
|
|
14696
14696
|
padding-bottom: calc(var(--space-1) * 0.75);
|
|
14697
|
-
min-height: var(--space-
|
|
14697
|
+
min-height: var(--space-6);
|
|
14698
14698
|
font-size: var(--font-size-1);
|
|
14699
14699
|
}
|
|
14700
14700
|
:where(.rt-SidebarContent.rt-r-size-2) :where(.rt-SidebarMenuSubList) .rt-SidebarMenuButton {
|
|
14701
14701
|
padding-inline-start: var(--space-3);
|
|
14702
14702
|
padding-top: var(--space-1);
|
|
14703
14703
|
padding-bottom: var(--space-1);
|
|
14704
|
-
min-height: var(--space-
|
|
14704
|
+
min-height: var(--space-7);
|
|
14705
14705
|
font-size: var(--font-size-2);
|
|
14706
14706
|
}
|
|
14707
|
+
:where(.rt-SidebarContent.rt-r-size-3) :where(.rt-SidebarMenuSubList) .rt-SidebarMenuButton {
|
|
14708
|
+
padding-inline-start: var(--space-3);
|
|
14709
|
+
padding-top: var(--space-2);
|
|
14710
|
+
padding-bottom: var(--space-2);
|
|
14711
|
+
min-height: var(--space-8);
|
|
14712
|
+
font-size: var(--font-size-3);
|
|
14713
|
+
}
|
|
14707
14714
|
.rt-SidebarGroupLabel {
|
|
14708
14715
|
display: flex;
|
|
14709
14716
|
align-items: center;
|
|
@@ -14742,8 +14749,12 @@
|
|
|
14742
14749
|
padding-inline-start: var(--space-2);
|
|
14743
14750
|
}
|
|
14744
14751
|
.rt-SidebarContent :where(.rt-BaseMenuItem) {
|
|
14745
|
-
margin-top:
|
|
14746
|
-
margin-bottom:
|
|
14752
|
+
margin-top: 1px;
|
|
14753
|
+
margin-bottom: 1px;
|
|
14754
|
+
}
|
|
14755
|
+
.rt-SidebarContent :where(.rt-SidebarMenuSubList) .rt-SidebarMenuButton {
|
|
14756
|
+
margin-top: 1px;
|
|
14757
|
+
margin-bottom: 1px;
|
|
14747
14758
|
}
|
|
14748
14759
|
:where(.rt-SidebarContainer[data-presentation='thin'] .rt-SidebarContent) {
|
|
14749
14760
|
padding: var(--space-2);
|
|
@@ -15117,17 +15128,22 @@
|
|
|
15117
15128
|
}
|
|
15118
15129
|
.rt-SidebarContainer:where(.rt-r-size-1) {
|
|
15119
15130
|
--sidebar-base-padding: var(--space-3);
|
|
15120
|
-
--sidebar-item-height: var(--space-
|
|
15131
|
+
--sidebar-item-height: var(--space-6);
|
|
15121
15132
|
}
|
|
15122
15133
|
.rt-SidebarContainer:where(.rt-r-size-2) {
|
|
15123
15134
|
--sidebar-base-padding: var(--space-4);
|
|
15124
|
-
--sidebar-item-height: var(--space-
|
|
15135
|
+
--sidebar-item-height: var(--space-7);
|
|
15136
|
+
}
|
|
15137
|
+
.rt-SidebarContainer:where(.rt-r-size-3) {
|
|
15138
|
+
--sidebar-base-padding: var(--space-4);
|
|
15139
|
+
--sidebar-item-height: var(--space-8);
|
|
15125
15140
|
}
|
|
15126
15141
|
.rt-SidebarContent:where(.rt-r-size-1) {
|
|
15127
15142
|
--sidebar-content-padding: var(--base-menu-content-padding);
|
|
15128
15143
|
--sidebar-item-padding-left: var(--base-menu-item-padding-left);
|
|
15129
15144
|
--sidebar-item-padding-right: var(--base-menu-item-padding-right);
|
|
15130
15145
|
--sidebar-item-padding-y: var(--base-menu-item-padding-y);
|
|
15146
|
+
--base-menu-item-height: var(--space-6);
|
|
15131
15147
|
--sidebar-item-height: var(--base-menu-item-height);
|
|
15132
15148
|
}
|
|
15133
15149
|
.rt-SidebarContent:where(.rt-r-size-2) {
|
|
@@ -15135,6 +15151,15 @@
|
|
|
15135
15151
|
--sidebar-item-padding-left: var(--base-menu-item-padding-left);
|
|
15136
15152
|
--sidebar-item-padding-right: var(--base-menu-item-padding-right);
|
|
15137
15153
|
--sidebar-item-padding-y: var(--base-menu-item-padding-y);
|
|
15154
|
+
--base-menu-item-height: var(--space-7);
|
|
15155
|
+
--sidebar-item-height: var(--base-menu-item-height);
|
|
15156
|
+
}
|
|
15157
|
+
.rt-SidebarContent:where(.rt-r-size-3) {
|
|
15158
|
+
--sidebar-content-padding: var(--base-menu-content-padding);
|
|
15159
|
+
--sidebar-item-padding-left: var(--base-menu-item-padding-left);
|
|
15160
|
+
--sidebar-item-padding-right: var(--base-menu-item-padding-right);
|
|
15161
|
+
--sidebar-item-padding-y: var(--base-menu-item-padding-y);
|
|
15162
|
+
--base-menu-item-height: var(--space-8);
|
|
15138
15163
|
--sidebar-item-height: var(--base-menu-item-height);
|
|
15139
15164
|
}
|
|
15140
15165
|
.rt-SidebarContent:where(.rt-r-size-1) :where(.rt-SidebarMenuButton) {
|
|
@@ -15146,8 +15171,8 @@
|
|
|
15146
15171
|
font-weight: var(--font-weight-regular);
|
|
15147
15172
|
}
|
|
15148
15173
|
.rt-SidebarContent:where(.rt-r-size-1) :where(.rt-SidebarMenuButton) :where(svg) {
|
|
15149
|
-
width: var(--content-icon-size-
|
|
15150
|
-
height: var(--content-icon-size-
|
|
15174
|
+
width: var(--content-icon-size-2);
|
|
15175
|
+
height: var(--content-icon-size-2);
|
|
15151
15176
|
flex-shrink: 0;
|
|
15152
15177
|
}
|
|
15153
15178
|
.rt-SidebarContent:where(.rt-r-size-1) :where(.rt-BaseMenuSubTriggerIcon) {
|
|
@@ -15165,8 +15190,13 @@
|
|
|
15165
15190
|
font-weight: var(--font-weight-regular);
|
|
15166
15191
|
}
|
|
15167
15192
|
.rt-SidebarContent:where(.rt-r-size-2) :where(.rt-SidebarMenuButton) :where(svg) {
|
|
15168
|
-
width: var(--content-icon-size-
|
|
15169
|
-
height: var(--content-icon-size-
|
|
15193
|
+
width: var(--content-icon-size-3);
|
|
15194
|
+
height: var(--content-icon-size-3);
|
|
15195
|
+
flex-shrink: 0;
|
|
15196
|
+
}
|
|
15197
|
+
.rt-SidebarContent:where(.rt-r-size-2) .rt-SidebarContent:where(.rt-r-size-3) :where(.rt-SidebarMenuButton) :where(svg) {
|
|
15198
|
+
width: var(--content-icon-size-3);
|
|
15199
|
+
height: var(--content-icon-size-3);
|
|
15170
15200
|
flex-shrink: 0;
|
|
15171
15201
|
}
|
|
15172
15202
|
.rt-SidebarContent:where(.rt-r-size-2) :where(.rt-BaseMenuSubTriggerIcon) {
|
|
@@ -15178,17 +15208,22 @@
|
|
|
15178
15208
|
@media (min-width: 520px) {
|
|
15179
15209
|
.rt-SidebarContainer:where(.xs\:rt-r-size-1) {
|
|
15180
15210
|
--sidebar-base-padding: var(--space-3);
|
|
15181
|
-
--sidebar-item-height: var(--space-
|
|
15211
|
+
--sidebar-item-height: var(--space-6);
|
|
15182
15212
|
}
|
|
15183
15213
|
.rt-SidebarContainer:where(.xs\:rt-r-size-2) {
|
|
15184
15214
|
--sidebar-base-padding: var(--space-4);
|
|
15185
|
-
--sidebar-item-height: var(--space-
|
|
15215
|
+
--sidebar-item-height: var(--space-7);
|
|
15216
|
+
}
|
|
15217
|
+
.rt-SidebarContainer:where(.xs\:rt-r-size-3) {
|
|
15218
|
+
--sidebar-base-padding: var(--space-4);
|
|
15219
|
+
--sidebar-item-height: var(--space-8);
|
|
15186
15220
|
}
|
|
15187
15221
|
.rt-SidebarContent:where(.xs\:rt-r-size-1) {
|
|
15188
15222
|
--sidebar-content-padding: var(--base-menu-content-padding);
|
|
15189
15223
|
--sidebar-item-padding-left: var(--base-menu-item-padding-left);
|
|
15190
15224
|
--sidebar-item-padding-right: var(--base-menu-item-padding-right);
|
|
15191
15225
|
--sidebar-item-padding-y: var(--base-menu-item-padding-y);
|
|
15226
|
+
--base-menu-item-height: var(--space-6);
|
|
15192
15227
|
--sidebar-item-height: var(--base-menu-item-height);
|
|
15193
15228
|
}
|
|
15194
15229
|
.rt-SidebarContent:where(.xs\:rt-r-size-2) {
|
|
@@ -15196,6 +15231,15 @@
|
|
|
15196
15231
|
--sidebar-item-padding-left: var(--base-menu-item-padding-left);
|
|
15197
15232
|
--sidebar-item-padding-right: var(--base-menu-item-padding-right);
|
|
15198
15233
|
--sidebar-item-padding-y: var(--base-menu-item-padding-y);
|
|
15234
|
+
--base-menu-item-height: var(--space-7);
|
|
15235
|
+
--sidebar-item-height: var(--base-menu-item-height);
|
|
15236
|
+
}
|
|
15237
|
+
.rt-SidebarContent:where(.xs\:rt-r-size-3) {
|
|
15238
|
+
--sidebar-content-padding: var(--base-menu-content-padding);
|
|
15239
|
+
--sidebar-item-padding-left: var(--base-menu-item-padding-left);
|
|
15240
|
+
--sidebar-item-padding-right: var(--base-menu-item-padding-right);
|
|
15241
|
+
--sidebar-item-padding-y: var(--base-menu-item-padding-y);
|
|
15242
|
+
--base-menu-item-height: var(--space-8);
|
|
15199
15243
|
--sidebar-item-height: var(--base-menu-item-height);
|
|
15200
15244
|
}
|
|
15201
15245
|
.rt-SidebarContent:where(.xs\:rt-r-size-1) :where(.rt-SidebarMenuButton) {
|
|
@@ -15207,8 +15251,8 @@
|
|
|
15207
15251
|
font-weight: var(--font-weight-regular);
|
|
15208
15252
|
}
|
|
15209
15253
|
.rt-SidebarContent:where(.xs\:rt-r-size-1) :where(.rt-SidebarMenuButton) :where(svg) {
|
|
15210
|
-
width: var(--content-icon-size-
|
|
15211
|
-
height: var(--content-icon-size-
|
|
15254
|
+
width: var(--content-icon-size-2);
|
|
15255
|
+
height: var(--content-icon-size-2);
|
|
15212
15256
|
flex-shrink: 0;
|
|
15213
15257
|
}
|
|
15214
15258
|
.rt-SidebarContent:where(.xs\:rt-r-size-1) :where(.rt-BaseMenuSubTriggerIcon) {
|
|
@@ -15226,8 +15270,13 @@
|
|
|
15226
15270
|
font-weight: var(--font-weight-regular);
|
|
15227
15271
|
}
|
|
15228
15272
|
.rt-SidebarContent:where(.xs\:rt-r-size-2) :where(.rt-SidebarMenuButton) :where(svg) {
|
|
15229
|
-
width: var(--content-icon-size-
|
|
15230
|
-
height: var(--content-icon-size-
|
|
15273
|
+
width: var(--content-icon-size-3);
|
|
15274
|
+
height: var(--content-icon-size-3);
|
|
15275
|
+
flex-shrink: 0;
|
|
15276
|
+
}
|
|
15277
|
+
.rt-SidebarContent:where(.xs\:rt-r-size-2) .rt-SidebarContent:where(.xs\:rt-r-size-3) :where(.rt-SidebarMenuButton) :where(svg) {
|
|
15278
|
+
width: var(--content-icon-size-3);
|
|
15279
|
+
height: var(--content-icon-size-3);
|
|
15231
15280
|
flex-shrink: 0;
|
|
15232
15281
|
}
|
|
15233
15282
|
.rt-SidebarContent:where(.xs\:rt-r-size-2) :where(.rt-BaseMenuSubTriggerIcon) {
|
|
@@ -15240,17 +15289,22 @@
|
|
|
15240
15289
|
@media (min-width: 768px) {
|
|
15241
15290
|
.rt-SidebarContainer:where(.sm\:rt-r-size-1) {
|
|
15242
15291
|
--sidebar-base-padding: var(--space-3);
|
|
15243
|
-
--sidebar-item-height: var(--space-
|
|
15292
|
+
--sidebar-item-height: var(--space-6);
|
|
15244
15293
|
}
|
|
15245
15294
|
.rt-SidebarContainer:where(.sm\:rt-r-size-2) {
|
|
15246
15295
|
--sidebar-base-padding: var(--space-4);
|
|
15247
|
-
--sidebar-item-height: var(--space-
|
|
15296
|
+
--sidebar-item-height: var(--space-7);
|
|
15297
|
+
}
|
|
15298
|
+
.rt-SidebarContainer:where(.sm\:rt-r-size-3) {
|
|
15299
|
+
--sidebar-base-padding: var(--space-4);
|
|
15300
|
+
--sidebar-item-height: var(--space-8);
|
|
15248
15301
|
}
|
|
15249
15302
|
.rt-SidebarContent:where(.sm\:rt-r-size-1) {
|
|
15250
15303
|
--sidebar-content-padding: var(--base-menu-content-padding);
|
|
15251
15304
|
--sidebar-item-padding-left: var(--base-menu-item-padding-left);
|
|
15252
15305
|
--sidebar-item-padding-right: var(--base-menu-item-padding-right);
|
|
15253
15306
|
--sidebar-item-padding-y: var(--base-menu-item-padding-y);
|
|
15307
|
+
--base-menu-item-height: var(--space-6);
|
|
15254
15308
|
--sidebar-item-height: var(--base-menu-item-height);
|
|
15255
15309
|
}
|
|
15256
15310
|
.rt-SidebarContent:where(.sm\:rt-r-size-2) {
|
|
@@ -15258,6 +15312,15 @@
|
|
|
15258
15312
|
--sidebar-item-padding-left: var(--base-menu-item-padding-left);
|
|
15259
15313
|
--sidebar-item-padding-right: var(--base-menu-item-padding-right);
|
|
15260
15314
|
--sidebar-item-padding-y: var(--base-menu-item-padding-y);
|
|
15315
|
+
--base-menu-item-height: var(--space-7);
|
|
15316
|
+
--sidebar-item-height: var(--base-menu-item-height);
|
|
15317
|
+
}
|
|
15318
|
+
.rt-SidebarContent:where(.sm\:rt-r-size-3) {
|
|
15319
|
+
--sidebar-content-padding: var(--base-menu-content-padding);
|
|
15320
|
+
--sidebar-item-padding-left: var(--base-menu-item-padding-left);
|
|
15321
|
+
--sidebar-item-padding-right: var(--base-menu-item-padding-right);
|
|
15322
|
+
--sidebar-item-padding-y: var(--base-menu-item-padding-y);
|
|
15323
|
+
--base-menu-item-height: var(--space-8);
|
|
15261
15324
|
--sidebar-item-height: var(--base-menu-item-height);
|
|
15262
15325
|
}
|
|
15263
15326
|
.rt-SidebarContent:where(.sm\:rt-r-size-1) :where(.rt-SidebarMenuButton) {
|
|
@@ -15269,8 +15332,8 @@
|
|
|
15269
15332
|
font-weight: var(--font-weight-regular);
|
|
15270
15333
|
}
|
|
15271
15334
|
.rt-SidebarContent:where(.sm\:rt-r-size-1) :where(.rt-SidebarMenuButton) :where(svg) {
|
|
15272
|
-
width: var(--content-icon-size-
|
|
15273
|
-
height: var(--content-icon-size-
|
|
15335
|
+
width: var(--content-icon-size-2);
|
|
15336
|
+
height: var(--content-icon-size-2);
|
|
15274
15337
|
flex-shrink: 0;
|
|
15275
15338
|
}
|
|
15276
15339
|
.rt-SidebarContent:where(.sm\:rt-r-size-1) :where(.rt-BaseMenuSubTriggerIcon) {
|
|
@@ -15288,8 +15351,13 @@
|
|
|
15288
15351
|
font-weight: var(--font-weight-regular);
|
|
15289
15352
|
}
|
|
15290
15353
|
.rt-SidebarContent:where(.sm\:rt-r-size-2) :where(.rt-SidebarMenuButton) :where(svg) {
|
|
15291
|
-
width: var(--content-icon-size-
|
|
15292
|
-
height: var(--content-icon-size-
|
|
15354
|
+
width: var(--content-icon-size-3);
|
|
15355
|
+
height: var(--content-icon-size-3);
|
|
15356
|
+
flex-shrink: 0;
|
|
15357
|
+
}
|
|
15358
|
+
.rt-SidebarContent:where(.sm\:rt-r-size-2) .rt-SidebarContent:where(.sm\:rt-r-size-3) :where(.rt-SidebarMenuButton) :where(svg) {
|
|
15359
|
+
width: var(--content-icon-size-3);
|
|
15360
|
+
height: var(--content-icon-size-3);
|
|
15293
15361
|
flex-shrink: 0;
|
|
15294
15362
|
}
|
|
15295
15363
|
.rt-SidebarContent:where(.sm\:rt-r-size-2) :where(.rt-BaseMenuSubTriggerIcon) {
|
|
@@ -15302,17 +15370,22 @@
|
|
|
15302
15370
|
@media (min-width: 1024px) {
|
|
15303
15371
|
.rt-SidebarContainer:where(.md\:rt-r-size-1) {
|
|
15304
15372
|
--sidebar-base-padding: var(--space-3);
|
|
15305
|
-
--sidebar-item-height: var(--space-
|
|
15373
|
+
--sidebar-item-height: var(--space-6);
|
|
15306
15374
|
}
|
|
15307
15375
|
.rt-SidebarContainer:where(.md\:rt-r-size-2) {
|
|
15308
15376
|
--sidebar-base-padding: var(--space-4);
|
|
15309
|
-
--sidebar-item-height: var(--space-
|
|
15377
|
+
--sidebar-item-height: var(--space-7);
|
|
15378
|
+
}
|
|
15379
|
+
.rt-SidebarContainer:where(.md\:rt-r-size-3) {
|
|
15380
|
+
--sidebar-base-padding: var(--space-4);
|
|
15381
|
+
--sidebar-item-height: var(--space-8);
|
|
15310
15382
|
}
|
|
15311
15383
|
.rt-SidebarContent:where(.md\:rt-r-size-1) {
|
|
15312
15384
|
--sidebar-content-padding: var(--base-menu-content-padding);
|
|
15313
15385
|
--sidebar-item-padding-left: var(--base-menu-item-padding-left);
|
|
15314
15386
|
--sidebar-item-padding-right: var(--base-menu-item-padding-right);
|
|
15315
15387
|
--sidebar-item-padding-y: var(--base-menu-item-padding-y);
|
|
15388
|
+
--base-menu-item-height: var(--space-6);
|
|
15316
15389
|
--sidebar-item-height: var(--base-menu-item-height);
|
|
15317
15390
|
}
|
|
15318
15391
|
.rt-SidebarContent:where(.md\:rt-r-size-2) {
|
|
@@ -15320,6 +15393,15 @@
|
|
|
15320
15393
|
--sidebar-item-padding-left: var(--base-menu-item-padding-left);
|
|
15321
15394
|
--sidebar-item-padding-right: var(--base-menu-item-padding-right);
|
|
15322
15395
|
--sidebar-item-padding-y: var(--base-menu-item-padding-y);
|
|
15396
|
+
--base-menu-item-height: var(--space-7);
|
|
15397
|
+
--sidebar-item-height: var(--base-menu-item-height);
|
|
15398
|
+
}
|
|
15399
|
+
.rt-SidebarContent:where(.md\:rt-r-size-3) {
|
|
15400
|
+
--sidebar-content-padding: var(--base-menu-content-padding);
|
|
15401
|
+
--sidebar-item-padding-left: var(--base-menu-item-padding-left);
|
|
15402
|
+
--sidebar-item-padding-right: var(--base-menu-item-padding-right);
|
|
15403
|
+
--sidebar-item-padding-y: var(--base-menu-item-padding-y);
|
|
15404
|
+
--base-menu-item-height: var(--space-8);
|
|
15323
15405
|
--sidebar-item-height: var(--base-menu-item-height);
|
|
15324
15406
|
}
|
|
15325
15407
|
.rt-SidebarContent:where(.md\:rt-r-size-1) :where(.rt-SidebarMenuButton) {
|
|
@@ -15331,8 +15413,8 @@
|
|
|
15331
15413
|
font-weight: var(--font-weight-regular);
|
|
15332
15414
|
}
|
|
15333
15415
|
.rt-SidebarContent:where(.md\:rt-r-size-1) :where(.rt-SidebarMenuButton) :where(svg) {
|
|
15334
|
-
width: var(--content-icon-size-
|
|
15335
|
-
height: var(--content-icon-size-
|
|
15416
|
+
width: var(--content-icon-size-2);
|
|
15417
|
+
height: var(--content-icon-size-2);
|
|
15336
15418
|
flex-shrink: 0;
|
|
15337
15419
|
}
|
|
15338
15420
|
.rt-SidebarContent:where(.md\:rt-r-size-1) :where(.rt-BaseMenuSubTriggerIcon) {
|
|
@@ -15350,8 +15432,13 @@
|
|
|
15350
15432
|
font-weight: var(--font-weight-regular);
|
|
15351
15433
|
}
|
|
15352
15434
|
.rt-SidebarContent:where(.md\:rt-r-size-2) :where(.rt-SidebarMenuButton) :where(svg) {
|
|
15353
|
-
width: var(--content-icon-size-
|
|
15354
|
-
height: var(--content-icon-size-
|
|
15435
|
+
width: var(--content-icon-size-3);
|
|
15436
|
+
height: var(--content-icon-size-3);
|
|
15437
|
+
flex-shrink: 0;
|
|
15438
|
+
}
|
|
15439
|
+
.rt-SidebarContent:where(.md\:rt-r-size-2) .rt-SidebarContent:where(.md\:rt-r-size-3) :where(.rt-SidebarMenuButton) :where(svg) {
|
|
15440
|
+
width: var(--content-icon-size-3);
|
|
15441
|
+
height: var(--content-icon-size-3);
|
|
15355
15442
|
flex-shrink: 0;
|
|
15356
15443
|
}
|
|
15357
15444
|
.rt-SidebarContent:where(.md\:rt-r-size-2) :where(.rt-BaseMenuSubTriggerIcon) {
|
|
@@ -15364,17 +15451,22 @@
|
|
|
15364
15451
|
@media (min-width: 1280px) {
|
|
15365
15452
|
.rt-SidebarContainer:where(.lg\:rt-r-size-1) {
|
|
15366
15453
|
--sidebar-base-padding: var(--space-3);
|
|
15367
|
-
--sidebar-item-height: var(--space-
|
|
15454
|
+
--sidebar-item-height: var(--space-6);
|
|
15368
15455
|
}
|
|
15369
15456
|
.rt-SidebarContainer:where(.lg\:rt-r-size-2) {
|
|
15370
15457
|
--sidebar-base-padding: var(--space-4);
|
|
15371
|
-
--sidebar-item-height: var(--space-
|
|
15458
|
+
--sidebar-item-height: var(--space-7);
|
|
15459
|
+
}
|
|
15460
|
+
.rt-SidebarContainer:where(.lg\:rt-r-size-3) {
|
|
15461
|
+
--sidebar-base-padding: var(--space-4);
|
|
15462
|
+
--sidebar-item-height: var(--space-8);
|
|
15372
15463
|
}
|
|
15373
15464
|
.rt-SidebarContent:where(.lg\:rt-r-size-1) {
|
|
15374
15465
|
--sidebar-content-padding: var(--base-menu-content-padding);
|
|
15375
15466
|
--sidebar-item-padding-left: var(--base-menu-item-padding-left);
|
|
15376
15467
|
--sidebar-item-padding-right: var(--base-menu-item-padding-right);
|
|
15377
15468
|
--sidebar-item-padding-y: var(--base-menu-item-padding-y);
|
|
15469
|
+
--base-menu-item-height: var(--space-6);
|
|
15378
15470
|
--sidebar-item-height: var(--base-menu-item-height);
|
|
15379
15471
|
}
|
|
15380
15472
|
.rt-SidebarContent:where(.lg\:rt-r-size-2) {
|
|
@@ -15382,6 +15474,15 @@
|
|
|
15382
15474
|
--sidebar-item-padding-left: var(--base-menu-item-padding-left);
|
|
15383
15475
|
--sidebar-item-padding-right: var(--base-menu-item-padding-right);
|
|
15384
15476
|
--sidebar-item-padding-y: var(--base-menu-item-padding-y);
|
|
15477
|
+
--base-menu-item-height: var(--space-7);
|
|
15478
|
+
--sidebar-item-height: var(--base-menu-item-height);
|
|
15479
|
+
}
|
|
15480
|
+
.rt-SidebarContent:where(.lg\:rt-r-size-3) {
|
|
15481
|
+
--sidebar-content-padding: var(--base-menu-content-padding);
|
|
15482
|
+
--sidebar-item-padding-left: var(--base-menu-item-padding-left);
|
|
15483
|
+
--sidebar-item-padding-right: var(--base-menu-item-padding-right);
|
|
15484
|
+
--sidebar-item-padding-y: var(--base-menu-item-padding-y);
|
|
15485
|
+
--base-menu-item-height: var(--space-8);
|
|
15385
15486
|
--sidebar-item-height: var(--base-menu-item-height);
|
|
15386
15487
|
}
|
|
15387
15488
|
.rt-SidebarContent:where(.lg\:rt-r-size-1) :where(.rt-SidebarMenuButton) {
|
|
@@ -15393,8 +15494,8 @@
|
|
|
15393
15494
|
font-weight: var(--font-weight-regular);
|
|
15394
15495
|
}
|
|
15395
15496
|
.rt-SidebarContent:where(.lg\:rt-r-size-1) :where(.rt-SidebarMenuButton) :where(svg) {
|
|
15396
|
-
width: var(--content-icon-size-
|
|
15397
|
-
height: var(--content-icon-size-
|
|
15497
|
+
width: var(--content-icon-size-2);
|
|
15498
|
+
height: var(--content-icon-size-2);
|
|
15398
15499
|
flex-shrink: 0;
|
|
15399
15500
|
}
|
|
15400
15501
|
.rt-SidebarContent:where(.lg\:rt-r-size-1) :where(.rt-BaseMenuSubTriggerIcon) {
|
|
@@ -15412,8 +15513,13 @@
|
|
|
15412
15513
|
font-weight: var(--font-weight-regular);
|
|
15413
15514
|
}
|
|
15414
15515
|
.rt-SidebarContent:where(.lg\:rt-r-size-2) :where(.rt-SidebarMenuButton) :where(svg) {
|
|
15415
|
-
width: var(--content-icon-size-
|
|
15416
|
-
height: var(--content-icon-size-
|
|
15516
|
+
width: var(--content-icon-size-3);
|
|
15517
|
+
height: var(--content-icon-size-3);
|
|
15518
|
+
flex-shrink: 0;
|
|
15519
|
+
}
|
|
15520
|
+
.rt-SidebarContent:where(.lg\:rt-r-size-2) .rt-SidebarContent:where(.lg\:rt-r-size-3) :where(.rt-SidebarMenuButton) :where(svg) {
|
|
15521
|
+
width: var(--content-icon-size-3);
|
|
15522
|
+
height: var(--content-icon-size-3);
|
|
15417
15523
|
flex-shrink: 0;
|
|
15418
15524
|
}
|
|
15419
15525
|
.rt-SidebarContent:where(.lg\:rt-r-size-2) :where(.rt-BaseMenuSubTriggerIcon) {
|
|
@@ -15426,17 +15532,22 @@
|
|
|
15426
15532
|
@media (min-width: 1640px) {
|
|
15427
15533
|
.rt-SidebarContainer:where(.xl\:rt-r-size-1) {
|
|
15428
15534
|
--sidebar-base-padding: var(--space-3);
|
|
15429
|
-
--sidebar-item-height: var(--space-
|
|
15535
|
+
--sidebar-item-height: var(--space-6);
|
|
15430
15536
|
}
|
|
15431
15537
|
.rt-SidebarContainer:where(.xl\:rt-r-size-2) {
|
|
15432
15538
|
--sidebar-base-padding: var(--space-4);
|
|
15433
|
-
--sidebar-item-height: var(--space-
|
|
15539
|
+
--sidebar-item-height: var(--space-7);
|
|
15540
|
+
}
|
|
15541
|
+
.rt-SidebarContainer:where(.xl\:rt-r-size-3) {
|
|
15542
|
+
--sidebar-base-padding: var(--space-4);
|
|
15543
|
+
--sidebar-item-height: var(--space-8);
|
|
15434
15544
|
}
|
|
15435
15545
|
.rt-SidebarContent:where(.xl\:rt-r-size-1) {
|
|
15436
15546
|
--sidebar-content-padding: var(--base-menu-content-padding);
|
|
15437
15547
|
--sidebar-item-padding-left: var(--base-menu-item-padding-left);
|
|
15438
15548
|
--sidebar-item-padding-right: var(--base-menu-item-padding-right);
|
|
15439
15549
|
--sidebar-item-padding-y: var(--base-menu-item-padding-y);
|
|
15550
|
+
--base-menu-item-height: var(--space-6);
|
|
15440
15551
|
--sidebar-item-height: var(--base-menu-item-height);
|
|
15441
15552
|
}
|
|
15442
15553
|
.rt-SidebarContent:where(.xl\:rt-r-size-2) {
|
|
@@ -15444,6 +15555,15 @@
|
|
|
15444
15555
|
--sidebar-item-padding-left: var(--base-menu-item-padding-left);
|
|
15445
15556
|
--sidebar-item-padding-right: var(--base-menu-item-padding-right);
|
|
15446
15557
|
--sidebar-item-padding-y: var(--base-menu-item-padding-y);
|
|
15558
|
+
--base-menu-item-height: var(--space-7);
|
|
15559
|
+
--sidebar-item-height: var(--base-menu-item-height);
|
|
15560
|
+
}
|
|
15561
|
+
.rt-SidebarContent:where(.xl\:rt-r-size-3) {
|
|
15562
|
+
--sidebar-content-padding: var(--base-menu-content-padding);
|
|
15563
|
+
--sidebar-item-padding-left: var(--base-menu-item-padding-left);
|
|
15564
|
+
--sidebar-item-padding-right: var(--base-menu-item-padding-right);
|
|
15565
|
+
--sidebar-item-padding-y: var(--base-menu-item-padding-y);
|
|
15566
|
+
--base-menu-item-height: var(--space-8);
|
|
15447
15567
|
--sidebar-item-height: var(--base-menu-item-height);
|
|
15448
15568
|
}
|
|
15449
15569
|
.rt-SidebarContent:where(.xl\:rt-r-size-1) :where(.rt-SidebarMenuButton) {
|
|
@@ -15455,8 +15575,8 @@
|
|
|
15455
15575
|
font-weight: var(--font-weight-regular);
|
|
15456
15576
|
}
|
|
15457
15577
|
.rt-SidebarContent:where(.xl\:rt-r-size-1) :where(.rt-SidebarMenuButton) :where(svg) {
|
|
15458
|
-
width: var(--content-icon-size-
|
|
15459
|
-
height: var(--content-icon-size-
|
|
15578
|
+
width: var(--content-icon-size-2);
|
|
15579
|
+
height: var(--content-icon-size-2);
|
|
15460
15580
|
flex-shrink: 0;
|
|
15461
15581
|
}
|
|
15462
15582
|
.rt-SidebarContent:where(.xl\:rt-r-size-1) :where(.rt-BaseMenuSubTriggerIcon) {
|
|
@@ -15474,8 +15594,13 @@
|
|
|
15474
15594
|
font-weight: var(--font-weight-regular);
|
|
15475
15595
|
}
|
|
15476
15596
|
.rt-SidebarContent:where(.xl\:rt-r-size-2) :where(.rt-SidebarMenuButton) :where(svg) {
|
|
15477
|
-
width: var(--content-icon-size-
|
|
15478
|
-
height: var(--content-icon-size-
|
|
15597
|
+
width: var(--content-icon-size-3);
|
|
15598
|
+
height: var(--content-icon-size-3);
|
|
15599
|
+
flex-shrink: 0;
|
|
15600
|
+
}
|
|
15601
|
+
.rt-SidebarContent:where(.xl\:rt-r-size-2) .rt-SidebarContent:where(.xl\:rt-r-size-3) :where(.rt-SidebarMenuButton) :where(svg) {
|
|
15602
|
+
width: var(--content-icon-size-3);
|
|
15603
|
+
height: var(--content-icon-size-3);
|
|
15479
15604
|
flex-shrink: 0;
|
|
15480
15605
|
}
|
|
15481
15606
|
.rt-SidebarContent:where(.xl\:rt-r-size-2) :where(.rt-BaseMenuSubTriggerIcon) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var s=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var c=Object.prototype.hasOwnProperty;var i=(a,e)=>{for(var t in e)s(a,t,{get:e[t],enumerable:!0})},y=(a,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of m(e))!c.call(a,o)&&o!==t&&s(a,o,{get:()=>e[o],enumerable:!(n=f(e,o))||n.enumerable});return a};var d=a=>y(s({},"__esModule",{value:!0}),a);var C={};i(C,{themePropDefs:()=>u});module.exports=d(C);var p=require("../props/as-child.prop.js"),r=require("../props/color.prop.js"),l=require("../props/radius.prop.js");const P=["inherit","light","dark"],D=["solid","translucent"],g=["solid","translucent"],b=["90%","95%","100%","105%","110%"],h=["sans","mono","serif"],u={...p.asChildPropDef,hasBackground:{type:"boolean",default:!0},appearance:{type:"enum",values:P,default:"inherit"},accentColor:{type:"enum",values:r.accentColors,default:"blue"},grayColor:{type:"enum",values:r.grayColors,default:"slate"},material:{type:"enum",values:g,default:"translucent"},panelBackground:{type:"enum",values:D,default:"translucent"},radius:{type:"enum",values:l.radii,default:"medium"},scaling:{type:"enum",values:b,default:"100%"},fontFamily:{type:"enum",values:h,default:"sans"}};
|
|
2
2
|
//# sourceMappingURL=theme.props.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/components/theme.props.tsx"],
|
|
4
|
-
"sourcesContent": ["import { asChildPropDef } from '../props/as-child.prop.js';\nimport { accentColors, grayColors } from '../props/color.prop.js';\nimport { radii } from '../props/radius.prop.js';\n\nimport type { GetPropDefTypes, PropDef } from '../props/prop-def.js';\n\nconst appearances = ['inherit', 'light', 'dark'] as const;\nconst panelBackgrounds = ['solid', 'translucent'] as const;\nconst materials = ['solid', 'translucent'] as const;\nconst scalings = ['90%', '95%', '100%', '105%', '110%'] as const;\nconst fontFamilies = ['sans', 'mono'] as const;\n\nconst themePropDefs = {\n ...asChildPropDef,\n /**\n * Whether to apply background color to the Theme element.\n *\n * Defaults to true for the root Theme and for Theme elements that\n * have an explicit light or dark appearance prop.\n */\n hasBackground: { type: 'boolean', default: true },\n /**\n * Sets the color scheme of the theme, typcially referred to as light and dark mode.\n *\n * @link\n * https://www.radix-ui.com/themes/docs/theme/dark-mode\n */\n appearance: { type: 'enum', values: appearances, default: 'inherit' },\n /**\n * Selects one of the accent color options to use in the Theme.\n *\n * @link\n * https://www.radix-ui.com/themes/docs/theme/color\n */\n accentColor: { type: 'enum', values: accentColors, default: 'blue' },\n /**\n * Selects one of the gray color options to use in the Theme.\n *\n * @link\n * https://www.radix-ui.com/themes/docs/theme/color\n */\n grayColor: { type: 'enum', values: grayColors, default: 'slate' },\n /**\n * Controls whether to use a solid or translucent background color on panelled\n * elements such as Card or Table is solid or translucent.\n *\n * @link\n * https://www.radix-ui.com/themes/docs/theme/visual-style\n */\n material: { type: 'enum', values: materials, default: 'translucent' },\n /**\n * Controls whether to use a solid or translucent background color on panelled\n * elements such as Card or Table is solid or translucent.\n *\n * @deprecated Use `material` prop instead. This prop will be removed in a future version.\n *\n * @link\n * https://www.radix-ui.com/themes/docs/theme/visual-style\n */\n panelBackground: { type: 'enum', values: panelBackgrounds, default: 'translucent' },\n /**\n * Sets the default radius of the components.\n *\n * @link\n * https://www.radix-ui.com/themes/docs/theme/visual-style\n */\n radius: { type: 'enum', values: radii, default: 'medium' },\n /**\n * Sets a scaling multiplier for values like spacing, font sizes, line heights, etc. are scaled.\n *\n * @link\n * https://www.radix-ui.com/themes/docs/theme/layout\n */\n scaling: { type: 'enum', values: scalings, default: '100%' },\n /**\n * Sets the font family for the theme.\n *\n * @default 'sans'\n */\n fontFamily: { type: 'enum', values: fontFamilies, default: 'sans' },\n} satisfies {\n hasBackground: PropDef<boolean>;\n appearance: PropDef<(typeof appearances)[number]>;\n accentColor: PropDef<(typeof accentColors)[number]>;\n grayColor: PropDef<(typeof grayColors)[number]>;\n material: PropDef<(typeof materials)[number]>;\n panelBackground: PropDef<(typeof panelBackgrounds)[number]>;\n radius: PropDef<(typeof radii)[number]>;\n scaling: PropDef<(typeof scalings)[number]>;\n fontFamily: PropDef<(typeof fontFamilies)[number]>;\n};\n\ntype ThemeOwnProps = GetPropDefTypes<typeof themePropDefs & typeof asChildPropDef>;\n\nexport { themePropDefs };\nexport type { ThemeOwnProps };\n"],
|
|
5
|
-
"mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,mBAAAE,IAAA,eAAAC,EAAAH,GAAA,IAAAI,EAA+B,qCAC/BC,EAAyC,kCACzCC,EAAsB,mCAItB,MAAMC,EAAc,CAAC,UAAW,QAAS,MAAM,EACzCC,EAAmB,CAAC,QAAS,aAAa,EAC1CC,EAAY,CAAC,QAAS,aAAa,EACnCC,EAAW,CAAC,MAAO,MAAO,OAAQ,OAAQ,MAAM,EAChDC,EAAe,CAAC,OAAQ,
|
|
4
|
+
"sourcesContent": ["import { asChildPropDef } from '../props/as-child.prop.js';\nimport { accentColors, grayColors } from '../props/color.prop.js';\nimport { radii } from '../props/radius.prop.js';\n\nimport type { GetPropDefTypes, PropDef } from '../props/prop-def.js';\n\nconst appearances = ['inherit', 'light', 'dark'] as const;\nconst panelBackgrounds = ['solid', 'translucent'] as const;\nconst materials = ['solid', 'translucent'] as const;\nconst scalings = ['90%', '95%', '100%', '105%', '110%'] as const;\nconst fontFamilies = ['sans', 'mono', 'serif'] as const;\n\nconst themePropDefs = {\n ...asChildPropDef,\n /**\n * Whether to apply background color to the Theme element.\n *\n * Defaults to true for the root Theme and for Theme elements that\n * have an explicit light or dark appearance prop.\n */\n hasBackground: { type: 'boolean', default: true },\n /**\n * Sets the color scheme of the theme, typcially referred to as light and dark mode.\n *\n * @link\n * https://www.radix-ui.com/themes/docs/theme/dark-mode\n */\n appearance: { type: 'enum', values: appearances, default: 'inherit' },\n /**\n * Selects one of the accent color options to use in the Theme.\n *\n * @link\n * https://www.radix-ui.com/themes/docs/theme/color\n */\n accentColor: { type: 'enum', values: accentColors, default: 'blue' },\n /**\n * Selects one of the gray color options to use in the Theme.\n *\n * @link\n * https://www.radix-ui.com/themes/docs/theme/color\n */\n grayColor: { type: 'enum', values: grayColors, default: 'slate' },\n /**\n * Controls whether to use a solid or translucent background color on panelled\n * elements such as Card or Table is solid or translucent.\n *\n * @link\n * https://www.radix-ui.com/themes/docs/theme/visual-style\n */\n material: { type: 'enum', values: materials, default: 'translucent' },\n /**\n * Controls whether to use a solid or translucent background color on panelled\n * elements such as Card or Table is solid or translucent.\n *\n * @deprecated Use `material` prop instead. This prop will be removed in a future version.\n *\n * @link\n * https://www.radix-ui.com/themes/docs/theme/visual-style\n */\n panelBackground: { type: 'enum', values: panelBackgrounds, default: 'translucent' },\n /**\n * Sets the default radius of the components.\n *\n * @link\n * https://www.radix-ui.com/themes/docs/theme/visual-style\n */\n radius: { type: 'enum', values: radii, default: 'medium' },\n /**\n * Sets a scaling multiplier for values like spacing, font sizes, line heights, etc. are scaled.\n *\n * @link\n * https://www.radix-ui.com/themes/docs/theme/layout\n */\n scaling: { type: 'enum', values: scalings, default: '100%' },\n /**\n * Sets the font family for the theme.\n *\n * @default 'sans'\n */\n fontFamily: { type: 'enum', values: fontFamilies, default: 'sans' },\n} satisfies {\n hasBackground: PropDef<boolean>;\n appearance: PropDef<(typeof appearances)[number]>;\n accentColor: PropDef<(typeof accentColors)[number]>;\n grayColor: PropDef<(typeof grayColors)[number]>;\n material: PropDef<(typeof materials)[number]>;\n panelBackground: PropDef<(typeof panelBackgrounds)[number]>;\n radius: PropDef<(typeof radii)[number]>;\n scaling: PropDef<(typeof scalings)[number]>;\n fontFamily: PropDef<(typeof fontFamilies)[number]>;\n};\n\ntype ThemeOwnProps = GetPropDefTypes<typeof themePropDefs & typeof asChildPropDef>;\n\nexport { themePropDefs };\nexport type { ThemeOwnProps };\n"],
|
|
5
|
+
"mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,mBAAAE,IAAA,eAAAC,EAAAH,GAAA,IAAAI,EAA+B,qCAC/BC,EAAyC,kCACzCC,EAAsB,mCAItB,MAAMC,EAAc,CAAC,UAAW,QAAS,MAAM,EACzCC,EAAmB,CAAC,QAAS,aAAa,EAC1CC,EAAY,CAAC,QAAS,aAAa,EACnCC,EAAW,CAAC,MAAO,MAAO,OAAQ,OAAQ,MAAM,EAChDC,EAAe,CAAC,OAAQ,OAAQ,OAAO,EAEvCT,EAAgB,CACpB,GAAG,iBAOH,cAAe,CAAE,KAAM,UAAW,QAAS,EAAK,EAOhD,WAAY,CAAE,KAAM,OAAQ,OAAQK,EAAa,QAAS,SAAU,EAOpE,YAAa,CAAE,KAAM,OAAQ,OAAQ,eAAc,QAAS,MAAO,EAOnE,UAAW,CAAE,KAAM,OAAQ,OAAQ,aAAY,QAAS,OAAQ,EAQhE,SAAU,CAAE,KAAM,OAAQ,OAAQE,EAAW,QAAS,aAAc,EAUpE,gBAAiB,CAAE,KAAM,OAAQ,OAAQD,EAAkB,QAAS,aAAc,EAOlF,OAAQ,CAAE,KAAM,OAAQ,OAAQ,QAAO,QAAS,QAAS,EAOzD,QAAS,CAAE,KAAM,OAAQ,OAAQE,EAAU,QAAS,MAAO,EAM3D,WAAY,CAAE,KAAM,OAAQ,OAAQC,EAAc,QAAS,MAAO,CACpE",
|
|
6
6
|
"names": ["theme_props_exports", "__export", "themePropDefs", "__toCommonJS", "import_as_child_prop", "import_color_prop", "import_radius_prop", "appearances", "panelBackgrounds", "materials", "scalings", "fontFamilies"]
|
|
7
7
|
}
|
|
@@ -12,10 +12,14 @@ export interface FontConfig {
|
|
|
12
12
|
sans?: string;
|
|
13
13
|
/** Monospace font stack for fontFamily="mono" */
|
|
14
14
|
mono?: string;
|
|
15
|
+
/** Serif font stack for fontFamily="serif" */
|
|
16
|
+
serif?: string;
|
|
15
17
|
/** Base Inter font replacement */
|
|
16
18
|
inter?: string;
|
|
17
19
|
/** Base JetBrains Mono font replacement */
|
|
18
20
|
jetbrainsMono?: string;
|
|
21
|
+
/** Base Playfair Display font replacement */
|
|
22
|
+
playfairDisplay?: string;
|
|
19
23
|
}
|
|
20
24
|
/**
|
|
21
25
|
* CSS variable names used by Kookie UI for fonts
|
|
@@ -23,8 +27,10 @@ export interface FontConfig {
|
|
|
23
27
|
export declare const FONT_CSS_VARIABLES: {
|
|
24
28
|
readonly sans: "--font-sans";
|
|
25
29
|
readonly mono: "--font-mono";
|
|
30
|
+
readonly serif: "--font-serif";
|
|
26
31
|
readonly inter: "--font-inter";
|
|
27
32
|
readonly jetbrainsMono: "--font-jetbrains-mono";
|
|
33
|
+
readonly playfairDisplay: "--font-playfair-display";
|
|
28
34
|
readonly defaultFamily: "--default-font-family";
|
|
29
35
|
readonly headingFamily: "--heading-font-family";
|
|
30
36
|
readonly strongFamily: "--strong-font-family";
|
|
@@ -42,6 +48,10 @@ export declare const FONT_STACKS: {
|
|
|
42
48
|
readonly firaCode: "'Fira Code', 'JetBrains Mono', 'Consolas', 'Liberation Mono', monospace";
|
|
43
49
|
readonly sourceCodePro: "'Source Code Pro', 'JetBrains Mono', 'Consolas', monospace";
|
|
44
50
|
readonly systemMono: "'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', 'Courier New', monospace";
|
|
51
|
+
readonly playfair: "'Playfair Display', 'Times New Roman', 'Times', 'Georgia', 'Cambria', serif";
|
|
52
|
+
readonly times: "'Times New Roman', 'Times', 'Georgia', 'Cambria', serif";
|
|
53
|
+
readonly georgia: "'Georgia', 'Times New Roman', 'Times', serif";
|
|
54
|
+
readonly lora: "'Lora', 'Times New Roman', 'Times', serif";
|
|
45
55
|
};
|
|
46
56
|
/**
|
|
47
57
|
* Apply font configuration to CSS variables
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"font-config.d.ts","sourceRoot":"","sources":["../../../src/helpers/font-config.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,kDAAkD;IAClD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,iDAAiD;IACjD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,kCAAkC;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,2CAA2C;IAC3C,aAAa,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"font-config.d.ts","sourceRoot":"","sources":["../../../src/helpers/font-config.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,kDAAkD;IAClD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,iDAAiD;IACjD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,8CAA8C;IAC9C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kCAAkC;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,2CAA2C;IAC3C,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,6CAA6C;IAC7C,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED;;GAEG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;CAWrB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;CAkBd,CAAC;AAEX;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,UAAU,EAAE,MAAM,GAAE,WAAsC,GAAG,IAAI,CA0BxG;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,CA8B1D;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,MAAM,GAAE,WAAsC,GAAG,IAAI,CAU/E;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,GAAE,WAAsC,GAAG,UAAU,CAW/F"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";var
|
|
2
|
-
`)}function C(
|
|
1
|
+
"use strict";var s=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var l=(e,o)=>{for(var t in o)s(e,t,{get:o[t],enumerable:!0})},y=(e,o,t,i)=>{if(o&&typeof o=="object"||typeof o=="function")for(let r of p(o))!m.call(e,r)&&r!==t&&s(e,r,{get:()=>o[r],enumerable:!(i=a(o,r))||i.enumerable});return e};var f=e=>y(s({},"__esModule",{value:!0}),e);var F={};l(F,{FONT_CSS_VARIABLES:()=>n,FONT_STACKS:()=>u,applyFontConfig:()=>d,generateFontCSS:()=>M,getCurrentFontConfig:()=>P,resetFonts:()=>C});module.exports=f(F);const n={sans:"--font-sans",mono:"--font-mono",serif:"--font-serif",inter:"--font-inter",jetbrainsMono:"--font-jetbrains-mono",playfairDisplay:"--font-playfair-display",defaultFamily:"--default-font-family",headingFamily:"--heading-font-family",strongFamily:"--strong-font-family",codeFamily:"--code-font-family"},u={inter:"'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif",system:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif",poppins:"'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif",openSans:"'Open Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif",jetbrainsMono:"'JetBrains Mono', 'Fira Code', 'Consolas', 'Liberation Mono', monospace",firaCode:"'Fira Code', 'JetBrains Mono', 'Consolas', 'Liberation Mono', monospace",sourceCodePro:"'Source Code Pro', 'JetBrains Mono', 'Consolas', monospace",systemMono:"'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', 'Courier New', monospace",playfair:"'Playfair Display', 'Times New Roman', 'Times', 'Georgia', 'Cambria', serif",times:"'Times New Roman', 'Times', 'Georgia', 'Cambria', serif",georgia:"'Georgia', 'Times New Roman', 'Times', serif",lora:"'Lora', 'Times New Roman', 'Times', serif"};function d(e,o=document.documentElement){const t=o.style;e.sans&&t.setProperty(n.sans,e.sans),e.mono&&t.setProperty(n.mono,e.mono),e.serif&&t.setProperty(n.serif,e.serif),e.inter&&t.setProperty(n.inter,e.inter),e.jetbrainsMono&&t.setProperty(n.jetbrainsMono,e.jetbrainsMono),e.playfairDisplay&&t.setProperty(n.playfairDisplay,e.playfairDisplay)}function M(e){const o=[":root {"];return e.sans&&o.push(` ${n.sans}: ${e.sans};`),e.mono&&o.push(` ${n.mono}: ${e.mono};`),e.serif&&o.push(` ${n.serif}: ${e.serif};`),e.inter&&o.push(` ${n.inter}: ${e.inter};`),e.jetbrainsMono&&o.push(` ${n.jetbrainsMono}: ${e.jetbrainsMono};`),e.playfairDisplay&&o.push(` ${n.playfairDisplay}: ${e.playfairDisplay};`),o.push("}"),o.join(`
|
|
2
|
+
`)}function C(e=document.documentElement){const o=e.style;o.removeProperty(n.sans),o.removeProperty(n.mono),o.removeProperty(n.serif),o.removeProperty(n.inter),o.removeProperty(n.jetbrainsMono),o.removeProperty(n.playfairDisplay)}function P(e=document.documentElement){const o=getComputedStyle(e);return{sans:o.getPropertyValue(n.sans).trim()||void 0,mono:o.getPropertyValue(n.mono).trim()||void 0,serif:o.getPropertyValue(n.serif).trim()||void 0,inter:o.getPropertyValue(n.inter).trim()||void 0,jetbrainsMono:o.getPropertyValue(n.jetbrainsMono).trim()||void 0,playfairDisplay:o.getPropertyValue(n.playfairDisplay).trim()||void 0}}
|
|
3
3
|
//# sourceMappingURL=font-config.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/helpers/font-config.ts"],
|
|
4
|
-
"sourcesContent": ["/**\n * Font configuration utilities for Kookie UI\n *\n * These utilities help users configure custom fonts through CSS variables\n * and provide type-safe font configuration options.\n */\n\n/**\n * Font family configuration interface\n */\nexport interface FontConfig {\n /** Sans-serif font stack for fontFamily=\"sans\" */\n sans?: string;\n /** Monospace font stack for fontFamily=\"mono\" */\n mono?: string;\n /** Base Inter font replacement */\n inter?: string;\n /** Base JetBrains Mono font replacement */\n jetbrainsMono?: string;\n}\n\n/**\n * CSS variable names used by Kookie UI for fonts\n */\nexport const FONT_CSS_VARIABLES = {\n sans: '--font-sans',\n mono: '--font-mono',\n inter: '--font-inter',\n jetbrainsMono: '--font-jetbrains-mono',\n defaultFamily: '--default-font-family',\n headingFamily: '--heading-font-family',\n strongFamily: '--strong-font-family',\n codeFamily: '--code-font-family',\n} as const;\n\n/**\n * Popular font stacks for common use cases\n */\nexport const FONT_STACKS = {\n // Sans-serif options\n inter: \"'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif\",\n system
|
|
5
|
-
"mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,wBAAAE,EAAA,gBAAAC,EAAA,oBAAAC,EAAA,oBAAAC,EAAA,yBAAAC,EAAA,eAAAC,IAAA,eAAAC,EAAAR,
|
|
4
|
+
"sourcesContent": ["/**\n * Font configuration utilities for Kookie UI\n *\n * These utilities help users configure custom fonts through CSS variables\n * and provide type-safe font configuration options.\n */\n\n/**\n * Font family configuration interface\n */\nexport interface FontConfig {\n /** Sans-serif font stack for fontFamily=\"sans\" */\n sans?: string;\n /** Monospace font stack for fontFamily=\"mono\" */\n mono?: string;\n /** Serif font stack for fontFamily=\"serif\" */\n serif?: string;\n /** Base Inter font replacement */\n inter?: string;\n /** Base JetBrains Mono font replacement */\n jetbrainsMono?: string;\n /** Base Playfair Display font replacement */\n playfairDisplay?: string;\n}\n\n/**\n * CSS variable names used by Kookie UI for fonts\n */\nexport const FONT_CSS_VARIABLES = {\n sans: '--font-sans',\n mono: '--font-mono',\n serif: '--font-serif',\n inter: '--font-inter',\n jetbrainsMono: '--font-jetbrains-mono',\n playfairDisplay: '--font-playfair-display',\n defaultFamily: '--default-font-family',\n headingFamily: '--heading-font-family',\n strongFamily: '--strong-font-family',\n codeFamily: '--code-font-family',\n} as const;\n\n/**\n * Popular font stacks for common use cases\n */\nexport const FONT_STACKS = {\n // Sans-serif options\n inter: \"'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif\",\n system: \"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif\",\n poppins: \"'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif\",\n openSans: \"'Open Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif\",\n\n // Monospace options\n jetbrainsMono: \"'JetBrains Mono', 'Fira Code', 'Consolas', 'Liberation Mono', monospace\",\n firaCode: \"'Fira Code', 'JetBrains Mono', 'Consolas', 'Liberation Mono', monospace\",\n sourceCodePro: \"'Source Code Pro', 'JetBrains Mono', 'Consolas', monospace\",\n systemMono: \"'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', 'Courier New', monospace\",\n\n // Serif options\n playfair: \"'Playfair Display', 'Times New Roman', 'Times', 'Georgia', 'Cambria', serif\",\n times: \"'Times New Roman', 'Times', 'Georgia', 'Cambria', serif\",\n georgia: \"'Georgia', 'Times New Roman', 'Times', serif\",\n lora: \"'Lora', 'Times New Roman', 'Times', serif\",\n} as const;\n\n/**\n * Apply font configuration to CSS variables\n *\n * @param config Font configuration object\n * @param target Target element (defaults to document.documentElement)\n *\n * @example\n * ```ts\n * // Use Google Fonts\n * applyFontConfig({\n * sans: FONT_STACKS.poppins,\n * mono: FONT_STACKS.firaCode\n * });\n *\n * // Use system fonts only\n * applyFontConfig({\n * sans: FONT_STACKS.system,\n * mono: FONT_STACKS.systemMono\n * });\n * ```\n */\nexport function applyFontConfig(config: FontConfig, target: HTMLElement = document.documentElement): void {\n const style = target.style;\n\n if (config.sans) {\n style.setProperty(FONT_CSS_VARIABLES.sans, config.sans);\n }\n\n if (config.mono) {\n style.setProperty(FONT_CSS_VARIABLES.mono, config.mono);\n }\n\n if (config.serif) {\n style.setProperty(FONT_CSS_VARIABLES.serif, config.serif);\n }\n\n if (config.inter) {\n style.setProperty(FONT_CSS_VARIABLES.inter, config.inter);\n }\n\n if (config.jetbrainsMono) {\n style.setProperty(FONT_CSS_VARIABLES.jetbrainsMono, config.jetbrainsMono);\n }\n\n if (config.playfairDisplay) {\n style.setProperty(FONT_CSS_VARIABLES.playfairDisplay, config.playfairDisplay);\n }\n}\n\n/**\n * Generate CSS string for font configuration\n *\n * @param config Font configuration object\n * @returns CSS string that can be injected into a stylesheet\n *\n * @example\n * ```ts\n * const css = generateFontCSS({\n * sans: FONT_STACKS.poppins,\n * mono: FONT_STACKS.firaCode\n * });\n *\n * // Inject into document\n * const style = document.createElement('style');\n * style.textContent = css;\n * document.head.appendChild(style);\n * ```\n */\nexport function generateFontCSS(config: FontConfig): string {\n const rules: string[] = [':root {'];\n\n if (config.sans) {\n rules.push(` ${FONT_CSS_VARIABLES.sans}: ${config.sans};`);\n }\n\n if (config.mono) {\n rules.push(` ${FONT_CSS_VARIABLES.mono}: ${config.mono};`);\n }\n\n if (config.serif) {\n rules.push(` ${FONT_CSS_VARIABLES.serif}: ${config.serif};`);\n }\n\n if (config.inter) {\n rules.push(` ${FONT_CSS_VARIABLES.inter}: ${config.inter};`);\n }\n\n if (config.jetbrainsMono) {\n rules.push(` ${FONT_CSS_VARIABLES.jetbrainsMono}: ${config.jetbrainsMono};`);\n }\n\n if (config.playfairDisplay) {\n rules.push(` ${FONT_CSS_VARIABLES.playfairDisplay}: ${config.playfairDisplay};`);\n }\n\n rules.push('}');\n\n return rules.join('\\n');\n}\n\n/**\n * Reset fonts to Kookie UI defaults\n */\nexport function resetFonts(target: HTMLElement = document.documentElement): void {\n const style = target.style;\n\n // Remove custom font variables to fall back to defaults\n style.removeProperty(FONT_CSS_VARIABLES.sans);\n style.removeProperty(FONT_CSS_VARIABLES.mono);\n style.removeProperty(FONT_CSS_VARIABLES.serif);\n style.removeProperty(FONT_CSS_VARIABLES.inter);\n style.removeProperty(FONT_CSS_VARIABLES.jetbrainsMono);\n style.removeProperty(FONT_CSS_VARIABLES.playfairDisplay);\n}\n\n/**\n * Get current font configuration from CSS variables\n */\nexport function getCurrentFontConfig(target: HTMLElement = document.documentElement): FontConfig {\n const computedStyle = getComputedStyle(target);\n\n return {\n sans: computedStyle.getPropertyValue(FONT_CSS_VARIABLES.sans).trim() || undefined,\n mono: computedStyle.getPropertyValue(FONT_CSS_VARIABLES.mono).trim() || undefined,\n serif: computedStyle.getPropertyValue(FONT_CSS_VARIABLES.serif).trim() || undefined,\n inter: computedStyle.getPropertyValue(FONT_CSS_VARIABLES.inter).trim() || undefined,\n jetbrainsMono: computedStyle.getPropertyValue(FONT_CSS_VARIABLES.jetbrainsMono).trim() || undefined,\n playfairDisplay: computedStyle.getPropertyValue(FONT_CSS_VARIABLES.playfairDisplay).trim() || undefined,\n };\n}\n"],
|
|
5
|
+
"mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,wBAAAE,EAAA,gBAAAC,EAAA,oBAAAC,EAAA,oBAAAC,EAAA,yBAAAC,EAAA,eAAAC,IAAA,eAAAC,EAAAR,GA4BO,MAAME,EAAqB,CAChC,KAAM,cACN,KAAM,cACN,MAAO,eACP,MAAO,eACP,cAAe,wBACf,gBAAiB,0BACjB,cAAe,wBACf,cAAe,wBACf,aAAc,uBACd,WAAY,oBACd,EAKaC,EAAc,CAEzB,MAAO,6EACP,OAAQ,6FACR,QAAS,oEACT,SAAU,sEAGV,cAAe,0EACf,SAAU,0EACV,cAAe,6DACf,WAAY,8EAGZ,SAAU,8EACV,MAAO,0DACP,QAAS,+CACT,KAAM,2CACR,EAuBO,SAASC,EAAgBK,EAAoBC,EAAsB,SAAS,gBAAuB,CACxG,MAAMC,EAAQD,EAAO,MAEjBD,EAAO,MACTE,EAAM,YAAYT,EAAmB,KAAMO,EAAO,IAAI,EAGpDA,EAAO,MACTE,EAAM,YAAYT,EAAmB,KAAMO,EAAO,IAAI,EAGpDA,EAAO,OACTE,EAAM,YAAYT,EAAmB,MAAOO,EAAO,KAAK,EAGtDA,EAAO,OACTE,EAAM,YAAYT,EAAmB,MAAOO,EAAO,KAAK,EAGtDA,EAAO,eACTE,EAAM,YAAYT,EAAmB,cAAeO,EAAO,aAAa,EAGtEA,EAAO,iBACTE,EAAM,YAAYT,EAAmB,gBAAiBO,EAAO,eAAe,CAEhF,CAqBO,SAASJ,EAAgBI,EAA4B,CAC1D,MAAMG,EAAkB,CAAC,SAAS,EAElC,OAAIH,EAAO,MACTG,EAAM,KAAK,KAAKV,EAAmB,IAAI,KAAKO,EAAO,IAAI,GAAG,EAGxDA,EAAO,MACTG,EAAM,KAAK,KAAKV,EAAmB,IAAI,KAAKO,EAAO,IAAI,GAAG,EAGxDA,EAAO,OACTG,EAAM,KAAK,KAAKV,EAAmB,KAAK,KAAKO,EAAO,KAAK,GAAG,EAG1DA,EAAO,OACTG,EAAM,KAAK,KAAKV,EAAmB,KAAK,KAAKO,EAAO,KAAK,GAAG,EAG1DA,EAAO,eACTG,EAAM,KAAK,KAAKV,EAAmB,aAAa,KAAKO,EAAO,aAAa,GAAG,EAG1EA,EAAO,iBACTG,EAAM,KAAK,KAAKV,EAAmB,eAAe,KAAKO,EAAO,eAAe,GAAG,EAGlFG,EAAM,KAAK,GAAG,EAEPA,EAAM,KAAK;AAAA,CAAI,CACxB,CAKO,SAASL,EAAWG,EAAsB,SAAS,gBAAuB,CAC/E,MAAMC,EAAQD,EAAO,MAGrBC,EAAM,eAAeT,EAAmB,IAAI,EAC5CS,EAAM,eAAeT,EAAmB,IAAI,EAC5CS,EAAM,eAAeT,EAAmB,KAAK,EAC7CS,EAAM,eAAeT,EAAmB,KAAK,EAC7CS,EAAM,eAAeT,EAAmB,aAAa,EACrDS,EAAM,eAAeT,EAAmB,eAAe,CACzD,CAKO,SAASI,EAAqBI,EAAsB,SAAS,gBAA6B,CAC/F,MAAMG,EAAgB,iBAAiBH,CAAM,EAE7C,MAAO,CACL,KAAMG,EAAc,iBAAiBX,EAAmB,IAAI,EAAE,KAAK,GAAK,OACxE,KAAMW,EAAc,iBAAiBX,EAAmB,IAAI,EAAE,KAAK,GAAK,OACxE,MAAOW,EAAc,iBAAiBX,EAAmB,KAAK,EAAE,KAAK,GAAK,OAC1E,MAAOW,EAAc,iBAAiBX,EAAmB,KAAK,EAAE,KAAK,GAAK,OAC1E,cAAeW,EAAc,iBAAiBX,EAAmB,aAAa,EAAE,KAAK,GAAK,OAC1F,gBAAiBW,EAAc,iBAAiBX,EAAmB,eAAe,EAAE,KAAK,GAAK,MAChG,CACF",
|
|
6
6
|
"names": ["font_config_exports", "__export", "FONT_CSS_VARIABLES", "FONT_STACKS", "applyFontConfig", "generateFontCSS", "getCurrentFontConfig", "resetFonts", "__toCommonJS", "config", "target", "style", "rules", "computedStyle"]
|
|
7
7
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{asChildPropDef as e}from"../props/as-child.prop.js";import{accentColors as a,grayColors as o}from"../props/color.prop.js";import{radii as t}from"../props/radius.prop.js";const r=["inherit","light","dark"],
|
|
1
|
+
import{asChildPropDef as e}from"../props/as-child.prop.js";import{accentColors as a,grayColors as o}from"../props/color.prop.js";import{radii as t}from"../props/radius.prop.js";const r=["inherit","light","dark"],s=["solid","translucent"],n=["solid","translucent"],p=["90%","95%","100%","105%","110%"],l=["sans","mono","serif"],u={...e,hasBackground:{type:"boolean",default:!0},appearance:{type:"enum",values:r,default:"inherit"},accentColor:{type:"enum",values:a,default:"blue"},grayColor:{type:"enum",values:o,default:"slate"},material:{type:"enum",values:n,default:"translucent"},panelBackground:{type:"enum",values:s,default:"translucent"},radius:{type:"enum",values:t,default:"medium"},scaling:{type:"enum",values:p,default:"100%"},fontFamily:{type:"enum",values:l,default:"sans"}};export{u as themePropDefs};
|
|
2
2
|
//# sourceMappingURL=theme.props.js.map
|