@oceanbase/design 0.4.0 → 0.4.2

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.
Files changed (114) hide show
  1. package/dist/design.min.css +1 -1
  2. package/dist/design.min.js +1 -1
  3. package/dist/reset.css +1 -0
  4. package/es/_util/genComponentStyleHook.d.ts +0 -1
  5. package/es/_util/genComponentStyleHook.js +1 -25
  6. package/es/button/style/index.js +17 -3
  7. package/es/card/index.js +11 -19
  8. package/es/card/style/index.js +5 -3
  9. package/es/checkbox/index.d.ts +2 -0
  10. package/es/checkbox/index.js +40 -1
  11. package/es/checkbox/style/index.d.ts +9 -0
  12. package/es/checkbox/style/index.js +22 -0
  13. package/es/config-provider/index.d.ts +2 -0
  14. package/es/config-provider/index.js +6 -4
  15. package/es/descriptions/hooks/useItems.d.ts +4 -4
  16. package/es/empty/default.js +34 -55
  17. package/es/empty/style/index.js +13 -11
  18. package/es/global.css +48 -0
  19. package/es/index.d.ts +9 -1
  20. package/es/index.js +5 -1
  21. package/es/progress/index.d.ts +1 -0
  22. package/es/progress/index.js +1 -0
  23. package/es/progress/progress.d.ts +1 -0
  24. package/es/progress/progress.js +1 -0
  25. package/es/radio/index.d.ts +7 -0
  26. package/es/radio/index.js +41 -1
  27. package/es/radio/style/index.d.ts +9 -0
  28. package/es/radio/style/index.js +23 -0
  29. package/es/result/style/index.js +10 -2
  30. package/es/slider/index.d.ts +5 -0
  31. package/es/slider/index.js +36 -1
  32. package/es/slider/style/index.d.ts +9 -0
  33. package/es/slider/style/index.js +21 -0
  34. package/es/switch/index.d.ts +4 -0
  35. package/es/switch/index.js +40 -1
  36. package/es/switch/style/index.d.ts +9 -0
  37. package/es/switch/style/index.js +17 -0
  38. package/es/table/index.js +18 -3
  39. package/es/table/style/index.js +55 -40
  40. package/es/theme/default.js +13 -12
  41. package/es/theme/style/aliyun.less +5 -1
  42. package/es/theme/style/compact.less +7 -3
  43. package/es/theme/style/dark.less +5 -1
  44. package/es/theme/style/default.less +15 -11
  45. package/es/tooltip/MouseTooltip.js +3 -2
  46. package/es/tooltip/index.js +3 -2
  47. package/es/tooltip/style/index.js +11 -2
  48. package/es/typography/Link.js +9 -3
  49. package/es/typography/Paragraph.js +9 -3
  50. package/es/typography/Text.js +9 -3
  51. package/es/typography/Title.js +9 -3
  52. package/es/typography/hooks/useClassName.d.ts +3 -0
  53. package/es/typography/hooks/useClassName.js +11 -0
  54. package/es/typography/style/index.js +45 -3
  55. package/lib/_util/genComponentStyleHook.d.ts +0 -1
  56. package/lib/_util/genComponentStyleHook.js +3 -38
  57. package/lib/button/style/index.js +21 -1
  58. package/lib/card/index.js +10 -21
  59. package/lib/card/style/index.js +7 -2
  60. package/lib/checkbox/index.d.ts +2 -0
  61. package/lib/checkbox/index.js +49 -1
  62. package/lib/checkbox/style/index.d.ts +9 -0
  63. package/lib/checkbox/style/index.js +49 -0
  64. package/lib/config-provider/index.d.ts +2 -0
  65. package/lib/config-provider/index.js +2 -1
  66. package/lib/descriptions/hooks/useItems.d.ts +4 -4
  67. package/lib/empty/default.js +8 -39
  68. package/lib/empty/style/index.js +42 -46
  69. package/lib/global.css +48 -0
  70. package/lib/index.d.ts +9 -1
  71. package/lib/index.js +13 -1
  72. package/lib/progress/index.d.ts +1 -0
  73. package/lib/progress/index.js +2 -0
  74. package/lib/progress/progress.d.ts +1 -0
  75. package/lib/progress/progress.js +23 -0
  76. package/lib/radio/index.d.ts +7 -0
  77. package/lib/radio/index.js +42 -1
  78. package/lib/radio/style/index.d.ts +9 -0
  79. package/lib/radio/style/index.js +49 -0
  80. package/lib/result/style/index.js +10 -1
  81. package/lib/slider/index.d.ts +5 -0
  82. package/lib/slider/index.js +38 -1
  83. package/lib/slider/style/index.d.ts +9 -0
  84. package/lib/slider/style/index.js +51 -0
  85. package/lib/switch/index.d.ts +4 -0
  86. package/lib/switch/index.js +40 -1
  87. package/lib/switch/style/index.d.ts +9 -0
  88. package/lib/switch/style/index.js +44 -0
  89. package/lib/table/index.js +19 -3
  90. package/lib/table/style/index.js +94 -55
  91. package/lib/theme/default.js +13 -12
  92. package/lib/theme/style/aliyun.less +5 -1
  93. package/lib/theme/style/compact.less +7 -3
  94. package/lib/theme/style/dark.less +5 -1
  95. package/lib/theme/style/default.less +15 -11
  96. package/lib/tooltip/MouseTooltip.js +3 -2
  97. package/lib/tooltip/index.js +3 -2
  98. package/lib/tooltip/style/index.js +10 -1
  99. package/lib/typography/Link.js +14 -2
  100. package/lib/typography/Paragraph.js +14 -2
  101. package/lib/typography/Text.js +14 -2
  102. package/lib/typography/Title.js +14 -2
  103. package/lib/typography/hooks/useClassName.d.ts +3 -0
  104. package/lib/typography/hooks/useClassName.js +46 -0
  105. package/lib/typography/style/index.js +49 -1
  106. package/package.json +13 -13
  107. package/es/reset.css +0 -10
  108. package/lib/reset.css +0 -10
  109. /package/es/{_util/fonts → fonts}/Consolas.woff2 +0 -0
  110. /package/es/{_util/fonts → fonts}/HelveticaNeue.woff2 +0 -0
  111. /package/es/{_util/fonts → fonts}/Inter.woff2 +0 -0
  112. /package/lib/{_util/fonts → fonts}/Consolas.woff2 +0 -0
  113. /package/lib/{_util/fonts → fonts}/HelveticaNeue.woff2 +0 -0
  114. /package/lib/{_util/fonts → fonts}/Inter.woff2 +0 -0
