@xqmsg/ui-core 0.24.10 → 0.24.11
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/dist/components/form/FormTypes.d.ts +2 -2
- package/dist/components/input/InputTypes.d.ts +0 -1
- package/dist/components/input/StackedMultiSelect/index.d.ts +2 -2
- package/dist/components/input/StackedRadio/StackedRadioGroup.d.ts +2 -2
- package/dist/components/input/StackedSelect/index.d.ts +3 -3
- package/dist/components/input/components/dropdown/index.d.ts +2 -2
- package/dist/components/input/index.d.ts +3 -3
- package/dist/components/select/index.d.ts +3 -3
- package/dist/components/toolbar/components/actions/sort/index.d.ts +2 -2
- package/dist/components/toolbar/components/dropdown/index.d.ts +2 -2
- package/dist/theme/components/menu.d.ts +55 -0
- package/dist/ui-core.cjs.development.js +92 -24
- package/dist/ui-core.cjs.development.js.map +1 -1
- package/dist/ui-core.cjs.production.min.js +1 -1
- package/dist/ui-core.cjs.production.min.js.map +1 -1
- package/dist/ui-core.esm.js +92 -24
- package/dist/ui-core.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/form/FormTypes.ts +2 -2
- package/src/components/input/InputTypes.ts +0 -2
- package/src/components/input/StackedMultiSelect/index.tsx +5 -9
- package/src/components/input/StackedRadio/StackedRadioGroup.tsx +2 -3
- package/src/components/input/StackedSelect/index.tsx +4 -4
- package/src/components/input/components/dropdown/index.tsx +2 -2
- package/src/components/input/index.tsx +6 -6
- package/src/components/select/index.tsx +3 -3
- package/src/components/toolbar/components/actions/sort/index.tsx +2 -2
- package/src/components/toolbar/components/dropdown/index.tsx +2 -2
- package/src/theme/components/menu.ts +78 -0
- package/src/theme/customXQChakraTheme.ts +2 -0
package/dist/ui-core.esm.js
CHANGED
|
@@ -4270,8 +4270,75 @@ var Link$1 = {
|
|
|
4270
4270
|
variants: variants$6
|
|
4271
4271
|
};
|
|
4272
4272
|
|
|
4273
|
-
var parts$4 = ['
|
|
4274
|
-
|
|
4273
|
+
var parts$4 = ['item', 'command', 'list', 'button', 'groupTitle'];
|
|
4274
|
+
function baseStyleList(props) {
|
|
4275
|
+
return {
|
|
4276
|
+
bg: colors.fill.light.quaternary,
|
|
4277
|
+
boxShadow: mode("2xl", "dark-lg")(props),
|
|
4278
|
+
color: 'inherit',
|
|
4279
|
+
minW: '3xs',
|
|
4280
|
+
py: 4,
|
|
4281
|
+
px: 2,
|
|
4282
|
+
zIndex: 'docked',
|
|
4283
|
+
borderWidth: 0,
|
|
4284
|
+
overflow: 'hidden',
|
|
4285
|
+
backdropFilter: 'auto',
|
|
4286
|
+
backdropBlur: '64px',
|
|
4287
|
+
borderRadius: '4px',
|
|
4288
|
+
border: '0.25px solid',
|
|
4289
|
+
borderColor: colors.fill.light.tertiary
|
|
4290
|
+
};
|
|
4291
|
+
}
|
|
4292
|
+
function baseStyleItem(props) {
|
|
4293
|
+
return {
|
|
4294
|
+
fontSize: '13px;',
|
|
4295
|
+
fontWeight: 500,
|
|
4296
|
+
lineHeight: '16px',
|
|
4297
|
+
py: 3,
|
|
4298
|
+
px: 4,
|
|
4299
|
+
borderRadius: '4px',
|
|
4300
|
+
width: '100%',
|
|
4301
|
+
transition: 'background 50ms ease-in 0s',
|
|
4302
|
+
_hover: {
|
|
4303
|
+
color: colors.white,
|
|
4304
|
+
background: colors.fill.action
|
|
4305
|
+
},
|
|
4306
|
+
_active: {
|
|
4307
|
+
bg: mode("gray.200", "whiteAlpha.200")(props)
|
|
4308
|
+
},
|
|
4309
|
+
_expanded: {
|
|
4310
|
+
bg: mode("gray.100", "whiteAlpha.100")(props)
|
|
4311
|
+
},
|
|
4312
|
+
_disabled: {
|
|
4313
|
+
opacity: 0.4,
|
|
4314
|
+
cursor: 'not-allowed'
|
|
4315
|
+
}
|
|
4316
|
+
};
|
|
4317
|
+
}
|
|
4318
|
+
var baseStyleGroupTitle = {
|
|
4319
|
+
mx: 4,
|
|
4320
|
+
my: 2,
|
|
4321
|
+
fontWeight: 'semibold',
|
|
4322
|
+
fontSize: 'sm'
|
|
4323
|
+
};
|
|
4324
|
+
var baseStyleCommand = {
|
|
4325
|
+
opacity: 0.6
|
|
4326
|
+
};
|
|
4327
|
+
var baseStyle$9 = function baseStyle(props) {
|
|
4328
|
+
return {
|
|
4329
|
+
list: baseStyleList(props),
|
|
4330
|
+
item: baseStyleItem(props),
|
|
4331
|
+
groupTitle: baseStyleGroupTitle,
|
|
4332
|
+
command: baseStyleCommand
|
|
4333
|
+
};
|
|
4334
|
+
};
|
|
4335
|
+
var Menu$1 = {
|
|
4336
|
+
parts: parts$4,
|
|
4337
|
+
baseStyle: baseStyle$9
|
|
4338
|
+
};
|
|
4339
|
+
|
|
4340
|
+
var parts$5 = ['overlay', 'dialogContainer', 'dialog', 'header', 'closeButton', 'body', 'footer'];
|
|
4341
|
+
var baseStyle$a = {
|
|
4275
4342
|
width: 'fit-content',
|
|
4276
4343
|
height: 'fit-content',
|
|
4277
4344
|
background: '#F6F6F6',
|
|
@@ -4302,8 +4369,8 @@ var baseStyle$9 = {
|
|
|
4302
4369
|
}
|
|
4303
4370
|
};
|
|
4304
4371
|
var Modal$1 = {
|
|
4305
|
-
parts: parts$
|
|
4306
|
-
baseStyle: baseStyle$
|
|
4372
|
+
parts: parts$5,
|
|
4373
|
+
baseStyle: baseStyle$a
|
|
4307
4374
|
};
|
|
4308
4375
|
|
|
4309
4376
|
var Popover = {
|
|
@@ -4316,7 +4383,7 @@ var Popover = {
|
|
|
4316
4383
|
|
|
4317
4384
|
var defaultProps$5 = Input$1.defaultProps,
|
|
4318
4385
|
variants$7 = Input$1.variants;
|
|
4319
|
-
var parts$
|
|
4386
|
+
var parts$6 = ['field', 'icon'];
|
|
4320
4387
|
function baseStyleField() {
|
|
4321
4388
|
return _extends$6({}, Input$1.baseStyle.field, {
|
|
4322
4389
|
appearance: 'none',
|
|
@@ -4335,20 +4402,20 @@ var baseStyleInput = {
|
|
|
4335
4402
|
opacity: 0.5
|
|
4336
4403
|
}
|
|
4337
4404
|
};
|
|
4338
|
-
var baseStyle$
|
|
4405
|
+
var baseStyle$b = function baseStyle() {
|
|
4339
4406
|
return {
|
|
4340
4407
|
field: baseStyleField(),
|
|
4341
4408
|
icon: baseStyleInput
|
|
4342
4409
|
};
|
|
4343
4410
|
};
|
|
4344
4411
|
var Select = {
|
|
4345
|
-
parts: parts$
|
|
4346
|
-
baseStyle: baseStyle$
|
|
4412
|
+
parts: parts$6,
|
|
4413
|
+
baseStyle: baseStyle$b,
|
|
4347
4414
|
variants: variants$7,
|
|
4348
4415
|
defaultProps: defaultProps$5
|
|
4349
4416
|
};
|
|
4350
4417
|
|
|
4351
|
-
var parts$
|
|
4418
|
+
var parts$7 = ['track', 'thumb'];
|
|
4352
4419
|
function baseStyleTrack(props) {
|
|
4353
4420
|
var c = props.colorScheme,
|
|
4354
4421
|
theme = props.theme;
|
|
@@ -4378,7 +4445,7 @@ var baseStyleThumb = {
|
|
|
4378
4445
|
borderRadius: 'full',
|
|
4379
4446
|
transform: 'translateX(0)'
|
|
4380
4447
|
};
|
|
4381
|
-
var baseStyle$
|
|
4448
|
+
var baseStyle$c = function baseStyle(props) {
|
|
4382
4449
|
return {
|
|
4383
4450
|
track: baseStyleTrack(props),
|
|
4384
4451
|
thumb: baseStyleThumb
|
|
@@ -4430,14 +4497,14 @@ var defaultProps$6 = {
|
|
|
4430
4497
|
colorScheme: 'blue'
|
|
4431
4498
|
};
|
|
4432
4499
|
var Switch = {
|
|
4433
|
-
parts: parts$
|
|
4434
|
-
baseStyle: baseStyle$
|
|
4500
|
+
parts: parts$7,
|
|
4501
|
+
baseStyle: baseStyle$c,
|
|
4435
4502
|
sizes: sizes,
|
|
4436
4503
|
defaultProps: defaultProps$6
|
|
4437
4504
|
};
|
|
4438
4505
|
|
|
4439
|
-
var parts$
|
|
4440
|
-
var baseStyle$
|
|
4506
|
+
var parts$8 = ['th', 'td', 'tr', 'body', 'thead'];
|
|
4507
|
+
var baseStyle$d = {
|
|
4441
4508
|
thead: {
|
|
4442
4509
|
bg: colors.label.primary.dark
|
|
4443
4510
|
},
|
|
@@ -4473,11 +4540,11 @@ var baseStyle$c = {
|
|
|
4473
4540
|
}
|
|
4474
4541
|
};
|
|
4475
4542
|
var Table = {
|
|
4476
|
-
parts: parts$
|
|
4477
|
-
baseStyle: baseStyle$
|
|
4543
|
+
parts: parts$8,
|
|
4544
|
+
baseStyle: baseStyle$d
|
|
4478
4545
|
};
|
|
4479
4546
|
|
|
4480
|
-
var parts$
|
|
4547
|
+
var parts$9 = ['root', 'tablist', 'tab', 'tabpanel', 'indicator'];
|
|
4481
4548
|
function baseStyleRoot(props) {
|
|
4482
4549
|
var orientation = props.orientation;
|
|
4483
4550
|
return {
|
|
@@ -4512,7 +4579,7 @@ function baseStyleTablist(props) {
|
|
|
4512
4579
|
var baseStyleTabpanel = {
|
|
4513
4580
|
p: 4
|
|
4514
4581
|
};
|
|
4515
|
-
var baseStyle$
|
|
4582
|
+
var baseStyle$e = function baseStyle(props) {
|
|
4516
4583
|
return {
|
|
4517
4584
|
root: baseStyleRoot(props),
|
|
4518
4585
|
tab: baseStyleTab(props),
|
|
@@ -4698,14 +4765,14 @@ var defaultProps$7 = {
|
|
|
4698
4765
|
colorScheme: 'blue'
|
|
4699
4766
|
};
|
|
4700
4767
|
var Tabs = {
|
|
4701
|
-
parts: parts$
|
|
4702
|
-
baseStyle: baseStyle$
|
|
4768
|
+
parts: parts$9,
|
|
4769
|
+
baseStyle: baseStyle$e,
|
|
4703
4770
|
sizes: sizes$1,
|
|
4704
4771
|
variants: variants$8,
|
|
4705
4772
|
defaultProps: defaultProps$7
|
|
4706
4773
|
};
|
|
4707
4774
|
|
|
4708
|
-
var baseStyle$
|
|
4775
|
+
var baseStyle$f = /*#__PURE__*/_extends$6({}, Input$1.baseStyle.field, {
|
|
4709
4776
|
fontSize: '13px',
|
|
4710
4777
|
display: 'block',
|
|
4711
4778
|
paddingY: '8px',
|
|
@@ -4713,7 +4780,7 @@ var baseStyle$e = /*#__PURE__*/_extends$6({}, Input$1.baseStyle.field, {
|
|
|
4713
4780
|
height: '78px',
|
|
4714
4781
|
lineHeight: 'short'
|
|
4715
4782
|
});
|
|
4716
|
-
var mobileInputs$1 = /*#__PURE__*/defineStyle$1( /*#__PURE__*/_extends$6({}, baseStyle$
|
|
4783
|
+
var mobileInputs$1 = /*#__PURE__*/defineStyle$1( /*#__PURE__*/_extends$6({}, baseStyle$f, Input$1.variants.mobile.field, {
|
|
4717
4784
|
border: 'none',
|
|
4718
4785
|
borderRadius: 0,
|
|
4719
4786
|
paddingY: '16px',
|
|
@@ -4728,14 +4795,14 @@ var mobileInputs$1 = /*#__PURE__*/defineStyle$1( /*#__PURE__*/_extends$6({}, bas
|
|
|
4728
4795
|
minHeight: '208px'
|
|
4729
4796
|
}));
|
|
4730
4797
|
var variants$9 = {
|
|
4731
|
-
"default": baseStyle$
|
|
4798
|
+
"default": baseStyle$f,
|
|
4732
4799
|
mobile: mobileInputs$1
|
|
4733
4800
|
};
|
|
4734
4801
|
var defaultProps$8 = {
|
|
4735
4802
|
variant: 'default'
|
|
4736
4803
|
};
|
|
4737
4804
|
var Textarea = {
|
|
4738
|
-
baseStyle: baseStyle$
|
|
4805
|
+
baseStyle: baseStyle$f,
|
|
4739
4806
|
variants: variants$9,
|
|
4740
4807
|
defaultProps: defaultProps$8
|
|
4741
4808
|
};
|
|
@@ -4867,6 +4934,7 @@ var customXQChakraTheme = /*#__PURE__*/extendTheme( /*#__PURE__*/_extends$6({
|
|
|
4867
4934
|
FormLabel: FormLabel,
|
|
4868
4935
|
Input: Input$1,
|
|
4869
4936
|
Link: Link$1,
|
|
4937
|
+
Menu: Menu$1,
|
|
4870
4938
|
Modal: Modal$1,
|
|
4871
4939
|
Popover: Popover,
|
|
4872
4940
|
Select: Select,
|