@sunggang/ui-lib 0.3.2 → 0.3.3

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/index.esm.css CHANGED
@@ -572,58 +572,35 @@ video {
572
572
  color: hsl(var(--foreground));
573
573
  font-feature-settings: 'rlig' 1, 'calt' 1;
574
574
  }
575
- .\!container {
576
- width: 100% !important;
577
- }
578
575
  .container {
579
576
  width: 100%;
580
577
  }
581
578
  @media (min-width: 640px) {
582
579
 
583
- .\!container {
584
- max-width: 640px !important;
585
- }
586
-
587
580
  .container {
588
581
  max-width: 640px;
589
582
  }
590
583
  }
591
584
  @media (min-width: 768px) {
592
585
 
593
- .\!container {
594
- max-width: 768px !important;
595
- }
596
-
597
586
  .container {
598
587
  max-width: 768px;
599
588
  }
600
589
  }
601
590
  @media (min-width: 1024px) {
602
591
 
603
- .\!container {
604
- max-width: 1024px !important;
605
- }
606
-
607
592
  .container {
608
593
  max-width: 1024px;
609
594
  }
610
595
  }
611
596
  @media (min-width: 1280px) {
612
597
 
613
- .\!container {
614
- max-width: 1280px !important;
615
- }
616
-
617
598
  .container {
618
599
  max-width: 1280px;
619
600
  }
620
601
  }