@@ -1 +1 @@
1
- body,html{height:100%;width:100%}input::-ms-clear,input::-ms-reveal{display:none}*,:after,:before{box-sizing:border-box}html{-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:rgba(0,0,0,0);font-family:sans-serif;line-height:1.15}@-ms-viewport{width:device-width}body{margin:0}[tabindex="-1"]:focus{outline:none}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{font-weight:500;margin-bottom:.5em;margin-top:0}p{margin-bottom:1em;margin-top:0}abbr[data-original-title],abbr[title]{border-bottom:0;cursor:help;text-decoration:underline;text-decoration:underline dotted}address{font-style:normal;line-height:inherit;margin-bottom:1em}input[type=number],input[type=password],input[type=text],textarea{-webkit-appearance:none}dl,ol,ul{margin-bottom:1em;margin-top:0}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:500}dd{margin-bottom:.5em;margin-left:0}blockquote{margin:0 0 1em}dfn{font-style:italic}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}code,kbd,pre,samp{font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace;font-size:1em}pre{margin-bottom:1em;margin-top:0;overflow:auto}figure{margin:0 0 1em}img{border-style:none;vertical-align:middle}[role=button],a,area,button,input:not([type=range]),label,select,summary,textarea{touch-action:manipulation}table{border-collapse:collapse}caption{caption-side:bottom;padding-bottom:.3em;padding-top:.75em;text-align:left}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-size:inherit;line-height:inherit;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=date],input[type=datetime-local],input[type=month],input[type=time]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{border:0;margin:0;min-width:0;padding:0}legend{color:inherit;display:block;font-size:1.5em;line-height:inherit;margin-bottom:.5em;max-width:100%;padding:0;white-space:normal;width:100%}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:none;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}output{display:inline-block}summary{display:list-item}template{display:none}[hidden]{display:none!important}mark{background-color:#feffe6;padding:.2em}code,kbd,pre,samp{font-family:Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace}
1
+ body,html{height:100%;width:100%}input::-ms-clear,input::-ms-reveal{display:none}*,:after,:before{box-sizing:border-box}html{-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:rgba(0,0,0,0);font-family:sans-serif;line-height:1.15}@-ms-viewport{width:device-width}body{margin:0}[tabindex="-1"]:focus{outline:none}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{font-weight:500;margin-bottom:.5em;margin-top:0}p{margin-bottom:1em;margin-top:0}abbr[data-original-title],abbr[title]{border-bottom:0;cursor:help;text-decoration:underline;text-decoration:underline dotted}address{font-style:normal;line-height:inherit;margin-bottom:1em}input[type=number],input[type=password],input[type=text],textarea{-webkit-appearance:none}dl,ol,ul{margin-bottom:1em;margin-top:0}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:500}dd{margin-bottom:.5em;margin-left:0}blockquote{margin:0 0 1em}dfn{font-style:italic}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}code,kbd,pre,samp{font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace;font-size:1em}pre{margin-bottom:1em;margin-top:0;overflow:auto}figure{margin:0 0 1em}img{border-style:none;vertical-align:middle}[role=button],a,area,button,input:not([type=range]),label,select,summary,textarea{touch-action:manipulation}table{border-collapse:collapse}caption{caption-side:bottom;padding-bottom:.3em;padding-top:.75em;text-align:left}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-size:inherit;line-height:inherit;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=date],input[type=datetime-local],input[type=month],input[type=time]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{border:0;margin:0;min-width:0;padding:0}legend{color:inherit;display:block;font-size:1.5em;line-height:inherit;margin-bottom:.5em;max-width:100%;padding:0;white-space:normal;width:100%}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:none;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}output{display:inline-block}summary{display:list-item}template{display:none}[hidden]{display:none!important}mark{background-color:#feffe6;padding:.2em}@font-face{font-display:swap;font-family:Inter;src:local("Inter"),url(https://mdn.alipayobjects.com/huamei_fhnyvh/afts/file/A*2aG4RJIdUGYAAAAAAAAAAAAADmfOAQ/Inter.woff2) format("woff2"),url(static/Inter.f6bcdfb6.woff2) format("woff2")}@font-face{font-display:swap;font-family:Consolas;src:local("Consolas"),url(https://mdn.alipayobjects.com/huamei_fhnyvh/afts/file/A*R8bMTqAdGWgAAAAAAAAAAAAADmfOAQ/Consolas.woff2) format("woff2"),url(static/Consolas.d732b210.woff2) format("woff2")}@font-face{font-display:swap;font-family:Helvetica Neue;src:local("Helvetica Neue"),url(https://mdn.alipayobjects.com/huamei_fhnyvh/afts/file/A*3EzqR6aYJMkAAAAAAAAAAAAADmfOAQ/HelveticaNeue.woff2) format("woff2"),url(static/HelveticaNeue.742452d4.woff2) format("woff2")}code,kbd,pre,samp{font-family:Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace}*{scrollbar-color:#e2e8f3 transparent}.rc-virtual-list-scrollbar-thumb{background:#e2e8f3!important}