621
602
  @media (min-width: 1536px) {
622
603
 
623
- .\!container {
624
- max-width: 1536px !important;
625
- }
626
-
627
604
  .container {
628
605
  max-width: 1536px;
629
606
  }
@@ -634,9 +611,6 @@ video {
634
611
  .pointer-events-auto {
635
612
  pointer-events: auto;
636
613
  }
637
- .\!visible {
638
- visibility: visible !important;
639
- }
640
614
  .visible {
641
615
  visibility: visible;
642
616
  }
@@ -649,24 +623,15 @@ video {
649
623
  .static {
650
624
  position: static;
651
625
  }
652
- .\!fixed {
653
- position: fixed !important;
654
- }
655
626
  .fixed {
656
627
  position: fixed;
657
628
  }
658
629
  .absolute {
659
630
  position: absolute;
660
631
  }
661
- .\!relative {
662
- position: relative !important;
663
- }
664
632
  .relative {
665
633
  position: relative;
666
634
  }
667
- .sticky {
668
- position: sticky;
669
- }
670
635
  .inset-0 {
671
636
  inset: 0px;
672
637
  }
@@ -720,9 +685,6 @@ video {
720
685
  .top-\[72px\] {
721
686
  top: 72px;
722
687
  }
723
- .isolate {
724
- isolation: isolate;
725
- }
726
688
  .z-10 {
727
689
  z-index: 10;
728
690
  }
@@ -738,9 +700,6 @@ video {
738
700
  .z-\[9999\] {
739
701
  z-index: 9999;
740
702
  }
741
- .m-1 {
742
- margin: 0.25rem;
743
- }
744
703
  .m-4 {
745
704
  margin: 1rem;
746
705
  }
@@ -825,9 +784,6 @@ video {
825
784
  .mt-5 {
826
785
  margin-top: 1.25rem;
827
786
  }
828
- .\!block {
829
- display: block !important;
830
- }
831
787
  .block {
832
788
  display: block;
833
789
  }
@@ -843,49 +799,15 @@ video {
843
799
  .inline-flex {
844
800
  display: inline-flex;
845
801
  }
846
- .\!table {
847
- display: table !important;
848
- }
849
802
  .table {
850
803
  display: table;
851
804
  }
852
- .inline-table {
853
- display: inline-table;
854
- }
855
- .table-caption {
856
- display: table-caption;
857
- }
858
- .table-cell {
859
- display: table-cell;
860
- }
861
- .flow-root {
862
- display: flow-root;
863
- }
864
- .\!grid {
865
- display: grid !important;
866
- }
867
805
  .grid {
868
806
  display: grid;
869
807
  }
870
- .inline-grid {
871
- display: inline-grid;
872
- }
873
- .\!contents {
874
- display: contents !important;
875
- }
876
- .contents {
877
- display: contents;
878
- }
879
- .list-item {
880
- display: list-item;
881
- }
882
808
  .hidden {
883
809
  display: none;
884
810
  }
885
- .size-2 {
886
- width: 0.5rem;
887
- height: 0.5rem;
888
- }
889
811
  .h-10 {
890
812
  height: 2.5rem;
891
813
  }
@@ -1068,18 +990,9 @@ video {
1068
990
  .flex-none {
1069
991
  flex: none;
1070
992
  }
1071
- .flex-shrink {
1072
- flex-shrink: 1;
1073
- }
1074
- .shrink {
1075
- flex-shrink: 1;
1076
- }
1077
993
  .shrink-0 {
1078
994
  flex-shrink: 0;
1079
995
  }
1080
- .flex-grow {
1081
- flex-grow: 1;
1082
- }
1083
996
  .grow {
1084
997
  flex-grow: 1;
1085
998
  }
@@ -1117,9 +1030,6 @@ video {
1117
1030
  --tw-rotate: 90deg;
1118
1031
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
1119
1032
  }
1120
- .\!transform {
1121
- transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)) !important;
1122
- }
1123
1033
  .transform {
1124
1034
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
1125
1035
  }
@@ -1146,11 +1056,6 @@ video {
1146
1056
  -moz-user-select: none;
1147
1057
  user-select: none;
1148
1058
  }
1149
- .select-all {
1150
- -webkit-user-select: all;
1151
- -moz-user-select: all;
1152
- user-select: all;
1153
- }
1154
1059
  .resize {
1155
1060
  resize: both;
1156
1061
  }
@@ -1344,9 +1249,6 @@ video {
1344
1249
  .border-\[\#ffffff33\] {
1345
1250
  border-color: #ffffff33;
1346
1251
  }
1347
- .border-\[top\2c left\2c right\2c bottom\] {
1348
- border-color: top,left,right,bottom;
1349
- }
1350
1252
  .border-gray-200 {
1351
1253
  --tw-border-opacity: 1;
1352
1254
  border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
@@ -1720,12 +1622,6 @@ video {
1720
1622
  .text-right {
1721
1623
  text-align: right;
1722
1624
  }
1723
- .text-justify {
1724
- text-align: justify;
1725
- }
1726
- .indent-1 {
1727
- text-indent: 0.25rem;
1728
- }
1729
1625
  .align-middle {
1730
1626
  vertical-align: middle;
1731
1627
  }
@@ -1771,9 +1667,6 @@ video {
1771
1667
  .font-bold {
1772
1668
  font-weight: 700;
1773
1669
  }
1774
- .font-light {
1775
- font-weight: 300;
1776
- }
1777
1670
  .font-medium {
1778
1671
  font-weight: 500;
1779
1672
  }
@@ -1795,10 +1688,6 @@ video {
1795
1688
  .italic {
1796
1689
  font-style: italic;
1797
1690
  }
1798
- .ordinal {
1799
- --tw-ordinal: ordinal;
1800
- font-variant-numeric: var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction);
1801
- }
1802
1691
  .tracking-tight {
1803
1692
  letter-spacing: -0.025em;
1804
1693
  }
@@ -2003,23 +1892,12 @@ video {
2003
1892
  .underline {
2004
1893
  text-decoration-line: underline;
2005
1894
  }
2006
- .overline {
2007
- text-decoration-line: overline;
2008
- }
2009
1895
  .line-through {
2010
1896
  text-decoration-line: line-through;
2011
1897
  }
2012
1898
  .underline-offset-4 {
2013
1899
  text-underline-offset: 4px;
2014
1900
  }
2015
- .antialiased {
2016
- -webkit-font-smoothing: antialiased;
2017
- -moz-osx-font-smoothing: grayscale;
2018
- }
2019
- .subpixel-antialiased {
2020
- -webkit-font-smoothing: auto;
2021
- -moz-osx-font-smoothing: auto;
2022
- }
2023
1901
  .opacity-0 {
2024
1902
  opacity: 0;
2025
1903
  }
@@ -2104,28 +1982,9 @@ video {
2104
1982
  --tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / 0.1)) drop-shadow(0 1px 1px rgb(0 0 0 / 0.06));
2105
1983
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
2106
1984
  }
2107
- .grayscale {
2108
- --tw-grayscale: grayscale(100%);
2109
- filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
2110
- }
2111
- .invert {
2112
- --tw-invert: invert(100%);
2113
- filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
2114
- }
2115
- .sepia {
2116
- --tw-sepia: sepia(100%);
2117
- filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
2118
- }
2119
- .\!filter {
2120
- filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow) !important;
2121
- }
2122
1985
  .filter {
2123
1986
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
2124
1987
  }
2125
- .backdrop-filter {
2126
- -webkit-backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
2127
- backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
2128
- }
2129
1988
  .transition {
2130
1989
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;
2131
1990
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
@@ -2165,9 +2024,6 @@ video {
2165
2024
  .duration-500 {
2166
2025
  transition-duration: 500ms;
2167
2026
  }
2168
- .ease-in {
2169
- transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
2170
- }
2171
2027
  .ease-in-out {
2172
2028
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
2173
2029
  }
@@ -2188,12 +2044,6 @@ video {
2188
2044
  transform: translate3d(var(--tw-exit-translate-x, 0), var(--tw-exit-translate-y, 0), 0) scale3d(var(--tw-exit-scale, 1), var(--tw-exit-scale, 1), var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0));
2189
2045
  }
2190
2046
  }
2191
- .zoom-in {
2192
- --tw-enter-scale: 0;
2193
- }
2194
- .zoom-out {
2195
- --tw-exit-scale: 0;
2196
- }
2197
2047
  .duration-1000 {
2198
2048
  animation-duration: 1000ms;
2199
2049
  }
@@ -2206,57 +2056,12 @@ video {
2206
2056
  .duration-500 {
2207
2057
  animation-duration: 500ms;
2208
2058
  }
2209
- .ease-in {
2210
- animation-timing-function: cubic-bezier(0.4, 0, 1, 1);
2211
- }
2212
2059
  .ease-in-out {
2213
2060
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
2214
2061
  }
2215
2062
  .ease-out {
2216
2063
  animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
2217
2064
  }
2218
- .\!running {
2219
- animation-play-state: running !important;
2220
- }
2221
- .running {
2222
- animation-play-state: running;
2223
- }
2224
- .paused {
2225
- animation-play-state: paused;
2226
- }
2227
- .\[a-zA-Z0-9\:\\\\-\\\\\._\$\] {
2228
- a-z-a--z0-9: \\-\\. $;
2229
- }
2230
- .\[hash\:base64\] {
2231
- hash: base64;
2232
- }
2233
- .\[key\:string\] {
2234
- key: string;
2235
- }
2236
- .\[module\:ckbox\/ckbox\~CKBoxConfig\#assetsOrigin\] {
2237
- module: ckbox/ckbox~CKBoxConfig#assetsOrigin;
2238
- }
2239
- .\[module\:ckbox\/ckbox\~CKBoxConfig\#defaultUploadCategories\] {
2240
- module: ckbox/ckbox~CKBoxConfig#defaultUploadCategories;
2241
- }
2242
- .\[module\:ckbox\/ckbox\~CKBoxConfig\#ignoreDataId\] {
2243
- module: ckbox/ckbox~CKBoxConfig#ignoreDataId;
2244
- }
2245
- .\[module\:ckbox\/ckbox\~CKBoxConfig\#language\] {
2246
- module: ckbox/ckbox~CKBoxConfig#language;
2247
- }
2248
- .\[module\:ckbox\/ckbox\~CKBoxConfig\#serviceOrigin\] {
2249
- module: ckbox/ckbox~CKBoxConfig#serviceOrigin;
2250
- }
2251
- .\[module\:media-embed\/mediaembed\~MediaEmbedConfig\#elementName\] {
2252
- module: media-embed/mediaembed~MediaEmbedConfig#elementName;
2253
- }
2254
- .\[module\:media-embed\/mediaembed\~MediaEmbedConfig\#previewsInData\=false\] {
2255
- module: media-embed/mediaembed~MediaEmbedConfig#previewsInData=false;
2256
- }
2257
- .\[module\:ui\/template\~TemplateBinding\#callback\] {
2258
- module: ui/template~TemplateBinding#callback;
2259
- }
2260
2065
 
2261
2066
  /* gary */
2262
2067
 
package/index.esm2.js CHANGED
@@ -46942,7 +46942,7 @@ var BaseCkeditor = dynamic(function() {
46942
46942
  });
46943
46943
  var TextField = function(param) {
46944
46944
  var item = param.item;
46945
- var _useFormContext = useFormContext(), register = _useFormContext.register, setValue = _useFormContext.setValue, errors = _useFormContext.formState.errors;
46945
+ var _useFormContext = useFormContext(), register = _useFormContext.register, setValue = _useFormContext.setValue; _useFormContext.control; var errors = _useFormContext.formState.errors;
46946
46946
  var handleReplace = function(event) {
46947
46947
  var result = event.target.value.replace(/\D/g, "");
46948
46948
  setValue(item.name, result);
@@ -47293,7 +47293,8 @@ var CheckboxField = function(param) {
47293
47293
  return /*#__PURE__*/ jsx(Checkbox, _object_spread_props$3(_object_spread$6({}, field, checkbox === null || checkbox === void 0 ? void 0 : checkbox.muiProps), {
47294
47294
  sx: {
47295
47295
  padding: 0
47296
- }
47296
+ },
47297
+ checked: !!field.value
47297
47298
  }));
47298
47299
  }
47299
47300
  }),
@@ -47325,7 +47326,8 @@ var CheckboxField = function(param) {
47325
47326
  return /*#__PURE__*/ jsx(Checkbox, _object_spread_props$3(_object_spread$6({}, field, item === null || item === void 0 ? void 0 : item.muiProps), {
47326
47327
  sx: {
47327
47328
  padding: 0
47328
- }
47329
+ },
47330
+ checked: !!field.value
47329
47331
  }));
47330
47332
  }
47331
47333
  }),
@@ -47594,7 +47596,7 @@ function _object_spread_props$2(target, source) {
47594
47596
  }
47595
47597
  var BaseSwitch = /*#__PURE__*/ React.forwardRef(function(_param, ref) {
47596
47598
  var props = _extends({}, _object_destructuring_empty(_param));
47597
- var control = useForm().control;
47599
+ var control = useFormContext().control;
47598
47600
  var item = props.item;
47599
47601
  var size = (item === null || item === void 0 ? void 0 : item.size) || "large";
47600
47602
  var bgColor = (item === null || item === void 0 ? void 0 : item.color) === "blue" ? "data-[state=checked]:bg-blue-500" : (item === null || item === void 0 ? void 0 : item.color) === "red" ? "data-[state=checked]:bg-red-500" : (item === null || item === void 0 ? void 0 : item.color) === "green" ? "data-[state=checked]:bg-green-500" : (item === null || item === void 0 ? void 0 : item.color) === "yellow" ? "data-[state=checked]:bg-yellow-500" : "data-[state=checked]:bg-blue-500";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sunggang/ui-lib",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "dependencies": {
5
5
  "@emotion/react": "^11.14.0",
6
6
  "@emotion/styled": "^11.14.0",
@@ -2,11 +2,6 @@
2
2
  import { FormItem } from '../Form/types';
3
3
  interface CkEditorProps {
4
4
  item: FormItem;
5
- config: {
6
- uploadUrl?: string;
7
- fieldName?: string;
8
- authToken?: string;
9
- };
10
5
  }
11
6
  declare const BaseCkeditor: React.FC<CkEditorProps>;
12
7
  export default BaseCkeditor;